Imported Upstream version 3.2.1
[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 POSUB
896 INTLLIBS
897 LTLIBICONV
898 LIBICONV
899 INTL_MACOSX_LIBS
900 MSGMERGE
901 XGETTEXT_015
902 XGETTEXT
903 GMSGFMT_015
904 MSGFMT_015
905 GMSGFMT
906 USE_NLS
907 GETTEXT
908 MSGFMT
909 amdatadir
910 APPLICATION_DIR
911 amperldir
912 amincludedir
913 amlibexecdir
914 amlibdir
915 CLIENT_SCRIPTS_OPT
916 HAVE_GZIP
917 UNCOMPRESS_OPT
918 UNCOMPRESS_PATH
919 COMPRESS_BEST_OPT
920 COMPRESS_FAST_OPT
921 COMPRESS_SUFFIX
922 COMPRESS_PATH
923 CAT
924 PERLEXTLIBS
925 WANT_MANDATORY_THREAD_CHECK_FALSE
926 WANT_MANDATORY_THREAD_CHECK_TRUE
927 WANT_CYGWIN_COPY_PERL_DLL_FALSE
928 WANT_CYGWIN_COPY_PERL_DLL_TRUE
929 PERL_INC
930 PERL
931 SWIG_LIB
932 SWIG
933 LOCKING
934 WANT_AMFLOCK_LNLOCK_FALSE
935 WANT_AMFLOCK_LNLOCK_TRUE
936 WANT_AMFLOCK_LOCKF_FALSE
937 WANT_AMFLOCK_LOCKF_TRUE
938 WANT_AMFLOCK_FLOCK_FALSE
939 WANT_AMFLOCK_FLOCK_TRUE
940 WANT_AMFLOCK_POSIX_FALSE
941 WANT_AMFLOCK_POSIX_TRUE
942 GETCONF
943 DEFAULT_AMANDATES_FILE
944 EXAMPLE_TAPEDEV
945 DEFAULT_TAPE_DEVICE
946 DEFAULT_TAPE_SERVER
947 DEFAULT_CONFIG
948 DEFAULT_SERVER
949 CONFIG_CLOBBER_MY_CONFIG
950 DOC_BUILD_DATE
951 XSLREL
952 ENABLE_MANPAGE_BUILD_FALSE
953 ENABLE_MANPAGE_BUILD_TRUE
954 XSLTPROC
955 XSLTPROC_FLAGS
956 WANT_AMPLOT_FALSE
957 WANT_AMPLOT_TRUE
958 AMPLOT_CAT_PACK
959 AMPLOT_CAT_COMPRESS
960 AMPLOT_CAT_GZIP
961 AMPLOT_COMPRESS
962 GZIP
963 COMPRESS
964 PCAT
965 GNUPLOT
966 AMANDA_COMPONENTS
967 WANT_TAPE_FALSE
968 WANT_TAPE_TRUE
969 WANT_NDMP_FALSE
970 WANT_NDMP_TRUE
971 WANT_RECOVER_FALSE
972 WANT_RECOVER_TRUE
973 WANT_SERVER_FALSE
974 WANT_SERVER_TRUE
975 WANT_RESTORE_FALSE
976 WANT_RESTORE_TRUE
977 WANT_CLIENT_FALSE
978 WANT_CLIENT_TRUE
979 SYNTAX_CHECKS_FALSE
980 SYNTAX_CHECKS_TRUE
981 WANT_INSTALLPERMS_FALSE
982 WANT_INSTALLPERMS_TRUE
983 WANT_SETUID_CLIENT_FALSE
984 WANT_SETUID_CLIENT_TRUE
985 SERVICE_SUFFIX
986 AMANDA_DEBUG_DAYS
987 AMANDA_DBGDIR
988 ASSERTIONS
989 LOW_TCPPORTRANGE
990 TCPPORTRANGE
991 UDPPORTRANGE
992 BINARY_OWNER
993 CHECK_USERID_FALSE
994 CHECK_USERID_TRUE
995 CHECK_USERID
996 AMANDA_TMPDIR
997 GNUTAR_LISTED_INCREMENTAL_DIR
998 CONFIG_DIR
999 SETUID_GROUP
1000 CLIENT_LOGIN
1001 AMANDA_WARNING_CFLAGS
1002 gltests_WITNESS
1003 REPLACE_ISWCNTRL
1004 HAVE_WCTYPE_H
1005 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1006 NEXT_WCTYPE_H
1007 REPLACE_ISWBLANK
1008 HAVE_ISWBLANK
1009 HAVE_ISWCNTRL
1010 HAVE_WINT_T
1011 HAVE_WCHAR_H
1012 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
1013 NEXT_WCHAR_H
1014 HAVE_UNISTD_H
1015 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1016 NEXT_UNISTD_H
1017 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
1018 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1019 TIME_H_DEFINES_STRUCT_TIMESPEC
1020 NEXT_AS_FIRST_DIRECTIVE_TIME_H
1021 NEXT_TIME_H
1022 REPLACE_TIMEGM
1023 REPLACE_NANOSLEEP
1024 REPLACE_MKTIME
1025 REPLACE_LOCALTIME_R
1026 HAVE_TIMEGM
1027 HAVE_STRPTIME
1028 HAVE_NANOSLEEP
1029 HAVE_LOCALTIME_R
1030 GNULIB_TIME_R
1031 GNULIB_TIMEGM
1032 GNULIB_STRPTIME
1033 GNULIB_NANOSLEEP
1034 GNULIB_MKTIME
1035 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1036 NEXT_SYS_STAT_H
1037 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1038 NEXT_STRING_H
1039 HAVE_RANDOM_H
1040 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1041 NEXT_STDLIB_H
1042 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
1043 NEXT_STDIO_H
1044 ASM_SYMBOL_PREFIX
1045 STDINT_H
1046 WINT_T_SUFFIX
1047 WCHAR_T_SUFFIX
1048 SIG_ATOMIC_T_SUFFIX
1049 SIZE_T_SUFFIX
1050 PTRDIFF_T_SUFFIX
1051 HAVE_SIGNED_WINT_T
1052 HAVE_SIGNED_WCHAR_T
1053 HAVE_SIGNED_SIG_ATOMIC_T
1054 BITSIZEOF_WINT_T
1055 BITSIZEOF_WCHAR_T
1056 BITSIZEOF_SIG_ATOMIC_T
1057 BITSIZEOF_SIZE_T
1058 BITSIZEOF_PTRDIFF_T
1059 HAVE_SYS_BITYPES_H
1060 HAVE_SYS_INTTYPES_H
1061 HAVE_STDINT_H
1062 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1063 NEXT_STDINT_H
1064 HAVE_SYS_TYPES_H
1065 HAVE_INTTYPES_H
1066 HAVE_UNSIGNED_LONG_LONG_INT
1067 HAVE_LONG_LONG_INT
1068 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1069 NEXT_STDDEF_H
1070 STDDEF_H
1071 HAVE_WCHAR_T
1072 REPLACE_NULL
1073 HAVE__BOOL
1074 STDBOOL_H
1075 NETINET_IN_H
1076 HAVE_NETINET_IN_H
1077 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1078 NEXT_NETINET_IN_H
1079 APPLE_UNIVERSAL_BUILD
1080 UNDEFINE_STRTOK_R
1081 REPLACE_STRTOK_R
1082 REPLACE_STRSIGNAL
1083 REPLACE_STRNLEN
1084 REPLACE_STRNDUP
1085 REPLACE_STRNCAT
1086 REPLACE_STRERROR
1087 REPLACE_STRCASESTR
1088 REPLACE_STRSTR
1089 REPLACE_STRDUP
1090 REPLACE_STPNCPY
1091 REPLACE_MEMMEM
1092 REPLACE_MEMCHR
1093 HAVE_STRVERSCMP
1094 HAVE_DECL_STRSIGNAL
1095 HAVE_DECL_STRTOK_R
1096 HAVE_STRCASESTR
1097 HAVE_STRSEP
1098 HAVE_STRPBRK
1099 HAVE_DECL_STRNLEN
1100 HAVE_DECL_STRNDUP
1101 HAVE_DECL_STRDUP
1102 HAVE_STRCHRNUL
1103 HAVE_STPNCPY
1104 HAVE_STPCPY
1105 HAVE_RAWMEMCHR
1106 HAVE_DECL_MEMRCHR
1107 HAVE_MEMPCPY
1108 HAVE_DECL_MEMMEM
1109 HAVE_MEMCHR
1110 HAVE_MBSLEN
1111 GNULIB_STRVERSCMP
1112 GNULIB_STRSIGNAL
1113 GNULIB_STRERROR
1114 GNULIB_MBSTOK_R
1115 GNULIB_MBSSEP
1116 GNULIB_MBSSPN
1117 GNULIB_MBSPBRK
1118 GNULIB_MBSCSPN
1119 GNULIB_MBSCASESTR
1120 GNULIB_MBSPCASECMP
1121 GNULIB_MBSNCASECMP
1122 GNULIB_MBSCASECMP
1123 GNULIB_MBSSTR
1124 GNULIB_MBSRCHR
1125 GNULIB_MBSCHR
1126 GNULIB_MBSNLEN
1127 GNULIB_MBSLEN
1128 GNULIB_STRTOK_R
1129 GNULIB_STRCASESTR
1130 GNULIB_STRSTR
1131 GNULIB_STRSEP
1132 GNULIB_STRPBRK
1133 GNULIB_STRNLEN
1134 GNULIB_STRNDUP
1135 GNULIB_STRNCAT
1136 GNULIB_STRDUP
1137 GNULIB_STRCHRNUL
1138 GNULIB_STPNCPY
1139 GNULIB_STPCPY
1140 GNULIB_RAWMEMCHR
1141 GNULIB_MEMRCHR
1142 GNULIB_MEMPCPY
1143 GNULIB_MEMMEM
1144 GNULIB_MEMCHR
1145 LOCALE_FR_UTF8
1146 LOCALE_ZH_CN
1147 LOCALE_JA
1148 REPLACE_UNSETENV
1149 REPLACE_STRTOD
1150 REPLACE_SETENV
1151 REPLACE_REALPATH
1152 REPLACE_REALLOC
1153 REPLACE_PUTENV
1154 REPLACE_MKSTEMP
1155 REPLACE_MALLOC
1156 REPLACE_CANONICALIZE_FILE_NAME
1157 REPLACE_CALLOC
1158 HAVE_UNSETENV
1159 HAVE_UNLOCKPT
1160 HAVE_SYS_LOADAVG_H
1161 HAVE_STRUCT_RANDOM_DATA
1162 HAVE_STRTOULL
1163 HAVE_STRTOLL
1164 HAVE_STRTOD
1165 HAVE_SETENV
1166 HAVE_RPMATCH
1167 HAVE_REALPATH
1168 HAVE_RANDOM_R
1169 HAVE_PTSNAME
1170 HAVE_MKSTEMPS
1171 HAVE_MKSTEMP
1172 HAVE_MKOSTEMPS
1173 HAVE_MKOSTEMP
1174 HAVE_MKDTEMP
1175 HAVE_GRANTPT
1176 HAVE_GETSUBOPT
1177 HAVE_DECL_GETLOADAVG
1178 HAVE_CANONICALIZE_FILE_NAME
1179 HAVE_ATOLL
1180 HAVE__EXIT
1181 GNULIB_UNSETENV
1182 GNULIB_UNLOCKPT
1183 GNULIB_STRTOULL
1184 GNULIB_STRTOLL
1185 GNULIB_STRTOD
1186 GNULIB_SETENV
1187 GNULIB_RPMATCH
1188 GNULIB_REALPATH
1189 GNULIB_REALLOC_POSIX
1190 GNULIB_RANDOM_R
1191 GNULIB_PUTENV
1192 GNULIB_PTSNAME
1193 GNULIB_MKSTEMPS
1194 GNULIB_MKSTEMP
1195 GNULIB_MKOSTEMPS
1196 GNULIB_MKOSTEMP
1197 GNULIB_MKDTEMP
1198 GNULIB_MALLOC_POSIX
1199 GNULIB_GRANTPT
1200 GNULIB_GETSUBOPT
1201 GNULIB_GETLOADAVG
1202 GNULIB_CANONICALIZE_FILE_NAME
1203 GNULIB_CALLOC_POSIX
1204 GNULIB_ATOLL
1205 GNULIB__EXIT
1206 REPLACE_UTIMENSAT
1207 REPLACE_STAT
1208 REPLACE_MKNOD
1209 REPLACE_MKFIFO
1210 REPLACE_MKDIR
1211 REPLACE_LSTAT
1212 REPLACE_FUTIMENS
1213 REPLACE_FSTATAT
1214 REPLACE_FSTAT
1215 HAVE_UTIMENSAT
1216 HAVE_MKNODAT
1217 HAVE_MKNOD
1218 HAVE_MKFIFOAT
1219 HAVE_MKFIFO
1220 HAVE_MKDIRAT
1221 HAVE_LSTAT
1222 HAVE_LCHMOD
1223 HAVE_FUTIMENS
1224 HAVE_FSTATAT
1225 HAVE_FCHMODAT
1226 GNULIB_UTIMENSAT
1227 GNULIB_STAT
1228 GNULIB_MKNODAT
1229 GNULIB_MKNOD
1230 GNULIB_MKFIFOAT
1231 GNULIB_MKFIFO
1232 GNULIB_MKDIRAT
1233 GNULIB_LSTAT
1234 GNULIB_LCHMOD
1235 GNULIB_FUTIMENS
1236 GNULIB_FSTATAT
1237 GNULIB_FCHMODAT
1238 LTLIBMULTITHREAD
1239 LIBMULTITHREAD
1240 LTLIBTHREAD
1241 LIBTHREAD
1242 LTLIBPTH
1243 LIBPTH
1244 LOCALCHARSET_TESTS_ENVIRONMENT
1245 GLIBC21
1246 HAVE_LANGINFO_ERA
1247 HAVE_LANGINFO_CODESET
1248 HAVE_LANGINFO_H
1249 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1250 NEXT_LANGINFO_H
1251 REPLACE_NL_LANGINFO
1252 HAVE_NL_LANGINFO
1253 GNULIB_NL_LANGINFO
1254 INET_PTON_LIB
1255 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1256 NEXT_SYS_TIME_H
1257 REPLACE_GETTIMEOFDAY
1258 HAVE_SYS_TIME_H
1259 HAVE_STRUCT_TIMEVAL
1260 HAVE_GETTIMEOFDAY
1261 GNULIB_GETTIMEOFDAY
1262 LTLIBINTL
1263 LIBINTL
1264 GETOPT_H
1265 HAVE_GETOPT_H
1266 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1267 NEXT_GETOPT_H
1268 GETADDRINFO_LIB
1269 INET_NTOP_LIB
1270 SERVENT_LIB
1271 HOSTENT_LIB
1272 HAVE_NETDB_H
1273 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1274 NEXT_NETDB_H
1275 HAVE_DECL_GETNAMEINFO
1276 HAVE_DECL_GETADDRINFO
1277 HAVE_DECL_GAI_STRERROR
1278 HAVE_DECL_FREEADDRINFO
1279 HAVE_STRUCT_ADDRINFO
1280 GNULIB_GETADDRINFO
1281 HAVE_WINSOCK2_H
1282 HAVE_WS2TCPIP_H
1283 HAVE_SYS_SOCKET_H
1284 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1285 NEXT_SYS_SOCKET_H
1286 HAVE_ACCEPT4
1287 HAVE_SA_FAMILY_T
1288 HAVE_STRUCT_SOCKADDR_STORAGE
1289 GNULIB_ACCEPT4
1290 GNULIB_SHUTDOWN
1291 GNULIB_SETSOCKOPT
1292 GNULIB_SENDTO
1293 GNULIB_RECVFROM
1294 GNULIB_SEND
1295 GNULIB_RECV
1296 GNULIB_LISTEN
1297 GNULIB_GETSOCKOPT
1298 GNULIB_GETSOCKNAME
1299 GNULIB_GETPEERNAME
1300 GNULIB_BIND
1301 GNULIB_ACCEPT
1302 GNULIB_CONNECT
1303 GNULIB_SOCKET
1304 REPLACE_VSPRINTF
1305 REPLACE_VSNPRINTF
1306 REPLACE_VPRINTF
1307 REPLACE_VFPRINTF
1308 REPLACE_VDPRINTF
1309 REPLACE_VASPRINTF
1310 REPLACE_TMPFILE
1311 REPLACE_STDIO_WRITE_FUNCS
1312 REPLACE_SPRINTF
1313 REPLACE_SNPRINTF
1314 REPLACE_RENAMEAT
1315 REPLACE_RENAME
1316 REPLACE_REMOVE
1317 REPLACE_PRINTF
1318 REPLACE_POPEN
1319 REPLACE_PERROR
1320 REPLACE_OBSTACK_PRINTF
1321 REPLACE_GETLINE
1322 REPLACE_GETDELIM
1323 REPLACE_FTELLO
1324 REPLACE_FTELL
1325 REPLACE_FSEEKO
1326 REPLACE_FSEEK
1327 REPLACE_FREOPEN
1328 REPLACE_FPURGE
1329 REPLACE_FPRINTF
1330 REPLACE_FOPEN
1331 REPLACE_FFLUSH
1332 REPLACE_FCLOSE
1333 REPLACE_DPRINTF
1334 HAVE_VDPRINTF
1335 HAVE_VASPRINTF
1336 HAVE_RENAMEAT
1337 HAVE_FTELLO
1338 HAVE_FSEEKO
1339 HAVE_DPRINTF
1340 HAVE_DECL_VSNPRINTF
1341 HAVE_DECL_SNPRINTF
1342 HAVE_DECL_OBSTACK_PRINTF
1343 HAVE_DECL_GETLINE
1344 HAVE_DECL_GETDELIM
1345 HAVE_DECL_FPURGE
1346 GNULIB_VSPRINTF_POSIX
1347 GNULIB_VSNPRINTF
1348 GNULIB_VPRINTF_POSIX
1349 GNULIB_VPRINTF
1350 GNULIB_VFPRINTF_POSIX
1351 GNULIB_VFPRINTF
1352 GNULIB_VDPRINTF
1353 GNULIB_VASPRINTF
1354 GNULIB_TMPFILE
1355 GNULIB_STDIO_H_SIGPIPE
1356 GNULIB_SPRINTF_POSIX
1357 GNULIB_SNPRINTF
1358 GNULIB_RENAMEAT
1359 GNULIB_RENAME
1360 GNULIB_REMOVE
1361 GNULIB_PUTS
1362 GNULIB_PUTCHAR
1363 GNULIB_PUTC
1364 GNULIB_PRINTF_POSIX
1365 GNULIB_PRINTF
1366 GNULIB_POPEN
1367 GNULIB_PERROR
1368 GNULIB_OBSTACK_PRINTF_POSIX
1369 GNULIB_OBSTACK_PRINTF
1370 GNULIB_GETLINE
1371 GNULIB_GETDELIM
1372 GNULIB_FWRITE
1373 GNULIB_FTELLO
1374 GNULIB_FTELL
1375 GNULIB_FSEEKO
1376 GNULIB_FSEEK
1377 GNULIB_FREOPEN
1378 GNULIB_FPUTS
1379 GNULIB_FPUTC
1380 GNULIB_FPURGE
1381 GNULIB_FPRINTF_POSIX
1382 GNULIB_FPRINTF
1383 GNULIB_FOPEN
1384 GNULIB_FFLUSH
1385 GNULIB_FCLOSE
1386 GNULIB_DPRINTF
1387 FLOAT_H
1388 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1389 NEXT_FLOAT_H
1390 EOVERFLOW_VALUE
1391 EOVERFLOW_HIDDEN
1392 ENOLINK_VALUE
1393 ENOLINK_HIDDEN
1394 EMULTIHOP_VALUE
1395 EMULTIHOP_HIDDEN
1396 ERRNO_H
1397 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1398 NEXT_ERRNO_H
1399 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1400 UNISTD_H_HAVE_WINSOCK2_H
1401 REPLACE_WRITE
1402 REPLACE_USLEEP
1403 REPLACE_UNLINKAT
1404 REPLACE_UNLINK
1405 REPLACE_TTYNAME_R
1406 REPLACE_SYMLINK
1407 REPLACE_SLEEP
1408 REPLACE_RMDIR
1409 REPLACE_READLINK
1410 REPLACE_PWRITE
1411 REPLACE_PREAD
1412 REPLACE_LSEEK
1413 REPLACE_LINKAT
1414 REPLACE_LINK
1415 REPLACE_LCHOWN
1416 REPLACE_GETPAGESIZE
1417 REPLACE_GETGROUPS
1418 REPLACE_GETCWD
1419 REPLACE_FCHOWNAT
1420 REPLACE_DUP2
1421 REPLACE_DUP
1422 REPLACE_CLOSE
1423 REPLACE_CHOWN
1424 HAVE_SYS_PARAM_H
1425 HAVE_OS_H
1426 HAVE_DECL_GETUSERSHELL
1427 HAVE_DECL_GETPAGESIZE
1428 HAVE_DECL_GETLOGIN_R
1429 HAVE_DECL_ENVIRON
1430 HAVE_USLEEP
1431 HAVE_UNLINKAT
1432 HAVE_TTYNAME_R
1433 HAVE_SYMLINKAT
1434 HAVE_SYMLINK
1435 HAVE_SLEEP
1436 HAVE_READLINKAT
1437 HAVE_READLINK
1438 HAVE_PWRITE
1439 HAVE_PREAD
1440 HAVE_PIPE2
1441 HAVE_LINKAT
1442 HAVE_LINK
1443 HAVE_LCHOWN
1444 HAVE_GETPAGESIZE
1445 HAVE_GETLOGIN
1446 HAVE_GETHOSTNAME
1447 HAVE_GETGROUPS
1448 HAVE_GETDTABLESIZE
1449 HAVE_GETDOMAINNAME
1450 HAVE_FTRUNCATE
1451 HAVE_FSYNC
1452 HAVE_FCHOWNAT
1453 HAVE_FCHDIR
1454 HAVE_FACCESSAT
1455 HAVE_EUIDACCESS
1456 HAVE_DUP3
1457 HAVE_DUP2
1458 HAVE_CHOWN
1459 GNULIB_WRITE
1460 GNULIB_USLEEP
1461 GNULIB_UNLINKAT
1462 GNULIB_UNLINK
1463 GNULIB_UNISTD_H_SIGPIPE
1464 GNULIB_UNISTD_H_GETOPT
1465 GNULIB_TTYNAME_R
1466 GNULIB_SYMLINKAT
1467 GNULIB_SYMLINK
1468 GNULIB_SLEEP
1469 GNULIB_RMDIR
1470 GNULIB_READLINKAT
1471 GNULIB_READLINK
1472 GNULIB_PWRITE
1473 GNULIB_PREAD
1474 GNULIB_PIPE2
1475 GNULIB_LSEEK
1476 GNULIB_LINKAT
1477 GNULIB_LINK
1478 GNULIB_LCHOWN
1479 GNULIB_GETUSERSHELL
1480 GNULIB_GETPAGESIZE
1481 GNULIB_GETLOGIN_R
1482 GNULIB_GETLOGIN
1483 GNULIB_GETHOSTNAME
1484 GNULIB_GETGROUPS
1485 GNULIB_GETDTABLESIZE
1486 GNULIB_GETDOMAINNAME
1487 GNULIB_GETCWD
1488 GNULIB_FTRUNCATE
1489 GNULIB_FSYNC
1490 GNULIB_FCHOWNAT
1491 GNULIB_FCHDIR
1492 GNULIB_FACCESSAT
1493 GNULIB_EUIDACCESS
1494 GNULIB_ENVIRON
1495 GNULIB_DUP3
1496 GNULIB_DUP2
1497 GNULIB_CLOSE
1498 GNULIB_CHOWN
1499 LOCALE_FR
1500 REPLACE_WCWIDTH
1501 REPLACE_WCSNRTOMBS
1502 REPLACE_WCSRTOMBS
1503 REPLACE_WCRTOMB
1504 REPLACE_MBSNRTOWCS
1505 REPLACE_MBSRTOWCS
1506 REPLACE_MBRLEN
1507 REPLACE_MBRTOWC
1508 REPLACE_MBSINIT
1509 REPLACE_WCTOB
1510 REPLACE_BTOWC
1511 REPLACE_MBSTATE_T
1512 HAVE_DECL_WCWIDTH
1513 HAVE_DECL_WCTOB
1514 HAVE_WCSNRTOMBS
1515 HAVE_WCSRTOMBS
1516 HAVE_WCRTOMB
1517 HAVE_MBSNRTOWCS
1518 HAVE_MBSRTOWCS
1519 HAVE_MBRLEN
1520 HAVE_MBRTOWC
1521 HAVE_MBSINIT
1522 HAVE_BTOWC
1523 GNULIB_WCWIDTH
1524 GNULIB_WCSNRTOMBS
1525 GNULIB_WCSRTOMBS
1526 GNULIB_WCRTOMB
1527 GNULIB_MBSNRTOWCS
1528 GNULIB_MBSRTOWCS
1529 GNULIB_MBRLEN
1530 GNULIB_MBRTOWC
1531 GNULIB_MBSINIT
1532 GNULIB_WCTOB
1533 GNULIB_BTOWC
1534 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1535 NEXT_ARPA_INET_H
1536 PRAGMA_SYSTEM_HEADER
1537 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1538 INCLUDE_NEXT
1539 HAVE_ARPA_INET_H
1540 HAVE_DECL_INET_PTON
1541 HAVE_DECL_INET_NTOP
1542 GNULIB_INET_PTON
1543 GNULIB_INET_NTOP
1544 ALLOCA_H
1545 ALLOCA
1546 GL_COND_LIBTOOL_FALSE
1547 GL_COND_LIBTOOL_TRUE
1548 EGREP
1549 CPP
1550 RANLIB
1551 am__fastdepCC_FALSE
1552 am__fastdepCC_TRUE
1553 CCDEPMODE
1554 AMDEPBACKSLASH
1555 AMDEP_FALSE
1556 AMDEP_TRUE
1557 am__quote
1558 am__include
1559 DEPDIR
1560 OBJEXT
1561 EXEEXT
1562 ac_ct_CC
1563 CPPFLAGS
1564 LDFLAGS
1565 CFLAGS
1566 CC
1567 VERSION_COMMENT
1568 VERSION_PATCH
1569 VERSION_MINOR
1570 VERSION_MAJOR
1571 SNAPSHOT_STAMP
1572 am__untar
1573 am__tar
1574 AMTAR
1575 am__leading_dot
1576 SET_MAKE
1577 AWK
1578 mkdir_p
1579 MKDIR_P
1580 INSTALL_STRIP_PROGRAM
1581 STRIP
1582 install_sh
1583 MAKEINFO
1584 AUTOHEADER
1585 AUTOMAKE
1586 AUTOCONF
1587 ACLOCAL
1588 VERSION
1589 CYGPATH_W
1590 am__isrc
1591 INSTALL_DATA
1592 INSTALL_SCRIPT
1593 INSTALL_PROGRAM
1594 GIT
1595 SVN
1596 GREP
1597 PACKAGE
1598 host_os
1599 host_vendor
1600 host_cpu
1601 host
1602 build_os
1603 build_vendor
1604 build_cpu
1605 build
1606 target_alias
1607 host_alias
1608 build_alias
1609 LIBS
1610 ECHO_T
1611 ECHO_N
1612 ECHO_C
1613 DEFS
1614 mandir
1615 localedir
1616 libdir
1617 psdir
1618 pdfdir
1619 dvidir
1620 htmldir
1621 infodir
1622 docdir
1623 oldincludedir
1624 includedir
1625 localstatedir
1626 sharedstatedir
1627 sysconfdir
1628 datadir
1629 datarootdir
1630 libexecdir
1631 sbindir
1632 bindir
1633 program_transform_name
1634 prefix
1635 exec_prefix
1636 PACKAGE_BUGREPORT
1637 PACKAGE_STRING
1638 PACKAGE_VERSION
1639 PACKAGE_TARNAME
1640 PACKAGE_NAME
1641 PATH_SEPARATOR
1642 SHELL'
1643 ac_subst_files=''
1644 ac_user_opts='
1645 enable_option_checking
1646 enable_dependency_tracking
1647 enable_threads
1648 with_gnu_ld
1649 enable_rpath
1650 with_libpth_prefix
1651 with_included_regex
1652 enable_largefile
1653 with_cflags
1654 with_includes
1655 with_libraries
1656 with_user
1657 with_group
1658 with_dumperdir
1659 with_configdir
1660 with_indexdir
1661 with_dbdir
1662 with_logdir
1663 with_suffixes
1664 with_gnutar_listdir
1665 with_gnutar_listed_incremental
1666 with_tmpdir
1667 with_force_uid
1668 with_owner
1669 with_fqdn
1670 with_reuseports
1671 with_low_tcpportrange
1672 with_tcpportrange
1673 with_udpportrange
1674 with_buffered_dump
1675 with_maxtapeblocksize
1676 with_assertions
1677 with_debugging
1678 with_debug_days
1679 with_testing
1680 with_single_userid
1681 enable_installperms
1682 enable_syntax_checks
1683 with_server
1684 with_client
1685 with_restore
1686 with_amrecover
1687 with_client_only
1688 with_server_only
1689 with_ndmp
1690 with_gnuplot
1691 enable_manpage_build
1692 with_xsltproc
1693 with_xsltproc_flags
1694 with_index_server
1695 with_config
1696 with_tape_server
1697 with_tape_device
1698 with_changer_device
1699 with_amandates
1700 with_perlextlibs
1701 with_ipv6
1702 with_amlibdir
1703 with_amlibexecdir
1704 with_amperldir
1705 with_amdatadir
1706 enable_nls
1707 with_libiconv_prefix
1708 with_libintl_prefix
1709 with_libcurl
1710 enable_s3_device
1711 enable_dvdrw_device
1712 enable_ndmp_device
1713 with_bsd_security
1714 with_amandahosts
1715 with_bsdtcp_security
1716 with_bsdudp_security
1717 with_rsh_security
1718 with_ssh_security
1719 with_ssh_options
1720 with_krb5_security
1721 with_dump_honor_nodump
1722 with_gnutar
1723 with_star
1724 with_smbclient
1725 with_samba_user
1726 with_rundump
1727 enable_werror
1728 enable_swig_error
1729 enable_shared
1730 enable_static
1731 with_pic
1732 enable_fast_install
1733 enable_libtool_lock
1734 enable_static_binary
1735 enable_glibtest
1736 with_readline
1737 '
1738       ac_precious_vars='build_alias
1739 host_alias
1740 target_alias
1741 CC
1742 CFLAGS
1743 LDFLAGS
1744 LIBS
1745 CPPFLAGS
1746 CPP
1747 GNUPLOT
1748 SWIG
1749 PERL
1750 GNUTAR
1751 STAR
1752 YACC
1753 YFLAGS
1754 MTX
1755 GLIB_CFLAGS
1756 GLIB_LIBS
1757 GLIB_GENMARSHAL
1758 GOBJECT_QUERY
1759 GLIB_MKENUMS
1760 PKG_CONFIG'
1761
1762
1763 # Initialize some variables set by options.
1764 ac_init_help=
1765 ac_init_version=false
1766 ac_unrecognized_opts=
1767 ac_unrecognized_sep=
1768 # The variables have the same names as the options, with
1769 # dashes changed to underlines.
1770 cache_file=/dev/null
1771 exec_prefix=NONE
1772 no_create=
1773 no_recursion=
1774 prefix=NONE
1775 program_prefix=NONE
1776 program_suffix=NONE
1777 program_transform_name=s,x,x,
1778 silent=
1779 site=
1780 srcdir=
1781 verbose=
1782 x_includes=NONE
1783 x_libraries=NONE
1784
1785 # Installation directory options.
1786 # These are left unexpanded so users can "make install exec_prefix=/foo"
1787 # and all the variables that are supposed to be based on exec_prefix
1788 # by default will actually change.
1789 # Use braces instead of parens because sh, perl, etc. also accept them.
1790 # (The list follows the same order as the GNU Coding Standards.)
1791 bindir='${exec_prefix}/bin'
1792 sbindir='${exec_prefix}/sbin'
1793 libexecdir='${exec_prefix}/libexec'
1794 datarootdir='${prefix}/share'
1795 datadir='${datarootdir}'
1796 sysconfdir='${prefix}/etc'
1797 sharedstatedir='${prefix}/com'
1798 localstatedir='${prefix}/var'
1799 includedir='${prefix}/include'
1800 oldincludedir='/usr/include'
1801 docdir='${datarootdir}/doc/${PACKAGE}'
1802 infodir='${datarootdir}/info'
1803 htmldir='${docdir}'
1804 dvidir='${docdir}'
1805 pdfdir='${docdir}'
1806 psdir='${docdir}'
1807 libdir='${exec_prefix}/lib'
1808 localedir='${datarootdir}/locale'
1809 mandir='${datarootdir}/man'
1810
1811 ac_prev=
1812 ac_dashdash=
1813 for ac_option
1814 do
1815   # If the previous option needs an argument, assign it.
1816   if test -n "$ac_prev"; then
1817     eval $ac_prev=\$ac_option
1818     ac_prev=
1819     continue
1820   fi
1821
1822   case $ac_option in
1823   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1824   *)    ac_optarg=yes ;;
1825   esac
1826
1827   # Accept the important Cygnus configure options, so we can diagnose typos.
1828
1829   case $ac_dashdash$ac_option in
1830   --)
1831     ac_dashdash=yes ;;
1832
1833   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1834     ac_prev=bindir ;;
1835   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1836     bindir=$ac_optarg ;;
1837
1838   -build | --build | --buil | --bui | --bu)
1839     ac_prev=build_alias ;;
1840   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1841     build_alias=$ac_optarg ;;
1842
1843   -cache-file | --cache-file | --cache-fil | --cache-fi \
1844   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1845     ac_prev=cache_file ;;
1846   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1847   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1848     cache_file=$ac_optarg ;;
1849
1850   --config-cache | -C)
1851     cache_file=config.cache ;;
1852
1853   -datadir | --datadir | --datadi | --datad)
1854     ac_prev=datadir ;;
1855   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1856     datadir=$ac_optarg ;;
1857
1858   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1859   | --dataroo | --dataro | --datar)
1860     ac_prev=datarootdir ;;
1861   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1862   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1863     datarootdir=$ac_optarg ;;
1864
1865   -disable-* | --disable-*)
1866     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1867     # Reject names that are not valid shell variable names.
1868     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1869       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1870    { (exit 1); exit 1; }; }
1871     ac_useropt_orig=$ac_useropt
1872     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1873     case $ac_user_opts in
1874       *"
1875 "enable_$ac_useropt"
1876 "*) ;;
1877       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1878          ac_unrecognized_sep=', ';;
1879     esac
1880     eval enable_$ac_useropt=no ;;
1881
1882   -docdir | --docdir | --docdi | --doc | --do)
1883     ac_prev=docdir ;;
1884   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1885     docdir=$ac_optarg ;;
1886
1887   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1888     ac_prev=dvidir ;;
1889   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1890     dvidir=$ac_optarg ;;
1891
1892   -enable-* | --enable-*)
1893     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1894     # Reject names that are not valid shell variable names.
1895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1896       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1897    { (exit 1); exit 1; }; }
1898     ac_useropt_orig=$ac_useropt
1899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1900     case $ac_user_opts in
1901       *"
1902 "enable_$ac_useropt"
1903 "*) ;;
1904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1905          ac_unrecognized_sep=', ';;
1906     esac
1907     eval enable_$ac_useropt=\$ac_optarg ;;
1908
1909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1911   | --exec | --exe | --ex)
1912     ac_prev=exec_prefix ;;
1913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1915   | --exec=* | --exe=* | --ex=*)
1916     exec_prefix=$ac_optarg ;;
1917
1918   -gas | --gas | --ga | --g)
1919     # Obsolete; use --with-gas.
1920     with_gas=yes ;;
1921
1922   -help | --help | --hel | --he | -h)
1923     ac_init_help=long ;;
1924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1925     ac_init_help=recursive ;;
1926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1927     ac_init_help=short ;;
1928
1929   -host | --host | --hos | --ho)
1930     ac_prev=host_alias ;;
1931   -host=* | --host=* | --hos=* | --ho=*)
1932     host_alias=$ac_optarg ;;
1933
1934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1935     ac_prev=htmldir ;;
1936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1937   | --ht=*)
1938     htmldir=$ac_optarg ;;
1939
1940   -includedir | --includedir | --includedi | --included | --include \
1941   | --includ | --inclu | --incl | --inc)
1942     ac_prev=includedir ;;
1943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1944   | --includ=* | --inclu=* | --incl=* | --inc=*)
1945     includedir=$ac_optarg ;;
1946
1947   -infodir | --infodir | --infodi | --infod | --info | --inf)
1948     ac_prev=infodir ;;
1949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1950     infodir=$ac_optarg ;;
1951
1952   -libdir | --libdir | --libdi | --libd)
1953     ac_prev=libdir ;;
1954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1955     libdir=$ac_optarg ;;
1956
1957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1958   | --libexe | --libex | --libe)
1959     ac_prev=libexecdir ;;
1960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1961   | --libexe=* | --libex=* | --libe=*)
1962     libexecdir=$ac_optarg ;;
1963
1964   -localedir | --localedir | --localedi | --localed | --locale)
1965     ac_prev=localedir ;;
1966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1967     localedir=$ac_optarg ;;
1968
1969   -localstatedir | --localstatedir | --localstatedi | --localstated \
1970   | --localstate | --localstat | --localsta | --localst | --locals)
1971     ac_prev=localstatedir ;;
1972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1974     localstatedir=$ac_optarg ;;
1975
1976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1977     ac_prev=mandir ;;
1978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1979     mandir=$ac_optarg ;;
1980
1981   -nfp | --nfp | --nf)
1982     # Obsolete; use --without-fp.
1983     with_fp=no ;;
1984
1985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1986   | --no-cr | --no-c | -n)
1987     no_create=yes ;;
1988
1989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1991     no_recursion=yes ;;
1992
1993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1995   | --oldin | --oldi | --old | --ol | --o)
1996     ac_prev=oldincludedir ;;
1997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2000     oldincludedir=$ac_optarg ;;
2001
2002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2003     ac_prev=prefix ;;
2004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2005     prefix=$ac_optarg ;;
2006
2007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2008   | --program-pre | --program-pr | --program-p)
2009     ac_prev=program_prefix ;;
2010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2012     program_prefix=$ac_optarg ;;
2013
2014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2015   | --program-suf | --program-su | --program-s)
2016     ac_prev=program_suffix ;;
2017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2019     program_suffix=$ac_optarg ;;
2020
2021   -program-transform-name | --program-transform-name \
2022   | --program-transform-nam | --program-transform-na \
2023   | --program-transform-n | --program-transform- \
2024   | --program-transform | --program-transfor \
2025   | --program-transfo | --program-transf \
2026   | --program-trans | --program-tran \
2027   | --progr-tra | --program-tr | --program-t)
2028     ac_prev=program_transform_name ;;
2029   -program-transform-name=* | --program-transform-name=* \
2030   | --program-transform-nam=* | --program-transform-na=* \
2031   | --program-transform-n=* | --program-transform-=* \
2032   | --program-transform=* | --program-transfor=* \
2033   | --program-transfo=* | --program-transf=* \
2034   | --program-trans=* | --program-tran=* \
2035   | --progr-tra=* | --program-tr=* | --program-t=*)
2036     program_transform_name=$ac_optarg ;;
2037
2038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2039     ac_prev=pdfdir ;;
2040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2041     pdfdir=$ac_optarg ;;
2042
2043   -psdir | --psdir | --psdi | --psd | --ps)
2044     ac_prev=psdir ;;
2045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2046     psdir=$ac_optarg ;;
2047
2048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049   | -silent | --silent | --silen | --sile | --sil)
2050     silent=yes ;;
2051
2052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2053     ac_prev=sbindir ;;
2054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2055   | --sbi=* | --sb=*)
2056     sbindir=$ac_optarg ;;
2057
2058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2060   | --sharedst | --shareds | --shared | --share | --shar \
2061   | --sha | --sh)
2062     ac_prev=sharedstatedir ;;
2063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2066   | --sha=* | --sh=*)
2067     sharedstatedir=$ac_optarg ;;
2068
2069   -site | --site | --sit)
2070     ac_prev=site ;;
2071   -site=* | --site=* | --sit=*)
2072     site=$ac_optarg ;;
2073
2074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2075     ac_prev=srcdir ;;
2076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2077     srcdir=$ac_optarg ;;
2078
2079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2080   | --syscon | --sysco | --sysc | --sys | --sy)
2081     ac_prev=sysconfdir ;;
2082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2084     sysconfdir=$ac_optarg ;;
2085
2086   -target | --target | --targe | --targ | --tar | --ta | --t)
2087     ac_prev=target_alias ;;
2088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2089     target_alias=$ac_optarg ;;
2090
2091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2092     verbose=yes ;;
2093
2094   -version | --version | --versio | --versi | --vers | -V)
2095     ac_init_version=: ;;
2096
2097   -with-* | --with-*)
2098     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2099     # Reject names that are not valid shell variable names.
2100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2101       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2102    { (exit 1); exit 1; }; }
2103     ac_useropt_orig=$ac_useropt
2104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2105     case $ac_user_opts in
2106       *"
2107 "with_$ac_useropt"
2108 "*) ;;
2109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2110          ac_unrecognized_sep=', ';;
2111     esac
2112     eval with_$ac_useropt=\$ac_optarg ;;
2113
2114   -without-* | --without-*)
2115     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2116     # Reject names that are not valid shell variable names.
2117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2118       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2119    { (exit 1); exit 1; }; }
2120     ac_useropt_orig=$ac_useropt
2121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2122     case $ac_user_opts in
2123       *"
2124 "with_$ac_useropt"
2125 "*) ;;
2126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2127          ac_unrecognized_sep=', ';;
2128     esac
2129     eval with_$ac_useropt=no ;;
2130
2131   --x)
2132     # Obsolete; use --with-x.
2133     with_x=yes ;;
2134
2135   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2136   | --x-incl | --x-inc | --x-in | --x-i)
2137     ac_prev=x_includes ;;
2138   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2139   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2140     x_includes=$ac_optarg ;;
2141
2142   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2143   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2144     ac_prev=x_libraries ;;
2145   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2146   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2147     x_libraries=$ac_optarg ;;
2148
2149   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2150 Try \`$0 --help' for more information." >&2
2151    { (exit 1); exit 1; }; }
2152     ;;
2153
2154   *=*)
2155     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2156     # Reject names that are not valid shell variable names.
2157     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2158       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2159    { (exit 1); exit 1; }; }
2160     eval $ac_envvar=\$ac_optarg
2161     export $ac_envvar ;;
2162
2163   *)
2164     # FIXME: should be removed in autoconf 3.0.
2165     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2166     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2167       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2168     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2169     ;;
2170
2171   esac
2172 done
2173
2174 if test -n "$ac_prev"; then
2175   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2176   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2177    { (exit 1); exit 1; }; }
2178 fi
2179
2180 if test -n "$ac_unrecognized_opts"; then
2181   case $enable_option_checking in
2182     no) ;;
2183     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
2184    { (exit 1); exit 1; }; } ;;
2185     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2186   esac
2187 fi
2188
2189 # Check all directory arguments for consistency.
2190 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2191                 datadir sysconfdir sharedstatedir localstatedir includedir \
2192                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2193                 libdir localedir mandir
2194 do
2195   eval ac_val=\$$ac_var
2196   # Remove trailing slashes.
2197   case $ac_val in
2198     */ )
2199       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2200       eval $ac_var=\$ac_val;;
2201   esac
2202   # Be sure to have absolute directory names.
2203   case $ac_val in
2204     [\\/$]* | ?:[\\/]* )  continue;;
2205     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2206   esac
2207   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2208    { (exit 1); exit 1; }; }
2209 done
2210
2211 # There might be people who depend on the old broken behavior: `$host'
2212 # used to hold the argument of --host etc.
2213 # FIXME: To remove some day.
2214 build=$build_alias
2215 host=$host_alias
2216 target=$target_alias
2217
2218 # FIXME: To remove some day.
2219 if test "x$host_alias" != x; then
2220   if test "x$build_alias" = x; then
2221     cross_compiling=maybe
2222     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2223     If a cross compiler is detected then cross compile mode will be used." >&2
2224   elif test "x$build_alias" != "x$host_alias"; then
2225     cross_compiling=yes
2226   fi
2227 fi
2228
2229 ac_tool_prefix=
2230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2231
2232 test "$silent" = yes && exec 6>/dev/null
2233
2234
2235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2236 ac_ls_di=`ls -di .` &&
2237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2238   { $as_echo "$as_me: error: working directory cannot be determined" >&2
2239    { (exit 1); exit 1; }; }
2240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2241   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2242    { (exit 1); exit 1; }; }
2243
2244
2245 # Find the source files, if location was not specified.
2246 if test -z "$srcdir"; then
2247   ac_srcdir_defaulted=yes
2248   # Try the directory containing this script, then the parent directory.
2249   ac_confdir=`$as_dirname -- "$as_myself" ||
2250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2251          X"$as_myself" : 'X\(//\)[^/]' \| \
2252          X"$as_myself" : 'X\(//\)$' \| \
2253          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2254 $as_echo X"$as_myself" |
2255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2256             s//\1/
2257             q
2258           }
2259           /^X\(\/\/\)[^/].*/{
2260             s//\1/
2261             q
2262           }
2263           /^X\(\/\/\)$/{
2264             s//\1/
2265             q
2266           }
2267           /^X\(\/\).*/{
2268             s//\1/
2269             q
2270           }
2271           s/.*/./; q'`
2272   srcdir=$ac_confdir
2273   if test ! -r "$srcdir/$ac_unique_file"; then
2274     srcdir=..
2275   fi
2276 else
2277   ac_srcdir_defaulted=no
2278 fi
2279 if test ! -r "$srcdir/$ac_unique_file"; then
2280   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2281   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2282    { (exit 1); exit 1; }; }
2283 fi
2284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2285 ac_abs_confdir=`(
2286         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2287    { (exit 1); exit 1; }; }
2288         pwd)`
2289 # When building in place, set srcdir=.
2290 if test "$ac_abs_confdir" = "$ac_pwd"; then
2291   srcdir=.
2292 fi
2293 # Remove unnecessary trailing slashes from srcdir.
2294 # Double slashes in file names in object file debugging info
2295 # mess up M-x gdb in Emacs.
2296 case $srcdir in
2297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2298 esac
2299 for ac_var in $ac_precious_vars; do
2300   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2301   eval ac_env_${ac_var}_value=\$${ac_var}
2302   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2303   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2304 done
2305
2306 #
2307 # Report the --help message.
2308 #
2309 if test "$ac_init_help" = "long"; then
2310   # Omit some internal or obsolete options to make the list less imposing.
2311   # This message is too long to be a string in the A/UX 3.1 sh.
2312   cat <<_ACEOF
2313 \`configure' configures this package to adapt to many kinds of systems.
2314
2315 Usage: $0 [OPTION]... [VAR=VALUE]...
2316
2317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2318 VAR=VALUE.  See below for descriptions of some of the useful variables.
2319
2320 Defaults for the options are specified in brackets.
2321
2322 Configuration:
2323   -h, --help              display this help and exit
2324       --help=short        display options specific to this package
2325       --help=recursive    display the short help of all the included packages
2326   -V, --version           display version information and exit
2327   -q, --quiet, --silent   do not print \`checking...' messages
2328       --cache-file=FILE   cache test results in FILE [disabled]
2329   -C, --config-cache      alias for \`--cache-file=config.cache'
2330   -n, --no-create         do not create output files
2331       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2332
2333 Installation directories:
2334   --prefix=PREFIX         install architecture-independent files in PREFIX
2335                           [$ac_default_prefix]
2336   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2337                           [PREFIX]
2338
2339 By default, \`make install' will install all the files in
2340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2342 for instance \`--prefix=\$HOME'.
2343
2344 For better control, use the options below.
2345
2346 Fine tuning of the installation directories:
2347   --bindir=DIR            user executables [EPREFIX/bin]
2348   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2349   --libexecdir=DIR        program executables [EPREFIX/libexec]
2350   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2351   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2352   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2353   --libdir=DIR            object code libraries [EPREFIX/lib]
2354   --includedir=DIR        C header files [PREFIX/include]
2355   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2356   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2357   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2358   --infodir=DIR           info documentation [DATAROOTDIR/info]
2359   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2360   --mandir=DIR            man documentation [DATAROOTDIR/man]
2361   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2362   --htmldir=DIR           html documentation [DOCDIR]
2363   --dvidir=DIR            dvi documentation [DOCDIR]
2364   --pdfdir=DIR            pdf documentation [DOCDIR]
2365   --psdir=DIR             ps documentation [DOCDIR]
2366 _ACEOF
2367
2368   cat <<\_ACEOF
2369
2370 Program names:
2371   --program-prefix=PREFIX            prepend PREFIX to installed program names
2372   --program-suffix=SUFFIX            append SUFFIX to installed program names
2373   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2374
2375 System types:
2376   --build=BUILD     configure for building on BUILD [guessed]
2377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2378 _ACEOF
2379 fi
2380
2381 if test -n "$ac_init_help"; then
2382
2383   cat <<\_ACEOF
2384
2385 Optional Features:
2386   --disable-option-checking  ignore unrecognized --enable/--with options
2387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2389   --disable-dependency-tracking  speeds up one-time build
2390   --enable-dependency-tracking   do not reject slow dependency extractors
2391   --enable-threads={posix|solaris|pth|win32}
2392                           specify multithreading API
2393   --disable-threads       build without multithread safety
2394   --disable-rpath         do not hardcode runtime library paths
2395   --disable-largefile     omit support for large files
2396   --disable-installperms  do not modify ownership and permissions on installed
2397                           files
2398   --enable-syntax-checks  Perform syntax checks when installing - developers
2399                           only
2400   --enable-manpage-build  Build the manpages from their XML source (shipped
2401                           manpages are usually sufficient)
2402   --disable-nls           do not use Native Language Support
2403   --disable-s3-device     disable the S3 device
2404   --disable-dvdrw-device  disable the DVD-RW device
2405   --disable-ndmp-device   disable the NDMP device
2406   --enable-werror         To compile with -Werror compiler flag
2407   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2408   --enable-shared[=PKGS]  build shared libraries [default=yes]
2409   --enable-static[=PKGS]  build static libraries [default=yes]
2410   --enable-fast-install[=PKGS]
2411                           optimize for fast installation [default=yes]
2412   --disable-libtool-lock  avoid locking (might break parallel builds)
2413   --enable-static-binary  To build statically linked binaries
2414   --disable-glibtest      do not try to compile and run a test GLIB program
2415
2416 Optional Packages:
2417   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2418   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2419   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2420   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2421   --without-libpth-prefix     don't search for libpth in includedir and libdir
2422   --without-included-regex
2423                           don't compile regex; this is the default on systems
2424                           with recent-enough versions of the GNU C Library
2425                           (use with caution on other systems).
2426   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2427   --with-includes=INCLUDE-DIRS
2428                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2429   --with-libraries=LIBRARY-DIRS
2430                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2431                           -R on Solaris, NetBSD)
2432   --with-user=USER        force execution to USER on client systems (REQUIRED)
2433   --with-group=GROUP      group allowed to execute setuid-root programs
2434                           (REQUIRED)
2435   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2436   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2437   --with-indexdir         deprecated: use indexdir in amanda.conf
2438   --with-dbdir            deprecated: use infofile in amanda.conf
2439   --with-logdir           deprecated: use logfile in amanda.conf
2440
2441   --with-gnutar-listdir=DIR
2442                           put gnutar directory lists in DIR (default:
2443                           localstatedir/amanda/gnutar-lists)
2444   --with-gnutar-listed-incremental
2445                           deprecated; use --with-gnutar-listdir
2446   --with-tmpdir           directory for temporary and debugging files
2447                           (default: /tmp/amanda)
2448   --without-force-uid     do not check userids when running programs
2449   --with-owner=USER
2450             force ownership of installed files to USER (default same as --with-user)
2451
2452   --with-fqdn             use FQDN's to backup multiple networks
2453   --without-reuseaddr     Don't reuse network connections until full timeout
2454                           period
2455   --with-low-tcpportrange=low,high
2456                           bind reserved TCP server sockets to ports within
2457   --with-tcpportrange=low,high
2458                           bind unreserved TCP server sockets to ports within
2459   --with-udpportrange=low,high
2460                           bind reserved UDP server sockets to ports within
2461   --with-buffered-dump    buffer the dumping sockets on the server for speed
2462 (deprecated)
2463   --with-assertions       compile assertions into code
2464   --with-debugging=DIR
2465             put debug logs in DIR (default same as --with-tmpdir)
2466
2467   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2468   --with-testing[=SUFFIX] use alternate service names with suffix (default
2469                           'test')
2470   --with-single-userid
2471             force amanda to run as a single userid (for testing)
2472
2473   --without-server        do not build server stuff (set --without-restore)
2474   --without-client        do not build client stuff
2475   --without-restore       do not build amrestore nor amidxtaped
2476   --without-amrecover     do not build amrecover
2477   --with-client-only      deprecated: use --without-server
2478   --with-server-only      deprecated: use --without-client
2479   --without-ndmp          do not build ndmp
2480   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2481   --with-xsltproc[[[=PATH]]]
2482                           Use the xsltproc binary in in PATH.
2483     --with-xsltproc-flags=FLAGS
2484                           Flags to pass to xsltproc (default --nonet)
2485   --with-index-server=HOST
2486                           default amanda index server (default: `uname -n`)
2487   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2488   --with-tape-server=HOST default tape server for restore (default: same as
2489                           index-server)
2490   --with-tape-device=DEVICE
2491                           default device on restore tape server
2492   --with-changer-device=DEV
2493                           (deprecated)
2494   --with-amandates        default location for 'amandates' (default:
2495                           $localstatedir/amanda/amandates)
2496   --with-perlextlibs=libs extra LIBS for Perl extensions
2497   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2498           --without-ipv6          disable IPv6
2499   --with-amlibdir[[[=PATH]]]
2500                           Where library are installed, default: $libdir/amanda
2501           --without-amlibdir      Library are installed in $libdir
2502   --with-amlibexecdir[[[=PATH]]]
2503                           Where amanda own programs are installed, default:
2504                           $libexecdir/amanda
2505           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2506   --with-amperldir[[[=PATH]]]
2507                           Where amanda's perl modules are installed; default:
2508                           installsitelib
2509           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2510   --with-amdatadir[[[=PATH]]]
2511                           Where amanda's templates and examples are installed;
2512                           default: $datadir/amanda
2513   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2514   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2515   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2516   --without-libintl-prefix     don't search for libintl in includedir and libdir
2517   --with-libcurl=DIR      look for the curl library in DIR
2518   --without-bsd-security  do not include BSD authentication
2519    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2520   --with-bsdtcp-security  include BSDTCP authentication
2521   --with-bsdudp-security  include BSDUDP authentication
2522   --with-rsh-security     include RSH authentication
2523   --with-ssh-security     include SSH authentication
2524    --with-ssh-options=[OPTIONS]
2525                           Use these ssh options for ssh security; the default
2526                           should work
2527   --with-krb5-security=DIR
2528                           Location of Kerberos V software [/usr/kerberos
2529                           /usr/cygnus /usr /opt/kerberos]
2530   --with-dump-honor-nodump
2531                           if dump supports -h, use it for level0s too
2532   --with-gnutar=PROG      use PROG as GNU 'tar'
2533   --with-star=PROG        use PROG as 'star'
2534   --with-smbclient=PROG   use PROG as 'smbclient'
2535   --with-samba-user       deprecated; place username in 'amandapass'
2536   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2537   --with-pic              try to use only PIC/non-PIC objects [default=use
2538                           both]
2539   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2540   --with-readline         require readline support (for amrecover)
2541   --without-readline      don't search for readline
2542
2543 Some influential environment variables:
2544   CC          C compiler command
2545   CFLAGS      C compiler flags
2546   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2547               nonstandard directory <lib dir>
2548   LIBS        libraries to pass to the linker, e.g. -l<library>
2549   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2550               you have headers in a nonstandard directory <include dir>
2551   CPP         C preprocessor
2552   GNUPLOT     Location of the 'gnuplot' binary
2553   SWIG        Path to the 'swig' binary (developers only)
2554   PERL        Path to the 'perl' binary
2555   GNUTAR      Location of the GNU 'tar' binary
2556   STAR        Location of the 'star' binary
2557   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2558               the first program found out of: `bison -y', `byacc', `yacc'.
2559   YFLAGS      The list of arguments that will be passed by default to $YACC.
2560               This script will default YFLAGS to the empty string to avoid a
2561               default value of `-d' given by some make applications.
2562   MTX         Path to the 'mtx' binary
2563   GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config
2564   GLIB_LIBS   libraries to build with glib; disables use of pkg-config
2565   GLIB_GENMARSHAL
2566               genmarshal binary to use with glib; disables use of pkg-config
2567   GOBJECT_QUERY
2568               gobject_query binary to use with glib; disables use of
2569               pkg-config
2570   GLIB_MKENUMS
2571               mkenums binary to use with glib; disables use of pkg-config
2572   PKG_CONFIG  path to pkg-config utility
2573
2574 Use these variables to override the choices made by `configure' or to help
2575 it to find libraries and programs with nonstandard names/locations.
2576
2577 _ACEOF
2578 ac_status=$?
2579 fi
2580
2581 if test "$ac_init_help" = "recursive"; then
2582   # If there are subdirs, report their specific --help.
2583   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2584     test -d "$ac_dir" ||
2585       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2586       continue
2587     ac_builddir=.
2588
2589 case "$ac_dir" in
2590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2591 *)
2592   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2593   # A ".." for each directory in $ac_dir_suffix.
2594   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2595   case $ac_top_builddir_sub in
2596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2598   esac ;;
2599 esac
2600 ac_abs_top_builddir=$ac_pwd
2601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2602 # for backward compatibility:
2603 ac_top_builddir=$ac_top_build_prefix
2604
2605 case $srcdir in
2606   .)  # We are building in place.
2607     ac_srcdir=.
2608     ac_top_srcdir=$ac_top_builddir_sub
2609     ac_abs_top_srcdir=$ac_pwd ;;
2610   [\\/]* | ?:[\\/]* )  # Absolute name.
2611     ac_srcdir=$srcdir$ac_dir_suffix;
2612     ac_top_srcdir=$srcdir
2613     ac_abs_top_srcdir=$srcdir ;;
2614   *) # Relative name.
2615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2616     ac_top_srcdir=$ac_top_build_prefix$srcdir
2617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2618 esac
2619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2620
2621     cd "$ac_dir" || { ac_status=$?; continue; }
2622     # Check for guested configure.
2623     if test -f "$ac_srcdir/configure.gnu"; then
2624       echo &&
2625       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2626     elif test -f "$ac_srcdir/configure"; then
2627       echo &&
2628       $SHELL "$ac_srcdir/configure" --help=recursive
2629     else
2630       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2631     fi || ac_status=$?
2632     cd "$ac_pwd" || { ac_status=$?; break; }
2633   done
2634 fi
2635
2636 test -n "$ac_init_help" && exit $ac_status
2637 if $ac_init_version; then
2638   cat <<\_ACEOF
2639 configure
2640 generated by GNU Autoconf 2.63
2641
2642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2643 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2644 This configure script is free software; the Free Software Foundation
2645 gives unlimited permission to copy, distribute and modify it.
2646 _ACEOF
2647   exit
2648 fi
2649 cat >config.log <<_ACEOF
2650 This file contains any messages produced by compilers while
2651 running configure, to aid debugging if configure makes a mistake.
2652
2653 It was created by $as_me, which was
2654 generated by GNU Autoconf 2.63.  Invocation command line was
2655
2656   $ $0 $@
2657
2658 _ACEOF
2659 exec 5>>config.log
2660 {
2661 cat <<_ASUNAME
2662 ## --------- ##
2663 ## Platform. ##
2664 ## --------- ##
2665
2666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2671
2672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2673 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2674
2675 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2676 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2678 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2679 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2680 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2681 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2682
2683 _ASUNAME
2684
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   $as_echo "PATH: $as_dir"
2691 done
2692 IFS=$as_save_IFS
2693
2694 } >&5
2695
2696 cat >&5 <<_ACEOF
2697
2698
2699 ## ----------- ##
2700 ## Core tests. ##
2701 ## ----------- ##
2702
2703 _ACEOF
2704
2705
2706 # Keep a trace of the command line.
2707 # Strip out --no-create and --no-recursion so they do not pile up.
2708 # Strip out --silent because we don't want to record it for future runs.
2709 # Also quote any args containing shell meta-characters.
2710 # Make two passes to allow for proper duplicate-argument suppression.
2711 ac_configure_args=
2712 ac_configure_args0=
2713 ac_configure_args1=
2714 ac_must_keep_next=false
2715 for ac_pass in 1 2
2716 do
2717   for ac_arg
2718   do
2719     case $ac_arg in
2720     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2721     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2722     | -silent | --silent | --silen | --sile | --sil)
2723       continue ;;
2724     *\'*)
2725       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2726     esac
2727     case $ac_pass in
2728     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2729     2)
2730       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2731       if test $ac_must_keep_next = true; then
2732         ac_must_keep_next=false # Got value, back to normal.
2733       else
2734         case $ac_arg in
2735           *=* | --config-cache | -C | -disable-* | --disable-* \
2736           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2737           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2738           | -with-* | --with-* | -without-* | --without-* | --x)
2739             case "$ac_configure_args0 " in
2740               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2741             esac
2742             ;;
2743           -* ) ac_must_keep_next=true ;;
2744         esac
2745       fi
2746       ac_configure_args="$ac_configure_args '$ac_arg'"
2747       ;;
2748     esac
2749   done
2750 done
2751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2753
2754 # When interrupted or exit'd, cleanup temporary files, and complete
2755 # config.log.  We remove comments because anyway the quotes in there
2756 # would cause problems or look ugly.
2757 # WARNING: Use '\'' to represent an apostrophe within the trap.
2758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2759 trap 'exit_status=$?
2760   # Save into config.log some information that might help in debugging.
2761   {
2762     echo
2763
2764     cat <<\_ASBOX
2765 ## ---------------- ##
2766 ## Cache variables. ##
2767 ## ---------------- ##
2768 _ASBOX
2769     echo
2770     # The following way of writing the cache mishandles newlines in values,
2771 (
2772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2773     eval ac_val=\$$ac_var
2774     case $ac_val in #(
2775     *${as_nl}*)
2776       case $ac_var in #(
2777       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2779       esac
2780       case $ac_var in #(
2781       _ | IFS | as_nl) ;; #(
2782       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2783       *) $as_unset $ac_var ;;
2784       esac ;;
2785     esac
2786   done
2787   (set) 2>&1 |
2788     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2789     *${as_nl}ac_space=\ *)
2790       sed -n \
2791         "s/'\''/'\''\\\\'\'''\''/g;
2792           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2793       ;; #(
2794     *)
2795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2796       ;;
2797     esac |
2798     sort
2799 )
2800     echo
2801
2802     cat <<\_ASBOX
2803 ## ----------------- ##
2804 ## Output variables. ##
2805 ## ----------------- ##
2806 _ASBOX
2807     echo
2808     for ac_var in $ac_subst_vars
2809     do
2810       eval ac_val=\$$ac_var
2811       case $ac_val in
2812       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2813       esac
2814       $as_echo "$ac_var='\''$ac_val'\''"
2815     done | sort
2816     echo
2817
2818     if test -n "$ac_subst_files"; then
2819       cat <<\_ASBOX
2820 ## ------------------- ##
2821 ## File substitutions. ##
2822 ## ------------------- ##
2823 _ASBOX
2824       echo
2825       for ac_var in $ac_subst_files
2826       do
2827         eval ac_val=\$$ac_var
2828         case $ac_val in
2829         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2830         esac
2831         $as_echo "$ac_var='\''$ac_val'\''"
2832       done | sort
2833       echo
2834     fi
2835
2836     if test -s confdefs.h; then
2837       cat <<\_ASBOX
2838 ## ----------- ##
2839 ## confdefs.h. ##
2840 ## ----------- ##
2841 _ASBOX
2842       echo
2843       cat confdefs.h
2844       echo
2845     fi
2846     test "$ac_signal" != 0 &&
2847       $as_echo "$as_me: caught signal $ac_signal"
2848     $as_echo "$as_me: exit $exit_status"
2849   } >&5
2850   rm -f core *.core core.conftest.* &&
2851     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2852     exit $exit_status
2853 ' 0
2854 for ac_signal in 1 2 13 15; do
2855   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2856 done
2857 ac_signal=0
2858
2859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2860 rm -f -r conftest* confdefs.h
2861
2862 # Predefined preprocessor variables.
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_NAME "$PACKAGE_NAME"
2866 _ACEOF
2867
2868
2869 cat >>confdefs.h <<_ACEOF
2870 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2871 _ACEOF
2872
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2876 _ACEOF
2877
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_STRING "$PACKAGE_STRING"
2881 _ACEOF
2882
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2886 _ACEOF
2887
2888
2889 # Let the site file select an alternate cache file if it wants to.
2890 # Prefer an explicitly selected file to automatically selected ones.
2891 ac_site_file1=NONE
2892 ac_site_file2=NONE
2893 if test -n "$CONFIG_SITE"; then
2894   ac_site_file1=$CONFIG_SITE
2895 elif test "x$prefix" != xNONE; then
2896   ac_site_file1=$prefix/share/config.site
2897   ac_site_file2=$prefix/etc/config.site
2898 else
2899   ac_site_file1=$ac_default_prefix/share/config.site
2900   ac_site_file2=$ac_default_prefix/etc/config.site
2901 fi
2902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2903 do
2904   test "x$ac_site_file" = xNONE && continue
2905   if test -r "$ac_site_file"; then
2906     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908     sed 's/^/| /' "$ac_site_file" >&5
2909     . "$ac_site_file"
2910   fi
2911 done
2912
2913 if test -r "$cache_file"; then
2914   # Some versions of bash will fail to source /dev/null (special
2915   # files actually), so we avoid doing that.
2916   if test -f "$cache_file"; then
2917     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2918 $as_echo "$as_me: loading cache $cache_file" >&6;}
2919     case $cache_file in
2920       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2921       *)                      . "./$cache_file";;
2922     esac
2923   fi
2924 else
2925   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2926 $as_echo "$as_me: creating cache $cache_file" >&6;}
2927   >$cache_file
2928 fi
2929
2930 gl_header_list="$gl_header_list arpa/inet.h"
2931 gl_func_list="$gl_func_list btowc"
2932 gl_header_list="$gl_header_list errno.h"
2933 gl_header_list="$gl_header_list float.h"
2934 gl_header_list="$gl_header_list sys/param.h"
2935 gl_header_list="$gl_header_list sys/vfs.h"
2936 gl_header_list="$gl_header_list sys/fs_types.h"
2937 gl_func_list="$gl_func_list ftruncate"
2938 gl_header_list="$gl_header_list sys/socket.h"
2939 gl_header_list="$gl_header_list netdb.h"
2940 gl_header_list="$gl_header_list netinet/in.h"
2941 gl_getopt_required=GNU
2942 gl_header_list="$gl_header_list getopt.h"
2943 gl_header_list="$gl_header_list sys/time.h"
2944 gl_func_list="$gl_func_list gettimeofday"
2945 gl_header_list="$gl_header_list langinfo.h"
2946 gl_func_list="$gl_func_list lstat"
2947 gl_func_list="$gl_func_list mbsinit"
2948 gl_func_list="$gl_func_list mbrtowc"
2949 gl_header_list="$gl_header_list sys/mman.h"
2950 gl_func_list="$gl_func_list mprotect"
2951 gl_func_list="$gl_func_list memchr"
2952 gl_func_list="$gl_func_list nl_langinfo"
2953 gl_header_list="$gl_header_list locale.h"
2954 gl_func_list="$gl_func_list isblank"
2955 gl_func_list="$gl_func_list iswctype"
2956 gl_func_list="$gl_func_list wcscoll"
2957 gl_header_list="$gl_header_list stddef.h"
2958 gl_header_list="$gl_header_list stdint.h"
2959 gl_header_list="$gl_header_list wchar.h"
2960 gl_header_list="$gl_header_list stdio.h"
2961 gl_header_list="$gl_header_list stdlib.h"
2962 gl_header_list="$gl_header_list string.h"
2963 gl_header_list="$gl_header_list sys/stat.h"
2964 gl_header_list="$gl_header_list time.h"
2965 gl_header_list="$gl_header_list unistd.h"
2966 gl_func_list="$gl_func_list vasnprintf"
2967 gl_func_list="$gl_func_list wcrtomb"
2968 gl_func_list="$gl_func_list iswcntrl"
2969 gl_func_list="$gl_func_list iswblank"
2970 gl_header_list="$gl_header_list wctype.h"
2971 # Check that the precious variables saved in the cache have kept the same
2972 # value.
2973 ac_cache_corrupted=false
2974 for ac_var in $ac_precious_vars; do
2975   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2976   eval ac_new_set=\$ac_env_${ac_var}_set
2977   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2978   eval ac_new_val=\$ac_env_${ac_var}_value
2979   case $ac_old_set,$ac_new_set in
2980     set,)
2981       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2982 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2983       ac_cache_corrupted=: ;;
2984     ,set)
2985       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2987       ac_cache_corrupted=: ;;
2988     ,);;
2989     *)
2990       if test "x$ac_old_val" != "x$ac_new_val"; then
2991         # differences in whitespace do not lead to failure.
2992         ac_old_val_w=`echo x $ac_old_val`
2993         ac_new_val_w=`echo x $ac_new_val`
2994         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2995           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2997           ac_cache_corrupted=:
2998         else
2999           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3001           eval $ac_var=\$ac_old_val
3002         fi
3003         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
3004 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3005         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
3006 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3007       fi;;
3008   esac
3009   # Pass precious variables to config.status.
3010   if test "$ac_new_set" = set; then
3011     case $ac_new_val in
3012     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3013     *) ac_arg=$ac_var=$ac_new_val ;;
3014     esac
3015     case " $ac_configure_args " in
3016       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3017       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
3018     esac
3019   fi
3020 done
3021 if $ac_cache_corrupted; then
3022   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
3025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3026   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3027 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3028    { (exit 1); exit 1; }; }
3029 fi
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053
3054
3055 ac_aux_dir=
3056 for ac_dir in config "$srcdir"/config; do
3057   if test -f "$ac_dir/install-sh"; then
3058     ac_aux_dir=$ac_dir
3059     ac_install_sh="$ac_aux_dir/install-sh -c"
3060     break
3061   elif test -f "$ac_dir/install.sh"; then
3062     ac_aux_dir=$ac_dir
3063     ac_install_sh="$ac_aux_dir/install.sh -c"
3064     break
3065   elif test -f "$ac_dir/shtool"; then
3066     ac_aux_dir=$ac_dir
3067     ac_install_sh="$ac_aux_dir/shtool install -c"
3068     break
3069   fi
3070 done
3071 if test -z "$ac_aux_dir"; then
3072   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
3073 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
3074    { (exit 1); exit 1; }; }
3075 fi
3076
3077 # These three variables are undocumented and unsupported,
3078 # and are intended to be withdrawn in a future Autoconf release.
3079 # They can cause serious problems if a builder's source tree is in a directory
3080 # whose full name contains unusual characters.
3081 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3082 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3083 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3084
3085
3086
3087 # Make sure we can run config.sub.
3088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3089   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3090 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3091    { (exit 1); exit 1; }; }
3092
3093 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3094 $as_echo_n "checking build system type... " >&6; }
3095 if test "${ac_cv_build+set}" = set; then
3096   $as_echo_n "(cached) " >&6
3097 else
3098   ac_build_alias=$build_alias
3099 test "x$ac_build_alias" = x &&
3100   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3101 test "x$ac_build_alias" = x &&
3102   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3103 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3104    { (exit 1); exit 1; }; }
3105 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3106   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3107 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3108    { (exit 1); exit 1; }; }
3109
3110 fi
3111 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3112 $as_echo "$ac_cv_build" >&6; }
3113 case $ac_cv_build in
3114 *-*-*) ;;
3115 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3116 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3117    { (exit 1); exit 1; }; };;
3118 esac
3119 build=$ac_cv_build
3120 ac_save_IFS=$IFS; IFS='-'
3121 set x $ac_cv_build
3122 shift
3123 build_cpu=$1
3124 build_vendor=$2
3125 shift; shift
3126 # Remember, the first character of IFS is used to create $*,
3127 # except with old shells:
3128 build_os=$*
3129 IFS=$ac_save_IFS
3130 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3131
3132
3133 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3134 $as_echo_n "checking host system type... " >&6; }
3135 if test "${ac_cv_host+set}" = set; then
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test "x$host_alias" = x; then
3139   ac_cv_host=$ac_cv_build
3140 else
3141   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3142     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3143 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 fi
3148 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3149 $as_echo "$ac_cv_host" >&6; }
3150 case $ac_cv_host in
3151 *-*-*) ;;
3152 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3153 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3154    { (exit 1); exit 1; }; };;
3155 esac
3156 host=$ac_cv_host
3157 ac_save_IFS=$IFS; IFS='-'
3158 set x $ac_cv_host
3159 shift
3160 host_cpu=$1
3161 host_vendor=$2
3162 shift; shift
3163 # Remember, the first character of IFS is used to create $*,
3164 # except with old shells:
3165 host_os=$*
3166 IFS=$ac_save_IFS
3167 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3168
3169
3170
3171 PACKAGE=amanda
3172
3173
3174
3175     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3176     # expand prefix or exec_prefix in LOCPATH
3177     LOCPATH=`(
3178         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3179         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3180         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3181     )`
3182     SYSLOCPATH="$SYSPATH:$LOCPATH"
3183     LOCSYSPATH="$LOCPATH:$SYSPATH"
3184
3185
3186
3187     # Extract the first word of "grep", so it can be a program name with args.
3188 set dummy grep; ac_word=$2
3189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_path_GREP+set}" = set; then
3192   $as_echo_n "(cached) " >&6
3193 else
3194   case $GREP in
3195   [\\/]* | ?:[\\/]*)
3196   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3197   ;;
3198   *)
3199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $LOCSYSPATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3207     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3215   ;;
3216 esac
3217 fi
3218 GREP=$ac_cv_path_GREP
3219 if test -n "$GREP"; then
3220   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
3221 $as_echo "$GREP" >&6; }
3222 else
3223   { $as_echo "$as_me:$LINENO: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228
3229 cat >>confdefs.h <<_ACEOF
3230 #define GREP "$GREP"
3231 _ACEOF
3232
3233
3234
3235
3236
3237
3238
3239     # Extract the first word of "svn", so it can be a program name with args.
3240 set dummy svn; ac_word=$2
3241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_path_SVN+set}" = set; then
3244   $as_echo_n "(cached) " >&6
3245 else
3246   case $SVN in
3247   [\\/]* | ?:[\\/]*)
3248   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3249   ;;
3250   *)
3251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $LOCSYSPATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256   for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3259     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266   ;;
3267 esac
3268 fi
3269 SVN=$ac_cv_path_SVN
3270 if test -n "$SVN"; then
3271   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
3272 $as_echo "$SVN" >&6; }
3273 else
3274   { $as_echo "$as_me:$LINENO: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279     { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
3280 $as_echo_n "checking Subversion revision information... " >&6; }
3281     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3282         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3283         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3284         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3285         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3286         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3287         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3288         ( echo '#define BUILT_REV "'$SVN_REV'"'
3289           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3290         ) > common-src/svn-info.h
3291
3292         { $as_echo "$as_me:$LINENO: result: updated" >&5
3293 $as_echo "updated" >&6; }
3294     else
3295         # Makefiles will be upset if the file doesn't exist, so double-check
3296         if test -f common-src/svn-info.h; then
3297             : # all good
3298             { $as_echo "$as_me:$LINENO: result: not changed" >&5
3299 $as_echo "not changed" >&6; }
3300         else
3301             echo '/* no information available */' > common-src/svn-info.h
3302             { $as_echo "$as_me:$LINENO: result: not available" >&5
3303 $as_echo "not available" >&6; }
3304         fi
3305     fi
3306
3307     rm -f conftemp.svn
3308
3309
3310
3311
3312
3313     # Extract the first word of "git", so it can be a program name with args.
3314 set dummy git; ac_word=$2
3315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_path_GIT+set}" = set; then
3318   $as_echo_n "(cached) " >&6
3319 else
3320   case $GIT in
3321   [\\/]* | ?:[\\/]*)
3322   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3323   ;;
3324   *)
3325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $LOCSYSPATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330   for ac_exec_ext in '' $ac_executable_extensions; do
3331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3333     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340   ;;
3341 esac
3342 fi
3343 GIT=$ac_cv_path_GIT
3344 if test -n "$GIT"; then
3345   { $as_echo "$as_me:$LINENO: result: $GIT" >&5
3346 $as_echo "$GIT" >&6; }
3347 else
3348   { $as_echo "$as_me:$LINENO: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353     { $as_echo "$as_me:$LINENO: checking git revision information" >&5
3354 $as_echo_n "checking git revision information... " >&6; }
3355     if test -d $srcdir/.git -a -n "$GIT"; then
3356         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3357         if test -n "$GIT_SHA1"; then
3358             { $as_echo "$as_me:$LINENO: result: $GIT_SHA1" >&5
3359 $as_echo "$GIT_SHA1" >&6; }
3360         else
3361             { $as_echo "$as_me:$LINENO: result: 'git rev-parse HEAD' failed" >&5
3362 $as_echo "'git rev-parse HEAD' failed" >&6; }
3363         fi
3364     else
3365         { $as_echo "$as_me:$LINENO: result: not available" >&5
3366 $as_echo "not available" >&6; }
3367     fi
3368
3369     rm -f conftemp.git
3370
3371
3372     if test -f FULL_VERSION; then
3373         VERSION=`cat FULL_VERSION`
3374     else if test -f $srcdir/FULL_VERSION; then
3375         VERSION=`cat $srcdir/FULL_VERSION`
3376     else
3377         VERSION=`cat $srcdir/VERSION`
3378     fi
3379     fi
3380     { $as_echo "$as_me:$LINENO: \"version: $VERSION\"" >&5
3381 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3382
3383 am__api_version='1.11'
3384
3385 # Find a good install program.  We prefer a C program (faster),
3386 # so one script is as good as another.  But avoid the broken or
3387 # incompatible versions:
3388 # SysV /etc/install, /usr/sbin/install
3389 # SunOS /usr/etc/install
3390 # IRIX /sbin/install
3391 # AIX /bin/install
3392 # AmigaOS /C/install, which installs bootblocks on floppy discs
3393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3396 # OS/2's system install, which has a completely different semantic
3397 # ./install, which can be erroneously created by make from ./install.sh.
3398 # Reject install programs that cannot install multiple files.
3399 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3400 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3401 if test -z "$INSTALL"; then
3402 if test "${ac_cv_path_install+set}" = set; then
3403   $as_echo_n "(cached) " >&6
3404 else
3405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408   IFS=$as_save_IFS
3409   test -z "$as_dir" && as_dir=.
3410   # Account for people who put trailing slashes in PATH elements.
3411 case $as_dir/ in
3412   ./ | .// | /cC/* | \
3413   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3414   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3415   /usr/ucb/* ) ;;
3416   *)
3417     # OSF1 and SCO ODT 3.0 have their own names for install.
3418     # Don't use installbsd from OSF since it installs stuff as root
3419     # by default.
3420     for ac_prog in ginstall scoinst install; do
3421       for ac_exec_ext in '' $ac_executable_extensions; do
3422         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3423           if test $ac_prog = install &&
3424             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3425             # AIX install.  It has an incompatible calling convention.
3426             :
3427           elif test $ac_prog = install &&
3428             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3429             # program-specific install script used by HP pwplus--don't use.
3430             :
3431           else
3432             rm -rf conftest.one conftest.two conftest.dir
3433             echo one > conftest.one
3434             echo two > conftest.two
3435             mkdir conftest.dir
3436             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3437               test -s conftest.one && test -s conftest.two &&
3438               test -s conftest.dir/conftest.one &&
3439               test -s conftest.dir/conftest.two
3440             then
3441               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3442               break 3
3443             fi
3444           fi
3445         fi
3446       done
3447     done
3448     ;;
3449 esac
3450
3451 done
3452 IFS=$as_save_IFS
3453
3454 rm -rf conftest.one conftest.two conftest.dir
3455
3456 fi
3457   if test "${ac_cv_path_install+set}" = set; then
3458     INSTALL=$ac_cv_path_install
3459   else
3460     # As a last resort, use the slow shell script.  Don't cache a
3461     # value for INSTALL within a source directory, because that will
3462     # break other packages using the cache if that directory is
3463     # removed, or if the value is a relative name.
3464     INSTALL=$ac_install_sh
3465   fi
3466 fi
3467 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3468 $as_echo "$INSTALL" >&6; }
3469
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3473
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3475
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3477
3478 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3479 $as_echo_n "checking whether build environment is sane... " >&6; }
3480 # Just in case
3481 sleep 1
3482 echo timestamp > conftest.file
3483 # Reject unsafe characters in $srcdir or the absolute working directory
3484 # name.  Accept space and tab only in the latter.
3485 am_lf='
3486 '
3487 case `pwd` in
3488   *[\\\"\#\$\&\'\`$am_lf]*)
3489     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3490 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3491    { (exit 1); exit 1; }; };;
3492 esac
3493 case $srcdir in
3494   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3495     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3496 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3497    { (exit 1); exit 1; }; };;
3498 esac
3499
3500 # Do `set' in a subshell so we don't clobber the current shell's
3501 # arguments.  Must try -L first in case configure is actually a
3502 # symlink; some systems play weird games with the mod time of symlinks
3503 # (eg FreeBSD returns the mod time of the symlink's containing
3504 # directory).
3505 if (
3506    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3507    if test "$*" = "X"; then
3508       # -L didn't work.
3509       set X `ls -t "$srcdir/configure" conftest.file`
3510    fi
3511    rm -f conftest.file
3512    if test "$*" != "X $srcdir/configure conftest.file" \
3513       && test "$*" != "X conftest.file $srcdir/configure"; then
3514
3515       # If neither matched, then we have a broken ls.  This can happen
3516       # if, for instance, CONFIG_SHELL is bash and it inherits a
3517       # broken ls alias from the environment.  This has actually
3518       # happened.  Such a system could not be considered "sane".
3519       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3520 alias in your environment" >&5
3521 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3522 alias in your environment" >&2;}
3523    { (exit 1); exit 1; }; }
3524    fi
3525
3526    test "$2" = conftest.file
3527    )
3528 then
3529    # Ok.
3530    :
3531 else
3532    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3533 Check your system clock" >&5
3534 $as_echo "$as_me: error: newly created file is older than distributed files!
3535 Check your system clock" >&2;}
3536    { (exit 1); exit 1; }; }
3537 fi
3538 { $as_echo "$as_me:$LINENO: result: yes" >&5
3539 $as_echo "yes" >&6; }
3540 test "$program_prefix" != NONE &&
3541   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3542 # Use a double $ so make ignores it.
3543 test "$program_suffix" != NONE &&
3544   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3545 # Double any \ or $.
3546 # By default was `s,x,x', remove it if useless.
3547 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3548 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3549
3550 # expand $ac_aux_dir to an absolute path
3551 am_aux_dir=`cd $ac_aux_dir && pwd`
3552
3553 if test x"${MISSING+set}" != xset; then
3554   case $am_aux_dir in
3555   *\ * | *\     *)
3556     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3557   *)
3558     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3559   esac
3560 fi
3561 # Use eval to expand $SHELL
3562 if eval "$MISSING --run true"; then
3563   am_missing_run="$MISSING --run "
3564 else
3565   am_missing_run=
3566   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3567 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3568 fi
3569
3570 if test x"${install_sh}" != xset; then
3571   case $am_aux_dir in
3572   *\ * | *\     *)
3573     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3574   *)
3575     install_sh="\${SHELL} $am_aux_dir/install-sh"
3576   esac
3577 fi
3578
3579 # Installed binaries are usually stripped using `strip' when the user
3580 # run `make install-strip'.  However `strip' might not be the right
3581 # tool to use in cross-compilation environments, therefore Automake
3582 # will honor the `STRIP' environment variable to overrule this program.
3583 if test "$cross_compiling" != no; then
3584   if test -n "$ac_tool_prefix"; then
3585   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}strip; ac_word=$2
3587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_STRIP+set}" = set; then
3590   $as_echo_n "(cached) " >&6
3591 else
3592   if test -n "$STRIP"; then
3593   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600   for ac_exec_ext in '' $ac_executable_extensions; do
3601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604     break 2
3605   fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 STRIP=$ac_cv_prog_STRIP
3613 if test -n "$STRIP"; then
3614   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3615 $as_echo "$STRIP" >&6; }
3616 else
3617   { $as_echo "$as_me:$LINENO: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621
3622 fi
3623 if test -z "$ac_cv_prog_STRIP"; then
3624   ac_ct_STRIP=$STRIP
3625   # Extract the first word of "strip", so it can be a program name with args.
3626 set dummy strip; ac_word=$2
3627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3630   $as_echo_n "(cached) " >&6
3631 else
3632   if test -n "$ac_ct_STRIP"; then
3633   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642     ac_cv_prog_ac_ct_STRIP="strip"
3643     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648 IFS=$as_save_IFS
3649
3650 fi
3651 fi
3652 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3653 if test -n "$ac_ct_STRIP"; then
3654   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3655 $as_echo "$ac_ct_STRIP" >&6; }
3656 else
3657   { $as_echo "$as_me:$LINENO: result: no" >&5
3658 $as_echo "no" >&6; }
3659 fi
3660
3661   if test "x$ac_ct_STRIP" = x; then
3662     STRIP=":"
3663   else
3664     case $cross_compiling:$ac_tool_warned in
3665 yes:)
3666 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668 ac_tool_warned=yes ;;
3669 esac
3670     STRIP=$ac_ct_STRIP
3671   fi
3672 else
3673   STRIP="$ac_cv_prog_STRIP"
3674 fi
3675
3676 fi
3677 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3678
3679 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3680 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3681 if test -z "$MKDIR_P"; then
3682   if test "${ac_cv_path_mkdir+set}" = set; then
3683   $as_echo_n "(cached) " >&6
3684 else
3685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690   for ac_prog in mkdir gmkdir; do
3691          for ac_exec_ext in '' $ac_executable_extensions; do
3692            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3693            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3694              'mkdir (GNU coreutils) '* | \
3695              'mkdir (coreutils) '* | \
3696              'mkdir (fileutils) '4.1*)
3697                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3698                break 3;;
3699            esac
3700          done
3701        done
3702 done
3703 IFS=$as_save_IFS
3704
3705 fi
3706
3707   if test "${ac_cv_path_mkdir+set}" = set; then
3708     MKDIR_P="$ac_cv_path_mkdir -p"
3709   else
3710     # As a last resort, use the slow shell script.  Don't cache a
3711     # value for MKDIR_P within a source directory, because that will
3712     # break other packages using the cache if that directory is
3713     # removed, or if the value is a relative name.
3714     test -d ./--version && rmdir ./--version
3715     MKDIR_P="$ac_install_sh -d"
3716   fi
3717 fi
3718 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3719 $as_echo "$MKDIR_P" >&6; }
3720
3721
3722 mkdir_p="$MKDIR_P"
3723 case $mkdir_p in
3724   [\\/$]* | ?:[\\/]*) ;;
3725   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3726 esac
3727
3728 for ac_prog in gawk mawk nawk awk
3729 do
3730   # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_AWK+set}" = set; then
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -n "$AWK"; then
3738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_AWK="$ac_prog"
3748     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 AWK=$ac_cv_prog_AWK
3758 if test -n "$AWK"; then
3759   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3760 $as_echo "$AWK" >&6; }
3761 else
3762   { $as_echo "$as_me:$LINENO: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767   test -n "$AWK" && break
3768 done
3769
3770 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3772 set x ${MAKE-make}
3773 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3775   $as_echo_n "(cached) " >&6
3776 else
3777   cat >conftest.make <<\_ACEOF
3778 SHELL = /bin/sh
3779 all:
3780         @echo '@@@%%%=$(MAKE)=@@@%%%'
3781 _ACEOF
3782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3784   *@@@%%%=?*=@@@%%%*)
3785     eval ac_cv_prog_make_${ac_make}_set=yes;;
3786   *)
3787     eval ac_cv_prog_make_${ac_make}_set=no;;
3788 esac
3789 rm -f conftest.make
3790 fi
3791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3792   { $as_echo "$as_me:$LINENO: result: yes" >&5
3793 $as_echo "yes" >&6; }
3794   SET_MAKE=
3795 else
3796   { $as_echo "$as_me:$LINENO: result: no" >&5
3797 $as_echo "no" >&6; }
3798   SET_MAKE="MAKE=${MAKE-make}"
3799 fi
3800
3801 rm -rf .tst 2>/dev/null
3802 mkdir .tst 2>/dev/null
3803 if test -d .tst; then
3804   am__leading_dot=.
3805 else
3806   am__leading_dot=_
3807 fi
3808 rmdir .tst 2>/dev/null
3809
3810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3811   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3812   # is not polluted with repeated "-I."
3813   am__isrc=' -I$(srcdir)'
3814   # test to see if srcdir already configured
3815   if test -f $srcdir/config.status; then
3816     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3817 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3818    { (exit 1); exit 1; }; }
3819   fi
3820 fi
3821
3822 # test whether we have cygpath
3823 if test -z "$CYGPATH_W"; then
3824   if (cygpath --version) >/dev/null 2>/dev/null; then
3825     CYGPATH_W='cygpath -w'
3826   else
3827     CYGPATH_W=echo
3828   fi
3829 fi
3830
3831
3832 # Define the identity of the package.
3833  PACKAGE=amanda
3834  VERSION=$VERSION
3835
3836
3837 cat >>confdefs.h <<_ACEOF
3838 #define PACKAGE "$PACKAGE"
3839 _ACEOF
3840
3841
3842 cat >>confdefs.h <<_ACEOF
3843 #define VERSION "$VERSION"
3844 _ACEOF
3845
3846 # Some tools Automake needs.
3847
3848 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3849
3850
3851 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3852
3853
3854 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3855
3856
3857 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3858
3859
3860 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3861
3862 # We need awk for the "check" target.  The system "awk" is bad on
3863 # some platforms.
3864 # Always define AMTAR for backward compatibility.
3865
3866 AMTAR=${AMTAR-"${am_missing_run}tar"}
3867
3868 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3869
3870
3871
3872
3873
3874 ac_config_headers="$ac_config_headers config/config.h"
3875
3876
3877
3878
3879 #
3880 # Take care of some early Amanda-specific setup
3881 #
3882
3883     # initialize warnings file
3884     rm -f config.warnings
3885
3886
3887     if test -f "$srcdir/SNAPSHOT"; then
3888       cat < "$srcdir/SNAPSHOT"
3889
3890       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3891
3892       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3893       SNAPSHOT_STAMP=SNAPSHOT
3894     else
3895       SNAPSHOT_STAMP=
3896     fi
3897
3898
3899
3900
3901     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3902     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3903     if test -z "$VERSION_MINOR"; then
3904         VERSION_MINOR=0
3905         VERSION_PATCH=0
3906         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
3907     else
3908         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3909         if test -z "$VERSION_PATCH"; then
3910             VERSION_PATCH=0
3911             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
3912         else
3913             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3914         fi
3915     fi
3916
3917
3918
3919
3920
3921
3922
3923
3924 cat >>confdefs.h <<_ACEOF
3925 #define VERSION_MAJOR $VERSION_MAJOR
3926 _ACEOF
3927
3928
3929 cat >>confdefs.h <<_ACEOF
3930 #define VERSION_MINOR $VERSION_MINOR
3931 _ACEOF
3932
3933
3934 cat >>confdefs.h <<_ACEOF
3935 #define VERSION_PATCH $VERSION_PATCH
3936 _ACEOF
3937
3938
3939 cat >>confdefs.h <<_ACEOF
3940 #define VERSION_COMMENT $VERSION_COMMENT
3941 _ACEOF
3942
3943
3944
3945     if test -f config.local; then
3946         echo "running local script ./config.local"
3947         . ./config.local
3948     fi
3949
3950
3951 #
3952 # Set up compiler location, basic flags, and include locations
3953 # and library locations before we start checking the system
3954 # configuration in more detail...
3955 #
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961 if test -n "$ac_tool_prefix"; then
3962   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_CC+set}" = set; then
3967   $as_echo_n "(cached) " >&6
3968 else
3969   if test -n "$CC"; then
3970   ac_cv_prog_CC="$CC" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3980     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 CC=$ac_cv_prog_CC
3990 if test -n "$CC"; then
3991   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3993 else
3994   { $as_echo "$as_me:$LINENO: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998
3999 fi
4000 if test -z "$ac_cv_prog_CC"; then
4001   ac_ct_CC=$CC
4002   # Extract the first word of "gcc", so it can be a program name with args.
4003 set dummy gcc; ac_word=$2
4004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4007   $as_echo_n "(cached) " >&6
4008 else
4009   if test -n "$ac_ct_CC"; then
4010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019     ac_cv_prog_ac_ct_CC="gcc"
4020     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4030 if test -n "$ac_ct_CC"; then
4031   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4032 $as_echo "$ac_ct_CC" >&6; }
4033 else
4034   { $as_echo "$as_me:$LINENO: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038   if test "x$ac_ct_CC" = x; then
4039     CC=""
4040   else
4041     case $cross_compiling:$ac_tool_warned in
4042 yes:)
4043 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4046 esac
4047     CC=$ac_ct_CC
4048   fi
4049 else
4050   CC="$ac_cv_prog_CC"
4051 fi
4052
4053 if test -z "$CC"; then
4054           if test -n "$ac_tool_prefix"; then
4055     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}cc; ac_word=$2
4057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_prog_CC+set}" = set; then
4060   $as_echo_n "(cached) " >&6
4061 else
4062   if test -n "$CC"; then
4063   ac_cv_prog_CC="$CC" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072     ac_cv_prog_CC="${ac_tool_prefix}cc"
4073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 CC=$ac_cv_prog_CC
4083 if test -n "$CC"; then
4084   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4085 $as_echo "$CC" >&6; }
4086 else
4087   { $as_echo "$as_me:$LINENO: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092   fi
4093 fi
4094 if test -z "$CC"; then
4095   # Extract the first word of "cc", so it can be a program name with args.
4096 set dummy cc; ac_word=$2
4097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_CC+set}" = set; then
4100   $as_echo_n "(cached) " >&6
4101 else
4102   if test -n "$CC"; then
4103   ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105   ac_prog_rejected=no
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4114        ac_prog_rejected=yes
4115        continue
4116      fi
4117     ac_cv_prog_CC="cc"
4118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122 done
4123 IFS=$as_save_IFS
4124
4125 if test $ac_prog_rejected = yes; then
4126   # We found a bogon in the path, so make sure we never use it.
4127   set dummy $ac_cv_prog_CC
4128   shift
4129   if test $# != 0; then
4130     # We chose a different compiler from the bogus one.
4131     # However, it has the same basename, so the bogon will be chosen
4132     # first if we set CC to just the basename; use the full file name.
4133     shift
4134     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4135   fi
4136 fi
4137 fi
4138 fi
4139 CC=$ac_cv_prog_CC
4140 if test -n "$CC"; then
4141   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4142 $as_echo "$CC" >&6; }
4143 else
4144   { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148
4149 fi
4150 if test -z "$CC"; then
4151   if test -n "$ac_tool_prefix"; then
4152   for ac_prog in cl.exe
4153   do
4154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 $as_echo_n "checking for $ac_word... " >&6; }
4158 if test "${ac_cv_prog_CC+set}" = set; then
4159   $as_echo_n "(cached) " >&6
4160 else
4161   if test -n "$CC"; then
4162   ac_cv_prog_CC="$CC" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167   IFS=$as_save_IFS
4168   test -z "$as_dir" && as_dir=.
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4172     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177 IFS=$as_save_IFS
4178
4179 fi
4180 fi
4181 CC=$ac_cv_prog_CC
4182 if test -n "$CC"; then
4183   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4184 $as_echo "$CC" >&6; }
4185 else
4186   { $as_echo "$as_me:$LINENO: result: no" >&5
4187 $as_echo "no" >&6; }
4188 fi
4189
4190
4191     test -n "$CC" && break
4192   done
4193 fi
4194 if test -z "$CC"; then
4195   ac_ct_CC=$CC
4196   for ac_prog in cl.exe
4197 do
4198   # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if test -n "$ac_ct_CC"; then
4206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   for ac_exec_ext in '' $ac_executable_extensions; do
4214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215     ac_cv_prog_ac_ct_CC="$ac_prog"
4216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4228 $as_echo "$ac_ct_CC" >&6; }
4229 else
4230   { $as_echo "$as_me:$LINENO: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235   test -n "$ac_ct_CC" && break
4236 done
4237
4238   if test "x$ac_ct_CC" = x; then
4239     CC=""
4240   else
4241     case $cross_compiling:$ac_tool_warned in
4242 yes:)
4243 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245 ac_tool_warned=yes ;;
4246 esac
4247     CC=$ac_ct_CC
4248   fi
4249 fi
4250
4251 fi
4252
4253
4254 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4257 See \`config.log' for more details." >&5
4258 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4259 See \`config.log' for more details." >&2;}
4260    { (exit 1); exit 1; }; }; }
4261
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4264 set X $ac_compile
4265 ac_compiler=$2
4266 { (ac_try="$ac_compiler --version >&5"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273   (eval "$ac_compiler --version >&5") 2>&5
4274   ac_status=$?
4275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }
4277 { (ac_try="$ac_compiler -v >&5"
4278 case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284   (eval "$ac_compiler -v >&5") 2>&5
4285   ac_status=$?
4286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }
4288 { (ac_try="$ac_compiler -V >&5"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4294 $as_echo "$ac_try_echo") >&5
4295   (eval "$ac_compiler -V >&5") 2>&5
4296   ac_status=$?
4297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }
4299
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 int
4308 main ()
4309 {
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 ac_clean_files_save=$ac_clean_files
4316 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4317 # Try to create an executable without -o first, disregard a.out.
4318 # It will help us diagnose broken compilers, and finding out an intuition
4319 # of exeext.
4320 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4321 $as_echo_n "checking for C compiler default output file name... " >&6; }
4322 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4323
4324 # The possible output files:
4325 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4326
4327 ac_rmfiles=
4328 for ac_file in $ac_files
4329 do
4330   case $ac_file in
4331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4333   esac
4334 done
4335 rm -f $ac_rmfiles
4336
4337 if { (ac_try="$ac_link_default"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4343 $as_echo "$ac_try_echo") >&5
4344   (eval "$ac_link_default") 2>&5
4345   ac_status=$?
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); }; then
4348   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4350 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4351 # so that the user can short-circuit this test for compilers unknown to
4352 # Autoconf.
4353 for ac_file in $ac_files ''
4354 do
4355   test -f "$ac_file" || continue
4356   case $ac_file in
4357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4358         ;;
4359     [ab].out )
4360         # We found the default executable, but exeext='' is most
4361         # certainly right.
4362         break;;
4363     *.* )
4364         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4365         then :; else
4366            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4367         fi
4368         # We set ac_cv_exeext here because the later test for it is not
4369         # safe: cross compilers may not add the suffix if given an `-o'
4370         # argument, so we may need to know it at that point already.
4371         # Even if this section looks crufty: it has the advantage of
4372         # actually working.
4373         break;;
4374     * )
4375         break;;
4376   esac
4377 done
4378 test "$ac_cv_exeext" = no && ac_cv_exeext=
4379
4380 else
4381   ac_file=''
4382 fi
4383
4384 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4385 $as_echo "$ac_file" >&6; }
4386 if test -z "$ac_file"; then
4387   $as_echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4393 See \`config.log' for more details." >&5
4394 $as_echo "$as_me: error: C compiler cannot create executables
4395 See \`config.log' for more details." >&2;}
4396    { (exit 77); exit 77; }; }; }
4397 fi
4398
4399 ac_exeext=$ac_cv_exeext
4400
4401 # Check that the compiler produces executables we can run.  If not, either
4402 # the compiler is broken, or we cross compile.
4403 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4404 $as_echo_n "checking whether the C compiler works... " >&6; }
4405 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4406 # If not cross compiling, check that we can run a simple program.
4407 if test "$cross_compiling" != yes; then
4408   if { ac_try='./$ac_file'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4414 $as_echo "$ac_try_echo") >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; }; then
4419     cross_compiling=no
4420   else
4421     if test "$cross_compiling" = maybe; then
4422         cross_compiling=yes
4423     else
4424         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4427 If you meant to cross compile, use \`--host'.
4428 See \`config.log' for more details." >&5
4429 $as_echo "$as_me: error: cannot run C compiled programs.
4430 If you meant to cross compile, use \`--host'.
4431 See \`config.log' for more details." >&2;}
4432    { (exit 1); exit 1; }; }; }
4433     fi
4434   fi
4435 fi
4436 { $as_echo "$as_me:$LINENO: result: yes" >&5
4437 $as_echo "yes" >&6; }
4438
4439 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4440 ac_clean_files=$ac_clean_files_save
4441 # Check that the compiler produces executables we can run.  If not, either
4442 # the compiler is broken, or we cross compile.
4443 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4444 $as_echo_n "checking whether we are cross compiling... " >&6; }
4445 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4446 $as_echo "$cross_compiling" >&6; }
4447
4448 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4449 $as_echo_n "checking for suffix of executables... " >&6; }
4450 if { (ac_try="$ac_link"
4451 case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4456 $as_echo "$ac_try_echo") >&5
4457   (eval "$ac_link") 2>&5
4458   ac_status=$?
4459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; then
4461   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4462 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4463 # work properly (i.e., refer to `conftest.exe'), while it won't with
4464 # `rm'.
4465 for ac_file in conftest.exe conftest conftest.*; do
4466   test -f "$ac_file" || continue
4467   case $ac_file in
4468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4469     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4470           break;;
4471     * ) break;;
4472   esac
4473 done
4474 else
4475   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4478 See \`config.log' for more details." >&5
4479 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4480 See \`config.log' for more details." >&2;}
4481    { (exit 1); exit 1; }; }; }
4482 fi
4483
4484 rm -f conftest$ac_cv_exeext
4485 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4486 $as_echo "$ac_cv_exeext" >&6; }
4487
4488 rm -f conftest.$ac_ext
4489 EXEEXT=$ac_cv_exeext
4490 ac_exeext=$EXEEXT
4491 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4492 $as_echo_n "checking for suffix of object files... " >&6; }
4493 if test "${ac_cv_objext+set}" = set; then
4494   $as_echo_n "(cached) " >&6
4495 else
4496   cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502
4503 int
4504 main ()
4505 {
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.o conftest.obj
4512 if { (ac_try="$ac_compile"
4513 case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4518 $as_echo "$ac_try_echo") >&5
4519   (eval "$ac_compile") 2>&5
4520   ac_status=$?
4521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; then
4523   for ac_file in conftest.o conftest.obj conftest.*; do
4524   test -f "$ac_file" || continue;
4525   case $ac_file in
4526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4527     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4528        break;;
4529   esac
4530 done
4531 else
4532   $as_echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4538 See \`config.log' for more details." >&5
4539 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4540 See \`config.log' for more details." >&2;}
4541    { (exit 1); exit 1; }; }; }
4542 fi
4543
4544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4545 fi
4546 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4547 $as_echo "$ac_cv_objext" >&6; }
4548 OBJEXT=$ac_cv_objext
4549 ac_objext=$OBJEXT
4550 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4551 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4552 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4553   $as_echo_n "(cached) " >&6
4554 else
4555   cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565 #ifndef __GNUC__
4566        choke me
4567 #endif
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4580 $as_echo "$ac_try_echo") >&5
4581   (eval "$ac_compile") 2>conftest.er1
4582   ac_status=$?
4583   grep -v '^ *+' conftest.er1 >conftest.err
4584   rm -f conftest.er1
4585   cat conftest.err >&5
4586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && {
4588          test -z "$ac_c_werror_flag" ||
4589          test ! -s conftest.err
4590        } && test -s conftest.$ac_objext; then
4591   ac_compiler_gnu=yes
4592 else
4593   $as_echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596         ac_compiler_gnu=no
4597 fi
4598
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4601
4602 fi
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4605 if test $ac_compiler_gnu = yes; then
4606   GCC=yes
4607 else
4608   GCC=
4609 fi
4610 ac_test_CFLAGS=${CFLAGS+set}
4611 ac_save_CFLAGS=$CFLAGS
4612 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4613 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4614 if test "${ac_cv_prog_cc_g+set}" = set; then
4615   $as_echo_n "(cached) " >&6
4616 else
4617   ac_save_c_werror_flag=$ac_c_werror_flag
4618    ac_c_werror_flag=yes
4619    ac_cv_prog_cc_g=no
4620    CFLAGS="-g"
4621    cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4643 $as_echo "$ac_try_echo") >&5
4644   (eval "$ac_compile") 2>conftest.er1
4645   ac_status=$?
4646   grep -v '^ *+' conftest.er1 >conftest.err
4647   rm -f conftest.er1
4648   cat conftest.err >&5
4649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); } && {
4651          test -z "$ac_c_werror_flag" ||
4652          test ! -s conftest.err
4653        } && test -s conftest.$ac_objext; then
4654   ac_cv_prog_cc_g=yes
4655 else
4656   $as_echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659         CFLAGS=""
4660       cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683   (eval "$ac_compile") 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } && {
4690          test -z "$ac_c_werror_flag" ||
4691          test ! -s conftest.err
4692        } && test -s conftest.$ac_objext; then
4693   :
4694 else
4695   $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698         ac_c_werror_flag=$ac_save_c_werror_flag
4699          CFLAGS="-g"
4700          cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706
4707 int
4708 main ()
4709 {
4710
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (ac_try="$ac_compile"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723   (eval "$ac_compile") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } && {
4730          test -z "$ac_c_werror_flag" ||
4731          test ! -s conftest.err
4732        } && test -s conftest.$ac_objext; then
4733   ac_cv_prog_cc_g=yes
4734 else
4735   $as_echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738
4739 fi
4740
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748    ac_c_werror_flag=$ac_save_c_werror_flag
4749 fi
4750 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4751 $as_echo "$ac_cv_prog_cc_g" >&6; }
4752 if test "$ac_test_CFLAGS" = set; then
4753   CFLAGS=$ac_save_CFLAGS
4754 elif test $ac_cv_prog_cc_g = yes; then
4755   if test "$GCC" = yes; then
4756     CFLAGS="-g -O2"
4757   else
4758     CFLAGS="-g"
4759   fi
4760 else
4761   if test "$GCC" = yes; then
4762     CFLAGS="-O2"
4763   else
4764     CFLAGS=
4765   fi
4766 fi
4767 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4769 if test "${ac_cv_prog_cc_c89+set}" = set; then
4770   $as_echo_n "(cached) " >&6
4771 else
4772   ac_cv_prog_cc_c89=no
4773 ac_save_CC=$CC
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 #include <stdarg.h>
4781 #include <stdio.h>
4782 #include <sys/types.h>
4783 #include <sys/stat.h>
4784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4785 struct buf { int x; };
4786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4787 static char *e (p, i)
4788      char **p;
4789      int i;
4790 {
4791   return p[i];
4792 }
4793 static char *f (char * (*g) (char **, int), char **p, ...)
4794 {
4795   char *s;
4796   va_list v;
4797   va_start (v,p);
4798   s = g (p, va_arg (v,int));
4799   va_end (v);
4800   return s;
4801 }
4802
4803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4804    function prototypes and stuff, but not '\xHH' hex character constants.
4805    These don't provoke an error unfortunately, instead are silently treated
4806    as 'x'.  The following induces an error, until -std is added to get
4807    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4808    array size at least.  It's necessary to write '\x00'==0 to get something
4809    that's true only with -std.  */
4810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4811
4812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4813    inside strings and character constants.  */
4814 #define FOO(x) 'x'
4815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4816
4817 int test (int i, double x);
4818 struct s1 {int (*f) (int a);};
4819 struct s2 {int (*f) (double a);};
4820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4821 int argc;
4822 char **argv;
4823 int
4824 main ()
4825 {
4826 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4832         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4833 do
4834   CC="$ac_save_CC $ac_arg"
4835   rm -f conftest.$ac_objext
4836 if { (ac_try="$ac_compile"
4837 case "(($ac_try" in
4838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839   *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4842 $as_echo "$ac_try_echo") >&5
4843   (eval "$ac_compile") 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } && {
4850          test -z "$ac_c_werror_flag" ||
4851          test ! -s conftest.err
4852        } && test -s conftest.$ac_objext; then
4853   ac_cv_prog_cc_c89=$ac_arg
4854 else
4855   $as_echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858
4859 fi
4860
4861 rm -f core conftest.err conftest.$ac_objext
4862   test "x$ac_cv_prog_cc_c89" != "xno" && break
4863 done
4864 rm -f conftest.$ac_ext
4865 CC=$ac_save_CC
4866
4867 fi
4868 # AC_CACHE_VAL
4869 case "x$ac_cv_prog_cc_c89" in
4870   x)
4871     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4872 $as_echo "none needed" >&6; } ;;
4873   xno)
4874     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4875 $as_echo "unsupported" >&6; } ;;
4876   *)
4877     CC="$CC $ac_cv_prog_cc_c89"
4878     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4880 esac
4881
4882
4883 ac_ext=c
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 DEPDIR="${am__leading_dot}deps"
4889
4890 ac_config_commands="$ac_config_commands depfiles"
4891
4892
4893 am_make=${MAKE-make}
4894 cat > confinc << 'END'
4895 am__doit:
4896         @echo this is the am__doit target
4897 .PHONY: am__doit
4898 END
4899 # If we don't find an include directive, just comment out the code.
4900 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4902 am__include="#"
4903 am__quote=
4904 _am_result=none
4905 # First try GNU make style include.
4906 echo "include confinc" > confmf
4907 # Ignore all kinds of additional output from `make'.
4908 case `$am_make -s -f confmf 2> /dev/null` in #(
4909 *the\ am__doit\ target*)
4910   am__include=include
4911   am__quote=
4912   _am_result=GNU
4913   ;;
4914 esac
4915 # Now try BSD make style include.
4916 if test "$am__include" = "#"; then
4917    echo '.include "confinc"' > confmf
4918    case `$am_make -s -f confmf 2> /dev/null` in #(
4919    *the\ am__doit\ target*)
4920      am__include=.include
4921      am__quote="\""
4922      _am_result=BSD
4923      ;;
4924    esac
4925 fi
4926
4927
4928 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4929 $as_echo "$_am_result" >&6; }
4930 rm -f confinc confmf
4931
4932 # Check whether --enable-dependency-tracking was given.
4933 if test "${enable_dependency_tracking+set}" = set; then
4934   enableval=$enable_dependency_tracking;
4935 fi
4936
4937 if test "x$enable_dependency_tracking" != xno; then
4938   am_depcomp="$ac_aux_dir/depcomp"
4939   AMDEPBACKSLASH='\'
4940 fi
4941  if test "x$enable_dependency_tracking" != xno; then
4942   AMDEP_TRUE=
4943   AMDEP_FALSE='#'
4944 else
4945   AMDEP_TRUE='#'
4946   AMDEP_FALSE=
4947 fi
4948
4949
4950
4951 depcc="$CC"   am_compiler_list=
4952
4953 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4954 $as_echo_n "checking dependency style of $depcc... " >&6; }
4955 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4956   $as_echo_n "(cached) " >&6
4957 else
4958   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4959   # We make a subdir and do the tests there.  Otherwise we can end up
4960   # making bogus files that we don't know about and never remove.  For
4961   # instance it was reported that on HP-UX the gcc test will end up
4962   # making a dummy file named `D' -- because `-MD' means `put the output
4963   # in D'.
4964   mkdir conftest.dir
4965   # Copy depcomp to subdir because otherwise we won't find it if we're
4966   # using a relative directory.
4967   cp "$am_depcomp" conftest.dir
4968   cd conftest.dir
4969   # We will build objects and dependencies in a subdirectory because
4970   # it helps to detect inapplicable dependency modes.  For instance
4971   # both Tru64's cc and ICC support -MD to output dependencies as a
4972   # side effect of compilation, but ICC will put the dependencies in
4973   # the current directory while Tru64 will put them in the object
4974   # directory.
4975   mkdir sub
4976
4977   am_cv_CC_dependencies_compiler_type=none
4978   if test "$am_compiler_list" = ""; then
4979      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980   fi
4981   am__universal=false
4982   case " $depcc " in #(
4983      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4984      esac
4985
4986   for depmode in $am_compiler_list; do
4987     # Setup a source with many dependencies, because some compilers
4988     # like to wrap large dependency lists on column 80 (with \), and
4989     # we should not choose a depcomp mode which is confused by this.
4990     #
4991     # We need to recreate these files for each test, as the compiler may
4992     # overwrite some of them when testing with obscure command lines.
4993     # This happens at least with the AIX C compiler.
4994     : > sub/conftest.c
4995     for i in 1 2 3 4 5 6; do
4996       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4997       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4998       # Solaris 8's {/usr,}/bin/sh.
4999       touch sub/conftst$i.h
5000     done
5001     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5002
5003     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5004     # mode.  It turns out that the SunPro C++ compiler does not properly
5005     # handle `-M -o', and we need to detect this.  Also, some Intel
5006     # versions had trouble with output in subdirs
5007     am__obj=sub/conftest.${OBJEXT-o}
5008     am__minus_obj="-o $am__obj"
5009     case $depmode in
5010     gcc)
5011       # This depmode causes a compiler race in universal mode.
5012       test "$am__universal" = false || continue
5013       ;;
5014     nosideeffect)
5015       # after this tag, mechanisms are not by side-effect, so they'll
5016       # only be used when explicitly requested
5017       if test "x$enable_dependency_tracking" = xyes; then
5018         continue
5019       else
5020         break
5021       fi
5022       ;;
5023     msvisualcpp | msvcmsys)
5024       # This compiler won't grok `-c -o', but also, the minuso test has
5025       # not run yet.  These depmodes are late enough in the game, and
5026       # so weak that their functioning should not be impacted.
5027       am__obj=conftest.${OBJEXT-o}
5028       am__minus_obj=
5029       ;;
5030     none) break ;;
5031     esac
5032     if depmode=$depmode \
5033        source=sub/conftest.c object=$am__obj \
5034        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5035        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5036          >/dev/null 2>conftest.err &&
5037        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5038        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5039        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5040        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5041       # icc doesn't choke on unknown options, it will just issue warnings
5042       # or remarks (even with -Werror).  So we grep stderr for any message
5043       # that says an option was ignored or not supported.
5044       # When given -MP, icc 7.0 and 7.1 complain thusly:
5045       #   icc: Command line warning: ignoring option '-M'; no argument required
5046       # The diagnosis changed in icc 8.0:
5047       #   icc: Command line remark: option '-MP' not supported
5048       if (grep 'ignoring option' conftest.err ||
5049           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5050         am_cv_CC_dependencies_compiler_type=$depmode
5051         break
5052       fi
5053     fi
5054   done
5055
5056   cd ..
5057   rm -rf conftest.dir
5058 else
5059   am_cv_CC_dependencies_compiler_type=none
5060 fi
5061
5062 fi
5063 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5064 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066
5067  if
5068   test "x$enable_dependency_tracking" != xno \
5069   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5070   am__fastdepCC_TRUE=
5071   am__fastdepCC_FALSE='#'
5072 else
5073   am__fastdepCC_TRUE='#'
5074   am__fastdepCC_FALSE=
5075 fi
5076
5077
5078 if test -n "$ac_tool_prefix"; then
5079   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_RANLIB+set}" = set; then
5084   $as_echo_n "(cached) " >&6
5085 else
5086   if test -n "$RANLIB"; then
5087   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5097     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 RANLIB=$ac_cv_prog_RANLIB
5107 if test -n "$RANLIB"; then
5108   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5109 $as_echo "$RANLIB" >&6; }
5110 else
5111   { $as_echo "$as_me:$LINENO: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116 fi
5117 if test -z "$ac_cv_prog_RANLIB"; then
5118   ac_ct_RANLIB=$RANLIB
5119   # Extract the first word of "ranlib", so it can be a program name with args.
5120 set dummy ranlib; ac_word=$2
5121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -n "$ac_ct_RANLIB"; then
5127   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_prog_ac_ct_RANLIB="ranlib"
5137     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5147 if test -n "$ac_ct_RANLIB"; then
5148   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5149 $as_echo "$ac_ct_RANLIB" >&6; }
5150 else
5151   { $as_echo "$as_me:$LINENO: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155   if test "x$ac_ct_RANLIB" = x; then
5156     RANLIB=":"
5157   else
5158     case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164     RANLIB=$ac_ct_RANLIB
5165   fi
5166 else
5167   RANLIB="$ac_cv_prog_RANLIB"
5168 fi
5169
5170 if test "x$CC" != xcc; then
5171   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5172 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5173 else
5174   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5175 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5176 fi
5177 set dummy $CC; ac_cc=`$as_echo "$2" |
5178                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5179 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5180   $as_echo_n "(cached) " >&6
5181 else
5182   cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188
5189 int
5190 main ()
5191 {
5192
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 # Make sure it works both with $CC and with simple cc.
5198 # We do the test twice because some compilers refuse to overwrite an
5199 # existing .o file with -o, though they will create one.
5200 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5201 rm -f conftest2.*
5202 if { (case "(($ac_try" in
5203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204   *) ac_try_echo=$ac_try;;
5205 esac
5206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5207 $as_echo "$ac_try_echo") >&5
5208   (eval "$ac_try") 2>&5
5209   ac_status=$?
5210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } &&
5212    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214   *) ac_try_echo=$ac_try;;
5215 esac
5216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5217 $as_echo "$ac_try_echo") >&5
5218   (eval "$ac_try") 2>&5
5219   ac_status=$?
5220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); };
5222 then
5223   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5224   if test "x$CC" != xcc; then
5225     # Test first that cc exists at all.
5226     if { ac_try='cc -c conftest.$ac_ext >&5'
5227   { (case "(($ac_try" in
5228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229   *) ac_try_echo=$ac_try;;
5230 esac
5231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5232 $as_echo "$ac_try_echo") >&5
5233   (eval "$ac_try") 2>&5
5234   ac_status=$?
5235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }; }; then
5237       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5238       rm -f conftest2.*
5239       if { (case "(($ac_try" in
5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241   *) ac_try_echo=$ac_try;;
5242 esac
5243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5244 $as_echo "$ac_try_echo") >&5
5245   (eval "$ac_try") 2>&5
5246   ac_status=$?
5247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255   (eval "$ac_try") 2>&5
5256   ac_status=$?
5257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); };
5259       then
5260         # cc works too.
5261         :
5262       else
5263         # cc exists but doesn't like -o.
5264         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5265       fi
5266     fi
5267   fi
5268 else
5269   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5270 fi
5271 rm -f core conftest*
5272
5273 fi
5274 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5275   { $as_echo "$as_me:$LINENO: result: yes" >&5
5276 $as_echo "yes" >&6; }
5277 else
5278   { $as_echo "$as_me:$LINENO: result: no" >&5
5279 $as_echo "no" >&6; }
5280
5281 cat >>confdefs.h <<\_ACEOF
5282 #define NO_MINUS_C_MINUS_O 1
5283 _ACEOF
5284
5285 fi
5286
5287 # FIXME: we rely on the cache variable name because
5288 # there is no other way.
5289 set dummy $CC
5290 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5291 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5292 if test "$am_t" != yes; then
5293    # Losing compiler, so override with the script.
5294    # FIXME: It is wrong to rewrite CC.
5295    # But if we don't then we get into trouble of one sort or another.
5296    # A longer-term fix would be to have automake use am__CC in this case,
5297    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5298    CC="$am_aux_dir/compile $CC"
5299 fi
5300
5301
5302
5303 ac_ext=c
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5310 # On Suns, sometimes $CPP names a directory.
5311 if test -n "$CPP" && test -d "$CPP"; then
5312   CPP=
5313 fi
5314 if test -z "$CPP"; then
5315   if test "${ac_cv_prog_CPP+set}" = set; then
5316   $as_echo_n "(cached) " >&6
5317 else
5318       # Double quotes because CPP needs to be expanded
5319     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5320     do
5321       ac_preproc_ok=false
5322 for ac_c_preproc_warn_flag in '' yes
5323 do
5324   # Use a header file that comes with gcc, so configuring glibc
5325   # with a fresh cross-compiler works.
5326   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327   # <limits.h> exists even on freestanding compilers.
5328   # On the NeXT, cc -E runs the code through the compiler's parser,
5329   # not just through cpp. "Syntax error" is here to catch this case.
5330   cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336 #ifdef __STDC__
5337 # include <limits.h>
5338 #else
5339 # include <assert.h>
5340 #endif
5341                      Syntax error
5342 _ACEOF
5343 if { (ac_try="$ac_cpp conftest.$ac_ext"
5344 case "(($ac_try" in
5345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346   *) ac_try_echo=$ac_try;;
5347 esac
5348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5349 $as_echo "$ac_try_echo") >&5
5350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } >/dev/null && {
5357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5358          test ! -s conftest.err
5359        }; then
5360   :
5361 else
5362   $as_echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365   # Broken: fails on valid input.
5366 continue
5367 fi
5368
5369 rm -f conftest.err conftest.$ac_ext
5370
5371   # OK, works on sane cases.  Now check whether nonexistent headers
5372   # can be detected and how.
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 #include <ac_nonexistent.h>
5380 _ACEOF
5381 if { (ac_try="$ac_cpp conftest.$ac_ext"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } >/dev/null && {
5395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5396          test ! -s conftest.err
5397        }; then
5398   # Broken: success on invalid input.
5399 continue
5400 else
5401   $as_echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404   # Passes both tests.
5405 ac_preproc_ok=:
5406 break
5407 fi
5408
5409 rm -f conftest.err conftest.$ac_ext
5410
5411 done
5412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5413 rm -f conftest.err conftest.$ac_ext
5414 if $ac_preproc_ok; then
5415   break
5416 fi
5417
5418     done
5419     ac_cv_prog_CPP=$CPP
5420
5421 fi
5422   CPP=$ac_cv_prog_CPP
5423 else
5424   ac_cv_prog_CPP=$CPP
5425 fi
5426 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5427 $as_echo "$CPP" >&6; }
5428 ac_preproc_ok=false
5429 for ac_c_preproc_warn_flag in '' yes
5430 do
5431   # Use a header file that comes with gcc, so configuring glibc
5432   # with a fresh cross-compiler works.
5433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5434   # <limits.h> exists even on freestanding compilers.
5435   # On the NeXT, cc -E runs the code through the compiler's parser,
5436   # not just through cpp. "Syntax error" is here to catch this case.
5437   cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 #ifdef __STDC__
5444 # include <limits.h>
5445 #else
5446 # include <assert.h>
5447 #endif
5448                      Syntax error
5449 _ACEOF
5450 if { (ac_try="$ac_cpp conftest.$ac_ext"
5451 case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5456 $as_echo "$ac_try_echo") >&5
5457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5458   ac_status=$?
5459   grep -v '^ *+' conftest.er1 >conftest.err
5460   rm -f conftest.er1
5461   cat conftest.err >&5
5462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } >/dev/null && {
5464          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5465          test ! -s conftest.err
5466        }; then
5467   :
5468 else
5469   $as_echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472   # Broken: fails on valid input.
5473 continue
5474 fi
5475
5476 rm -f conftest.err conftest.$ac_ext
5477
5478   # OK, works on sane cases.  Now check whether nonexistent headers
5479   # can be detected and how.
5480   cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486 #include <ac_nonexistent.h>
5487 _ACEOF
5488 if { (ac_try="$ac_cpp conftest.$ac_ext"
5489 case "(($ac_try" in
5490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491   *) ac_try_echo=$ac_try;;
5492 esac
5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5494 $as_echo "$ac_try_echo") >&5
5495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
5499   cat conftest.err >&5
5500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } >/dev/null && {
5502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5503          test ! -s conftest.err
5504        }; then
5505   # Broken: success on invalid input.
5506 continue
5507 else
5508   $as_echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511   # Passes both tests.
5512 ac_preproc_ok=:
5513 break
5514 fi
5515
5516 rm -f conftest.err conftest.$ac_ext
5517
5518 done
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then
5522   :
5523 else
5524   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5527 See \`config.log' for more details." >&5
5528 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5529 See \`config.log' for more details." >&2;}
5530    { (exit 1); exit 1; }; }; }
5531 fi
5532
5533 ac_ext=c
5534 ac_cpp='$CPP $CPPFLAGS'
5535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5538
5539
5540 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5542 if test "${ac_cv_path_GREP+set}" = set; then
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -z "$GREP"; then
5546   ac_path_GREP_found=false
5547   # Loop through the user's path and test for each of PROGNAME-LIST
5548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553   for ac_prog in grep ggrep; do
5554     for ac_exec_ext in '' $ac_executable_extensions; do
5555       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5556       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5557 # Check for GNU ac_path_GREP and select it if it is found.
5558   # Check for GNU $ac_path_GREP
5559 case `"$ac_path_GREP" --version 2>&1` in
5560 *GNU*)
5561   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5562 *)
5563   ac_count=0
5564   $as_echo_n 0123456789 >"conftest.in"
5565   while :
5566   do
5567     cat "conftest.in" "conftest.in" >"conftest.tmp"
5568     mv "conftest.tmp" "conftest.in"
5569     cp "conftest.in" "conftest.nl"
5570     $as_echo 'GREP' >> "conftest.nl"
5571     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573     ac_count=`expr $ac_count + 1`
5574     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5575       # Best one so far, save it but keep looking for a better one
5576       ac_cv_path_GREP="$ac_path_GREP"
5577       ac_path_GREP_max=$ac_count
5578     fi
5579     # 10*(2^10) chars as input seems more than enough
5580     test $ac_count -gt 10 && break
5581   done
5582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5583 esac
5584
5585       $ac_path_GREP_found && break 3
5586     done
5587   done
5588 done
5589 IFS=$as_save_IFS
5590   if test -z "$ac_cv_path_GREP"; then
5591     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5592 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5593    { (exit 1); exit 1; }; }
5594   fi
5595 else
5596   ac_cv_path_GREP=$GREP
5597 fi
5598
5599 fi
5600 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5601 $as_echo "$ac_cv_path_GREP" >&6; }
5602  GREP="$ac_cv_path_GREP"
5603
5604
5605 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5606 $as_echo_n "checking for egrep... " >&6; }
5607 if test "${ac_cv_path_EGREP+set}" = set; then
5608   $as_echo_n "(cached) " >&6
5609 else
5610   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5611    then ac_cv_path_EGREP="$GREP -E"
5612    else
5613      if test -z "$EGREP"; then
5614   ac_path_EGREP_found=false
5615   # Loop through the user's path and test for each of PROGNAME-LIST
5616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for ac_prog in egrep; do
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5624       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5625 # Check for GNU ac_path_EGREP and select it if it is found.
5626   # Check for GNU $ac_path_EGREP
5627 case `"$ac_path_EGREP" --version 2>&1` in
5628 *GNU*)
5629   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5630 *)
5631   ac_count=0
5632   $as_echo_n 0123456789 >"conftest.in"
5633   while :
5634   do
5635     cat "conftest.in" "conftest.in" >"conftest.tmp"
5636     mv "conftest.tmp" "conftest.in"
5637     cp "conftest.in" "conftest.nl"
5638     $as_echo 'EGREP' >> "conftest.nl"
5639     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641     ac_count=`expr $ac_count + 1`
5642     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5643       # Best one so far, save it but keep looking for a better one
5644       ac_cv_path_EGREP="$ac_path_EGREP"
5645       ac_path_EGREP_max=$ac_count
5646     fi
5647     # 10*(2^10) chars as input seems more than enough
5648     test $ac_count -gt 10 && break
5649   done
5650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653       $ac_path_EGREP_found && break 3
5654     done
5655   done
5656 done
5657 IFS=$as_save_IFS
5658   if test -z "$ac_cv_path_EGREP"; then
5659     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5660 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5661    { (exit 1); exit 1; }; }
5662   fi
5663 else
5664   ac_cv_path_EGREP=$EGREP
5665 fi
5666
5667    fi
5668 fi
5669 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5670 $as_echo "$ac_cv_path_EGREP" >&6; }
5671  EGREP="$ac_cv_path_EGREP"
5672
5673
5674 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5675 $as_echo_n "checking for ANSI C header files... " >&6; }
5676 if test "${ac_cv_header_stdc+set}" = set; then
5677   $as_echo_n "(cached) " >&6
5678 else
5679   cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h.  */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h.  */
5685 #include <stdlib.h>
5686 #include <stdarg.h>
5687 #include <string.h>
5688 #include <float.h>
5689
5690 int
5691 main ()
5692 {
5693
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5700 case "(($ac_try" in
5701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702   *) ac_try_echo=$ac_try;;
5703 esac
5704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5705 $as_echo "$ac_try_echo") >&5
5706   (eval "$ac_compile") 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } && {
5713          test -z "$ac_c_werror_flag" ||
5714          test ! -s conftest.err
5715        } && test -s conftest.$ac_objext; then
5716   ac_cv_header_stdc=yes
5717 else
5718   $as_echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721         ac_cv_header_stdc=no
5722 fi
5723
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725
5726 if test $ac_cv_header_stdc = yes; then
5727   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5728   cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h.  */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h.  */
5734 #include <string.h>
5735
5736 _ACEOF
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738   $EGREP "memchr" >/dev/null 2>&1; then
5739   :
5740 else
5741   ac_cv_header_stdc=no
5742 fi
5743 rm -f conftest*
5744
5745 fi
5746
5747 if test $ac_cv_header_stdc = yes; then
5748   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5749   cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 #include <stdlib.h>
5756
5757 _ACEOF
5758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5759   $EGREP "free" >/dev/null 2>&1; then
5760   :
5761 else
5762   ac_cv_header_stdc=no
5763 fi
5764 rm -f conftest*
5765
5766 fi
5767
5768 if test $ac_cv_header_stdc = yes; then
5769   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5770   if test "$cross_compiling" = yes; then
5771   :
5772 else
5773   cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h.  */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h.  */
5779 #include <ctype.h>
5780 #include <stdlib.h>
5781 #if ((' ' & 0x0FF) == 0x020)
5782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5784 #else
5785 # define ISLOWER(c) \
5786                    (('a' <= (c) && (c) <= 'i') \
5787                      || ('j' <= (c) && (c) <= 'r') \
5788                      || ('s' <= (c) && (c) <= 'z'))
5789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5790 #endif
5791
5792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5793 int
5794 main ()
5795 {
5796   int i;
5797   for (i = 0; i < 256; i++)
5798     if (XOR (islower (i), ISLOWER (i))
5799         || toupper (i) != TOUPPER (i))
5800       return 2;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest$ac_exeext
5805 if { (ac_try="$ac_link"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5811 $as_echo "$ac_try_echo") >&5
5812   (eval "$ac_link") 2>&5
5813   ac_status=$?
5814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5816   { (case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5821 $as_echo "$ac_try_echo") >&5
5822   (eval "$ac_try") 2>&5
5823   ac_status=$?
5824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   :
5827 else
5828   $as_echo "$as_me: program exited with status $ac_status" >&5
5829 $as_echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 ( exit $ac_status )
5833 ac_cv_header_stdc=no
5834 fi
5835 rm -rf conftest.dSYM
5836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5837 fi
5838
5839
5840 fi
5841 fi
5842 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5843 $as_echo "$ac_cv_header_stdc" >&6; }
5844 if test $ac_cv_header_stdc = yes; then
5845
5846 cat >>confdefs.h <<\_ACEOF
5847 #define STDC_HEADERS 1
5848 _ACEOF
5849
5850 fi
5851
5852 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5863                   inttypes.h stdint.h unistd.h
5864 do
5865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5867 $as_echo_n "checking for $ac_header... " >&6; }
5868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5869   $as_echo_n "(cached) " >&6
5870 else
5871   cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h.  */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h.  */
5877 $ac_includes_default
5878
5879 #include <$ac_header>
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (ac_try="$ac_compile"
5883 case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5888 $as_echo "$ac_try_echo") >&5
5889   (eval "$ac_compile") 2>conftest.er1
5890   ac_status=$?
5891   grep -v '^ *+' conftest.er1 >conftest.err
5892   rm -f conftest.er1
5893   cat conftest.err >&5
5894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); } && {
5896          test -z "$ac_c_werror_flag" ||
5897          test ! -s conftest.err
5898        } && test -s conftest.$ac_objext; then
5899   eval "$as_ac_Header=yes"
5900 else
5901   $as_echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904         eval "$as_ac_Header=no"
5905 fi
5906
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 fi
5909 ac_res=`eval 'as_val=${'$as_ac_Header'}
5910                  $as_echo "$as_val"'`
5911                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5912 $as_echo "$ac_res" >&6; }
5913 as_val=`eval 'as_val=${'$as_ac_Header'}
5914                  $as_echo "$as_val"'`
5915    if test "x$as_val" = x""yes; then
5916   cat >>confdefs.h <<_ACEOF
5917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5918 _ACEOF
5919
5920 fi
5921
5922 done
5923
5924
5925
5926
5927
5928   if test "${ac_cv_header_minix_config_h+set}" = set; then
5929   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5930 $as_echo_n "checking for minix/config.h... " >&6; }
5931 if test "${ac_cv_header_minix_config_h+set}" = set; then
5932   $as_echo_n "(cached) " >&6
5933 fi
5934 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5935 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5936 else
5937   # Is the header compilable?
5938 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5939 $as_echo_n "checking minix/config.h usability... " >&6; }
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h.  */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h.  */
5946 $ac_includes_default
5947 #include <minix/config.h>
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956 $as_echo "$ac_try_echo") >&5
5957   (eval "$ac_compile") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_c_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest.$ac_objext; then
5967   ac_header_compiler=yes
5968 else
5969   $as_echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972         ac_header_compiler=no
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5977 $as_echo "$ac_header_compiler" >&6; }
5978
5979 # Is the header present?
5980 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5981 $as_echo_n "checking minix/config.h presence... " >&6; }
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 #include <minix/config.h>
5989 _ACEOF
5990 if { (ac_try="$ac_cpp conftest.$ac_ext"
5991 case "(($ac_try" in
5992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993   *) ac_try_echo=$ac_try;;
5994 esac
5995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5996 $as_echo "$ac_try_echo") >&5
5997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } >/dev/null && {
6004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6005          test ! -s conftest.err
6006        }; then
6007   ac_header_preproc=yes
6008 else
6009   $as_echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012   ac_header_preproc=no
6013 fi
6014
6015 rm -f conftest.err conftest.$ac_ext
6016 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6017 $as_echo "$ac_header_preproc" >&6; }
6018
6019 # So?  What about this header?
6020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6021   yes:no: )
6022     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6023 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6024     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6025 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6026     ac_header_preproc=yes
6027     ;;
6028   no:yes:* )
6029     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6030 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6031     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6032 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6033     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6034 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6035     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6036 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6037     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6038 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6039     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6040 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6041
6042     ;;
6043 esac
6044 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6045 $as_echo_n "checking for minix/config.h... " >&6; }
6046 if test "${ac_cv_header_minix_config_h+set}" = set; then
6047   $as_echo_n "(cached) " >&6
6048 else
6049   ac_cv_header_minix_config_h=$ac_header_preproc
6050 fi
6051 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6052 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6053
6054 fi
6055 if test "x$ac_cv_header_minix_config_h" = x""yes; then
6056   MINIX=yes
6057 else
6058   MINIX=
6059 fi
6060
6061
6062   if test "$MINIX" = yes; then
6063
6064 cat >>confdefs.h <<\_ACEOF
6065 #define _POSIX_SOURCE 1
6066 _ACEOF
6067
6068
6069 cat >>confdefs.h <<\_ACEOF
6070 #define _POSIX_1_SOURCE 2
6071 _ACEOF
6072
6073
6074 cat >>confdefs.h <<\_ACEOF
6075 #define _MINIX 1
6076 _ACEOF
6077
6078   fi
6079
6080         case "$host_os" in
6081     hpux*)
6082
6083 cat >>confdefs.h <<\_ACEOF
6084 #define _XOPEN_SOURCE 500
6085 _ACEOF
6086
6087       ;;
6088   esac
6089
6090
6091
6092   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6093 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6094 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6095   $as_echo_n "(cached) " >&6
6096 else
6097   cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103
6104 #         define __EXTENSIONS__ 1
6105           $ac_includes_default
6106 int
6107 main ()
6108 {
6109
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (ac_try="$ac_compile"
6116 case "(($ac_try" in
6117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118   *) ac_try_echo=$ac_try;;
6119 esac
6120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6121 $as_echo "$ac_try_echo") >&5
6122   (eval "$ac_compile") 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } && {
6129          test -z "$ac_c_werror_flag" ||
6130          test ! -s conftest.err
6131        } && test -s conftest.$ac_objext; then
6132   ac_cv_safe_to_define___extensions__=yes
6133 else
6134   $as_echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137         ac_cv_safe_to_define___extensions__=no
6138 fi
6139
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6143 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6144   test $ac_cv_safe_to_define___extensions__ = yes &&
6145     cat >>confdefs.h <<\_ACEOF
6146 #define __EXTENSIONS__ 1
6147 _ACEOF
6148
6149   cat >>confdefs.h <<\_ACEOF
6150 #define _ALL_SOURCE 1
6151 _ACEOF
6152
6153   cat >>confdefs.h <<\_ACEOF
6154 #define _GNU_SOURCE 1
6155 _ACEOF
6156
6157   cat >>confdefs.h <<\_ACEOF
6158 #define _POSIX_PTHREAD_SEMANTICS 1
6159 _ACEOF
6160
6161   cat >>confdefs.h <<\_ACEOF
6162 #define _TANDEM_SOURCE 1
6163 _ACEOF
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6174 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6175 if test "${ac_cv_sys_largefile_source+set}" = set; then
6176   $as_echo_n "(cached) " >&6
6177 else
6178   while :; do
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 #include <sys/types.h> /* for off_t */
6186      #include <stdio.h>
6187 int
6188 main ()
6189 {
6190 int (*fp) (FILE *, off_t, int) = fseeko;
6191      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (ac_try="$ac_link"
6198 case "(($ac_try" in
6199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200   *) ac_try_echo=$ac_try;;
6201 esac
6202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6203 $as_echo "$ac_try_echo") >&5
6204   (eval "$ac_link") 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } && {
6211          test -z "$ac_c_werror_flag" ||
6212          test ! -s conftest.err
6213        } && test -s conftest$ac_exeext && {
6214          test "$cross_compiling" = yes ||
6215          $as_test_x conftest$ac_exeext
6216        }; then
6217   ac_cv_sys_largefile_source=no; break
6218 else
6219   $as_echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222
6223 fi
6224
6225 rm -rf conftest.dSYM
6226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6227       conftest$ac_exeext conftest.$ac_ext
6228   cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #define _LARGEFILE_SOURCE 1
6235 #include <sys/types.h> /* for off_t */
6236      #include <stdio.h>
6237 int
6238 main ()
6239 {
6240 int (*fp) (FILE *, off_t, int) = fseeko;
6241      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (ac_try="$ac_link"
6248 case "(($ac_try" in
6249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250   *) ac_try_echo=$ac_try;;
6251 esac
6252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6253 $as_echo "$ac_try_echo") >&5
6254   (eval "$ac_link") 2>conftest.er1
6255   ac_status=$?
6256   grep -v '^ *+' conftest.er1 >conftest.err
6257   rm -f conftest.er1
6258   cat conftest.err >&5
6259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } && {
6261          test -z "$ac_c_werror_flag" ||
6262          test ! -s conftest.err
6263        } && test -s conftest$ac_exeext && {
6264          test "$cross_compiling" = yes ||
6265          $as_test_x conftest$ac_exeext
6266        }; then
6267   ac_cv_sys_largefile_source=1; break
6268 else
6269   $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272
6273 fi
6274
6275 rm -rf conftest.dSYM
6276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6277       conftest$ac_exeext conftest.$ac_ext
6278   ac_cv_sys_largefile_source=unknown
6279   break
6280 done
6281 fi
6282 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6283 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6284 case $ac_cv_sys_largefile_source in #(
6285   no | unknown) ;;
6286   *)
6287 cat >>confdefs.h <<_ACEOF
6288 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6289 _ACEOF
6290 ;;
6291 esac
6292 rm -rf conftest*
6293
6294 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6295 # in glibc 2.1.3, but that breaks too many other things.
6296 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6297 if test $ac_cv_sys_largefile_source != unknown; then
6298
6299 cat >>confdefs.h <<\_ACEOF
6300 #define HAVE_FSEEKO 1
6301 _ACEOF
6302
6303 fi
6304
6305
6306
6307
6308
6309
6310   # Check whether --enable-threads was given.
6311 if test "${enable_threads+set}" = set; then
6312   enableval=$enable_threads; gl_use_threads=$enableval
6313 else
6314   if test -n "$gl_use_threads_default"; then
6315        gl_use_threads="$gl_use_threads_default"
6316      else
6317        case "$host_os" in
6318                                                                osf*) gl_use_threads=no ;;
6319          cygwin*)
6320                case `uname -r` in
6321                  1.[0-5].*) gl_use_threads=no ;;
6322                  *)         gl_use_threads=yes ;;
6323                esac
6324                ;;
6325          *)    gl_use_threads=yes ;;
6326        esac
6327      fi
6328
6329 fi
6330
6331   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6332     # For using <pthread.h>:
6333     case "$host_os" in
6334       osf*)
6335         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6336         # groks <pthread.h>. cc also understands the flag -pthread, but
6337         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6338         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6339         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6340         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6341         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6342         ;;
6343     esac
6344     # Some systems optimize for single-threaded programs by default, and
6345     # need special flags to disable these optimizations. For example, the
6346     # definition of 'errno' in <errno.h>.
6347     case "$host_os" in
6348       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6349       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6350     esac
6351   fi
6352
6353
6354
6355
6356   # Code from module alignof:
6357   # Code from module alloca-opt:
6358   # Code from module arg-nonnull:
6359   # Code from module arpa_inet:
6360   # Code from module base64:
6361   # Code from module btowc:
6362   # Code from module c++defs:
6363   # Code from module c-ctype:
6364   # Code from module configmake:
6365   # Code from module environ:
6366   # Code from module errno:
6367   # Code from module extensions:
6368
6369   # Code from module float:
6370   # Code from module fseeko:
6371
6372   # Code from module fsusage:
6373   # Code from module ftello:
6374
6375   # Code from module ftruncate:
6376   # Code from module full-read:
6377   # Code from module full-write:
6378   # Code from module getaddrinfo:
6379   # Code from module getopt-gnu:
6380   # Code from module getopt-posix:
6381   # Code from module gettext-h:
6382   # Code from module gettimeofday:
6383   # Code from module havelib:
6384   # Code from module hostent:
6385   # Code from module include_next:
6386   # Code from module inet_ntop:
6387   # Code from module inet_pton:
6388   # Code from module langinfo:
6389   # Code from module localcharset:
6390   # Code from module lock:
6391   # Code from module lseek:
6392   # Code from module lstat:
6393   # Code from module malloc-gnu:
6394   # Code from module malloc-posix:
6395   # Code from module mbrtowc:
6396   # Code from module mbsinit:
6397   # Code from module memchr:
6398   # Code from module mkdtemp:
6399   # Code from module multiarch:
6400   # Code from module netdb:
6401   # Code from module netinet_in:
6402   # Code from module nl_langinfo:
6403   # Code from module physmem:
6404   # Code from module regex:
6405   # Code from module safe-read:
6406   # Code from module safe-write:
6407   # Code from module servent:
6408   # Code from module size_max:
6409   # Code from module snprintf:
6410   # Code from module socklen:
6411   # Code from module ssize_t:
6412   # Code from module stat:
6413   # Code from module stdbool:
6414   # Code from module stddef:
6415   # Code from module stdint:
6416   # Code from module stdio:
6417   # Code from module stdlib:
6418   # Code from module streq:
6419   # Code from module string:
6420   # Code from module sys_socket:
6421   # Code from module sys_stat:
6422   # Code from module sys_time:
6423   # Code from module tempname:
6424   # Code from module threadlib:
6425
6426
6427
6428   # Code from module time:
6429   # Code from module unistd:
6430   # Code from module vasnprintf:
6431   # Code from module verify:
6432   # Code from module warn-on-use:
6433   # Code from module wchar:
6434   # Code from module wcrtomb:
6435   # Code from module wctype:
6436   # Code from module write:
6437   # Code from module xsize:
6438
6439
6440
6441
6442
6443
6444
6445           LIBC_FATAL_STDERR_=1
6446   export LIBC_FATAL_STDERR_
6447
6448 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6449 # for constant arguments.  Useless!
6450 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6451 $as_echo_n "checking for working alloca.h... " >&6; }
6452 if test "${ac_cv_working_alloca_h+set}" = set; then
6453   $as_echo_n "(cached) " >&6
6454 else
6455   cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461 #include <alloca.h>
6462 int
6463 main ()
6464 {
6465 char *p = (char *) alloca (2 * sizeof (int));
6466                           if (p) return 0;
6467   ;
6468   return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext conftest$ac_exeext
6472 if { (ac_try="$ac_link"
6473 case "(($ac_try" in
6474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475   *) ac_try_echo=$ac_try;;
6476 esac
6477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6478 $as_echo "$ac_try_echo") >&5
6479   (eval "$ac_link") 2>conftest.er1
6480   ac_status=$?
6481   grep -v '^ *+' conftest.er1 >conftest.err
6482   rm -f conftest.er1
6483   cat conftest.err >&5
6484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } && {
6486          test -z "$ac_c_werror_flag" ||
6487          test ! -s conftest.err
6488        } && test -s conftest$ac_exeext && {
6489          test "$cross_compiling" = yes ||
6490          $as_test_x conftest$ac_exeext
6491        }; then
6492   ac_cv_working_alloca_h=yes
6493 else
6494   $as_echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497         ac_cv_working_alloca_h=no
6498 fi
6499
6500 rm -rf conftest.dSYM
6501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6502       conftest$ac_exeext conftest.$ac_ext
6503 fi
6504 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6505 $as_echo "$ac_cv_working_alloca_h" >&6; }
6506 if test $ac_cv_working_alloca_h = yes; then
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_ALLOCA_H 1
6510 _ACEOF
6511
6512 fi
6513
6514 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6515 $as_echo_n "checking for alloca... " >&6; }
6516 if test "${ac_cv_func_alloca_works+set}" = set; then
6517   $as_echo_n "(cached) " >&6
6518 else
6519   cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525 #ifdef __GNUC__
6526 # define alloca __builtin_alloca
6527 #else
6528 # ifdef _MSC_VER
6529 #  include <malloc.h>
6530 #  define alloca _alloca
6531 # else
6532 #  ifdef HAVE_ALLOCA_H
6533 #   include <alloca.h>
6534 #  else
6535 #   ifdef _AIX
6536  #pragma alloca
6537 #   else
6538 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6539 char *alloca ();
6540 #    endif
6541 #   endif
6542 #  endif
6543 # endif
6544 #endif
6545
6546 int
6547 main ()
6548 {
6549 char *p = (char *) alloca (1);
6550                                     if (p) return 0;
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (ac_try="$ac_link"
6557 case "(($ac_try" in
6558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559   *) ac_try_echo=$ac_try;;
6560 esac
6561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6562 $as_echo "$ac_try_echo") >&5
6563   (eval "$ac_link") 2>conftest.er1
6564   ac_status=$?
6565   grep -v '^ *+' conftest.er1 >conftest.err
6566   rm -f conftest.er1
6567   cat conftest.err >&5
6568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } && {
6570          test -z "$ac_c_werror_flag" ||
6571          test ! -s conftest.err
6572        } && test -s conftest$ac_exeext && {
6573          test "$cross_compiling" = yes ||
6574          $as_test_x conftest$ac_exeext
6575        }; then
6576   ac_cv_func_alloca_works=yes
6577 else
6578   $as_echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581         ac_cv_func_alloca_works=no
6582 fi
6583
6584 rm -rf conftest.dSYM
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586       conftest$ac_exeext conftest.$ac_ext
6587 fi
6588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6589 $as_echo "$ac_cv_func_alloca_works" >&6; }
6590
6591 if test $ac_cv_func_alloca_works = yes; then
6592
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_ALLOCA 1
6595 _ACEOF
6596
6597 else
6598   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6599 # that cause trouble.  Some versions do not even contain alloca or
6600 # contain a buggy version.  If you still want to use their alloca,
6601 # use ar to extract alloca.o from them instead of compiling alloca.c.
6602
6603
6604
6605
6606
6607 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6608
6609 cat >>confdefs.h <<\_ACEOF
6610 #define C_ALLOCA 1
6611 _ACEOF
6612
6613
6614 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6615 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6616 if test "${ac_cv_os_cray+set}" = set; then
6617   $as_echo_n "(cached) " >&6
6618 else
6619   cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h.  */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h.  */
6625 #if defined CRAY && ! defined CRAY2
6626 webecray
6627 #else
6628 wenotbecray
6629 #endif
6630
6631 _ACEOF
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633   $EGREP "webecray" >/dev/null 2>&1; then
6634   ac_cv_os_cray=yes
6635 else
6636   ac_cv_os_cray=no
6637 fi
6638 rm -f conftest*
6639
6640 fi
6641 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6642 $as_echo "$ac_cv_os_cray" >&6; }
6643 if test $ac_cv_os_cray = yes; then
6644   for ac_func in _getb67 GETB67 getb67; do
6645     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6646 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6647 $as_echo_n "checking for $ac_func... " >&6; }
6648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6649   $as_echo_n "(cached) " >&6
6650 else
6651   cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6659 #define $ac_func innocuous_$ac_func
6660
6661 /* System header to define __stub macros and hopefully few prototypes,
6662     which can conflict with char $ac_func (); below.
6663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6664     <limits.h> exists even on freestanding compilers.  */
6665
6666 #ifdef __STDC__
6667 # include <limits.h>
6668 #else
6669 # include <assert.h>
6670 #endif
6671
6672 #undef $ac_func
6673
6674 /* Override any GCC internal prototype to avoid an error.
6675    Use char because int might match the return type of a GCC
6676    builtin and then its argument prototype would still apply.  */
6677 #ifdef __cplusplus
6678 extern "C"
6679 #endif
6680 char $ac_func ();
6681 /* The GNU C library defines this for functions which it implements
6682     to always fail with ENOSYS.  Some functions are actually named
6683     something starting with __ and the normal name is an alias.  */
6684 #if defined __stub_$ac_func || defined __stub___$ac_func
6685 choke me
6686 #endif
6687
6688 int
6689 main ()
6690 {
6691 return $ac_func ();
6692   ;
6693   return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest.$ac_objext conftest$ac_exeext
6697 if { (ac_try="$ac_link"
6698 case "(($ac_try" in
6699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700   *) ac_try_echo=$ac_try;;
6701 esac
6702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703 $as_echo "$ac_try_echo") >&5
6704   (eval "$ac_link") 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } && {
6711          test -z "$ac_c_werror_flag" ||
6712          test ! -s conftest.err
6713        } && test -s conftest$ac_exeext && {
6714          test "$cross_compiling" = yes ||
6715          $as_test_x conftest$ac_exeext
6716        }; then
6717   eval "$as_ac_var=yes"
6718 else
6719   $as_echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722         eval "$as_ac_var=no"
6723 fi
6724
6725 rm -rf conftest.dSYM
6726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6727       conftest$ac_exeext conftest.$ac_ext
6728 fi
6729 ac_res=`eval 'as_val=${'$as_ac_var'}
6730                  $as_echo "$as_val"'`
6731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6732 $as_echo "$ac_res" >&6; }
6733 as_val=`eval 'as_val=${'$as_ac_var'}
6734                  $as_echo "$as_val"'`
6735    if test "x$as_val" = x""yes; then
6736
6737 cat >>confdefs.h <<_ACEOF
6738 #define CRAY_STACKSEG_END $ac_func
6739 _ACEOF
6740
6741     break
6742 fi
6743
6744   done
6745 fi
6746
6747 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6748 $as_echo_n "checking stack direction for C alloca... " >&6; }
6749 if test "${ac_cv_c_stack_direction+set}" = set; then
6750   $as_echo_n "(cached) " >&6
6751 else
6752   if test "$cross_compiling" = yes; then
6753   ac_cv_c_stack_direction=0
6754 else
6755   cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761 $ac_includes_default
6762 int
6763 find_stack_direction ()
6764 {
6765   static char *addr = 0;
6766   auto char dummy;
6767   if (addr == 0)
6768     {
6769       addr = &dummy;
6770       return find_stack_direction ();
6771     }
6772   else
6773     return (&dummy > addr) ? 1 : -1;
6774 }
6775
6776 int
6777 main ()
6778 {
6779   return find_stack_direction () < 0;
6780 }
6781 _ACEOF
6782 rm -f conftest$ac_exeext
6783 if { (ac_try="$ac_link"
6784 case "(($ac_try" in
6785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786   *) ac_try_echo=$ac_try;;
6787 esac
6788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6789 $as_echo "$ac_try_echo") >&5
6790   (eval "$ac_link") 2>&5
6791   ac_status=$?
6792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6794   { (case "(($ac_try" in
6795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796   *) ac_try_echo=$ac_try;;
6797 esac
6798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6799 $as_echo "$ac_try_echo") >&5
6800   (eval "$ac_try") 2>&5
6801   ac_status=$?
6802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; }; then
6804   ac_cv_c_stack_direction=1
6805 else
6806   $as_echo "$as_me: program exited with status $ac_status" >&5
6807 $as_echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 ( exit $ac_status )
6811 ac_cv_c_stack_direction=-1
6812 fi
6813 rm -rf conftest.dSYM
6814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6815 fi
6816
6817
6818 fi
6819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6820 $as_echo "$ac_cv_c_stack_direction" >&6; }
6821
6822 cat >>confdefs.h <<_ACEOF
6823 #define STACK_DIRECTION $ac_cv_c_stack_direction
6824 _ACEOF
6825
6826
6827 fi
6828
6829
6830   GNULIB_INET_NTOP=0;
6831   GNULIB_INET_PTON=0;
6832     HAVE_DECL_INET_NTOP=1;
6833   HAVE_DECL_INET_PTON=1;
6834
6835
6836
6837
6838
6839
6840 for ac_header in $gl_header_list
6841 do
6842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6844   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6845 $as_echo_n "checking for $ac_header... " >&6; }
6846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6847   $as_echo_n "(cached) " >&6
6848 fi
6849 ac_res=`eval 'as_val=${'$as_ac_Header'}
6850                  $as_echo "$as_val"'`
6851                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6852 $as_echo "$ac_res" >&6; }
6853 else
6854   # Is the header compilable?
6855 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6856 $as_echo_n "checking $ac_header usability... " >&6; }
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h.  */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h.  */
6863 $ac_includes_default
6864 #include <$ac_header>
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870   *) ac_try_echo=$ac_try;;
6871 esac
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874   (eval "$ac_compile") 2>conftest.er1
6875   ac_status=$?
6876   grep -v '^ *+' conftest.er1 >conftest.err
6877   rm -f conftest.er1
6878   cat conftest.err >&5
6879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } && {
6881          test -z "$ac_c_werror_flag" ||
6882          test ! -s conftest.err
6883        } && test -s conftest.$ac_objext; then
6884   ac_header_compiler=yes
6885 else
6886   $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889         ac_header_compiler=no
6890 fi
6891
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6894 $as_echo "$ac_header_compiler" >&6; }
6895
6896 # Is the header present?
6897 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6898 $as_echo_n "checking $ac_header presence... " >&6; }
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905 #include <$ac_header>
6906 _ACEOF
6907 if { (ac_try="$ac_cpp conftest.$ac_ext"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } >/dev/null && {
6921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6922          test ! -s conftest.err
6923        }; then
6924   ac_header_preproc=yes
6925 else
6926   $as_echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929   ac_header_preproc=no
6930 fi
6931
6932 rm -f conftest.err conftest.$ac_ext
6933 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6934 $as_echo "$ac_header_preproc" >&6; }
6935
6936 # So?  What about this header?
6937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6938   yes:no: )
6939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6940 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6943     ac_header_preproc=yes
6944     ;;
6945   no:yes:* )
6946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6947 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6949 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6951 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6952     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6953 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6954     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6957 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6958
6959     ;;
6960 esac
6961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 $as_echo_n "checking for $ac_header... " >&6; }
6963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6964   $as_echo_n "(cached) " >&6
6965 else
6966   eval "$as_ac_Header=\$ac_header_preproc"
6967 fi
6968 ac_res=`eval 'as_val=${'$as_ac_Header'}
6969                  $as_echo "$as_val"'`
6970                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6971 $as_echo "$ac_res" >&6; }
6972
6973 fi
6974 as_val=`eval 'as_val=${'$as_ac_Header'}
6975                  $as_echo "$as_val"'`
6976    if test "x$as_val" = x""yes; then
6977   cat >>confdefs.h <<_ACEOF
6978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 _ACEOF
6980
6981 fi
6982
6983 done
6984
6985
6986
6987
6988
6989
6990
6991
6992   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6993 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6994 if test "${gl_cv_have_include_next+set}" = set; then
6995   $as_echo_n "(cached) " >&6
6996 else
6997   rm -rf conftestd1a conftestd1b conftestd2
6998      mkdir conftestd1a conftestd1b conftestd2
6999                                                   cat <<EOF > conftestd1a/conftest.h
7000 #define DEFINED_IN_CONFTESTD1
7001 #include_next <conftest.h>
7002 #ifdef DEFINED_IN_CONFTESTD2
7003 int foo;
7004 #else
7005 #error "include_next doesn't work"
7006 #endif
7007 EOF
7008      cat <<EOF > conftestd1b/conftest.h
7009 #define DEFINED_IN_CONFTESTD1
7010 #include <stdio.h>
7011 #include_next <conftest.h>
7012 #ifdef DEFINED_IN_CONFTESTD2
7013 int foo;
7014 #else
7015 #error "include_next doesn't work"
7016 #endif
7017 EOF
7018      cat <<EOF > conftestd2/conftest.h
7019 #ifndef DEFINED_IN_CONFTESTD1
7020 #error "include_next test doesn't work"
7021 #endif
7022 #define DEFINED_IN_CONFTESTD2
7023 EOF
7024      gl_save_CPPFLAGS="$CPPFLAGS"
7025      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7026      cat >conftest.$ac_ext <<_ACEOF
7027 #include <conftest.h>
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (ac_try="$ac_compile"
7031 case "(($ac_try" in
7032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033   *) ac_try_echo=$ac_try;;
7034 esac
7035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7036 $as_echo "$ac_try_echo") >&5
7037   (eval "$ac_compile") 2>conftest.er1
7038   ac_status=$?
7039   grep -v '^ *+' conftest.er1 >conftest.err
7040   rm -f conftest.er1
7041   cat conftest.err >&5
7042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } && {
7044          test -z "$ac_c_werror_flag" ||
7045          test ! -s conftest.err
7046        } && test -s conftest.$ac_objext; then
7047   gl_cv_have_include_next=yes
7048 else
7049   $as_echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7053         cat >conftest.$ac_ext <<_ACEOF
7054 #include <conftest.h>
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7058 case "(($ac_try" in
7059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060   *) ac_try_echo=$ac_try;;
7061 esac
7062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7063 $as_echo "$ac_try_echo") >&5
7064   (eval "$ac_compile") 2>conftest.er1
7065   ac_status=$?
7066   grep -v '^ *+' conftest.er1 >conftest.err
7067   rm -f conftest.er1
7068   cat conftest.err >&5
7069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); } && {
7071          test -z "$ac_c_werror_flag" ||
7072          test ! -s conftest.err
7073        } && test -s conftest.$ac_objext; then
7074   gl_cv_have_include_next=buggy
7075 else
7076   $as_echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079         gl_cv_have_include_next=no
7080 fi
7081
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083
7084 fi
7085
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087      CPPFLAGS="$gl_save_CPPFLAGS"
7088      rm -rf conftestd1a conftestd1b conftestd2
7089
7090 fi
7091 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
7092 $as_echo "$gl_cv_have_include_next" >&6; }
7093   PRAGMA_SYSTEM_HEADER=
7094   if test $gl_cv_have_include_next = yes; then
7095     INCLUDE_NEXT=include_next
7096     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7097     if test -n "$GCC"; then
7098       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7099     fi
7100   else
7101     if test $gl_cv_have_include_next = buggy; then
7102       INCLUDE_NEXT=include
7103       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7104     else
7105       INCLUDE_NEXT=include
7106       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7107     fi
7108   fi
7109
7110
7111
7112
7113 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7114 $as_echo_n "checking for inline... " >&6; }
7115 if test "${ac_cv_c_inline+set}" = set; then
7116   $as_echo_n "(cached) " >&6
7117 else
7118   ac_cv_c_inline=no
7119 for ac_kw in inline __inline__ __inline; do
7120   cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h.  */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h.  */
7126 #ifndef __cplusplus
7127 typedef int foo_t;
7128 static $ac_kw foo_t static_foo () {return 0; }
7129 $ac_kw foo_t foo () {return 0; }
7130 #endif
7131
7132 _ACEOF
7133 rm -f conftest.$ac_objext
7134 if { (ac_try="$ac_compile"
7135 case "(($ac_try" in
7136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137   *) ac_try_echo=$ac_try;;
7138 esac
7139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7140 $as_echo "$ac_try_echo") >&5
7141   (eval "$ac_compile") 2>conftest.er1
7142   ac_status=$?
7143   grep -v '^ *+' conftest.er1 >conftest.err
7144   rm -f conftest.er1
7145   cat conftest.err >&5
7146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } && {
7148          test -z "$ac_c_werror_flag" ||
7149          test ! -s conftest.err
7150        } && test -s conftest.$ac_objext; then
7151   ac_cv_c_inline=$ac_kw
7152 else
7153   $as_echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156
7157 fi
7158
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160   test "$ac_cv_c_inline" != no && break
7161 done
7162
7163 fi
7164 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7165 $as_echo "$ac_cv_c_inline" >&6; }
7166
7167
7168 case $ac_cv_c_inline in
7169   inline | yes) ;;
7170   *)
7171     case $ac_cv_c_inline in
7172       no) ac_val=;;
7173       *) ac_val=$ac_cv_c_inline;;
7174     esac
7175     cat >>confdefs.h <<_ACEOF
7176 #ifndef __cplusplus
7177 #define inline $ac_val
7178 #endif
7179 _ACEOF
7180     ;;
7181 esac
7182
7183 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7184 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7185 if test "${ac_cv_c_restrict+set}" = set; then
7186   $as_echo_n "(cached) " >&6
7187 else
7188   ac_cv_c_restrict=no
7189    # The order here caters to the fact that C++ does not require restrict.
7190    for ac_kw in __restrict __restrict__ _Restrict restrict; do
7191      cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 typedef int * int_ptr;
7198         int foo (int_ptr $ac_kw ip) {
7199         return ip[0];
7200        }
7201 int
7202 main ()
7203 {
7204 int s[1];
7205         int * $ac_kw t = s;
7206         t[0] = 0;
7207         return foo(t)
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216   *) ac_try_echo=$ac_try;;
7217 esac
7218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7219 $as_echo "$ac_try_echo") >&5
7220   (eval "$ac_compile") 2>conftest.er1
7221   ac_status=$?
7222   grep -v '^ *+' conftest.er1 >conftest.err
7223   rm -f conftest.er1
7224   cat conftest.err >&5
7225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); } && {
7227          test -z "$ac_c_werror_flag" ||
7228          test ! -s conftest.err
7229        } && test -s conftest.$ac_objext; then
7230   ac_cv_c_restrict=$ac_kw
7231 else
7232   $as_echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235
7236 fi
7237
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239      test "$ac_cv_c_restrict" != no && break
7240    done
7241
7242 fi
7243 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7244 $as_echo "$ac_cv_c_restrict" >&6; }
7245
7246
7247  case $ac_cv_c_restrict in
7248    restrict) ;;
7249    no) cat >>confdefs.h <<\_ACEOF
7250 #define restrict /**/
7251 _ACEOF
7252  ;;
7253    *)  cat >>confdefs.h <<_ACEOF
7254 #define restrict $ac_cv_c_restrict
7255 _ACEOF
7256  ;;
7257  esac
7258
7259
7260   GNULIB_BTOWC=0;
7261   GNULIB_WCTOB=0;
7262   GNULIB_MBSINIT=0;
7263   GNULIB_MBRTOWC=0;
7264   GNULIB_MBRLEN=0;
7265   GNULIB_MBSRTOWCS=0;
7266   GNULIB_MBSNRTOWCS=0;
7267   GNULIB_WCRTOMB=0;
7268   GNULIB_WCSRTOMBS=0;
7269   GNULIB_WCSNRTOMBS=0;
7270   GNULIB_WCWIDTH=0;
7271     HAVE_BTOWC=1;
7272   HAVE_MBSINIT=1;
7273   HAVE_MBRTOWC=1;
7274   HAVE_MBRLEN=1;
7275   HAVE_MBSRTOWCS=1;
7276   HAVE_MBSNRTOWCS=1;
7277   HAVE_WCRTOMB=1;
7278   HAVE_WCSRTOMBS=1;
7279   HAVE_WCSNRTOMBS=1;
7280   HAVE_DECL_WCTOB=1;
7281   HAVE_DECL_WCWIDTH=1;
7282   REPLACE_MBSTATE_T=0;
7283   REPLACE_BTOWC=0;
7284   REPLACE_WCTOB=0;
7285   REPLACE_MBSINIT=0;
7286   REPLACE_MBRTOWC=0;
7287   REPLACE_MBRLEN=0;
7288   REPLACE_MBSRTOWCS=0;
7289   REPLACE_MBSNRTOWCS=0;
7290   REPLACE_WCRTOMB=0;
7291   REPLACE_WCSRTOMBS=0;
7292   REPLACE_WCSNRTOMBS=0;
7293   REPLACE_WCWIDTH=0;
7294
7295
7296             { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
7297 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7298 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
7299   $as_echo_n "(cached) " >&6
7300 else
7301   gl_cv_header_wchar_h_correct_inline=yes
7302      cat >conftest.$ac_ext <<_ACEOF
7303
7304        /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 #define wcstod renamed_wcstod
7310 #include <wchar.h>
7311 extern int zero (void);
7312 int main () { return zero(); }
7313
7314 _ACEOF
7315      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316   (eval $ac_compile) 2>&5
7317   ac_status=$?
7318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); }; then
7320        mv conftest.$ac_objext conftest1.$ac_objext
7321        cat >conftest.$ac_ext <<_ACEOF
7322
7323          /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328 #define wcstod renamed_wcstod
7329 #include <wchar.h>
7330 int zero (void) { return 0; }
7331
7332 _ACEOF
7333        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334   (eval $ac_compile) 2>&5
7335   ac_status=$?
7336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; then
7338          mv conftest.$ac_objext conftest2.$ac_objext
7339          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7340            :
7341          else
7342            gl_cv_header_wchar_h_correct_inline=no
7343          fi
7344        fi
7345      fi
7346      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7347
7348 fi
7349 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
7350 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7351   if test $gl_cv_header_wchar_h_correct_inline = no; then
7352     { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7353 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7354 C99 mode. You have four options:
7355   - Add the flag -fgnu89-inline to CC and reconfigure, or
7356   - Fix your include files, using parts of
7357     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7358   - Use a gcc version older than 4.3, or
7359   - Don't use the flags -std=c99 or -std=gnu99.
7360 Configuration aborted." >&5
7361 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7362 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7363 C99 mode. You have four options:
7364   - Add the flag -fgnu89-inline to CC and reconfigure, or
7365   - Fix your include files, using parts of
7366     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7367   - Use a gcc version older than 4.3, or
7368   - Don't use the flags -std=c99 or -std=gnu99.
7369 Configuration aborted." >&2;}
7370    { (exit 1); exit 1; }; }
7371   fi
7372
7373
7374
7375
7376
7377
7378 for ac_func in $gl_func_list
7379 do
7380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7382 $as_echo_n "checking for $ac_func... " >&6; }
7383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7384   $as_echo_n "(cached) " >&6
7385 else
7386   cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7394 #define $ac_func innocuous_$ac_func
7395
7396 /* System header to define __stub macros and hopefully few prototypes,
7397     which can conflict with char $ac_func (); below.
7398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399     <limits.h> exists even on freestanding compilers.  */
7400
7401 #ifdef __STDC__
7402 # include <limits.h>
7403 #else
7404 # include <assert.h>
7405 #endif
7406
7407 #undef $ac_func
7408
7409 /* Override any GCC internal prototype to avoid an error.
7410    Use char because int might match the return type of a GCC
7411    builtin and then its argument prototype would still apply.  */
7412 #ifdef __cplusplus
7413 extern "C"
7414 #endif
7415 char $ac_func ();
7416 /* The GNU C library defines this for functions which it implements
7417     to always fail with ENOSYS.  Some functions are actually named
7418     something starting with __ and the normal name is an alias.  */
7419 #if defined __stub_$ac_func || defined __stub___$ac_func
7420 choke me
7421 #endif
7422
7423 int
7424 main ()
7425 {
7426 return $ac_func ();
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7433 case "(($ac_try" in
7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435   *) ac_try_echo=$ac_try;;
7436 esac
7437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7438 $as_echo "$ac_try_echo") >&5
7439   (eval "$ac_link") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } && {
7446          test -z "$ac_c_werror_flag" ||
7447          test ! -s conftest.err
7448        } && test -s conftest$ac_exeext && {
7449          test "$cross_compiling" = yes ||
7450          $as_test_x conftest$ac_exeext
7451        }; then
7452   eval "$as_ac_var=yes"
7453 else
7454   $as_echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457         eval "$as_ac_var=no"
7458 fi
7459
7460 rm -rf conftest.dSYM
7461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7462       conftest$ac_exeext conftest.$ac_ext
7463 fi
7464 ac_res=`eval 'as_val=${'$as_ac_var'}
7465                  $as_echo "$as_val"'`
7466                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7467 $as_echo "$ac_res" >&6; }
7468 as_val=`eval 'as_val=${'$as_ac_var'}
7469                  $as_echo "$as_val"'`
7470    if test "x$as_val" = x""yes; then
7471   cat >>confdefs.h <<_ACEOF
7472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7473 _ACEOF
7474
7475 fi
7476 done
7477
7478
7479
7480
7481
7482
7483
7484   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7485 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7486 if test "${am_cv_langinfo_codeset+set}" = set; then
7487   $as_echo_n "(cached) " >&6
7488 else
7489   cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495 #include <langinfo.h>
7496 int
7497 main ()
7498 {
7499 char* cs = nl_langinfo(CODESET);
7500   ;
7501   return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext conftest$ac_exeext
7505 if { (ac_try="$ac_link"
7506 case "(($ac_try" in
7507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508   *) ac_try_echo=$ac_try;;
7509 esac
7510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7511 $as_echo "$ac_try_echo") >&5
7512   (eval "$ac_link") 2>conftest.er1
7513   ac_status=$?
7514   grep -v '^ *+' conftest.er1 >conftest.err
7515   rm -f conftest.er1
7516   cat conftest.err >&5
7517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } && {
7519          test -z "$ac_c_werror_flag" ||
7520          test ! -s conftest.err
7521        } && test -s conftest$ac_exeext && {
7522          test "$cross_compiling" = yes ||
7523          $as_test_x conftest$ac_exeext
7524        }; then
7525   am_cv_langinfo_codeset=yes
7526 else
7527   $as_echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530         am_cv_langinfo_codeset=no
7531 fi
7532
7533 rm -rf conftest.dSYM
7534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7535       conftest$ac_exeext conftest.$ac_ext
7536
7537 fi
7538 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7539 $as_echo "$am_cv_langinfo_codeset" >&6; }
7540   if test $am_cv_langinfo_codeset = yes; then
7541
7542 cat >>confdefs.h <<\_ACEOF
7543 #define HAVE_LANGINFO_CODESET 1
7544 _ACEOF
7545
7546   fi
7547
7548
7549
7550
7551   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
7552 $as_echo_n "checking for a traditional french locale... " >&6; }
7553 if test "${gt_cv_locale_fr+set}" = set; then
7554   $as_echo_n "(cached) " >&6
7555 else
7556
7557     cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563
7564 #include <locale.h>
7565 #include <time.h>
7566 #if HAVE_LANGINFO_CODESET
7567 # include <langinfo.h>
7568 #endif
7569 #include <stdlib.h>
7570 #include <string.h>
7571 struct tm t;
7572 char buf[16];
7573 int main () {
7574   /* Check whether the given locale name is recognized by the system.  */
7575   if (setlocale (LC_ALL, "") == NULL) return 1;
7576   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7577      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7578      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7579      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7580      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7581      some unit tests fail.  */
7582 #if HAVE_LANGINFO_CODESET
7583   {
7584     const char *cs = nl_langinfo (CODESET);
7585     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7586       return 1;
7587   }
7588 #endif
7589 #ifdef __CYGWIN__
7590   /* On Cygwin, avoid locale names without encoding suffix, because the
7591      locale_charset() function relies on the encoding suffix.  Note that
7592      LC_ALL is set on the command line.  */
7593   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7594 #endif
7595   /* Check whether in the abbreviation of the second month, the second
7596      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7597      one byte long. This excludes the UTF-8 encoding.  */
7598   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7599   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7600   /* Check whether the decimal separator is a comma.
7601      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7602      are nl_langinfo(RADIXCHAR) are both ".".  */
7603   if (localeconv () ->decimal_point[0] != ',') return 1;
7604   return 0;
7605 }
7606
7607 _ACEOF
7608     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609   (eval $ac_link) 2>&5
7610   ac_status=$?
7611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } && test -s conftest$ac_exeext; then
7613       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7614       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7615       # configure script would override the LC_ALL setting. Likewise for
7616       # LC_CTYPE, which is also set at the beginning of the configure script.
7617       # Test for the usual locale name.
7618       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7619         gt_cv_locale_fr=fr_FR
7620       else
7621         # Test for the locale name with explicit encoding suffix.
7622         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7623           gt_cv_locale_fr=fr_FR.ISO-8859-1
7624         else
7625           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7626           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7627             gt_cv_locale_fr=fr_FR.ISO8859-1
7628           else
7629             # Test for the HP-UX locale name.
7630             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7631               gt_cv_locale_fr=fr_FR.iso88591
7632             else
7633               # Test for the Solaris 7 locale name.
7634               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7635                 gt_cv_locale_fr=fr
7636               else
7637                 # None found.
7638                 gt_cv_locale_fr=none
7639               fi
7640             fi
7641           fi
7642         fi
7643       fi
7644     fi
7645     rm -fr conftest*
7646
7647 fi
7648 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
7649 $as_echo "$gt_cv_locale_fr" >&6; }
7650   LOCALE_FR=$gt_cv_locale_fr
7651
7652
7653
7654   GNULIB_CHOWN=0;
7655   GNULIB_CLOSE=0;
7656   GNULIB_DUP2=0;
7657   GNULIB_DUP3=0;
7658   GNULIB_ENVIRON=0;
7659   GNULIB_EUIDACCESS=0;
7660   GNULIB_FACCESSAT=0;
7661   GNULIB_FCHDIR=0;
7662   GNULIB_FCHOWNAT=0;
7663   GNULIB_FSYNC=0;
7664   GNULIB_FTRUNCATE=0;
7665   GNULIB_GETCWD=0;
7666   GNULIB_GETDOMAINNAME=0;
7667   GNULIB_GETDTABLESIZE=0;
7668   GNULIB_GETGROUPS=0;
7669   GNULIB_GETHOSTNAME=0;
7670   GNULIB_GETLOGIN=0;
7671   GNULIB_GETLOGIN_R=0;
7672   GNULIB_GETPAGESIZE=0;
7673   GNULIB_GETUSERSHELL=0;
7674   GNULIB_LCHOWN=0;
7675   GNULIB_LINK=0;
7676   GNULIB_LINKAT=0;
7677   GNULIB_LSEEK=0;
7678   GNULIB_PIPE2=0;
7679   GNULIB_PREAD=0;
7680   GNULIB_PWRITE=0;
7681   GNULIB_READLINK=0;
7682   GNULIB_READLINKAT=0;
7683   GNULIB_RMDIR=0;
7684   GNULIB_SLEEP=0;
7685   GNULIB_SYMLINK=0;
7686   GNULIB_SYMLINKAT=0;
7687   GNULIB_TTYNAME_R=0;
7688   GNULIB_UNISTD_H_GETOPT=0;
7689   GNULIB_UNISTD_H_SIGPIPE=0;
7690   GNULIB_UNLINK=0;
7691   GNULIB_UNLINKAT=0;
7692   GNULIB_USLEEP=0;
7693   GNULIB_WRITE=0;
7694     HAVE_CHOWN=1;
7695   HAVE_DUP2=1;
7696   HAVE_DUP3=1;
7697   HAVE_EUIDACCESS=1;
7698   HAVE_FACCESSAT=1;
7699   HAVE_FCHDIR=1;
7700   HAVE_FCHOWNAT=1;
7701   HAVE_FSYNC=1;
7702   HAVE_FTRUNCATE=1;
7703   HAVE_GETDOMAINNAME=1;
7704   HAVE_GETDTABLESIZE=1;
7705   HAVE_GETGROUPS=1;
7706   HAVE_GETHOSTNAME=1;
7707   HAVE_GETLOGIN=1;
7708   HAVE_GETPAGESIZE=1;
7709   HAVE_LCHOWN=1;
7710   HAVE_LINK=1;
7711   HAVE_LINKAT=1;
7712   HAVE_PIPE2=1;
7713   HAVE_PREAD=1;
7714   HAVE_PWRITE=1;
7715   HAVE_READLINK=1;
7716   HAVE_READLINKAT=1;
7717   HAVE_SLEEP=1;
7718   HAVE_SYMLINK=1;
7719   HAVE_SYMLINKAT=1;
7720   HAVE_TTYNAME_R=1;
7721   HAVE_UNLINKAT=1;
7722   HAVE_USLEEP=1;
7723   HAVE_DECL_ENVIRON=1;
7724   HAVE_DECL_GETLOGIN_R=1;
7725   HAVE_DECL_GETPAGESIZE=1;
7726   HAVE_DECL_GETUSERSHELL=1;
7727   HAVE_OS_H=0;
7728   HAVE_SYS_PARAM_H=0;
7729   REPLACE_CHOWN=0;
7730   REPLACE_CLOSE=0;
7731   REPLACE_DUP=0;
7732   REPLACE_DUP2=0;
7733   REPLACE_FCHOWNAT=0;
7734   REPLACE_GETCWD=0;
7735   REPLACE_GETGROUPS=0;
7736   REPLACE_GETPAGESIZE=0;
7737   REPLACE_LCHOWN=0;
7738   REPLACE_LINK=0;
7739   REPLACE_LINKAT=0;
7740   REPLACE_LSEEK=0;
7741   REPLACE_PREAD=0;
7742   REPLACE_PWRITE=0;
7743   REPLACE_READLINK=0;
7744   REPLACE_RMDIR=0;
7745   REPLACE_SLEEP=0;
7746   REPLACE_SYMLINK=0;
7747   REPLACE_TTYNAME_R=0;
7748   REPLACE_UNLINK=0;
7749   REPLACE_UNLINKAT=0;
7750   REPLACE_USLEEP=0;
7751   REPLACE_WRITE=0;
7752   UNISTD_H_HAVE_WINSOCK2_H=0;
7753   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7754
7755
7756
7757
7758
7759
7760
7761   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
7762 $as_echo_n "checking if environ is properly declared... " >&6; }
7763   if test "${gt_cv_var_environ_declaration+set}" = set; then
7764   $as_echo_n "(cached) " >&6
7765 else
7766
7767     cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773 #include <unistd.h>
7774            extern struct { int foo; } environ;
7775 int
7776 main ()
7777 {
7778 environ.foo = 1;
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7785 case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7790 $as_echo "$ac_try_echo") >&5
7791   (eval "$ac_compile") 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } && {
7798          test -z "$ac_c_werror_flag" ||
7799          test ! -s conftest.err
7800        } && test -s conftest.$ac_objext; then
7801   gt_cv_var_environ_declaration=no
7802 else
7803   $as_echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806         gt_cv_var_environ_declaration=yes
7807 fi
7808
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811
7812   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
7813 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7814   if test $gt_cv_var_environ_declaration = yes; then
7815
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HAVE_ENVIRON_DECL 1
7818 _ACEOF
7819
7820   fi
7821
7822
7823   if test $gt_cv_var_environ_declaration != yes; then
7824     HAVE_DECL_ENVIRON=0
7825   fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
7836 $as_echo_n "checking for complete errno.h... " >&6; }
7837 if test "${gl_cv_header_errno_h_complete+set}" = set; then
7838   $as_echo_n "(cached) " >&6
7839 else
7840
7841     cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847
7848 #include <errno.h>
7849 #if !defined ENOMSG
7850 booboo
7851 #endif
7852 #if !defined EIDRM
7853 booboo
7854 #endif
7855 #if !defined ENOLINK
7856 booboo
7857 #endif
7858 #if !defined EPROTO
7859 booboo
7860 #endif
7861 #if !defined EMULTIHOP
7862 booboo
7863 #endif
7864 #if !defined EBADMSG
7865 booboo
7866 #endif
7867 #if !defined EOVERFLOW
7868 booboo
7869 #endif
7870 #if !defined ENOTSUP
7871 booboo
7872 #endif
7873 #if !defined ESTALE
7874 booboo
7875 #endif
7876 #if !defined ECANCELED
7877 booboo
7878 #endif
7879
7880 _ACEOF
7881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7882   $EGREP "booboo" >/dev/null 2>&1; then
7883   gl_cv_header_errno_h_complete=no
7884 else
7885   gl_cv_header_errno_h_complete=yes
7886 fi
7887 rm -f conftest*
7888
7889
7890 fi
7891 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
7892 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7893   if test $gl_cv_header_errno_h_complete = yes; then
7894     ERRNO_H=''
7895   else
7896
7897
7898
7899
7900   :
7901
7902
7903
7904
7905
7906
7907
7908      if test $gl_cv_have_include_next = yes; then
7909        gl_cv_next_errno_h='<'errno.h'>'
7910      else
7911        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
7912 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7913 if test "${gl_cv_next_errno_h+set}" = set; then
7914   $as_echo_n "(cached) " >&6
7915 else
7916
7917           if test $ac_cv_header_errno_h = yes; then
7918             cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924 #include <errno.h>
7925
7926 _ACEOF
7927                                                                                                 case "$host_os" in
7928               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7929               *)    gl_absname_cpp="$ac_cpp" ;;
7930             esac
7931                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7932                sed -n '\#/errno.h#{
7933                  s#.*"\(.*/errno.h\)".*#\1#
7934                  s#^/[^/]#//&#
7935                  p
7936                  q
7937                }'`'"'
7938           else
7939             gl_cv_next_errno_h='<'errno.h'>'
7940           fi
7941
7942 fi
7943 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7944 $as_echo "$gl_cv_next_errno_h" >&6; }
7945      fi
7946      NEXT_ERRNO_H=$gl_cv_next_errno_h
7947
7948      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7949        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7950        gl_next_as_first_directive='<'errno.h'>'
7951      else
7952        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7953        gl_next_as_first_directive=$gl_cv_next_errno_h
7954      fi
7955      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7956
7957
7958
7959     ERRNO_H='errno.h'
7960   fi
7961
7962
7963   if test -n "$ERRNO_H"; then
7964     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7965 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7966 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7967   $as_echo_n "(cached) " >&6
7968 else
7969
7970       cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976
7977 #include <errno.h>
7978 #ifdef EMULTIHOP
7979 yes
7980 #endif
7981
7982 _ACEOF
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984   $EGREP "yes" >/dev/null 2>&1; then
7985   gl_cv_header_errno_h_EMULTIHOP=yes
7986 else
7987   gl_cv_header_errno_h_EMULTIHOP=no
7988 fi
7989 rm -f conftest*
7990
7991       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7992         cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998
7999 #define _XOPEN_SOURCE_EXTENDED 1
8000 #include <errno.h>
8001 #ifdef EMULTIHOP
8002 yes
8003 #endif
8004
8005 _ACEOF
8006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8007   $EGREP "yes" >/dev/null 2>&1; then
8008   gl_cv_header_errno_h_EMULTIHOP=hidden
8009 fi
8010 rm -f conftest*
8011
8012         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8013                               if test "$cross_compiling" = yes; then
8014   # Depending upon the size, compute the lo and hi bounds.
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021
8022 #define _XOPEN_SOURCE_EXTENDED 1
8023 #include <errno.h>
8024 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8025 #include <stdio.h>
8026 #include <stdlib.h>
8027
8028 int
8029 main ()
8030 {
8031 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
8032 test_array [0] = 0
8033
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046   (eval "$ac_compile") 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } && {
8053          test -z "$ac_c_werror_flag" ||
8054          test ! -s conftest.err
8055        } && test -s conftest.$ac_objext; then
8056   ac_lo=0 ac_mid=0
8057   while :; do
8058     cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h.  */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h.  */
8064
8065 #define _XOPEN_SOURCE_EXTENDED 1
8066 #include <errno.h>
8067 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8068 #include <stdio.h>
8069 #include <stdlib.h>
8070
8071 int
8072 main ()
8073 {
8074 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8075 test_array [0] = 0
8076
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext
8082 if { (ac_try="$ac_compile"
8083 case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8088 $as_echo "$ac_try_echo") >&5
8089   (eval "$ac_compile") 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } && {
8096          test -z "$ac_c_werror_flag" ||
8097          test ! -s conftest.err
8098        } && test -s conftest.$ac_objext; then
8099   ac_hi=$ac_mid; break
8100 else
8101   $as_echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104         ac_lo=`expr $ac_mid + 1`
8105                         if test $ac_lo -le $ac_mid; then
8106                           ac_lo= ac_hi=
8107                           break
8108                         fi
8109                         ac_mid=`expr 2 '*' $ac_mid + 1`
8110 fi
8111
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113   done
8114 else
8115   $as_echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118         cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124
8125 #define _XOPEN_SOURCE_EXTENDED 1
8126 #include <errno.h>
8127 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8128 #include <stdio.h>
8129 #include <stdlib.h>
8130
8131 int
8132 main ()
8133 {
8134 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
8135 test_array [0] = 0
8136
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext
8142 if { (ac_try="$ac_compile"
8143 case "(($ac_try" in
8144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145   *) ac_try_echo=$ac_try;;
8146 esac
8147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8148 $as_echo "$ac_try_echo") >&5
8149   (eval "$ac_compile") 2>conftest.er1
8150   ac_status=$?
8151   grep -v '^ *+' conftest.er1 >conftest.err
8152   rm -f conftest.er1
8153   cat conftest.err >&5
8154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); } && {
8156          test -z "$ac_c_werror_flag" ||
8157          test ! -s conftest.err
8158        } && test -s conftest.$ac_objext; then
8159   ac_hi=-1 ac_mid=-1
8160   while :; do
8161     cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167
8168 #define _XOPEN_SOURCE_EXTENDED 1
8169 #include <errno.h>
8170 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8171 #include <stdio.h>
8172 #include <stdlib.h>
8173
8174 int
8175 main ()
8176 {
8177 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
8178 test_array [0] = 0
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   ac_lo=$ac_mid; break
8203 else
8204   $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         ac_hi=`expr '(' $ac_mid ')' - 1`
8208                         if test $ac_mid -le $ac_hi; then
8209                           ac_lo= ac_hi=
8210                           break
8211                         fi
8212                         ac_mid=`expr 2 '*' $ac_mid`
8213 fi
8214
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216   done
8217 else
8218   $as_echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221         ac_lo= ac_hi=
8222 fi
8223
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 fi
8226
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 # Binary search between lo and hi bounds.
8229 while test "x$ac_lo" != "x$ac_hi"; do
8230   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237
8238 #define _XOPEN_SOURCE_EXTENDED 1
8239 #include <errno.h>
8240 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8241 #include <stdio.h>
8242 #include <stdlib.h>
8243
8244 int
8245 main ()
8246 {
8247 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8248 test_array [0] = 0
8249
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8261 $as_echo "$ac_try_echo") >&5
8262   (eval "$ac_compile") 2>conftest.er1
8263   ac_status=$?
8264   grep -v '^ *+' conftest.er1 >conftest.err
8265   rm -f conftest.er1
8266   cat conftest.err >&5
8267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); } && {
8269          test -z "$ac_c_werror_flag" ||
8270          test ! -s conftest.err
8271        } && test -s conftest.$ac_objext; then
8272   ac_hi=$ac_mid
8273 else
8274   $as_echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277         ac_lo=`expr '(' $ac_mid ')' + 1`
8278 fi
8279
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 done
8282 case $ac_lo in
8283 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
8284 '')  ;;
8285 esac
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293
8294 #define _XOPEN_SOURCE_EXTENDED 1
8295 #include <errno.h>
8296 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8297 #include <stdio.h>
8298 #include <stdlib.h>
8299
8300 static long int longval () { return EMULTIHOP; }
8301 static unsigned long int ulongval () { return EMULTIHOP; }
8302 #include <stdio.h>
8303 #include <stdlib.h>
8304 int
8305 main ()
8306 {
8307
8308   FILE *f = fopen ("conftest.val", "w");
8309   if (! f)
8310     return 1;
8311   if ((EMULTIHOP) < 0)
8312     {
8313       long int i = longval ();
8314       if (i != (EMULTIHOP))
8315         return 1;
8316       fprintf (f, "%ld", i);
8317     }
8318   else
8319     {
8320       unsigned long int i = ulongval ();
8321       if (i != (EMULTIHOP))
8322         return 1;
8323       fprintf (f, "%lu", i);
8324     }
8325   /* Do not output a trailing newline, as this causes \r\n confusion
8326      on some platforms.  */
8327   return ferror (f) || fclose (f) != 0;
8328
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest$ac_exeext
8334 if { (ac_try="$ac_link"
8335 case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341   (eval "$ac_link") 2>&5
8342   ac_status=$?
8343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8345   { (case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350 $as_echo "$ac_try_echo") >&5
8351   (eval "$ac_try") 2>&5
8352   ac_status=$?
8353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
8356 else
8357   $as_echo "$as_me: program exited with status $ac_status" >&5
8358 $as_echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 fi
8362 rm -rf conftest.dSYM
8363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 rm -f conftest.val
8366         fi
8367       fi
8368
8369 fi
8370 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8371 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8372     case $gl_cv_header_errno_h_EMULTIHOP in
8373       yes | no)
8374         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8375         ;;
8376       *)
8377         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8378         ;;
8379     esac
8380
8381
8382   fi
8383
8384
8385   if test -n "$ERRNO_H"; then
8386     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
8387 $as_echo_n "checking for ENOLINK value... " >&6; }
8388 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
8389   $as_echo_n "(cached) " >&6
8390 else
8391
8392       cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 #include <errno.h>
8400 #ifdef ENOLINK
8401 yes
8402 #endif
8403
8404 _ACEOF
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406   $EGREP "yes" >/dev/null 2>&1; then
8407   gl_cv_header_errno_h_ENOLINK=yes
8408 else
8409   gl_cv_header_errno_h_ENOLINK=no
8410 fi
8411 rm -f conftest*
8412
8413       if test $gl_cv_header_errno_h_ENOLINK = no; then
8414         cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420
8421 #define _XOPEN_SOURCE_EXTENDED 1
8422 #include <errno.h>
8423 #ifdef ENOLINK
8424 yes
8425 #endif
8426
8427 _ACEOF
8428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8429   $EGREP "yes" >/dev/null 2>&1; then
8430   gl_cv_header_errno_h_ENOLINK=hidden
8431 fi
8432 rm -f conftest*
8433
8434         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
8435                               if test "$cross_compiling" = yes; then
8436   # Depending upon the size, compute the lo and hi bounds.
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443
8444 #define _XOPEN_SOURCE_EXTENDED 1
8445 #include <errno.h>
8446 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8447 #include <stdio.h>
8448 #include <stdlib.h>
8449
8450 int
8451 main ()
8452 {
8453 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
8454 test_array [0] = 0
8455
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext
8461 if { (ac_try="$ac_compile"
8462 case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8467 $as_echo "$ac_try_echo") >&5
8468   (eval "$ac_compile") 2>conftest.er1
8469   ac_status=$?
8470   grep -v '^ *+' conftest.er1 >conftest.err
8471   rm -f conftest.er1
8472   cat conftest.err >&5
8473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } && {
8475          test -z "$ac_c_werror_flag" ||
8476          test ! -s conftest.err
8477        } && test -s conftest.$ac_objext; then
8478   ac_lo=0 ac_mid=0
8479   while :; do
8480     cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 #define _XOPEN_SOURCE_EXTENDED 1
8488 #include <errno.h>
8489 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8490 #include <stdio.h>
8491 #include <stdlib.h>
8492
8493 int
8494 main ()
8495 {
8496 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8497 test_array [0] = 0
8498
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8505 case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8510 $as_echo "$ac_try_echo") >&5
8511   (eval "$ac_compile") 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } && {
8518          test -z "$ac_c_werror_flag" ||
8519          test ! -s conftest.err
8520        } && test -s conftest.$ac_objext; then
8521   ac_hi=$ac_mid; break
8522 else
8523   $as_echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526         ac_lo=`expr $ac_mid + 1`
8527                         if test $ac_lo -le $ac_mid; then
8528                           ac_lo= ac_hi=
8529                           break
8530                         fi
8531                         ac_mid=`expr 2 '*' $ac_mid + 1`
8532 fi
8533
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535   done
8536 else
8537   $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540         cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546
8547 #define _XOPEN_SOURCE_EXTENDED 1
8548 #include <errno.h>
8549 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8550 #include <stdio.h>
8551 #include <stdlib.h>
8552
8553 int
8554 main ()
8555 {
8556 static int test_array [1 - 2 * !((ENOLINK) < 0)];
8557 test_array [0] = 0
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571   (eval "$ac_compile") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } && {
8578          test -z "$ac_c_werror_flag" ||
8579          test ! -s conftest.err
8580        } && test -s conftest.$ac_objext; then
8581   ac_hi=-1 ac_mid=-1
8582   while :; do
8583     cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589
8590 #define _XOPEN_SOURCE_EXTENDED 1
8591 #include <errno.h>
8592 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8593 #include <stdio.h>
8594 #include <stdlib.h>
8595
8596 int
8597 main ()
8598 {
8599 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
8600 test_array [0] = 0
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8613 $as_echo "$ac_try_echo") >&5
8614   (eval "$ac_compile") 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } && {
8621          test -z "$ac_c_werror_flag" ||
8622          test ! -s conftest.err
8623        } && test -s conftest.$ac_objext; then
8624   ac_lo=$ac_mid; break
8625 else
8626   $as_echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629         ac_hi=`expr '(' $ac_mid ')' - 1`
8630                         if test $ac_mid -le $ac_hi; then
8631                           ac_lo= ac_hi=
8632                           break
8633                         fi
8634                         ac_mid=`expr 2 '*' $ac_mid`
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638   done
8639 else
8640   $as_echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643         ac_lo= ac_hi=
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 # Binary search between lo and hi bounds.
8651 while test "x$ac_lo" != "x$ac_hi"; do
8652   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8653   cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659
8660 #define _XOPEN_SOURCE_EXTENDED 1
8661 #include <errno.h>
8662 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8663 #include <stdio.h>
8664 #include <stdlib.h>
8665
8666 int
8667 main ()
8668 {
8669 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8670 test_array [0] = 0
8671
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext
8677 if { (ac_try="$ac_compile"
8678 case "(($ac_try" in
8679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680   *) ac_try_echo=$ac_try;;
8681 esac
8682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683 $as_echo "$ac_try_echo") >&5
8684   (eval "$ac_compile") 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } && {
8691          test -z "$ac_c_werror_flag" ||
8692          test ! -s conftest.err
8693        } && test -s conftest.$ac_objext; then
8694   ac_hi=$ac_mid
8695 else
8696   $as_echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699         ac_lo=`expr '(' $ac_mid ')' + 1`
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 done
8704 case $ac_lo in
8705 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
8706 '')  ;;
8707 esac
8708 else
8709   cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715
8716 #define _XOPEN_SOURCE_EXTENDED 1
8717 #include <errno.h>
8718 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8719 #include <stdio.h>
8720 #include <stdlib.h>
8721
8722 static long int longval () { return ENOLINK; }
8723 static unsigned long int ulongval () { return ENOLINK; }
8724 #include <stdio.h>
8725 #include <stdlib.h>
8726 int
8727 main ()
8728 {
8729
8730   FILE *f = fopen ("conftest.val", "w");
8731   if (! f)
8732     return 1;
8733   if ((ENOLINK) < 0)
8734     {
8735       long int i = longval ();
8736       if (i != (ENOLINK))
8737         return 1;
8738       fprintf (f, "%ld", i);
8739     }
8740   else
8741     {
8742       unsigned long int i = ulongval ();
8743       if (i != (ENOLINK))
8744         return 1;
8745       fprintf (f, "%lu", i);
8746     }
8747   /* Do not output a trailing newline, as this causes \r\n confusion
8748      on some platforms.  */
8749   return ferror (f) || fclose (f) != 0;
8750
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest$ac_exeext
8756 if { (ac_try="$ac_link"
8757 case "(($ac_try" in
8758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759   *) ac_try_echo=$ac_try;;
8760 esac
8761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8762 $as_echo "$ac_try_echo") >&5
8763   (eval "$ac_link") 2>&5
8764   ac_status=$?
8765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8767   { (case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8772 $as_echo "$ac_try_echo") >&5
8773   (eval "$ac_try") 2>&5
8774   ac_status=$?
8775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
8778 else
8779   $as_echo "$as_me: program exited with status $ac_status" >&5
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 fi
8784 rm -rf conftest.dSYM
8785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8786 fi
8787 rm -f conftest.val
8788         fi
8789       fi
8790
8791 fi
8792 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
8793 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8794     case $gl_cv_header_errno_h_ENOLINK in
8795       yes | no)
8796         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8797         ;;
8798       *)
8799         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8800         ;;
8801     esac
8802
8803
8804   fi
8805
8806
8807   if test -n "$ERRNO_H"; then
8808     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
8809 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8810 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
8811   $as_echo_n "(cached) " >&6
8812 else
8813
8814       cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h.  */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h.  */
8820
8821 #include <errno.h>
8822 #ifdef EOVERFLOW
8823 yes
8824 #endif
8825
8826 _ACEOF
8827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828   $EGREP "yes" >/dev/null 2>&1; then
8829   gl_cv_header_errno_h_EOVERFLOW=yes
8830 else
8831   gl_cv_header_errno_h_EOVERFLOW=no
8832 fi
8833 rm -f conftest*
8834
8835       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8836         cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842
8843 #define _XOPEN_SOURCE_EXTENDED 1
8844 #include <errno.h>
8845 #ifdef EOVERFLOW
8846 yes
8847 #endif
8848
8849 _ACEOF
8850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8851   $EGREP "yes" >/dev/null 2>&1; then
8852   gl_cv_header_errno_h_EOVERFLOW=hidden
8853 fi
8854 rm -f conftest*
8855
8856         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8857                               if test "$cross_compiling" = yes; then
8858   # Depending upon the size, compute the lo and hi bounds.
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h.  */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h.  */
8865
8866 #define _XOPEN_SOURCE_EXTENDED 1
8867 #include <errno.h>
8868 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8869 #include <stdio.h>
8870 #include <stdlib.h>
8871
8872 int
8873 main ()
8874 {
8875 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
8876 test_array [0] = 0
8877
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext
8883 if { (ac_try="$ac_compile"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890   (eval "$ac_compile") 2>conftest.er1
8891   ac_status=$?
8892   grep -v '^ *+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } && {
8897          test -z "$ac_c_werror_flag" ||
8898          test ! -s conftest.err
8899        } && test -s conftest.$ac_objext; then
8900   ac_lo=0 ac_mid=0
8901   while :; do
8902     cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 #define _XOPEN_SOURCE_EXTENDED 1
8910 #include <errno.h>
8911 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8912 #include <stdio.h>
8913 #include <stdlib.h>
8914
8915 int
8916 main ()
8917 {
8918 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8919 test_array [0] = 0
8920
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8927 case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933   (eval "$ac_compile") 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } && {
8940          test -z "$ac_c_werror_flag" ||
8941          test ! -s conftest.err
8942        } && test -s conftest.$ac_objext; then
8943   ac_hi=$ac_mid; break
8944 else
8945   $as_echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948         ac_lo=`expr $ac_mid + 1`
8949                         if test $ac_lo -le $ac_mid; then
8950                           ac_lo= ac_hi=
8951                           break
8952                         fi
8953                         ac_mid=`expr 2 '*' $ac_mid + 1`
8954 fi
8955
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957   done
8958 else
8959   $as_echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962         cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968
8969 #define _XOPEN_SOURCE_EXTENDED 1
8970 #include <errno.h>
8971 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8972 #include <stdio.h>
8973 #include <stdlib.h>
8974
8975 int
8976 main ()
8977 {
8978 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8979 test_array [0] = 0
8980
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext
8986 if { (ac_try="$ac_compile"
8987 case "(($ac_try" in
8988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989   *) ac_try_echo=$ac_try;;
8990 esac
8991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8992 $as_echo "$ac_try_echo") >&5
8993   (eval "$ac_compile") 2>conftest.er1
8994   ac_status=$?
8995   grep -v '^ *+' conftest.er1 >conftest.err
8996   rm -f conftest.er1
8997   cat conftest.err >&5
8998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } && {
9000          test -z "$ac_c_werror_flag" ||
9001          test ! -s conftest.err
9002        } && test -s conftest.$ac_objext; then
9003   ac_hi=-1 ac_mid=-1
9004   while :; do
9005     cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011
9012 #define _XOPEN_SOURCE_EXTENDED 1
9013 #include <errno.h>
9014 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9015 #include <stdio.h>
9016 #include <stdlib.h>
9017
9018 int
9019 main ()
9020 {
9021 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
9022 test_array [0] = 0
9023
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032   *) ac_try_echo=$ac_try;;
9033 esac
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036   (eval "$ac_compile") 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } && {
9043          test -z "$ac_c_werror_flag" ||
9044          test ! -s conftest.err
9045        } && test -s conftest.$ac_objext; then
9046   ac_lo=$ac_mid; break
9047 else
9048   $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051         ac_hi=`expr '(' $ac_mid ')' - 1`
9052                         if test $ac_mid -le $ac_hi; then
9053                           ac_lo= ac_hi=
9054                           break
9055                         fi
9056                         ac_mid=`expr 2 '*' $ac_mid`
9057 fi
9058
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060   done
9061 else
9062   $as_echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065         ac_lo= ac_hi=
9066 fi
9067
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069 fi
9070
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 # Binary search between lo and hi bounds.
9073 while test "x$ac_lo" != "x$ac_hi"; do
9074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9075   cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081
9082 #define _XOPEN_SOURCE_EXTENDED 1
9083 #include <errno.h>
9084 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9085 #include <stdio.h>
9086 #include <stdlib.h>
9087
9088 int
9089 main ()
9090 {
9091 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9092 test_array [0] = 0
9093
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (ac_try="$ac_compile"
9100 case "(($ac_try" in
9101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102   *) ac_try_echo=$ac_try;;
9103 esac
9104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9105 $as_echo "$ac_try_echo") >&5
9106   (eval "$ac_compile") 2>conftest.er1
9107   ac_status=$?
9108   grep -v '^ *+' conftest.er1 >conftest.err
9109   rm -f conftest.er1
9110   cat conftest.err >&5
9111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); } && {
9113          test -z "$ac_c_werror_flag" ||
9114          test ! -s conftest.err
9115        } && test -s conftest.$ac_objext; then
9116   ac_hi=$ac_mid
9117 else
9118   $as_echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121         ac_lo=`expr '(' $ac_mid ')' + 1`
9122 fi
9123
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 done
9126 case $ac_lo in
9127 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
9128 '')  ;;
9129 esac
9130 else
9131   cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137
9138 #define _XOPEN_SOURCE_EXTENDED 1
9139 #include <errno.h>
9140 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9141 #include <stdio.h>
9142 #include <stdlib.h>
9143
9144 static long int longval () { return EOVERFLOW; }
9145 static unsigned long int ulongval () { return EOVERFLOW; }
9146 #include <stdio.h>
9147 #include <stdlib.h>
9148 int
9149 main ()
9150 {
9151
9152   FILE *f = fopen ("conftest.val", "w");
9153   if (! f)
9154     return 1;
9155   if ((EOVERFLOW) < 0)
9156     {
9157       long int i = longval ();
9158       if (i != (EOVERFLOW))
9159         return 1;
9160       fprintf (f, "%ld", i);
9161     }
9162   else
9163     {
9164       unsigned long int i = ulongval ();
9165       if (i != (EOVERFLOW))
9166         return 1;
9167       fprintf (f, "%lu", i);
9168     }
9169   /* Do not output a trailing newline, as this causes \r\n confusion
9170      on some platforms.  */
9171   return ferror (f) || fclose (f) != 0;
9172
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185   (eval "$ac_link") 2>&5
9186   ac_status=$?
9187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9189   { (case "(($ac_try" in
9190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191   *) ac_try_echo=$ac_try;;
9192 esac
9193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9194 $as_echo "$ac_try_echo") >&5
9195   (eval "$ac_try") 2>&5
9196   ac_status=$?
9197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
9200 else
9201   $as_echo "$as_me: program exited with status $ac_status" >&5
9202 $as_echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 fi
9206 rm -rf conftest.dSYM
9207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 rm -f conftest.val
9210         fi
9211       fi
9212
9213 fi
9214 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9215 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9216     case $gl_cv_header_errno_h_EOVERFLOW in
9217       yes | no)
9218         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9219         ;;
9220       *)
9221         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9222         ;;
9223     esac
9224
9225
9226   fi
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236   GNULIB_DPRINTF=0;
9237   GNULIB_FCLOSE=0;
9238   GNULIB_FFLUSH=0;
9239   GNULIB_FOPEN=0;
9240   GNULIB_FPRINTF=0;
9241   GNULIB_FPRINTF_POSIX=0;
9242   GNULIB_FPURGE=0;
9243   GNULIB_FPUTC=0;
9244   GNULIB_FPUTS=0;
9245   GNULIB_FREOPEN=0;
9246   GNULIB_FSEEK=0;
9247   GNULIB_FSEEKO=0;
9248   GNULIB_FTELL=0;
9249   GNULIB_FTELLO=0;
9250   GNULIB_FWRITE=0;
9251   GNULIB_GETDELIM=0;
9252   GNULIB_GETLINE=0;
9253   GNULIB_OBSTACK_PRINTF=0;
9254   GNULIB_OBSTACK_PRINTF_POSIX=0;
9255   GNULIB_PERROR=0;
9256   GNULIB_POPEN=0;
9257   GNULIB_PRINTF=0;
9258   GNULIB_PRINTF_POSIX=0;
9259   GNULIB_PUTC=0;
9260   GNULIB_PUTCHAR=0;
9261   GNULIB_PUTS=0;
9262   GNULIB_REMOVE=0;
9263   GNULIB_RENAME=0;
9264   GNULIB_RENAMEAT=0;
9265   GNULIB_SNPRINTF=0;
9266   GNULIB_SPRINTF_POSIX=0;
9267   GNULIB_STDIO_H_SIGPIPE=0;
9268   GNULIB_TMPFILE=0;
9269   GNULIB_VASPRINTF=0;
9270   GNULIB_VDPRINTF=0;
9271   GNULIB_VFPRINTF=0;
9272   GNULIB_VFPRINTF_POSIX=0;
9273   GNULIB_VPRINTF=0;
9274   GNULIB_VPRINTF_POSIX=0;
9275   GNULIB_VSNPRINTF=0;
9276   GNULIB_VSPRINTF_POSIX=0;
9277     HAVE_DECL_FPURGE=1;
9278   HAVE_DECL_GETDELIM=1;
9279   HAVE_DECL_GETLINE=1;
9280   HAVE_DECL_OBSTACK_PRINTF=1;
9281   HAVE_DECL_SNPRINTF=1;
9282   HAVE_DECL_VSNPRINTF=1;
9283   HAVE_DPRINTF=1;
9284   HAVE_FSEEKO=1;
9285   HAVE_FTELLO=1;
9286   HAVE_RENAMEAT=1;
9287   HAVE_VASPRINTF=1;
9288   HAVE_VDPRINTF=1;
9289   REPLACE_DPRINTF=0;
9290   REPLACE_FCLOSE=0;
9291   REPLACE_FFLUSH=0;
9292   REPLACE_FOPEN=0;
9293   REPLACE_FPRINTF=0;
9294   REPLACE_FPURGE=0;
9295   REPLACE_FREOPEN=0;
9296   REPLACE_FSEEK=0;
9297   REPLACE_FSEEKO=0;
9298   REPLACE_FTELL=0;
9299   REPLACE_FTELLO=0;
9300   REPLACE_GETDELIM=0;
9301   REPLACE_GETLINE=0;
9302   REPLACE_OBSTACK_PRINTF=0;
9303   REPLACE_PERROR=0;
9304   REPLACE_POPEN=0;
9305   REPLACE_PRINTF=0;
9306   REPLACE_REMOVE=0;
9307   REPLACE_RENAME=0;
9308   REPLACE_RENAMEAT=0;
9309   REPLACE_SNPRINTF=0;
9310   REPLACE_SPRINTF=0;
9311   REPLACE_STDIO_WRITE_FUNCS=0;
9312   REPLACE_TMPFILE=0;
9313   REPLACE_VASPRINTF=0;
9314   REPLACE_VDPRINTF=0;
9315   REPLACE_VFPRINTF=0;
9316   REPLACE_VPRINTF=0;
9317   REPLACE_VSNPRINTF=0;
9318   REPLACE_VSPRINTF=0;
9319
9320
9321
9322
9323
9324
9325   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
9326 $as_echo_n "checking for fseeko... " >&6; }
9327 if test "${gl_cv_func_fseeko+set}" = set; then
9328   $as_echo_n "(cached) " >&6
9329 else
9330
9331       cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h.  */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h.  */
9337 #include <stdio.h>
9338
9339 int
9340 main ()
9341 {
9342 fseeko (stdin, 0, 0);
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (ac_try="$ac_link"
9349 case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355   (eval "$ac_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_c_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest$ac_exeext && {
9365          test "$cross_compiling" = yes ||
9366          $as_test_x conftest$ac_exeext
9367        }; then
9368   gl_cv_func_fseeko=yes
9369 else
9370   $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373         gl_cv_func_fseeko=no
9374 fi
9375
9376 rm -rf conftest.dSYM
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378       conftest$ac_exeext conftest.$ac_ext
9379
9380 fi
9381 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
9382 $as_echo "$gl_cv_func_fseeko" >&6; }
9383
9384
9385     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
9386 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
9387 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
9388   $as_echo_n "(cached) " >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396 #include <stdio.h>
9397 int
9398 main ()
9399 {
9400 #if defined __SL64 && defined __SCLE /* cygwin */
9401   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
9402      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
9403      it is easier to do a version check than building a runtime test.  */
9404 # include <cygwin/version.h>
9405 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
9406   choke me
9407 # endif
9408 #endif
9409   ;
9410   return 0;
9411 }
9412 _ACEOF
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9415 case "(($ac_try" in
9416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417   *) ac_try_echo=$ac_try;;
9418 esac
9419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9420 $as_echo "$ac_try_echo") >&5
9421   (eval "$ac_link") 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } && {
9428          test -z "$ac_c_werror_flag" ||
9429          test ! -s conftest.err
9430        } && test -s conftest$ac_exeext && {
9431          test "$cross_compiling" = yes ||
9432          $as_test_x conftest$ac_exeext
9433        }; then
9434   gl_cv_var_stdin_large_offset=yes
9435 else
9436   $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439         gl_cv_var_stdin_large_offset=no
9440 fi
9441
9442 rm -rf conftest.dSYM
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444       conftest$ac_exeext conftest.$ac_ext
9445 fi
9446 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
9447 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
9448
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   GNULIB_SOCKET=0;
9475   GNULIB_CONNECT=0;
9476   GNULIB_ACCEPT=0;
9477   GNULIB_BIND=0;
9478   GNULIB_GETPEERNAME=0;
9479   GNULIB_GETSOCKNAME=0;
9480   GNULIB_GETSOCKOPT=0;
9481   GNULIB_LISTEN=0;
9482   GNULIB_RECV=0;
9483   GNULIB_SEND=0;
9484   GNULIB_RECVFROM=0;
9485   GNULIB_SENDTO=0;
9486   GNULIB_SETSOCKOPT=0;
9487   GNULIB_SHUTDOWN=0;
9488   GNULIB_ACCEPT4=0;
9489   HAVE_STRUCT_SOCKADDR_STORAGE=1;
9490   HAVE_SA_FAMILY_T=1;
9491   HAVE_ACCEPT4=1;
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
9504 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9505 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
9506   $as_echo_n "(cached) " >&6
9507 else
9508
9509       cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515 #include <sys/socket.h>
9516 int
9517 main ()
9518 {
9519
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 rm -f conftest.$ac_objext
9525 if { (ac_try="$ac_compile"
9526 case "(($ac_try" in
9527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528   *) ac_try_echo=$ac_try;;
9529 esac
9530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9531 $as_echo "$ac_try_echo") >&5
9532   (eval "$ac_compile") 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } && {
9539          test -z "$ac_c_werror_flag" ||
9540          test ! -s conftest.err
9541        } && test -s conftest.$ac_objext; then
9542   gl_cv_header_sys_socket_h_selfcontained=yes
9543 else
9544   $as_echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547         gl_cv_header_sys_socket_h_selfcontained=no
9548 fi
9549
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551
9552 fi
9553 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9554 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9555   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9556
9557 for ac_func in shutdown
9558 do
9559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9561 $as_echo_n "checking for $ac_func... " >&6; }
9562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9563   $as_echo_n "(cached) " >&6
9564 else
9565   cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h.  */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h.  */
9571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9573 #define $ac_func innocuous_$ac_func
9574
9575 /* System header to define __stub macros and hopefully few prototypes,
9576     which can conflict with char $ac_func (); below.
9577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9578     <limits.h> exists even on freestanding compilers.  */
9579
9580 #ifdef __STDC__
9581 # include <limits.h>
9582 #else
9583 # include <assert.h>
9584 #endif
9585
9586 #undef $ac_func
9587
9588 /* Override any GCC internal prototype to avoid an error.
9589    Use char because int might match the return type of a GCC
9590    builtin and then its argument prototype would still apply.  */
9591 #ifdef __cplusplus
9592 extern "C"
9593 #endif
9594 char $ac_func ();
9595 /* The GNU C library defines this for functions which it implements
9596     to always fail with ENOSYS.  Some functions are actually named
9597     something starting with __ and the normal name is an alias.  */
9598 #if defined __stub_$ac_func || defined __stub___$ac_func
9599 choke me
9600 #endif
9601
9602 int
9603 main ()
9604 {
9605 return $ac_func ();
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9612 case "(($ac_try" in
9613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614   *) ac_try_echo=$ac_try;;
9615 esac
9616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9617 $as_echo "$ac_try_echo") >&5
9618   (eval "$ac_link") 2>conftest.er1
9619   ac_status=$?
9620   grep -v '^ *+' conftest.er1 >conftest.err
9621   rm -f conftest.er1
9622   cat conftest.err >&5
9623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } && {
9625          test -z "$ac_c_werror_flag" ||
9626          test ! -s conftest.err
9627        } && test -s conftest$ac_exeext && {
9628          test "$cross_compiling" = yes ||
9629          $as_test_x conftest$ac_exeext
9630        }; then
9631   eval "$as_ac_var=yes"
9632 else
9633   $as_echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636         eval "$as_ac_var=no"
9637 fi
9638
9639 rm -rf conftest.dSYM
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641       conftest$ac_exeext conftest.$ac_ext
9642 fi
9643 ac_res=`eval 'as_val=${'$as_ac_var'}
9644                  $as_echo "$as_val"'`
9645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9646 $as_echo "$ac_res" >&6; }
9647 as_val=`eval 'as_val=${'$as_ac_var'}
9648                  $as_echo "$as_val"'`
9649    if test "x$as_val" = x""yes; then
9650   cat >>confdefs.h <<_ACEOF
9651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9652 _ACEOF
9653
9654 fi
9655 done
9656
9657     if test $ac_cv_func_shutdown = yes; then
9658       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9659 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9660 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
9661   $as_echo_n "(cached) " >&6
9662 else
9663
9664           cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670 #include <sys/socket.h>
9671 int
9672 main ()
9673 {
9674 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext
9680 if { (ac_try="$ac_compile"
9681 case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9686 $as_echo "$ac_try_echo") >&5
9687   (eval "$ac_compile") 2>conftest.er1
9688   ac_status=$?
9689   grep -v '^ *+' conftest.er1 >conftest.err
9690   rm -f conftest.er1
9691   cat conftest.err >&5
9692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); } && {
9694          test -z "$ac_c_werror_flag" ||
9695          test ! -s conftest.err
9696        } && test -s conftest.$ac_objext; then
9697   gl_cv_header_sys_socket_h_shut=yes
9698 else
9699   $as_echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702         gl_cv_header_sys_socket_h_shut=no
9703 fi
9704
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706
9707 fi
9708 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
9709 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9710       if test $gl_cv_header_sys_socket_h_shut = no; then
9711         SYS_SOCKET_H='sys/socket.h'
9712       fi
9713     fi
9714   fi
9715   # We need to check for ws2tcpip.h now.
9716
9717
9718
9719
9720
9721   :
9722
9723
9724
9725
9726
9727
9728
9729      if test $gl_cv_have_include_next = yes; then
9730        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9731      else
9732        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
9733 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9734 if test "${gl_cv_next_sys_socket_h+set}" = set; then
9735   $as_echo_n "(cached) " >&6
9736 else
9737
9738           if test $ac_cv_header_sys_socket_h = yes; then
9739             cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745 #include <sys/socket.h>
9746
9747 _ACEOF
9748                                                                                                 case "$host_os" in
9749               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9750               *)    gl_absname_cpp="$ac_cpp" ;;
9751             esac
9752                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9753                sed -n '\#/sys/socket.h#{
9754                  s#.*"\(.*/sys/socket.h\)".*#\1#
9755                  s#^/[^/]#//&#
9756                  p
9757                  q
9758                }'`'"'
9759           else
9760             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9761           fi
9762
9763 fi
9764 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
9765 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9766      fi
9767      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9768
9769      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9770        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9771        gl_next_as_first_directive='<'sys/socket.h'>'
9772      else
9773        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9774        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9775      fi
9776      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9777
9778
9779
9780   if test $ac_cv_header_sys_socket_h = yes; then
9781     HAVE_SYS_SOCKET_H=1
9782     HAVE_WS2TCPIP_H=0
9783   else
9784     HAVE_SYS_SOCKET_H=0
9785
9786 for ac_header in ws2tcpip.h
9787 do
9788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9790   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 $as_echo_n "checking for $ac_header... " >&6; }
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793   $as_echo_n "(cached) " >&6
9794 fi
9795 ac_res=`eval 'as_val=${'$as_ac_Header'}
9796                  $as_echo "$as_val"'`
9797                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9798 $as_echo "$ac_res" >&6; }
9799 else
9800   # Is the header compilable?
9801 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9802 $as_echo_n "checking $ac_header usability... " >&6; }
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809 $ac_includes_default
9810 #include <$ac_header>
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (ac_try="$ac_compile"
9814 case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9819 $as_echo "$ac_try_echo") >&5
9820   (eval "$ac_compile") 2>conftest.er1
9821   ac_status=$?
9822   grep -v '^ *+' conftest.er1 >conftest.err
9823   rm -f conftest.er1
9824   cat conftest.err >&5
9825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } && {
9827          test -z "$ac_c_werror_flag" ||
9828          test ! -s conftest.err
9829        } && test -s conftest.$ac_objext; then
9830   ac_header_compiler=yes
9831 else
9832   $as_echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835         ac_header_compiler=no
9836 fi
9837
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9840 $as_echo "$ac_header_compiler" >&6; }
9841
9842 # Is the header present?
9843 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9844 $as_echo_n "checking $ac_header presence... " >&6; }
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851 #include <$ac_header>
9852 _ACEOF
9853 if { (ac_try="$ac_cpp conftest.$ac_ext"
9854 case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9859 $as_echo "$ac_try_echo") >&5
9860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } >/dev/null && {
9867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9868          test ! -s conftest.err
9869        }; then
9870   ac_header_preproc=yes
9871 else
9872   $as_echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875   ac_header_preproc=no
9876 fi
9877
9878 rm -f conftest.err conftest.$ac_ext
9879 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9880 $as_echo "$ac_header_preproc" >&6; }
9881
9882 # So?  What about this header?
9883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9884   yes:no: )
9885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9886 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9888 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9889     ac_header_preproc=yes
9890     ;;
9891   no:yes:* )
9892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9893 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9894     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9895 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9896     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9897 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9899 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9903 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9904
9905     ;;
9906 esac
9907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9908 $as_echo_n "checking for $ac_header... " >&6; }
9909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9910   $as_echo_n "(cached) " >&6
9911 else
9912   eval "$as_ac_Header=\$ac_header_preproc"
9913 fi
9914 ac_res=`eval 'as_val=${'$as_ac_Header'}
9915                  $as_echo "$as_val"'`
9916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9917 $as_echo "$ac_res" >&6; }
9918
9919 fi
9920 as_val=`eval 'as_val=${'$as_ac_Header'}
9921                  $as_echo "$as_val"'`
9922    if test "x$as_val" = x""yes; then
9923   cat >>confdefs.h <<_ACEOF
9924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9925 _ACEOF
9926
9927 fi
9928
9929 done
9930
9931     if test $ac_cv_header_ws2tcpip_h = yes; then
9932       HAVE_WS2TCPIP_H=1
9933     else
9934       HAVE_WS2TCPIP_H=0
9935     fi
9936   fi
9937
9938
9939
9940   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9941 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
9942 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9943   $as_echo_n "(cached) " >&6
9944 else
9945   ac_cv_type_struct_sockaddr_storage=no
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952
9953   /* sys/types.h is not needed according to POSIX, but the
9954      sys/socket.h in i386-unknown-freebsd4.10 and
9955      powerpc-apple-darwin5.5 required it. */
9956 #include <sys/types.h>
9957 #ifdef HAVE_SYS_SOCKET_H
9958 #include <sys/socket.h>
9959 #endif
9960 #ifdef HAVE_WS2TCPIP_H
9961 #include <ws2tcpip.h>
9962 #endif
9963
9964
9965 int
9966 main ()
9967 {
9968 if (sizeof (struct sockaddr_storage))
9969        return 0;
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext
9975 if { (ac_try="$ac_compile"
9976 case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9981 $as_echo "$ac_try_echo") >&5
9982   (eval "$ac_compile") 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } && {
9989          test -z "$ac_c_werror_flag" ||
9990          test ! -s conftest.err
9991        } && test -s conftest.$ac_objext; then
9992   cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998
9999   /* sys/types.h is not needed according to POSIX, but the
10000      sys/socket.h in i386-unknown-freebsd4.10 and
10001      powerpc-apple-darwin5.5 required it. */
10002 #include <sys/types.h>
10003 #ifdef HAVE_SYS_SOCKET_H
10004 #include <sys/socket.h>
10005 #endif
10006 #ifdef HAVE_WS2TCPIP_H
10007 #include <ws2tcpip.h>
10008 #endif
10009
10010
10011 int
10012 main ()
10013 {
10014 if (sizeof ((struct sockaddr_storage)))
10015           return 0;
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (ac_try="$ac_compile"
10022 case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027 $as_echo "$ac_try_echo") >&5
10028   (eval "$ac_compile") 2>conftest.er1
10029   ac_status=$?
10030   grep -v '^ *+' conftest.er1 >conftest.err
10031   rm -f conftest.er1
10032   cat conftest.err >&5
10033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } && {
10035          test -z "$ac_c_werror_flag" ||
10036          test ! -s conftest.err
10037        } && test -s conftest.$ac_objext; then
10038   :
10039 else
10040   $as_echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043         ac_cv_type_struct_sockaddr_storage=yes
10044 fi
10045
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 else
10048   $as_echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051
10052 fi
10053
10054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 fi
10056 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10057 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
10058 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
10059
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10062 _ACEOF
10063
10064
10065 fi
10066 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
10067 $as_echo_n "checking for sa_family_t... " >&6; }
10068 if test "${ac_cv_type_sa_family_t+set}" = set; then
10069   $as_echo_n "(cached) " >&6
10070 else
10071   ac_cv_type_sa_family_t=no
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078
10079   /* sys/types.h is not needed according to POSIX, but the
10080      sys/socket.h in i386-unknown-freebsd4.10 and
10081      powerpc-apple-darwin5.5 required it. */
10082 #include <sys/types.h>
10083 #ifdef HAVE_SYS_SOCKET_H
10084 #include <sys/socket.h>
10085 #endif
10086 #ifdef HAVE_WS2TCPIP_H
10087 #include <ws2tcpip.h>
10088 #endif
10089
10090
10091 int
10092 main ()
10093 {
10094 if (sizeof (sa_family_t))
10095        return 0;
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108   (eval "$ac_compile") 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } && {
10115          test -z "$ac_c_werror_flag" ||
10116          test ! -s conftest.err
10117        } && test -s conftest.$ac_objext; then
10118   cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124
10125   /* sys/types.h is not needed according to POSIX, but the
10126      sys/socket.h in i386-unknown-freebsd4.10 and
10127      powerpc-apple-darwin5.5 required it. */
10128 #include <sys/types.h>
10129 #ifdef HAVE_SYS_SOCKET_H
10130 #include <sys/socket.h>
10131 #endif
10132 #ifdef HAVE_WS2TCPIP_H
10133 #include <ws2tcpip.h>
10134 #endif
10135
10136
10137 int
10138 main ()
10139 {
10140 if (sizeof ((sa_family_t)))
10141           return 0;
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154   (eval "$ac_compile") 2>conftest.er1
10155   ac_status=$?
10156   grep -v '^ *+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } && {
10161          test -z "$ac_c_werror_flag" ||
10162          test ! -s conftest.err
10163        } && test -s conftest.$ac_objext; then
10164   :
10165 else
10166   $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169         ac_cv_type_sa_family_t=yes
10170 fi
10171
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 else
10174   $as_echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177
10178 fi
10179
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181 fi
10182 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
10183 $as_echo "$ac_cv_type_sa_family_t" >&6; }
10184 if test "x$ac_cv_type_sa_family_t" = x""yes; then
10185
10186 cat >>confdefs.h <<_ACEOF
10187 #define HAVE_SA_FAMILY_T 1
10188 _ACEOF
10189
10190
10191 fi
10192
10193   if test $ac_cv_type_struct_sockaddr_storage = no; then
10194     HAVE_STRUCT_SOCKADDR_STORAGE=0
10195   fi
10196   if test $ac_cv_type_sa_family_t = no; then
10197     HAVE_SA_FAMILY_T=0
10198   fi
10199
10200
10201
10202
10203   :
10204
10205
10206
10207
10208
10209   if test $ac_cv_header_sys_socket_h != yes; then
10210
10211 for ac_header in winsock2.h
10212 do
10213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10215   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 $as_echo_n "checking for $ac_header... " >&6; }
10217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10218   $as_echo_n "(cached) " >&6
10219 fi
10220 ac_res=`eval 'as_val=${'$as_ac_Header'}
10221                  $as_echo "$as_val"'`
10222                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10223 $as_echo "$ac_res" >&6; }
10224 else
10225   # Is the header compilable?
10226 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10227 $as_echo_n "checking $ac_header usability... " >&6; }
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h.  */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h.  */
10234 $ac_includes_default
10235 #include <$ac_header>
10236 _ACEOF
10237 rm -f conftest.$ac_objext
10238 if { (ac_try="$ac_compile"
10239 case "(($ac_try" in
10240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241   *) ac_try_echo=$ac_try;;
10242 esac
10243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244 $as_echo "$ac_try_echo") >&5
10245   (eval "$ac_compile") 2>conftest.er1
10246   ac_status=$?
10247   grep -v '^ *+' conftest.er1 >conftest.err
10248   rm -f conftest.er1
10249   cat conftest.err >&5
10250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); } && {
10252          test -z "$ac_c_werror_flag" ||
10253          test ! -s conftest.err
10254        } && test -s conftest.$ac_objext; then
10255   ac_header_compiler=yes
10256 else
10257   $as_echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260         ac_header_compiler=no
10261 fi
10262
10263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10265 $as_echo "$ac_header_compiler" >&6; }
10266
10267 # Is the header present?
10268 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10269 $as_echo_n "checking $ac_header presence... " >&6; }
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276 #include <$ac_header>
10277 _ACEOF
10278 if { (ac_try="$ac_cpp conftest.$ac_ext"
10279 case "(($ac_try" in
10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281   *) ac_try_echo=$ac_try;;
10282 esac
10283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10284 $as_echo "$ac_try_echo") >&5
10285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } >/dev/null && {
10292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10293          test ! -s conftest.err
10294        }; then
10295   ac_header_preproc=yes
10296 else
10297   $as_echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300   ac_header_preproc=no
10301 fi
10302
10303 rm -f conftest.err conftest.$ac_ext
10304 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10305 $as_echo "$ac_header_preproc" >&6; }
10306
10307 # So?  What about this header?
10308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10309   yes:no: )
10310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10314     ac_header_preproc=yes
10315     ;;
10316   no:yes:* )
10317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10320 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10324 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10329
10330     ;;
10331 esac
10332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10333 $as_echo_n "checking for $ac_header... " >&6; }
10334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10335   $as_echo_n "(cached) " >&6
10336 else
10337   eval "$as_ac_Header=\$ac_header_preproc"
10338 fi
10339 ac_res=`eval 'as_val=${'$as_ac_Header'}
10340                  $as_echo "$as_val"'`
10341                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10342 $as_echo "$ac_res" >&6; }
10343
10344 fi
10345 as_val=`eval 'as_val=${'$as_ac_Header'}
10346                  $as_echo "$as_val"'`
10347    if test "x$as_val" = x""yes; then
10348   cat >>confdefs.h <<_ACEOF
10349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10350 _ACEOF
10351
10352 fi
10353
10354 done
10355
10356   fi
10357   if test "$ac_cv_header_winsock2_h" = yes; then
10358     HAVE_WINSOCK2_H=1
10359     UNISTD_H_HAVE_WINSOCK2_H=1
10360     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10361   else
10362     HAVE_WINSOCK2_H=0
10363   fi
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383   for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
10384     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10385     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10386 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10387 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10388   $as_echo_n "(cached) " >&6
10389 else
10390   cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396
10397 /* Some systems require prerequisite headers.  */
10398 #include <sys/types.h>
10399 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
10400 # include <sys/time.h>
10401 #endif
10402 #include <sys/select.h>
10403
10404 int
10405 main ()
10406 {
10407 #undef $gl_func
10408   (void) $gl_func;
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext
10414 if { (ac_try="$ac_compile"
10415 case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10420 $as_echo "$ac_try_echo") >&5
10421   (eval "$ac_compile") 2>conftest.er1
10422   ac_status=$?
10423   grep -v '^ *+' conftest.er1 >conftest.err
10424   rm -f conftest.er1
10425   cat conftest.err >&5
10426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); } && {
10428          test -z "$ac_c_werror_flag" ||
10429          test ! -s conftest.err
10430        } && test -s conftest.$ac_objext; then
10431   eval "$as_gl_Symbol=yes"
10432 else
10433   $as_echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436         eval "$as_gl_Symbol=no"
10437 fi
10438
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10442                  $as_echo "$as_val"'`
10443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10444 $as_echo "$ac_res" >&6; }
10445      as_val=`eval 'as_val=${'$as_gl_Symbol'}
10446                  $as_echo "$as_val"'`
10447    if test "x$as_val" = x""yes; then
10448   cat >>confdefs.h <<_ACEOF
10449 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10450 _ACEOF
10451
10452                      eval ac_cv_have_decl_$gl_func=yes
10453 fi
10454
10455       done
10456
10457
10458
10459   GNULIB_GETADDRINFO=0;
10460     HAVE_STRUCT_ADDRINFO=1;
10461   HAVE_DECL_FREEADDRINFO=1;
10462   HAVE_DECL_GAI_STRERROR=1;
10463   HAVE_DECL_GETADDRINFO=1;
10464   HAVE_DECL_GETNAMEINFO=1;
10465
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      if test $gl_cv_have_include_next = yes; then
10494        gl_cv_next_netdb_h='<'netdb.h'>'
10495      else
10496        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
10497 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
10498 if test "${gl_cv_next_netdb_h+set}" = set; then
10499   $as_echo_n "(cached) " >&6
10500 else
10501
10502           if test $ac_cv_header_netdb_h = yes; then
10503             cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 #include <netdb.h>
10510
10511 _ACEOF
10512                                                                                                 case "$host_os" in
10513               aix*) gl_absname_cpp="$ac_cpp -C" ;;
10514               *)    gl_absname_cpp="$ac_cpp" ;;
10515             esac
10516                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10517                sed -n '\#/netdb.h#{
10518                  s#.*"\(.*/netdb.h\)".*#\1#
10519                  s#^/[^/]#//&#
10520                  p
10521                  q
10522                }'`'"'
10523           else
10524             gl_cv_next_netdb_h='<'netdb.h'>'
10525           fi
10526
10527 fi
10528 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
10529 $as_echo "$gl_cv_next_netdb_h" >&6; }
10530      fi
10531      NEXT_NETDB_H=$gl_cv_next_netdb_h
10532
10533      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10534        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10535        gl_next_as_first_directive='<'netdb.h'>'
10536      else
10537        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10538        gl_next_as_first_directive=$gl_cv_next_netdb_h
10539      fi
10540      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
10541
10542
10543
10544   if test $ac_cv_header_netdb_h = yes; then
10545     HAVE_NETDB_H=1
10546   else
10547     HAVE_NETDB_H=0
10548   fi
10549
10550
10551
10552
10553
10554
10555
10556   for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
10557     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10558     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10559 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10560 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10561   $as_echo_n "(cached) " >&6
10562 else
10563   cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569 #include <netdb.h>
10570 int
10571 main ()
10572 {
10573 #undef $gl_func
10574   (void) $gl_func;
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583   *) ac_try_echo=$ac_try;;
10584 esac
10585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586 $as_echo "$ac_try_echo") >&5
10587   (eval "$ac_compile") 2>conftest.er1
10588   ac_status=$?
10589   grep -v '^ *+' conftest.er1 >conftest.err
10590   rm -f conftest.er1
10591   cat conftest.err >&5
10592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); } && {
10594          test -z "$ac_c_werror_flag" ||
10595          test ! -s conftest.err
10596        } && test -s conftest.$ac_objext; then
10597   eval "$as_gl_Symbol=yes"
10598 else
10599   $as_echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602         eval "$as_gl_Symbol=no"
10603 fi
10604
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 fi
10607 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10608                  $as_echo "$as_val"'`
10609                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10610 $as_echo "$ac_res" >&6; }
10611      as_val=`eval 'as_val=${'$as_gl_Symbol'}
10612                  $as_echo "$as_val"'`
10613    if test "x$as_val" = x""yes; then
10614   cat >>confdefs.h <<_ACEOF
10615 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10616 _ACEOF
10617
10618                      eval ac_cv_have_decl_$gl_func=yes
10619 fi
10620
10621       done
10622
10623
10624
10625                   HOSTENT_LIB=
10626   gl_saved_libs="$LIBS"
10627   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10628 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10629 if test "${ac_cv_search_gethostbyname+set}" = set; then
10630   $as_echo_n "(cached) " >&6
10631 else
10632   ac_func_search_save_LIBS=$LIBS
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639
10640 /* Override any GCC internal prototype to avoid an error.
10641    Use char because int might match the return type of a GCC
10642    builtin and then its argument prototype would still apply.  */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 char gethostbyname ();
10647 int
10648 main ()
10649 {
10650 return gethostbyname ();
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 for ac_lib in '' nsl network net; do
10656   if test -z "$ac_lib"; then
10657     ac_res="none required"
10658   else
10659     ac_res=-l$ac_lib
10660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10661   fi
10662   rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670   (eval "$ac_link") 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && {
10677          test -z "$ac_c_werror_flag" ||
10678          test ! -s conftest.err
10679        } && test -s conftest$ac_exeext && {
10680          test "$cross_compiling" = yes ||
10681          $as_test_x conftest$ac_exeext
10682        }; then
10683   ac_cv_search_gethostbyname=$ac_res
10684 else
10685   $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688
10689 fi
10690
10691 rm -rf conftest.dSYM
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693       conftest$ac_exeext
10694   if test "${ac_cv_search_gethostbyname+set}" = set; then
10695   break
10696 fi
10697 done
10698 if test "${ac_cv_search_gethostbyname+set}" = set; then
10699   :
10700 else
10701   ac_cv_search_gethostbyname=no
10702 fi
10703 rm conftest.$ac_ext
10704 LIBS=$ac_func_search_save_LIBS
10705 fi
10706 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10707 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10708 ac_res=$ac_cv_search_gethostbyname
10709 if test "$ac_res" != no; then
10710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10711   if test "$ac_cv_search_gethostbyname" != "none required"; then
10712        HOSTENT_LIB="$ac_cv_search_gethostbyname"
10713      fi
10714 fi
10715
10716   LIBS="$gl_saved_libs"
10717   if test -z "$HOSTENT_LIB"; then
10718
10719 for ac_func in gethostbyname
10720 do
10721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10723 $as_echo_n "checking for $ac_func... " >&6; }
10724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10725   $as_echo_n "(cached) " >&6
10726 else
10727   cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10735 #define $ac_func innocuous_$ac_func
10736
10737 /* System header to define __stub macros and hopefully few prototypes,
10738     which can conflict with char $ac_func (); below.
10739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10740     <limits.h> exists even on freestanding compilers.  */
10741
10742 #ifdef __STDC__
10743 # include <limits.h>
10744 #else
10745 # include <assert.h>
10746 #endif
10747
10748 #undef $ac_func
10749
10750 /* Override any GCC internal prototype to avoid an error.
10751    Use char because int might match the return type of a GCC
10752    builtin and then its argument prototype would still apply.  */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char $ac_func ();
10757 /* The GNU C library defines this for functions which it implements
10758     to always fail with ENOSYS.  Some functions are actually named
10759     something starting with __ and the normal name is an alias.  */
10760 #if defined __stub_$ac_func || defined __stub___$ac_func
10761 choke me
10762 #endif
10763
10764 int
10765 main ()
10766 {
10767 return $ac_func ();
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780   (eval "$ac_link") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } && {
10787          test -z "$ac_c_werror_flag" ||
10788          test ! -s conftest.err
10789        } && test -s conftest$ac_exeext && {
10790          test "$cross_compiling" = yes ||
10791          $as_test_x conftest$ac_exeext
10792        }; then
10793   eval "$as_ac_var=yes"
10794 else
10795   $as_echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         eval "$as_ac_var=no"
10799 fi
10800
10801 rm -rf conftest.dSYM
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803       conftest$ac_exeext conftest.$ac_ext
10804 fi
10805 ac_res=`eval 'as_val=${'$as_ac_var'}
10806                  $as_echo "$as_val"'`
10807                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10808 $as_echo "$ac_res" >&6; }
10809 as_val=`eval 'as_val=${'$as_ac_var'}
10810                  $as_echo "$as_val"'`
10811    if test "x$as_val" = x""yes; then
10812   cat >>confdefs.h <<_ACEOF
10813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 else
10817
10818       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10819 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10820 if test "${gl_cv_w32_gethostbyname+set}" = set; then
10821   $as_echo_n "(cached) " >&6
10822 else
10823   gl_cv_w32_gethostbyname=no
10824          gl_save_LIBS="$LIBS"
10825          LIBS="$LIBS -lws2_32"
10826          cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832
10833 #ifdef HAVE_WINSOCK2_H
10834 #include <winsock2.h>
10835 #endif
10836 #include <stddef.h>
10837
10838 int
10839 main ()
10840 {
10841 gethostbyname(NULL);
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10853 $as_echo "$ac_try_echo") >&5
10854   (eval "$ac_link") 2>conftest.er1
10855   ac_status=$?
10856   grep -v '^ *+' conftest.er1 >conftest.err
10857   rm -f conftest.er1
10858   cat conftest.err >&5
10859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } && {
10861          test -z "$ac_c_werror_flag" ||
10862          test ! -s conftest.err
10863        } && test -s conftest$ac_exeext && {
10864          test "$cross_compiling" = yes ||
10865          $as_test_x conftest$ac_exeext
10866        }; then
10867   gl_cv_w32_gethostbyname=yes
10868 else
10869   $as_echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872
10873 fi
10874
10875 rm -rf conftest.dSYM
10876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10877       conftest$ac_exeext conftest.$ac_ext
10878          LIBS="$gl_save_LIBS"
10879
10880 fi
10881 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
10882 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
10883       if test "$gl_cv_w32_gethostbyname" = "yes"; then
10884         HOSTENT_LIB="-lws2_32"
10885       fi
10886
10887 fi
10888 done
10889
10890   fi
10891
10892
10893
10894                       SERVENT_LIB=
10895   gl_saved_libs="$LIBS"
10896   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
10897 $as_echo_n "checking for library containing getservbyname... " >&6; }
10898 if test "${ac_cv_search_getservbyname+set}" = set; then
10899   $as_echo_n "(cached) " >&6
10900 else
10901   ac_func_search_save_LIBS=$LIBS
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910    Use char because int might match the return type of a GCC
10911    builtin and then its argument prototype would still apply.  */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char getservbyname ();
10916 int
10917 main ()
10918 {
10919 return getservbyname ();
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 for ac_lib in '' socket network net; do
10925   if test -z "$ac_lib"; then
10926     ac_res="none required"
10927   else
10928     ac_res=-l$ac_lib
10929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10930   fi
10931   rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (ac_try="$ac_link"
10933 case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939   (eval "$ac_link") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } && {
10946          test -z "$ac_c_werror_flag" ||
10947          test ! -s conftest.err
10948        } && test -s conftest$ac_exeext && {
10949          test "$cross_compiling" = yes ||
10950          $as_test_x conftest$ac_exeext
10951        }; then
10952   ac_cv_search_getservbyname=$ac_res
10953 else
10954   $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957
10958 fi
10959
10960 rm -rf conftest.dSYM
10961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10962       conftest$ac_exeext
10963   if test "${ac_cv_search_getservbyname+set}" = set; then
10964   break
10965 fi
10966 done
10967 if test "${ac_cv_search_getservbyname+set}" = set; then
10968   :
10969 else
10970   ac_cv_search_getservbyname=no
10971 fi
10972 rm conftest.$ac_ext
10973 LIBS=$ac_func_search_save_LIBS
10974 fi
10975 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
10976 $as_echo "$ac_cv_search_getservbyname" >&6; }
10977 ac_res=$ac_cv_search_getservbyname
10978 if test "$ac_res" != no; then
10979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10980   if test "$ac_cv_search_getservbyname" != "none required"; then
10981        SERVENT_LIB="$ac_cv_search_getservbyname"
10982      fi
10983 fi
10984
10985   LIBS="$gl_saved_libs"
10986   if test -z "$SERVENT_LIB"; then
10987
10988 for ac_func in getservbyname
10989 do
10990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10991 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10992 $as_echo_n "checking for $ac_func... " >&6; }
10993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10994   $as_echo_n "(cached) " >&6
10995 else
10996   cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11004 #define $ac_func innocuous_$ac_func
11005
11006 /* System header to define __stub macros and hopefully few prototypes,
11007     which can conflict with char $ac_func (); below.
11008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11009     <limits.h> exists even on freestanding compilers.  */
11010
11011 #ifdef __STDC__
11012 # include <limits.h>
11013 #else
11014 # include <assert.h>
11015 #endif
11016
11017 #undef $ac_func
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020    Use char because int might match the return type of a GCC
11021    builtin and then its argument prototype would still apply.  */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char $ac_func ();
11026 /* The GNU C library defines this for functions which it implements
11027     to always fail with ENOSYS.  Some functions are actually named
11028     something starting with __ and the normal name is an alias.  */
11029 #if defined __stub_$ac_func || defined __stub___$ac_func
11030 choke me
11031 #endif
11032
11033 int
11034 main ()
11035 {
11036 return $ac_func ();
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11048 $as_echo "$ac_try_echo") >&5
11049   (eval "$ac_link") 2>conftest.er1
11050   ac_status=$?
11051   grep -v '^ *+' conftest.er1 >conftest.err
11052   rm -f conftest.er1
11053   cat conftest.err >&5
11054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } && {
11056          test -z "$ac_c_werror_flag" ||
11057          test ! -s conftest.err
11058        } && test -s conftest$ac_exeext && {
11059          test "$cross_compiling" = yes ||
11060          $as_test_x conftest$ac_exeext
11061        }; then
11062   eval "$as_ac_var=yes"
11063 else
11064   $as_echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         eval "$as_ac_var=no"
11068 fi
11069
11070 rm -rf conftest.dSYM
11071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11072       conftest$ac_exeext conftest.$ac_ext
11073 fi
11074 ac_res=`eval 'as_val=${'$as_ac_var'}
11075                  $as_echo "$as_val"'`
11076                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11077 $as_echo "$ac_res" >&6; }
11078 as_val=`eval 'as_val=${'$as_ac_var'}
11079                  $as_echo "$as_val"'`
11080    if test "x$as_val" = x""yes; then
11081   cat >>confdefs.h <<_ACEOF
11082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11083 _ACEOF
11084
11085 else
11086
11087       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
11088 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
11089 if test "${gl_cv_w32_getservbyname+set}" = set; then
11090   $as_echo_n "(cached) " >&6
11091 else
11092   gl_cv_w32_getservbyname=no
11093          gl_save_LIBS="$LIBS"
11094          LIBS="$LIBS -lws2_32"
11095          cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101
11102 #ifdef HAVE_WINSOCK2_H
11103 #include <winsock2.h>
11104 #endif
11105 #include <stddef.h>
11106
11107 int
11108 main ()
11109 {
11110 getservbyname(NULL,NULL);
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (ac_try="$ac_link"
11117 case "(($ac_try" in
11118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119   *) ac_try_echo=$ac_try;;
11120 esac
11121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122 $as_echo "$ac_try_echo") >&5
11123   (eval "$ac_link") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } && {
11130          test -z "$ac_c_werror_flag" ||
11131          test ! -s conftest.err
11132        } && test -s conftest$ac_exeext && {
11133          test "$cross_compiling" = yes ||
11134          $as_test_x conftest$ac_exeext
11135        }; then
11136   gl_cv_w32_getservbyname=yes
11137 else
11138   $as_echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141
11142 fi
11143
11144 rm -rf conftest.dSYM
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146       conftest$ac_exeext conftest.$ac_ext
11147          LIBS="$gl_save_LIBS"
11148
11149 fi
11150 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
11151 $as_echo "$gl_cv_w32_getservbyname" >&6; }
11152       if test "$gl_cv_w32_getservbyname" = "yes"; then
11153         SERVENT_LIB="-lws2_32"
11154       fi
11155
11156 fi
11157 done
11158
11159   fi
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171   :
11172
11173
11174
11175
11176
11177
11178   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
11179 $as_echo_n "checking for IPv4 sockets... " >&6; }
11180   if test "${gl_cv_socket_ipv4+set}" = set; then
11181   $as_echo_n "(cached) " >&6
11182 else
11183   cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 #include <sys/types.h>
11190 #ifdef HAVE_SYS_SOCKET_H
11191 #include <sys/socket.h>
11192 #endif
11193 #ifdef HAVE_NETINET_IN_H
11194 #include <netinet/in.h>
11195 #endif
11196 #ifdef HAVE_WINSOCK2_H
11197 #include <winsock2.h>
11198 #endif
11199 int
11200 main ()
11201 {
11202 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11203  if (&x && &y && &z) return 0;
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216   (eval "$ac_compile") 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } && {
11223          test -z "$ac_c_werror_flag" ||
11224          test ! -s conftest.err
11225        } && test -s conftest.$ac_objext; then
11226   gl_cv_socket_ipv4=yes
11227 else
11228   $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         gl_cv_socket_ipv4=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 fi
11236
11237   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
11238 $as_echo "$gl_cv_socket_ipv4" >&6; }
11239   if test $gl_cv_socket_ipv4 = yes; then
11240
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_IPV4 1
11243 _ACEOF
11244
11245   fi
11246
11247   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
11248 $as_echo_n "checking for IPv6 sockets... " >&6; }
11249   if test "${gl_cv_socket_ipv6+set}" = set; then
11250   $as_echo_n "(cached) " >&6
11251 else
11252   cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h.  */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h.  */
11258 #include <sys/types.h>
11259 #ifdef HAVE_SYS_SOCKET_H
11260 #include <sys/socket.h>
11261 #endif
11262 #ifdef HAVE_NETINET_IN_H
11263 #include <netinet/in.h>
11264 #endif
11265 #ifdef HAVE_WINSOCK2_H
11266 #include <winsock2.h>
11267 #endif
11268 #ifdef HAVE_WS2TCPIP_H
11269 #include <ws2tcpip.h>
11270 #endif
11271 int
11272 main ()
11273 {
11274 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11275  if (&x && &y && &z) return 0;
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11287 $as_echo "$ac_try_echo") >&5
11288   (eval "$ac_compile") 2>conftest.er1
11289   ac_status=$?
11290   grep -v '^ *+' conftest.er1 >conftest.err
11291   rm -f conftest.er1
11292   cat conftest.err >&5
11293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } && {
11295          test -z "$ac_c_werror_flag" ||
11296          test ! -s conftest.err
11297        } && test -s conftest.$ac_objext; then
11298   gl_cv_socket_ipv6=yes
11299 else
11300   $as_echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303         gl_cv_socket_ipv6=no
11304 fi
11305
11306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11307 fi
11308
11309   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
11310 $as_echo "$gl_cv_socket_ipv6" >&6; }
11311   if test $gl_cv_socket_ipv6 = yes; then
11312
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_IPV6 1
11315 _ACEOF
11316
11317   fi
11318
11319
11320
11321
11322
11323     :
11324
11325
11326       gl_save_LIBS=$LIBS
11327   { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
11328 $as_echo_n "checking for library containing inet_ntop... " >&6; }
11329 if test "${ac_cv_search_inet_ntop+set}" = set; then
11330   $as_echo_n "(cached) " >&6
11331 else
11332   ac_func_search_save_LIBS=$LIBS
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341    Use char because int might match the return type of a GCC
11342    builtin and then its argument prototype would still apply.  */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char inet_ntop ();
11347 int
11348 main ()
11349 {
11350 return inet_ntop ();
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 for ac_lib in '' nsl; do
11356   if test -z "$ac_lib"; then
11357     ac_res="none required"
11358   else
11359     ac_res=-l$ac_lib
11360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11361   fi
11362   rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366   *) ac_try_echo=$ac_try;;
11367 esac
11368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11369 $as_echo "$ac_try_echo") >&5
11370   (eval "$ac_link") 2>conftest.er1
11371   ac_status=$?
11372   grep -v '^ *+' conftest.er1 >conftest.err
11373   rm -f conftest.er1
11374   cat conftest.err >&5
11375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); } && {
11377          test -z "$ac_c_werror_flag" ||
11378          test ! -s conftest.err
11379        } && test -s conftest$ac_exeext && {
11380          test "$cross_compiling" = yes ||
11381          $as_test_x conftest$ac_exeext
11382        }; then
11383   ac_cv_search_inet_ntop=$ac_res
11384 else
11385   $as_echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388
11389 fi
11390
11391 rm -rf conftest.dSYM
11392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11393       conftest$ac_exeext
11394   if test "${ac_cv_search_inet_ntop+set}" = set; then
11395   break
11396 fi
11397 done
11398 if test "${ac_cv_search_inet_ntop+set}" = set; then
11399   :
11400 else
11401   ac_cv_search_inet_ntop=no
11402 fi
11403 rm conftest.$ac_ext
11404 LIBS=$ac_func_search_save_LIBS
11405 fi
11406 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
11407 $as_echo "$ac_cv_search_inet_ntop" >&6; }
11408 ac_res=$ac_cv_search_inet_ntop
11409 if test "$ac_res" != no; then
11410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11411
11412 else
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422 for ac_func in inet_ntop
11423 do
11424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11426 $as_echo_n "checking for $ac_func... " >&6; }
11427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11428   $as_echo_n "(cached) " >&6
11429 else
11430   cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h.  */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h.  */
11436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11438 #define $ac_func innocuous_$ac_func
11439
11440 /* System header to define __stub macros and hopefully few prototypes,
11441     which can conflict with char $ac_func (); below.
11442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443     <limits.h> exists even on freestanding compilers.  */
11444
11445 #ifdef __STDC__
11446 # include <limits.h>
11447 #else
11448 # include <assert.h>
11449 #endif
11450
11451 #undef $ac_func
11452
11453 /* Override any GCC internal prototype to avoid an error.
11454    Use char because int might match the return type of a GCC
11455    builtin and then its argument prototype would still apply.  */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char $ac_func ();
11460 /* The GNU C library defines this for functions which it implements
11461     to always fail with ENOSYS.  Some functions are actually named
11462     something starting with __ and the normal name is an alias.  */
11463 #if defined __stub_$ac_func || defined __stub___$ac_func
11464 choke me
11465 #endif
11466
11467 int
11468 main ()
11469 {
11470 return $ac_func ();
11471   ;
11472   return 0;
11473 }
11474 _ACEOF
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479   *) ac_try_echo=$ac_try;;
11480 esac
11481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11482 $as_echo "$ac_try_echo") >&5
11483   (eval "$ac_link") 2>conftest.er1
11484   ac_status=$?
11485   grep -v '^ *+' conftest.er1 >conftest.err
11486   rm -f conftest.er1
11487   cat conftest.err >&5
11488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } && {
11490          test -z "$ac_c_werror_flag" ||
11491          test ! -s conftest.err
11492        } && test -s conftest$ac_exeext && {
11493          test "$cross_compiling" = yes ||
11494          $as_test_x conftest$ac_exeext
11495        }; then
11496   eval "$as_ac_var=yes"
11497 else
11498   $as_echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501         eval "$as_ac_var=no"
11502 fi
11503
11504 rm -rf conftest.dSYM
11505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11506       conftest$ac_exeext conftest.$ac_ext
11507 fi
11508 ac_res=`eval 'as_val=${'$as_ac_var'}
11509                  $as_echo "$as_val"'`
11510                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11511 $as_echo "$ac_res" >&6; }
11512 as_val=`eval 'as_val=${'$as_ac_var'}
11513                  $as_echo "$as_val"'`
11514    if test "x$as_val" = x""yes; then
11515   cat >>confdefs.h <<_ACEOF
11516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11517 _ACEOF
11518
11519 else
11520
11521     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
11522
11523 fi
11524 done
11525
11526
11527 fi
11528
11529   LIBS=$gl_save_LIBS
11530   INET_NTOP_LIB=
11531   if test "$ac_cv_search_inet_ntop" != "no" &&
11532      test "$ac_cv_search_inet_ntop" != "none required"; then
11533     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
11534   fi
11535
11536
11537
11538   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
11539 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
11540 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
11541   $as_echo_n "(cached) " >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 #include <arpa/inet.h>
11550
11551 int
11552 main ()
11553 {
11554 #ifndef inet_ntop
11555   (void) inet_ntop;
11556 #endif
11557
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (ac_try="$ac_compile"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569 $as_echo "$ac_try_echo") >&5
11570   (eval "$ac_compile") 2>conftest.er1
11571   ac_status=$?
11572   grep -v '^ *+' conftest.er1 >conftest.err
11573   rm -f conftest.er1
11574   cat conftest.err >&5
11575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } && {
11577          test -z "$ac_c_werror_flag" ||
11578          test ! -s conftest.err
11579        } && test -s conftest.$ac_objext; then
11580   ac_cv_have_decl_inet_ntop=yes
11581 else
11582   $as_echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585         ac_cv_have_decl_inet_ntop=no
11586 fi
11587
11588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11589 fi
11590 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
11591 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
11592 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
11593
11594 cat >>confdefs.h <<_ACEOF
11595 #define HAVE_DECL_INET_NTOP 1
11596 _ACEOF
11597
11598
11599 else
11600   cat >>confdefs.h <<_ACEOF
11601 #define HAVE_DECL_INET_NTOP 0
11602 _ACEOF
11603
11604
11605 fi
11606
11607
11608   if test $ac_cv_have_decl_inet_ntop = no; then
11609     HAVE_DECL_INET_NTOP=0
11610   fi
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629   :
11630
11631
11632
11633
11634
11635
11636
11637      if test $gl_cv_have_include_next = yes; then
11638        gl_cv_next_getopt_h='<'getopt.h'>'
11639      else
11640        { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
11641 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11642 if test "${gl_cv_next_getopt_h+set}" = set; then
11643   $as_echo_n "(cached) " >&6
11644 else
11645
11646           if test $ac_cv_header_getopt_h = yes; then
11647             cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 #include <getopt.h>
11654
11655 _ACEOF
11656                                                                                                 case "$host_os" in
11657               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11658               *)    gl_absname_cpp="$ac_cpp" ;;
11659             esac
11660                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11661                sed -n '\#/getopt.h#{
11662                  s#.*"\(.*/getopt.h\)".*#\1#
11663                  s#^/[^/]#//&#
11664                  p
11665                  q
11666                }'`'"'
11667           else
11668             gl_cv_next_getopt_h='<'getopt.h'>'
11669           fi
11670
11671 fi
11672 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
11673 $as_echo "$gl_cv_next_getopt_h" >&6; }
11674      fi
11675      NEXT_GETOPT_H=$gl_cv_next_getopt_h
11676
11677      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11678        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11679        gl_next_as_first_directive='<'getopt.h'>'
11680      else
11681        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11682        gl_next_as_first_directive=$gl_cv_next_getopt_h
11683      fi
11684      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11685
11686
11687
11688
11689   :
11690
11691
11692
11693
11694
11695   if test $ac_cv_header_getopt_h = yes; then
11696     HAVE_GETOPT_H=1
11697   else
11698     HAVE_GETOPT_H=0
11699   fi
11700
11701
11702   gl_replace_getopt=
11703
11704     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11705
11706 for ac_header in getopt.h
11707 do
11708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11710   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11711 $as_echo_n "checking for $ac_header... " >&6; }
11712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11713   $as_echo_n "(cached) " >&6
11714 fi
11715 ac_res=`eval 'as_val=${'$as_ac_Header'}
11716                  $as_echo "$as_val"'`
11717                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11718 $as_echo "$ac_res" >&6; }
11719 else
11720   # Is the header compilable?
11721 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11722 $as_echo_n "checking $ac_header usability... " >&6; }
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h.  */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h.  */
11729 $ac_includes_default
11730 #include <$ac_header>
11731 _ACEOF
11732 rm -f conftest.$ac_objext
11733 if { (ac_try="$ac_compile"
11734 case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11739 $as_echo "$ac_try_echo") >&5
11740   (eval "$ac_compile") 2>conftest.er1
11741   ac_status=$?
11742   grep -v '^ *+' conftest.er1 >conftest.err
11743   rm -f conftest.er1
11744   cat conftest.err >&5
11745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } && {
11747          test -z "$ac_c_werror_flag" ||
11748          test ! -s conftest.err
11749        } && test -s conftest.$ac_objext; then
11750   ac_header_compiler=yes
11751 else
11752   $as_echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755         ac_header_compiler=no
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11760 $as_echo "$ac_header_compiler" >&6; }
11761
11762 # Is the header present?
11763 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11764 $as_echo_n "checking $ac_header presence... " >&6; }
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 #include <$ac_header>
11772 _ACEOF
11773 if { (ac_try="$ac_cpp conftest.$ac_ext"
11774 case "(($ac_try" in
11775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776   *) ac_try_echo=$ac_try;;
11777 esac
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } >/dev/null && {
11787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11788          test ! -s conftest.err
11789        }; then
11790   ac_header_preproc=yes
11791 else
11792   $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795   ac_header_preproc=no
11796 fi
11797
11798 rm -f conftest.err conftest.$ac_ext
11799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11800 $as_echo "$ac_header_preproc" >&6; }
11801
11802 # So?  What about this header?
11803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11804   yes:no: )
11805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11806 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11807     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11809     ac_header_preproc=yes
11810     ;;
11811   no:yes:* )
11812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11813 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11815 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11817 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11819 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11823 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11824
11825     ;;
11826 esac
11827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 $as_echo_n "checking for $ac_header... " >&6; }
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830   $as_echo_n "(cached) " >&6
11831 else
11832   eval "$as_ac_Header=\$ac_header_preproc"
11833 fi
11834 ac_res=`eval 'as_val=${'$as_ac_Header'}
11835                  $as_echo "$as_val"'`
11836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11837 $as_echo "$ac_res" >&6; }
11838
11839 fi
11840 as_val=`eval 'as_val=${'$as_ac_Header'}
11841                  $as_echo "$as_val"'`
11842    if test "x$as_val" = x""yes; then
11843   cat >>confdefs.h <<_ACEOF
11844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11845 _ACEOF
11846
11847 else
11848   gl_replace_getopt=yes
11849 fi
11850
11851 done
11852
11853   fi
11854
11855     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11856
11857 for ac_func in getopt_long_only
11858 do
11859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11861 $as_echo_n "checking for $ac_func... " >&6; }
11862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11863   $as_echo_n "(cached) " >&6
11864 else
11865   cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11873 #define $ac_func innocuous_$ac_func
11874
11875 /* System header to define __stub macros and hopefully few prototypes,
11876     which can conflict with char $ac_func (); below.
11877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878     <limits.h> exists even on freestanding compilers.  */
11879
11880 #ifdef __STDC__
11881 # include <limits.h>
11882 #else
11883 # include <assert.h>
11884 #endif
11885
11886 #undef $ac_func
11887
11888 /* Override any GCC internal prototype to avoid an error.
11889    Use char because int might match the return type of a GCC
11890    builtin and then its argument prototype would still apply.  */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char $ac_func ();
11895 /* The GNU C library defines this for functions which it implements
11896     to always fail with ENOSYS.  Some functions are actually named
11897     something starting with __ and the normal name is an alias.  */
11898 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 choke me
11900 #endif
11901
11902 int
11903 main ()
11904 {
11905 return $ac_func ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11917 $as_echo "$ac_try_echo") >&5
11918   (eval "$ac_link") 2>conftest.er1
11919   ac_status=$?
11920   grep -v '^ *+' conftest.er1 >conftest.err
11921   rm -f conftest.er1
11922   cat conftest.err >&5
11923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } && {
11925          test -z "$ac_c_werror_flag" ||
11926          test ! -s conftest.err
11927        } && test -s conftest$ac_exeext && {
11928          test "$cross_compiling" = yes ||
11929          $as_test_x conftest$ac_exeext
11930        }; then
11931   eval "$as_ac_var=yes"
11932 else
11933   $as_echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936         eval "$as_ac_var=no"
11937 fi
11938
11939 rm -rf conftest.dSYM
11940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11941       conftest$ac_exeext conftest.$ac_ext
11942 fi
11943 ac_res=`eval 'as_val=${'$as_ac_var'}
11944                  $as_echo "$as_val"'`
11945                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11946 $as_echo "$ac_res" >&6; }
11947 as_val=`eval 'as_val=${'$as_ac_var'}
11948                  $as_echo "$as_val"'`
11949    if test "x$as_val" = x""yes; then
11950   cat >>confdefs.h <<_ACEOF
11951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11952 _ACEOF
11953
11954 else
11955   gl_replace_getopt=yes
11956 fi
11957 done
11958
11959   fi
11960
11961               if test -z "$gl_replace_getopt"; then
11962     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11963 $as_echo_n "checking whether optreset is declared... " >&6; }
11964 if test "${ac_cv_have_decl_optreset+set}" = set; then
11965   $as_echo_n "(cached) " >&6
11966 else
11967   cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 #include <getopt.h>
11974
11975 int
11976 main ()
11977 {
11978 #ifndef optreset
11979   (void) optreset;
11980 #endif
11981
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11993 $as_echo "$ac_try_echo") >&5
11994   (eval "$ac_compile") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } && {
12001          test -z "$ac_c_werror_flag" ||
12002          test ! -s conftest.err
12003        } && test -s conftest.$ac_objext; then
12004   ac_cv_have_decl_optreset=yes
12005 else
12006   $as_echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009         ac_cv_have_decl_optreset=no
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
12015 $as_echo "$ac_cv_have_decl_optreset" >&6; }
12016 if test "x$ac_cv_have_decl_optreset" = x""yes; then
12017
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_DECL_OPTRESET 1
12020 _ACEOF
12021
12022
12023 else
12024   cat >>confdefs.h <<_ACEOF
12025 #define HAVE_DECL_OPTRESET 0
12026 _ACEOF
12027
12028 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
12029 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
12030 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
12031   $as_echo_n "(cached) " >&6
12032 else
12033   cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039 #include <getopt.h>
12040
12041 int
12042 main ()
12043 {
12044 #ifndef getopt_clip
12045   (void) getopt_clip;
12046 #endif
12047
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059 $as_echo "$ac_try_echo") >&5
12060   (eval "$ac_compile") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } && {
12067          test -z "$ac_c_werror_flag" ||
12068          test ! -s conftest.err
12069        } && test -s conftest.$ac_objext; then
12070   ac_cv_have_decl_getopt_clip=yes
12071 else
12072   $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075         ac_cv_have_decl_getopt_clip=no
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 fi
12080 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
12081 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
12082 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
12083
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_DECL_GETOPT_CLIP 1
12086 _ACEOF
12087
12088
12089 else
12090   cat >>confdefs.h <<_ACEOF
12091 #define HAVE_DECL_GETOPT_CLIP 0
12092 _ACEOF
12093
12094
12095 fi
12096
12097
12098
12099 fi
12100
12101
12102   fi
12103
12104                     if test -z "$gl_replace_getopt"; then
12105     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
12106 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
12107 if test "${gl_cv_func_getopt_posix+set}" = set; then
12108   $as_echo_n "(cached) " >&6
12109 else
12110
12111                 if test "$cross_compiling" = yes; then
12112   case "$host_os" in
12113              mingw*)         gl_cv_func_getopt_posix="guessing no";;
12114              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
12115              *)              gl_cv_func_getopt_posix="guessing yes";;
12116            esac
12117
12118 else
12119   cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125
12126 #include <unistd.h>
12127 #include <stdlib.h>
12128 #include <string.h>
12129
12130 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
12131 # define OPTIND_MIN 0
12132 #else
12133 # define OPTIND_MIN 1
12134 #endif
12135
12136 int
12137 main ()
12138 {
12139   {
12140     int argc = 0;
12141     char *argv[10];
12142     int c;
12143
12144     argv[argc++] = "program";
12145     argv[argc++] = "-a";
12146     argv[argc++] = "foo";
12147     argv[argc++] = "bar";
12148     argv[argc] = NULL;
12149     optind = OPTIND_MIN;
12150     opterr = 0;
12151
12152     c = getopt (argc, argv, "ab");
12153     if (!(c == 'a'))
12154       return 1;
12155     c = getopt (argc, argv, "ab");
12156     if (!(c == -1))
12157       return 2;
12158     if (!(optind == 2))
12159       return 3;
12160   }
12161   /* Some internal state exists at this point.  */
12162   {
12163     int argc = 0;
12164     char *argv[10];
12165     int c;
12166
12167     argv[argc++] = "program";
12168     argv[argc++] = "donald";
12169     argv[argc++] = "-p";
12170     argv[argc++] = "billy";
12171     argv[argc++] = "duck";
12172     argv[argc++] = "-a";
12173     argv[argc++] = "bar";
12174     argv[argc] = NULL;
12175     optind = OPTIND_MIN;
12176     opterr = 0;
12177
12178     c = getopt (argc, argv, "+abp:q:");
12179     if (!(c == -1))
12180       return 4;
12181     if (!(strcmp (argv[0], "program") == 0))
12182       return 5;
12183     if (!(strcmp (argv[1], "donald") == 0))
12184       return 6;
12185     if (!(strcmp (argv[2], "-p") == 0))
12186       return 7;
12187     if (!(strcmp (argv[3], "billy") == 0))
12188       return 8;
12189     if (!(strcmp (argv[4], "duck") == 0))
12190       return 9;
12191     if (!(strcmp (argv[5], "-a") == 0))
12192       return 10;
12193     if (!(strcmp (argv[6], "bar") == 0))
12194       return 11;
12195     if (!(optind == 1))
12196       return 12;
12197   }
12198   /* Detect MacOS 10.5, AIX 7.1 bug.  */
12199   {
12200     char *argv[3] = { "program", "-ab", NULL };
12201     optind = OPTIND_MIN;
12202     opterr = 0;
12203     if (getopt (2, argv, "ab:") != 'a')
12204       return 13;
12205     if (getopt (2, argv, "ab:") != '?')
12206       return 14;
12207     if (optopt != 'b')
12208       return 15;
12209     if (optind != 2)
12210       return 16;
12211   }
12212
12213   return 0;
12214 }
12215
12216 _ACEOF
12217 rm -f conftest$ac_exeext
12218 if { (ac_try="$ac_link"
12219 case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12224 $as_echo "$ac_try_echo") >&5
12225   (eval "$ac_link") 2>&5
12226   ac_status=$?
12227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12234 $as_echo "$ac_try_echo") >&5
12235   (eval "$ac_try") 2>&5
12236   ac_status=$?
12237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   gl_cv_func_getopt_posix=yes
12240 else
12241   $as_echo "$as_me: program exited with status $ac_status" >&5
12242 $as_echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ( exit $ac_status )
12246 gl_cv_func_getopt_posix=no
12247 fi
12248 rm -rf conftest.dSYM
12249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12250 fi
12251
12252
12253
12254 fi
12255 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
12256 $as_echo "$gl_cv_func_getopt_posix" >&6; }
12257     case "$gl_cv_func_getopt_posix" in
12258       *no) gl_replace_getopt=yes ;;
12259     esac
12260   fi
12261
12262   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12263     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
12264 $as_echo_n "checking for working GNU getopt function... " >&6; }
12265 if test "${gl_cv_func_getopt_gnu+set}" = set; then
12266   $as_echo_n "(cached) " >&6
12267 else
12268   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
12269        # optstring is necessary for programs like m4 that have POSIX-mandated
12270        # semantics for supporting options interspersed with files.
12271        # Also, since getopt_long is a GNU extension, we require optind=0.
12272        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
12273        # so take care to revert to the correct (non-)export state.
12274        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
12275        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
12276          xx) gl_had_POSIXLY_CORRECT=exported ;;
12277          x)  gl_had_POSIXLY_CORRECT=yes      ;;
12278          *)  gl_had_POSIXLY_CORRECT=         ;;
12279        esac
12280        POSIXLY_CORRECT=1
12281        export POSIXLY_CORRECT
12282        if test "$cross_compiling" = yes; then
12283            case $host_os:$ac_cv_have_decl_optreset in
12284            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
12285            *:yes)               gl_cv_func_getopt_gnu=no;;
12286            *)                   gl_cv_func_getopt_gnu=yes;;
12287          esac
12288
12289 else
12290   cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296 #include <getopt.h>
12297                            #include <stddef.h>
12298                            #include <string.h>
12299
12300 int
12301 main ()
12302 {
12303
12304              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
12305                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
12306                 OSF/1 5.1, Solaris 10.  */
12307              {
12308                char *myargv[3];
12309                myargv[0] = "conftest";
12310                myargv[1] = "-+";
12311                myargv[2] = 0;
12312                opterr = 0;
12313                if (getopt (2, myargv, "+a") != '?')
12314                  return 1;
12315              }
12316              /* This code succeeds on glibc 2.8, mingw,
12317                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
12318                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
12319              {
12320                char *argv[] = { "program", "-p", "foo", "bar", NULL };
12321
12322                optind = 1;
12323                if (getopt (4, argv, "p::") != 'p')
12324                  return 2;
12325                if (optarg != NULL)
12326                  return 3;
12327                if (getopt (4, argv, "p::") != -1)
12328                  return 4;
12329                if (optind != 2)
12330                  return 5;
12331              }
12332              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
12333              {
12334                char *argv[] = { "program", "foo", "-p", NULL };
12335                optind = 0;
12336                if (getopt (3, argv, "-p") != 1)
12337                  return 6;
12338                if (getopt (3, argv, "-p") != 'p')
12339                  return 7;
12340              }
12341              /* This code fails on glibc 2.11.  */
12342              {
12343                char *argv[] = { "program", "-b", "-a", NULL };
12344                optind = opterr = 0;
12345                if (getopt (3, argv, "+:a:b") != 'b')
12346                  return 8;
12347                if (getopt (3, argv, "+:a:b") != ':')
12348                  return 9;
12349              }
12350              return 0;
12351
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest$ac_exeext
12357 if { (ac_try="$ac_link"
12358 case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12363 $as_echo "$ac_try_echo") >&5
12364   (eval "$ac_link") 2>&5
12365   ac_status=$?
12366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12373 $as_echo "$ac_try_echo") >&5
12374   (eval "$ac_try") 2>&5
12375   ac_status=$?
12376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   gl_cv_func_getopt_gnu=yes
12379 else
12380   $as_echo "$as_me: program exited with status $ac_status" >&5
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ( exit $ac_status )
12385 gl_cv_func_getopt_gnu=no
12386 fi
12387 rm -rf conftest.dSYM
12388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12389 fi
12390
12391
12392        case $gl_had_POSIXLY_CORRECT in
12393          exported) ;;
12394          yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
12395          *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
12396        esac
12397
12398 fi
12399 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
12400 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
12401     if test "$gl_cv_func_getopt_gnu" = "no"; then
12402       gl_replace_getopt=yes
12403     fi
12404   fi
12405
12406
12407       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12408 $as_echo_n "checking whether getenv is declared... " >&6; }
12409 if test "${ac_cv_have_decl_getenv+set}" = set; then
12410   $as_echo_n "(cached) " >&6
12411 else
12412   cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418 $ac_includes_default
12419 int
12420 main ()
12421 {
12422 #ifndef getenv
12423   (void) getenv;
12424 #endif
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (ac_try="$ac_compile"
12432 case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12437 $as_echo "$ac_try_echo") >&5
12438   (eval "$ac_compile") 2>conftest.er1
12439   ac_status=$?
12440   grep -v '^ *+' conftest.er1 >conftest.err
12441   rm -f conftest.er1
12442   cat conftest.err >&5
12443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } && {
12445          test -z "$ac_c_werror_flag" ||
12446          test ! -s conftest.err
12447        } && test -s conftest.$ac_objext; then
12448   ac_cv_have_decl_getenv=yes
12449 else
12450   $as_echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453         ac_cv_have_decl_getenv=no
12454 fi
12455
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457 fi
12458 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12459 $as_echo "$ac_cv_have_decl_getenv" >&6; }
12460 if test "x$ac_cv_have_decl_getenv" = x""yes; then
12461
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_DECL_GETENV 1
12464 _ACEOF
12465
12466
12467 else
12468   cat >>confdefs.h <<_ACEOF
12469 #define HAVE_DECL_GETENV 0
12470 _ACEOF
12471
12472
12473 fi
12474
12475
12476
12477
12478
12479
12480
12481
12482   if test -n "$gl_replace_getopt"; then
12483
12484
12485
12486   GETOPT_H=getopt.h
12487
12488 cat >>confdefs.h <<\_ACEOF
12489 #define __GETOPT_PREFIX rpl_
12490 _ACEOF
12491
12492
12493
12494     GNULIB_UNISTD_H_GETOPT=1
12495
12496
12497
12498
12499
12500
12501
12502
12503   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
12514
12515
12516
12517   :
12518
12519
12520
12521
12522
12523
12524
12525
12526 fi
12527
12528
12529
12530
12531   GNULIB_GETTIMEOFDAY=0;
12532     HAVE_GETTIMEOFDAY=1;
12533   HAVE_STRUCT_TIMEVAL=1;
12534   HAVE_SYS_TIME_H=1;
12535   REPLACE_GETTIMEOFDAY=0;
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547   :
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557   :
12558
12559
12560
12561
12562
12563
12564
12565      if test $gl_cv_have_include_next = yes; then
12566        gl_cv_next_sys_time_h='<'sys/time.h'>'
12567      else
12568        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
12569 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
12570 if test "${gl_cv_next_sys_time_h+set}" = set; then
12571   $as_echo_n "(cached) " >&6
12572 else
12573
12574           if test $ac_cv_header_sys_time_h = yes; then
12575             cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581 #include <sys/time.h>
12582
12583 _ACEOF
12584                                                                                                 case "$host_os" in
12585               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12586               *)    gl_absname_cpp="$ac_cpp" ;;
12587             esac
12588                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12589                sed -n '\#/sys/time.h#{
12590                  s#.*"\(.*/sys/time.h\)".*#\1#
12591                  s#^/[^/]#//&#
12592                  p
12593                  q
12594                }'`'"'
12595           else
12596             gl_cv_next_sys_time_h='<'sys/time.h'>'
12597           fi
12598
12599 fi
12600 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
12601 $as_echo "$gl_cv_next_sys_time_h" >&6; }
12602      fi
12603      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
12604
12605      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12606        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12607        gl_next_as_first_directive='<'sys/time.h'>'
12608      else
12609        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12610        gl_next_as_first_directive=$gl_cv_next_sys_time_h
12611      fi
12612      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
12613
12614
12615
12616
12617   if test $ac_cv_header_sys_time_h != yes; then
12618     HAVE_SYS_TIME_H=0
12619   fi
12620
12621   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
12622 $as_echo_n "checking for struct timeval... " >&6; }
12623 if test "${gl_cv_sys_struct_timeval+set}" = set; then
12624   $as_echo_n "(cached) " >&6
12625 else
12626   cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h.  */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h.  */
12632 #if HAVE_SYS_TIME_H
12633              #include <sys/time.h>
12634             #endif
12635             #include <time.h>
12636
12637 int
12638 main ()
12639 {
12640 static struct timeval x; x.tv_sec = x.tv_usec;
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652 $as_echo "$ac_try_echo") >&5
12653   (eval "$ac_compile") 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } && {
12660          test -z "$ac_c_werror_flag" ||
12661          test ! -s conftest.err
12662        } && test -s conftest.$ac_objext; then
12663   gl_cv_sys_struct_timeval=yes
12664 else
12665   $as_echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668         gl_cv_sys_struct_timeval=no
12669 fi
12670
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 fi
12673 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
12674 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
12675   if test $gl_cv_sys_struct_timeval != yes; then
12676     HAVE_STRUCT_TIMEVAL=0
12677   fi
12678
12679
12680
12681   for gl_func in gettimeofday; do
12682     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12683     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
12684 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12685 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
12686   $as_echo_n "(cached) " >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694
12695 #if HAVE_SYS_TIME_H
12696 # include <sys/time.h>
12697 #endif
12698 #include <time.h>
12699
12700 int
12701 main ()
12702 {
12703 #undef $gl_func
12704   (void) $gl_func;
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12716 $as_echo "$ac_try_echo") >&5
12717   (eval "$ac_compile") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } && {
12724          test -z "$ac_c_werror_flag" ||
12725          test ! -s conftest.err
12726        } && test -s conftest.$ac_objext; then
12727   eval "$as_gl_Symbol=yes"
12728 else
12729   $as_echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732         eval "$as_gl_Symbol=no"
12733 fi
12734
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 fi
12737 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
12738                  $as_echo "$as_val"'`
12739                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12740 $as_echo "$ac_res" >&6; }
12741      as_val=`eval 'as_val=${'$as_gl_Symbol'}
12742                  $as_echo "$as_val"'`
12743    if test "x$as_val" = x""yes; then
12744   cat >>confdefs.h <<_ACEOF
12745 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12746 _ACEOF
12747
12748                      eval ac_cv_have_decl_$gl_func=yes
12749 fi
12750
12751       done
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764   GNULIB_NL_LANGINFO=0;
12765     HAVE_NL_LANGINFO=1;
12766   REPLACE_NL_LANGINFO=0;
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
12777 $as_echo_n "checking for working fcntl.h... " >&6; }
12778 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
12779   $as_echo_n "(cached) " >&6
12780 else
12781   if test "$cross_compiling" = yes; then
12782   gl_cv_header_working_fcntl_h=cross-compiling
12783 else
12784   cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790 #include <sys/types.h>
12791            #include <sys/stat.h>
12792            #include <unistd.h>
12793            #include <fcntl.h>
12794            #ifndef O_NOATIME
12795             #define O_NOATIME 0
12796            #endif
12797            #ifndef O_NOFOLLOW
12798             #define O_NOFOLLOW 0
12799            #endif
12800            static int const constants[] =
12801             {
12802               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12803               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12804             };
12805
12806 int
12807 main ()
12808 {
12809
12810             int status = !constants;
12811             {
12812               static char const sym[] = "conftest.sym";
12813               if (symlink (".", sym) != 0
12814                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
12815                 status |= 32;
12816               unlink (sym);
12817             }
12818             {
12819               static char const file[] = "confdefs.h";
12820               int fd = open (file, O_RDONLY | O_NOATIME);
12821               char c;
12822               struct stat st0, st1;
12823               if (fd < 0
12824                   || fstat (fd, &st0) != 0
12825                   || sleep (1) != 0
12826                   || read (fd, &c, 1) != 1
12827                   || close (fd) != 0
12828                   || stat (file, &st1) != 0
12829                   || st0.st_atime != st1.st_atime)
12830                 status |= 64;
12831             }
12832             return status;
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest$ac_exeext
12838 if { (ac_try="$ac_link"
12839 case "(($ac_try" in
12840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841   *) ac_try_echo=$ac_try;;
12842 esac
12843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844 $as_echo "$ac_try_echo") >&5
12845   (eval "$ac_link") 2>&5
12846   ac_status=$?
12847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12849   { (case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855   (eval "$ac_try") 2>&5
12856   ac_status=$?
12857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   gl_cv_header_working_fcntl_h=yes
12860 else
12861   $as_echo "$as_me: program exited with status $ac_status" >&5
12862 $as_echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ( exit $ac_status )
12866 case $? in #(
12867         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
12868         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
12869         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
12870          *) gl_cv_header_working_fcntl_h='no';;
12871         esac
12872 fi
12873 rm -rf conftest.dSYM
12874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12875 fi
12876
12877
12878 fi
12879 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
12880 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12881
12882   case $gl_cv_header_working_fcntl_h in #(
12883   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12884   *) ac_val=1;;
12885   esac
12886
12887 cat >>confdefs.h <<_ACEOF
12888 #define HAVE_WORKING_O_NOATIME $ac_val
12889 _ACEOF
12890
12891
12892   case $gl_cv_header_working_fcntl_h in #(
12893   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12894   *) ac_val=1;;
12895   esac
12896
12897 cat >>confdefs.h <<_ACEOF
12898 #define HAVE_WORKING_O_NOFOLLOW $ac_val
12899 _ACEOF
12900
12901
12902
12903       { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12904 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
12905 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12906   $as_echo_n "(cached) " >&6
12907 else
12908   cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h.  */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h.  */
12914 $ac_includes_default
12915 int
12916 main ()
12917 {
12918 #ifndef getc_unlocked
12919   (void) getc_unlocked;
12920 #endif
12921
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 rm -f conftest.$ac_objext
12927 if { (ac_try="$ac_compile"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933 $as_echo "$ac_try_echo") >&5
12934   (eval "$ac_compile") 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } && {
12941          test -z "$ac_c_werror_flag" ||
12942          test ! -s conftest.err
12943        } && test -s conftest.$ac_objext; then
12944   ac_cv_have_decl_getc_unlocked=yes
12945 else
12946   $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949         ac_cv_have_decl_getc_unlocked=no
12950 fi
12951
12952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 fi
12954 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12955 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
12956 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
12957
12958 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_DECL_GETC_UNLOCKED 1
12960 _ACEOF
12961
12962
12963 else
12964   cat >>confdefs.h <<_ACEOF
12965 #define HAVE_DECL_GETC_UNLOCKED 0
12966 _ACEOF
12967
12968
12969 fi
12970
12971
12972
12973
12974     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12975 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12976 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12977   $as_echo_n "(cached) " >&6
12978 else
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985
12986 #include <features.h>
12987 #ifdef __GNU_LIBRARY__
12988  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12989   Lucky GNU user
12990  #endif
12991 #endif
12992
12993 _ACEOF
12994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12995   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12996   ac_cv_gnu_library_2_1=yes
12997 else
12998   ac_cv_gnu_library_2_1=no
12999 fi
13000 rm -f conftest*
13001
13002
13003
13004 fi
13005 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13006 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13007
13008     GLIBC21="$ac_cv_gnu_library_2_1"
13009
13010
13011
13012       if test "X$prefix" = "XNONE"; then
13013     acl_final_prefix="$ac_default_prefix"
13014   else
13015     acl_final_prefix="$prefix"
13016   fi
13017   if test "X$exec_prefix" = "XNONE"; then
13018     acl_final_exec_prefix='${prefix}'
13019   else
13020     acl_final_exec_prefix="$exec_prefix"
13021   fi
13022   acl_save_prefix="$prefix"
13023   prefix="$acl_final_prefix"
13024   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13025   prefix="$acl_save_prefix"
13026
13027
13028 # Check whether --with-gnu-ld was given.
13029 if test "${with_gnu_ld+set}" = set; then
13030   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13031 else
13032   with_gnu_ld=no
13033 fi
13034
13035 # Prepare PATH_SEPARATOR.
13036 # The user is always right.
13037 if test "${PATH_SEPARATOR+set}" != set; then
13038   echo "#! /bin/sh" >conf$$.sh
13039   echo  "exit 0"   >>conf$$.sh
13040   chmod +x conf$$.sh
13041   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13042     PATH_SEPARATOR=';'
13043   else
13044     PATH_SEPARATOR=:
13045   fi
13046   rm -f conf$$.sh
13047 fi
13048 ac_prog=ld
13049 if test "$GCC" = yes; then
13050   # Check if gcc -print-prog-name=ld gives a path.
13051   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13052 $as_echo_n "checking for ld used by GCC... " >&6; }
13053   case $host in
13054   *-*-mingw*)
13055     # gcc leaves a trailing carriage return which upsets mingw
13056     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13057   *)
13058     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13059   esac
13060   case $ac_prog in
13061     # Accept absolute paths.
13062     [\\/]* | [A-Za-z]:[\\/]*)
13063       re_direlt='/[^/][^/]*/\.\./'
13064       # Canonicalize the path of ld
13065       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13066       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13067         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13068       done
13069       test -z "$LD" && LD="$ac_prog"
13070       ;;
13071   "")
13072     # If it fails, then pretend we aren't using GCC.
13073     ac_prog=ld
13074     ;;
13075   *)
13076     # If it is relative, then search for the first ld in PATH.
13077     with_gnu_ld=unknown
13078     ;;
13079   esac
13080 elif test "$with_gnu_ld" = yes; then
13081   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13082 $as_echo_n "checking for GNU ld... " >&6; }
13083 else
13084   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13085 $as_echo_n "checking for non-GNU ld... " >&6; }
13086 fi
13087 if test "${acl_cv_path_LD+set}" = set; then
13088   $as_echo_n "(cached) " >&6
13089 else
13090   if test -z "$LD"; then
13091   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13092   for ac_dir in $PATH; do
13093     test -z "$ac_dir" && ac_dir=.
13094     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13095       acl_cv_path_LD="$ac_dir/$ac_prog"
13096       # Check to see if the program is GNU ld.  I'd rather use --version,
13097       # but apparently some GNU ld's only accept -v.
13098       # Break only if it was the GNU/non-GNU ld that we prefer.
13099       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13100       *GNU* | *'with BFD'*)
13101         test "$with_gnu_ld" != no && break ;;
13102       *)
13103         test "$with_gnu_ld" != yes && break ;;
13104       esac
13105     fi
13106   done
13107   IFS="$ac_save_ifs"
13108 else
13109   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13110 fi
13111 fi
13112
13113 LD="$acl_cv_path_LD"
13114 if test -n "$LD"; then
13115   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13116 $as_echo "$LD" >&6; }
13117 else
13118   { $as_echo "$as_me:$LINENO: result: no" >&5
13119 $as_echo "no" >&6; }
13120 fi
13121 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13122 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13123    { (exit 1); exit 1; }; }
13124 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13125 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13126 if test "${acl_cv_prog_gnu_ld+set}" = set; then
13127   $as_echo_n "(cached) " >&6
13128 else
13129   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13130 case `$LD -v 2>&1 </dev/null` in
13131 *GNU* | *'with BFD'*)
13132   acl_cv_prog_gnu_ld=yes ;;
13133 *)
13134   acl_cv_prog_gnu_ld=no ;;
13135 esac
13136 fi
13137 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13138 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13139 with_gnu_ld=$acl_cv_prog_gnu_ld
13140
13141
13142
13143
13144                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13145 $as_echo_n "checking for shared library run path origin... " >&6; }
13146 if test "${acl_cv_rpath+set}" = set; then
13147   $as_echo_n "(cached) " >&6
13148 else
13149
13150     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13151     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13152     . ./conftest.sh
13153     rm -f ./conftest.sh
13154     acl_cv_rpath=done
13155
13156 fi
13157 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13158 $as_echo "$acl_cv_rpath" >&6; }
13159   wl="$acl_cv_wl"
13160   libext="$acl_cv_libext"
13161   shlibext="$acl_cv_shlibext"
13162   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13163   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13164   hardcode_direct="$acl_cv_hardcode_direct"
13165   hardcode_minus_L="$acl_cv_hardcode_minus_L"
13166     # Check whether --enable-rpath was given.
13167 if test "${enable_rpath+set}" = set; then
13168   enableval=$enable_rpath; :
13169 else
13170   enable_rpath=yes
13171 fi
13172
13173
13174
13175                   acl_libdirstem=lib
13176   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13177   if test -n "$searchpath"; then
13178     acl_save_IFS="${IFS=        }"; IFS=":"
13179     for searchdir in $searchpath; do
13180       if test -d "$searchdir"; then
13181         case "$searchdir" in
13182           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13183           *) searchdir=`cd "$searchdir" && pwd`
13184              case "$searchdir" in
13185                */lib64 ) acl_libdirstem=lib64 ;;
13186              esac ;;
13187         esac
13188       fi
13189     done
13190     IFS="$acl_save_IFS"
13191   fi
13192
13193
13194
13195   gl_threads_api=none
13196   LIBTHREAD=
13197   LTLIBTHREAD=
13198   LIBMULTITHREAD=
13199   LTLIBMULTITHREAD=
13200   if test "$gl_use_threads" != no; then
13201         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
13202 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13203 if test "${gl_cv_have_weak+set}" = set; then
13204   $as_echo_n "(cached) " >&6
13205 else
13206   gl_cv_have_weak=no
13207               cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 extern void xyzzy ();
13214 #pragma weak xyzzy
13215 int
13216 main ()
13217 {
13218 xyzzy();
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13230 $as_echo "$ac_try_echo") >&5
13231   (eval "$ac_link") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } && {
13238          test -z "$ac_c_werror_flag" ||
13239          test ! -s conftest.err
13240        } && test -s conftest$ac_exeext && {
13241          test "$cross_compiling" = yes ||
13242          $as_test_x conftest$ac_exeext
13243        }; then
13244   gl_cv_have_weak=maybe
13245 else
13246   $as_echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249
13250 fi
13251
13252 rm -rf conftest.dSYM
13253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13254       conftest$ac_exeext conftest.$ac_ext
13255        if test $gl_cv_have_weak = maybe; then
13256                            if test "$cross_compiling" = yes; then
13257                           cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h.  */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h.  */
13263 #ifdef __ELF__
13264                Extensible Linking Format
13265                #endif
13266
13267 _ACEOF
13268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13269   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then
13270   gl_cv_have_weak="guessing yes"
13271 else
13272   gl_cv_have_weak="guessing no"
13273 fi
13274 rm -f conftest*
13275
13276
13277 else
13278   cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h.  */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h.  */
13284
13285 #include <stdio.h>
13286 #pragma weak fputs
13287 int main ()
13288 {
13289   return (fputs == NULL);
13290 }
13291 _ACEOF
13292 rm -f conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296   *) ac_try_echo=$ac_try;;
13297 esac
13298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13299 $as_echo "$ac_try_echo") >&5
13300   (eval "$ac_link") 2>&5
13301   ac_status=$?
13302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13304   { (case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   gl_cv_have_weak=yes
13315 else
13316   $as_echo "$as_me: program exited with status $ac_status" >&5
13317 $as_echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 ( exit $ac_status )
13321 gl_cv_have_weak=no
13322 fi
13323 rm -rf conftest.dSYM
13324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13325 fi
13326
13327
13328        fi
13329
13330 fi
13331 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_weak" >&5
13332 $as_echo "$gl_cv_have_weak" >&6; }
13333     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13334       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13335       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
13336       if test "${ac_cv_header_pthread_h+set}" = set; then
13337   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13338 $as_echo_n "checking for pthread.h... " >&6; }
13339 if test "${ac_cv_header_pthread_h+set}" = set; then
13340   $as_echo_n "(cached) " >&6
13341 fi
13342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13343 $as_echo "$ac_cv_header_pthread_h" >&6; }
13344 else
13345   # Is the header compilable?
13346 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
13347 $as_echo_n "checking pthread.h usability... " >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 $ac_includes_default
13355 #include <pthread.h>
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (ac_try="$ac_compile"
13359 case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13364 $as_echo "$ac_try_echo") >&5
13365   (eval "$ac_compile") 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } && {
13372          test -z "$ac_c_werror_flag" ||
13373          test ! -s conftest.err
13374        } && test -s conftest.$ac_objext; then
13375   ac_header_compiler=yes
13376 else
13377   $as_echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380         ac_header_compiler=no
13381 fi
13382
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13385 $as_echo "$ac_header_compiler" >&6; }
13386
13387 # Is the header present?
13388 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
13389 $as_echo_n "checking pthread.h presence... " >&6; }
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396 #include <pthread.h>
13397 _ACEOF
13398 if { (ac_try="$ac_cpp conftest.$ac_ext"
13399 case "(($ac_try" in
13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401   *) ac_try_echo=$ac_try;;
13402 esac
13403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13404 $as_echo "$ac_try_echo") >&5
13405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } >/dev/null && {
13412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13413          test ! -s conftest.err
13414        }; then
13415   ac_header_preproc=yes
13416 else
13417   $as_echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420   ac_header_preproc=no
13421 fi
13422
13423 rm -f conftest.err conftest.$ac_ext
13424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13425 $as_echo "$ac_header_preproc" >&6; }
13426
13427 # So?  What about this header?
13428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429   yes:no: )
13430     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13431 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13432     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
13433 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
13434     ac_header_preproc=yes
13435     ;;
13436   no:yes:* )
13437     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13438 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13439     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
13440 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
13441     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
13442 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
13443     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
13444 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13445     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13446 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
13447     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
13448 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
13449
13450     ;;
13451 esac
13452 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13453 $as_echo_n "checking for pthread.h... " >&6; }
13454 if test "${ac_cv_header_pthread_h+set}" = set; then
13455   $as_echo_n "(cached) " >&6
13456 else
13457   ac_cv_header_pthread_h=$ac_header_preproc
13458 fi
13459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13460 $as_echo "$ac_cv_header_pthread_h" >&6; }
13461
13462 fi
13463 if test "x$ac_cv_header_pthread_h" = x""yes; then
13464   gl_have_pthread_h=yes
13465 else
13466   gl_have_pthread_h=no
13467 fi
13468
13469
13470       if test "$gl_have_pthread_h" = yes; then
13471         # Other possible tests:
13472         #   -lpthreads (FSU threads, PCthreads)
13473         #   -lgthreads
13474         gl_have_pthread=
13475         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13476         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13477         # the second one only in libpthread, and lock.c needs it.
13478         cat >conftest.$ac_ext <<_ACEOF
13479 /* confdefs.h.  */
13480 _ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h.  */
13484 #include <pthread.h>
13485 int
13486 main ()
13487 {
13488 pthread_mutex_lock((pthread_mutex_t*)0);
13489                pthread_mutexattr_init((pthread_mutexattr_t*)0);
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498   *) ac_try_echo=$ac_try;;
13499 esac
13500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13501 $as_echo "$ac_try_echo") >&5
13502   (eval "$ac_link") 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } && {
13509          test -z "$ac_c_werror_flag" ||
13510          test ! -s conftest.err
13511        } && test -s conftest$ac_exeext && {
13512          test "$cross_compiling" = yes ||
13513          $as_test_x conftest$ac_exeext
13514        }; then
13515   gl_have_pthread=yes
13516 else
13517   $as_echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13519
13520
13521 fi
13522
13523 rm -rf conftest.dSYM
13524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13525       conftest$ac_exeext conftest.$ac_ext
13526         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13527         # since it is defined as a macro on OSF/1.)
13528         if test -n "$gl_have_pthread"; then
13529           # The program links fine without libpthread. But it may actually
13530           # need to link with libpthread in order to create multiple threads.
13531           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13532 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13533 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13534   $as_echo_n "(cached) " >&6
13535 else
13536   ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-lpthread  $LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544
13545 /* Override any GCC internal prototype to avoid an error.
13546    Use char because int might match the return type of a GCC
13547    builtin and then its argument prototype would still apply.  */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char pthread_kill ();
13552 int
13553 main ()
13554 {
13555 return pthread_kill ();
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568   (eval "$ac_link") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } && {
13575          test -z "$ac_c_werror_flag" ||
13576          test ! -s conftest.err
13577        } && test -s conftest$ac_exeext && {
13578          test "$cross_compiling" = yes ||
13579          $as_test_x conftest$ac_exeext
13580        }; then
13581   ac_cv_lib_pthread_pthread_kill=yes
13582 else
13583   $as_echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586         ac_cv_lib_pthread_pthread_kill=no
13587 fi
13588
13589 rm -rf conftest.dSYM
13590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13591       conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13593 fi
13594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13595 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13596 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13597   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13598              # On Solaris and HP-UX, most pthread functions exist also in libc.
13599              # Therefore pthread_in_use() needs to actually try to create a
13600              # thread: pthread_create from libc will fail, whereas
13601              # pthread_create will actually create a thread.
13602              case "$host_os" in
13603                solaris* | hpux*)
13604
13605 cat >>confdefs.h <<\_ACEOF
13606 #define PTHREAD_IN_USE_DETECTION_HARD 1
13607 _ACEOF
13608
13609              esac
13610
13611 fi
13612
13613         else
13614           # Some library is needed. Try libpthread and libc_r.
13615           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13616 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13617 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13618   $as_echo_n "(cached) " >&6
13619 else
13620   ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lpthread  $LIBS"
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628
13629 /* Override any GCC internal prototype to avoid an error.
13630    Use char because int might match the return type of a GCC
13631    builtin and then its argument prototype would still apply.  */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 char pthread_kill ();
13636 int
13637 main ()
13638 {
13639 return pthread_kill ();
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13651 $as_echo "$ac_try_echo") >&5
13652   (eval "$ac_link") 2>conftest.er1
13653   ac_status=$?
13654   grep -v '^ *+' conftest.er1 >conftest.err
13655   rm -f conftest.er1
13656   cat conftest.err >&5
13657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } && {
13659          test -z "$ac_c_werror_flag" ||
13660          test ! -s conftest.err
13661        } && test -s conftest$ac_exeext && {
13662          test "$cross_compiling" = yes ||
13663          $as_test_x conftest$ac_exeext
13664        }; then
13665   ac_cv_lib_pthread_pthread_kill=yes
13666 else
13667   $as_echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670         ac_cv_lib_pthread_pthread_kill=no
13671 fi
13672
13673 rm -rf conftest.dSYM
13674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13675       conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13677 fi
13678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13679 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13680 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13681   gl_have_pthread=yes
13682              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
13683              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13684 fi
13685
13686           if test -z "$gl_have_pthread"; then
13687             # For FreeBSD 4.
13688             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
13689 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13690 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
13691   $as_echo_n "(cached) " >&6
13692 else
13693   ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lc_r  $LIBS"
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h.  */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h.  */
13701
13702 /* Override any GCC internal prototype to avoid an error.
13703    Use char because int might match the return type of a GCC
13704    builtin and then its argument prototype would still apply.  */
13705 #ifdef __cplusplus
13706 extern "C"
13707 #endif
13708 char pthread_kill ();
13709 int
13710 main ()
13711 {
13712 return pthread_kill ();
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (ac_try="$ac_link"
13719 case "(($ac_try" in
13720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721   *) ac_try_echo=$ac_try;;
13722 esac
13723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13724 $as_echo "$ac_try_echo") >&5
13725   (eval "$ac_link") 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } && {
13732          test -z "$ac_c_werror_flag" ||
13733          test ! -s conftest.err
13734        } && test -s conftest$ac_exeext && {
13735          test "$cross_compiling" = yes ||
13736          $as_test_x conftest$ac_exeext
13737        }; then
13738   ac_cv_lib_c_r_pthread_kill=yes
13739 else
13740   $as_echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743         ac_cv_lib_c_r_pthread_kill=no
13744 fi
13745
13746 rm -rf conftest.dSYM
13747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13748       conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13750 fi
13751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
13752 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13753 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
13754   gl_have_pthread=yes
13755                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
13756                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
13757 fi
13758
13759           fi
13760         fi
13761         if test -n "$gl_have_pthread"; then
13762           gl_threads_api=posix
13763
13764 cat >>confdefs.h <<\_ACEOF
13765 #define USE_POSIX_THREADS 1
13766 _ACEOF
13767
13768           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
13769             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13770
13771 cat >>confdefs.h <<\_ACEOF
13772 #define USE_POSIX_THREADS_WEAK 1
13773 _ACEOF
13774
13775               LIBTHREAD=
13776               LTLIBTHREAD=
13777             fi
13778           fi
13779         fi
13780       fi
13781     fi
13782     if test -z "$gl_have_pthread"; then
13783       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
13784         gl_have_solaristhread=
13785         gl_save_LIBS="$LIBS"
13786         LIBS="$LIBS -lthread"
13787         cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h.  */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h.  */
13793
13794 #include <thread.h>
13795 #include <synch.h>
13796
13797 int
13798 main ()
13799 {
13800 thr_self();
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (ac_try="$ac_link"
13807 case "(($ac_try" in
13808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809   *) ac_try_echo=$ac_try;;
13810 esac
13811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13812 $as_echo "$ac_try_echo") >&5
13813   (eval "$ac_link") 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } && {
13820          test -z "$ac_c_werror_flag" ||
13821          test ! -s conftest.err
13822        } && test -s conftest$ac_exeext && {
13823          test "$cross_compiling" = yes ||
13824          $as_test_x conftest$ac_exeext
13825        }; then
13826   gl_have_solaristhread=yes
13827 else
13828   $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831
13832 fi
13833
13834 rm -rf conftest.dSYM
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836       conftest$ac_exeext conftest.$ac_ext
13837         LIBS="$gl_save_LIBS"
13838         if test -n "$gl_have_solaristhread"; then
13839           gl_threads_api=solaris
13840           LIBTHREAD=-lthread
13841           LTLIBTHREAD=-lthread
13842           LIBMULTITHREAD="$LIBTHREAD"
13843           LTLIBMULTITHREAD="$LTLIBTHREAD"
13844
13845 cat >>confdefs.h <<\_ACEOF
13846 #define USE_SOLARIS_THREADS 1
13847 _ACEOF
13848
13849           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13850
13851 cat >>confdefs.h <<\_ACEOF
13852 #define USE_SOLARIS_THREADS_WEAK 1
13853 _ACEOF
13854
13855             LIBTHREAD=
13856             LTLIBTHREAD=
13857           fi
13858         fi
13859       fi
13860     fi
13861     if test "$gl_use_threads" = pth; then
13862       gl_save_CPPFLAGS="$CPPFLAGS"
13863
13864
13865
13866
13867
13868   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
13869 $as_echo_n "checking how to link with libpth... " >&6; }
13870 if test "${ac_cv_libpth_libs+set}" = set; then
13871   $as_echo_n "(cached) " >&6
13872 else
13873
13874
13875
13876
13877     use_additional=yes
13878
13879   acl_save_prefix="$prefix"
13880   prefix="$acl_final_prefix"
13881   acl_save_exec_prefix="$exec_prefix"
13882   exec_prefix="$acl_final_exec_prefix"
13883
13884     eval additional_includedir=\"$includedir\"
13885     eval additional_libdir=\"$libdir\"
13886
13887   exec_prefix="$acl_save_exec_prefix"
13888   prefix="$acl_save_prefix"
13889
13890
13891 # Check whether --with-libpth-prefix was given.
13892 if test "${with_libpth_prefix+set}" = set; then
13893   withval=$with_libpth_prefix;
13894     if test "X$withval" = "Xno"; then
13895       use_additional=no
13896     else
13897       if test "X$withval" = "X"; then
13898
13899   acl_save_prefix="$prefix"
13900   prefix="$acl_final_prefix"
13901   acl_save_exec_prefix="$exec_prefix"
13902   exec_prefix="$acl_final_exec_prefix"
13903
13904           eval additional_includedir=\"$includedir\"
13905           eval additional_libdir=\"$libdir\"
13906
13907   exec_prefix="$acl_save_exec_prefix"
13908   prefix="$acl_save_prefix"
13909
13910       else
13911         additional_includedir="$withval/include"
13912         additional_libdir="$withval/$acl_libdirstem"
13913       fi
13914     fi
13915
13916 fi
13917
13918       LIBPTH=
13919   LTLIBPTH=
13920   INCPTH=
13921   rpathdirs=
13922   ltrpathdirs=
13923   names_already_handled=
13924   names_next_round='pth '
13925   while test -n "$names_next_round"; do
13926     names_this_round="$names_next_round"
13927     names_next_round=
13928     for name in $names_this_round; do
13929       already_handled=
13930       for n in $names_already_handled; do
13931         if test "$n" = "$name"; then
13932           already_handled=yes
13933           break
13934         fi
13935       done
13936       if test -z "$already_handled"; then
13937         names_already_handled="$names_already_handled $name"
13938                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13939         eval value=\"\$HAVE_LIB$uppername\"
13940         if test -n "$value"; then
13941           if test "$value" = yes; then
13942             eval value=\"\$LIB$uppername\"
13943             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
13944             eval value=\"\$LTLIB$uppername\"
13945             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
13946           else
13947                                     :
13948           fi
13949         else
13950                               found_dir=
13951           found_la=
13952           found_so=
13953           found_a=
13954           if test $use_additional = yes; then
13955             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13956               found_dir="$additional_libdir"
13957               found_so="$additional_libdir/lib$name.$shlibext"
13958               if test -f "$additional_libdir/lib$name.la"; then
13959                 found_la="$additional_libdir/lib$name.la"
13960               fi
13961             else
13962               if test -f "$additional_libdir/lib$name.$libext"; then
13963                 found_dir="$additional_libdir"
13964                 found_a="$additional_libdir/lib$name.$libext"
13965                 if test -f "$additional_libdir/lib$name.la"; then
13966                   found_la="$additional_libdir/lib$name.la"
13967                 fi
13968               fi
13969             fi
13970           fi
13971           if test "X$found_dir" = "X"; then
13972             for x in $LDFLAGS $LTLIBPTH; do
13973
13974   acl_save_prefix="$prefix"
13975   prefix="$acl_final_prefix"
13976   acl_save_exec_prefix="$exec_prefix"
13977   exec_prefix="$acl_final_exec_prefix"
13978   eval x=\"$x\"
13979   exec_prefix="$acl_save_exec_prefix"
13980   prefix="$acl_save_prefix"
13981
13982               case "$x" in
13983                 -L*)
13984                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13985                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13986                     found_dir="$dir"
13987                     found_so="$dir/lib$name.$shlibext"
13988                     if test -f "$dir/lib$name.la"; then
13989                       found_la="$dir/lib$name.la"
13990                     fi
13991                   else
13992                     if test -f "$dir/lib$name.$libext"; then
13993                       found_dir="$dir"
13994                       found_a="$dir/lib$name.$libext"
13995                       if test -f "$dir/lib$name.la"; then
13996                         found_la="$dir/lib$name.la"
13997                       fi
13998                     fi
13999                   fi
14000                   ;;
14001               esac
14002               if test "X$found_dir" != "X"; then
14003                 break
14004               fi
14005             done
14006           fi
14007           if test "X$found_dir" != "X"; then
14008                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
14009             if test "X$found_so" != "X"; then
14010                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14011                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14012               else
14013                                                                                 haveit=
14014                 for x in $ltrpathdirs; do
14015                   if test "X$x" = "X$found_dir"; then
14016                     haveit=yes
14017                     break
14018                   fi
14019                 done
14020                 if test -z "$haveit"; then
14021                   ltrpathdirs="$ltrpathdirs $found_dir"
14022                 fi
14023                                 if test "$hardcode_direct" = yes; then
14024                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14025                 else
14026                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14027                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14028                                                             haveit=
14029                     for x in $rpathdirs; do
14030                       if test "X$x" = "X$found_dir"; then
14031                         haveit=yes
14032                         break
14033                       fi
14034                     done
14035                     if test -z "$haveit"; then
14036                       rpathdirs="$rpathdirs $found_dir"
14037                     fi
14038                   else
14039                                                                                 haveit=
14040                     for x in $LDFLAGS $LIBPTH; do
14041
14042   acl_save_prefix="$prefix"
14043   prefix="$acl_final_prefix"
14044   acl_save_exec_prefix="$exec_prefix"
14045   exec_prefix="$acl_final_exec_prefix"
14046   eval x=\"$x\"
14047   exec_prefix="$acl_save_exec_prefix"
14048   prefix="$acl_save_prefix"
14049
14050                       if test "X$x" = "X-L$found_dir"; then
14051                         haveit=yes
14052                         break
14053                       fi
14054                     done
14055                     if test -z "$haveit"; then
14056                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
14057                     fi
14058                     if test "$hardcode_minus_L" != no; then
14059                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14060                     else
14061                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14062                     fi
14063                   fi
14064                 fi
14065               fi
14066             else
14067               if test "X$found_a" != "X"; then
14068                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
14069               else
14070                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
14071               fi
14072             fi
14073                         additional_includedir=
14074             case "$found_dir" in
14075               */$acl_libdirstem | */$acl_libdirstem/)
14076                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14077                 additional_includedir="$basedir/include"
14078                 ;;
14079             esac
14080             if test "X$additional_includedir" != "X"; then
14081                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14082                 haveit=
14083                 if test "X$additional_includedir" = "X/usr/local/include"; then
14084                   if test -n "$GCC"; then
14085                     case $host_os in
14086                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14087                     esac
14088                   fi
14089                 fi
14090                 if test -z "$haveit"; then
14091                   for x in $CPPFLAGS $INCPTH; do
14092
14093   acl_save_prefix="$prefix"
14094   prefix="$acl_final_prefix"
14095   acl_save_exec_prefix="$exec_prefix"
14096   exec_prefix="$acl_final_exec_prefix"
14097   eval x=\"$x\"
14098   exec_prefix="$acl_save_exec_prefix"
14099   prefix="$acl_save_prefix"
14100
14101                     if test "X$x" = "X-I$additional_includedir"; then
14102                       haveit=yes
14103                       break
14104                     fi
14105                   done
14106                   if test -z "$haveit"; then
14107                     if test -d "$additional_includedir"; then
14108                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
14109                     fi
14110                   fi
14111                 fi
14112               fi
14113             fi
14114                         if test -n "$found_la"; then
14115                                                         save_libdir="$libdir"
14116               case "$found_la" in
14117                 */* | *\\*) . "$found_la" ;;
14118                 *) . "./$found_la" ;;
14119               esac
14120               libdir="$save_libdir"
14121                             for dep in $dependency_libs; do
14122                 case "$dep" in
14123                   -L*)
14124                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14125                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14126                       haveit=
14127                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14128                         if test -n "$GCC"; then
14129                           case $host_os in
14130                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14131                           esac
14132                         fi
14133                       fi
14134                       if test -z "$haveit"; then
14135                         haveit=
14136                         for x in $LDFLAGS $LIBPTH; do
14137
14138   acl_save_prefix="$prefix"
14139   prefix="$acl_final_prefix"
14140   acl_save_exec_prefix="$exec_prefix"
14141   exec_prefix="$acl_final_exec_prefix"
14142   eval x=\"$x\"
14143   exec_prefix="$acl_save_exec_prefix"
14144   prefix="$acl_save_prefix"
14145
14146                           if test "X$x" = "X-L$additional_libdir"; then
14147                             haveit=yes
14148                             break
14149                           fi
14150                         done
14151                         if test -z "$haveit"; then
14152                           if test -d "$additional_libdir"; then
14153                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
14154                           fi
14155                         fi
14156                         haveit=
14157                         for x in $LDFLAGS $LTLIBPTH; do
14158
14159   acl_save_prefix="$prefix"
14160   prefix="$acl_final_prefix"
14161   acl_save_exec_prefix="$exec_prefix"
14162   exec_prefix="$acl_final_exec_prefix"
14163   eval x=\"$x\"
14164   exec_prefix="$acl_save_exec_prefix"
14165   prefix="$acl_save_prefix"
14166
14167                           if test "X$x" = "X-L$additional_libdir"; then
14168                             haveit=yes
14169                             break
14170                           fi
14171                         done
14172                         if test -z "$haveit"; then
14173                           if test -d "$additional_libdir"; then
14174                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
14175                           fi
14176                         fi
14177                       fi
14178                     fi
14179                     ;;
14180                   -R*)
14181                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14182                     if test "$enable_rpath" != no; then
14183                                                                   haveit=
14184                       for x in $rpathdirs; do
14185                         if test "X$x" = "X$dir"; then
14186                           haveit=yes
14187                           break
14188                         fi
14189                       done
14190                       if test -z "$haveit"; then
14191                         rpathdirs="$rpathdirs $dir"
14192                       fi
14193                                                                   haveit=
14194                       for x in $ltrpathdirs; do
14195                         if test "X$x" = "X$dir"; then
14196                           haveit=yes
14197                           break
14198                         fi
14199                       done
14200                       if test -z "$haveit"; then
14201                         ltrpathdirs="$ltrpathdirs $dir"
14202                       fi
14203                     fi
14204                     ;;
14205                   -l*)
14206                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14207                     ;;
14208                   *.la)
14209                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14210                     ;;
14211                   *)
14212                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
14213                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
14214                     ;;
14215                 esac
14216               done
14217             fi
14218           else
14219                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14220             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
14221           fi
14222         fi
14223       fi
14224     done
14225   done
14226   if test "X$rpathdirs" != "X"; then
14227     if test -n "$hardcode_libdir_separator"; then
14228                         alldirs=
14229       for found_dir in $rpathdirs; do
14230         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14231       done
14232             acl_save_libdir="$libdir"
14233       libdir="$alldirs"
14234       eval flag=\"$hardcode_libdir_flag_spec\"
14235       libdir="$acl_save_libdir"
14236       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14237     else
14238             for found_dir in $rpathdirs; do
14239         acl_save_libdir="$libdir"
14240         libdir="$found_dir"
14241         eval flag=\"$hardcode_libdir_flag_spec\"
14242         libdir="$acl_save_libdir"
14243         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14244       done
14245     fi
14246   fi
14247   if test "X$ltrpathdirs" != "X"; then
14248             for found_dir in $ltrpathdirs; do
14249       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
14250     done
14251   fi
14252
14253     ac_cv_libpth_libs="$LIBPTH"
14254     ac_cv_libpth_ltlibs="$LTLIBPTH"
14255     ac_cv_libpth_cppflags="$INCPTH"
14256
14257 fi
14258 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
14259 $as_echo "$ac_cv_libpth_libs" >&6; }
14260   LIBPTH="$ac_cv_libpth_libs"
14261   LTLIBPTH="$ac_cv_libpth_ltlibs"
14262   INCPTH="$ac_cv_libpth_cppflags"
14263
14264   for element in $INCPTH; do
14265     haveit=
14266     for x in $CPPFLAGS; do
14267
14268   acl_save_prefix="$prefix"
14269   prefix="$acl_final_prefix"
14270   acl_save_exec_prefix="$exec_prefix"
14271   exec_prefix="$acl_final_exec_prefix"
14272   eval x=\"$x\"
14273   exec_prefix="$acl_save_exec_prefix"
14274   prefix="$acl_save_prefix"
14275
14276       if test "X$x" = "X$element"; then
14277         haveit=yes
14278         break
14279       fi
14280     done
14281     if test -z "$haveit"; then
14282       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14283     fi
14284   done
14285
14286
14287
14288       HAVE_LIBPTH=yes
14289
14290
14291
14292       gl_have_pth=
14293       gl_save_LIBS="$LIBS"
14294       LIBS="$LIBS -lpth"
14295       cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 #include <pth.h>
14302 int
14303 main ()
14304 {
14305 pth_self();
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (ac_try="$ac_link"
14312 case "(($ac_try" in
14313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314   *) ac_try_echo=$ac_try;;
14315 esac
14316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14317 $as_echo "$ac_try_echo") >&5
14318   (eval "$ac_link") 2>conftest.er1
14319   ac_status=$?
14320   grep -v '^ *+' conftest.er1 >conftest.err
14321   rm -f conftest.er1
14322   cat conftest.err >&5
14323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } && {
14325          test -z "$ac_c_werror_flag" ||
14326          test ! -s conftest.err
14327        } && test -s conftest$ac_exeext && {
14328          test "$cross_compiling" = yes ||
14329          $as_test_x conftest$ac_exeext
14330        }; then
14331   gl_have_pth=yes
14332 else
14333   $as_echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336
14337 fi
14338
14339 rm -rf conftest.dSYM
14340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14341       conftest$ac_exeext conftest.$ac_ext
14342       LIBS="$gl_save_LIBS"
14343       if test -n "$gl_have_pth"; then
14344         gl_threads_api=pth
14345         LIBTHREAD="$LIBPTH"
14346         LTLIBTHREAD="$LTLIBPTH"
14347         LIBMULTITHREAD="$LIBTHREAD"
14348         LTLIBMULTITHREAD="$LTLIBTHREAD"
14349
14350 cat >>confdefs.h <<\_ACEOF
14351 #define USE_PTH_THREADS 1
14352 _ACEOF
14353
14354         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14355           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
14356
14357 cat >>confdefs.h <<\_ACEOF
14358 #define USE_PTH_THREADS_WEAK 1
14359 _ACEOF
14360
14361             LIBTHREAD=
14362             LTLIBTHREAD=
14363           fi
14364         fi
14365       else
14366         CPPFLAGS="$gl_save_CPPFLAGS"
14367       fi
14368     fi
14369     if test -z "$gl_have_pthread"; then
14370       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
14371         if { case "$host_os" in
14372                mingw*) true;;
14373                *) false;;
14374              esac
14375            }; then
14376           gl_threads_api=win32
14377
14378 cat >>confdefs.h <<\_ACEOF
14379 #define USE_WIN32_THREADS 1
14380 _ACEOF
14381
14382         fi
14383       fi
14384     fi
14385   fi
14386   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
14387 $as_echo_n "checking for multithread API to use... " >&6; }
14388   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
14389 $as_echo "$gl_threads_api" >&6; }
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400      GNULIB_FCHMODAT=0;
14401   GNULIB_FSTATAT=0;
14402   GNULIB_FUTIMENS=0;
14403   GNULIB_LCHMOD=0;
14404   GNULIB_LSTAT=0;
14405   GNULIB_MKDIRAT=0;
14406   GNULIB_MKFIFO=0;
14407   GNULIB_MKFIFOAT=0;
14408   GNULIB_MKNOD=0;
14409   GNULIB_MKNODAT=0;
14410   GNULIB_STAT=0;
14411   GNULIB_UTIMENSAT=0;
14412     HAVE_FCHMODAT=1;
14413   HAVE_FSTATAT=1;
14414   HAVE_FUTIMENS=1;
14415   HAVE_LCHMOD=1;
14416   HAVE_LSTAT=1;
14417   HAVE_MKDIRAT=1;
14418   HAVE_MKFIFO=1;
14419   HAVE_MKFIFOAT=1;
14420   HAVE_MKNOD=1;
14421   HAVE_MKNODAT=1;
14422   HAVE_UTIMENSAT=1;
14423   REPLACE_FSTAT=0;
14424   REPLACE_FSTATAT=0;
14425   REPLACE_FUTIMENS=0;
14426   REPLACE_LSTAT=0;
14427   REPLACE_MKDIR=0;
14428   REPLACE_MKFIFO=0;
14429   REPLACE_MKNOD=0;
14430   REPLACE_STAT=0;
14431   REPLACE_UTIMENSAT=0;
14432
14433
14434
14435
14436
14437
14438
14439 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14440 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
14441 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14442   $as_echo_n "(cached) " >&6
14443 else
14444   rm -f conftest.sym conftest.file
14445 echo >conftest.file
14446 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14447   if test "$cross_compiling" = yes; then
14448   ac_cv_func_lstat_dereferences_slashed_symlink=no
14449 else
14450   cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 $ac_includes_default
14457 int
14458 main ()
14459 {
14460 struct stat sbuf;
14461      /* Linux will dereference the symlink and fail.
14462         That is better in the sense that it means we will not
14463         have to compile and use the lstat wrapper.  */
14464      return lstat ("conftest.sym/", &sbuf) == 0;
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest$ac_exeext
14470 if { (ac_try="$ac_link"
14471 case "(($ac_try" in
14472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473   *) ac_try_echo=$ac_try;;
14474 esac
14475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14476 $as_echo "$ac_try_echo") >&5
14477   (eval "$ac_link") 2>&5
14478   ac_status=$?
14479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14481   { (case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487   (eval "$ac_try") 2>&5
14488   ac_status=$?
14489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; }; then
14491   ac_cv_func_lstat_dereferences_slashed_symlink=yes
14492 else
14493   $as_echo "$as_me: program exited with status $ac_status" >&5
14494 $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497 ( exit $ac_status )
14498 ac_cv_func_lstat_dereferences_slashed_symlink=no
14499 fi
14500 rm -rf conftest.dSYM
14501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14502 fi
14503
14504
14505 else
14506   # If the `ln -s' command failed, then we probably don't even
14507   # have an lstat function.
14508   ac_cv_func_lstat_dereferences_slashed_symlink=no
14509 fi
14510 rm -f conftest.sym conftest.file
14511
14512 fi
14513 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14514 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14515
14516 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14517
14518 cat >>confdefs.h <<_ACEOF
14519 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14520 _ACEOF
14521
14522
14523 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14524
14525
14526
14527
14528
14529
14530
14531
14532   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14533
14534 fi
14535
14536
14537   GNULIB__EXIT=0;
14538   GNULIB_ATOLL=0;
14539   GNULIB_CALLOC_POSIX=0;
14540   GNULIB_CANONICALIZE_FILE_NAME=0;
14541   GNULIB_GETLOADAVG=0;
14542   GNULIB_GETSUBOPT=0;
14543   GNULIB_GRANTPT=0;
14544   GNULIB_MALLOC_POSIX=0;
14545   GNULIB_MKDTEMP=0;
14546   GNULIB_MKOSTEMP=0;
14547   GNULIB_MKOSTEMPS=0;
14548   GNULIB_MKSTEMP=0;
14549   GNULIB_MKSTEMPS=0;
14550   GNULIB_PTSNAME=0;
14551   GNULIB_PUTENV=0;
14552   GNULIB_RANDOM_R=0;
14553   GNULIB_REALLOC_POSIX=0;
14554   GNULIB_REALPATH=0;
14555   GNULIB_RPMATCH=0;
14556   GNULIB_SETENV=0;
14557   GNULIB_STRTOD=0;
14558   GNULIB_STRTOLL=0;
14559   GNULIB_STRTOULL=0;
14560   GNULIB_UNLOCKPT=0;
14561   GNULIB_UNSETENV=0;
14562     HAVE__EXIT=1;
14563   HAVE_ATOLL=1;
14564   HAVE_CANONICALIZE_FILE_NAME=1;
14565   HAVE_DECL_GETLOADAVG=1;
14566   HAVE_GETSUBOPT=1;
14567   HAVE_GRANTPT=1;
14568   HAVE_MKDTEMP=1;
14569   HAVE_MKOSTEMP=1;
14570   HAVE_MKOSTEMPS=1;
14571   HAVE_MKSTEMP=1;
14572   HAVE_MKSTEMPS=1;
14573   HAVE_PTSNAME=1;
14574   HAVE_RANDOM_R=1;
14575   HAVE_REALPATH=1;
14576   HAVE_RPMATCH=1;
14577   HAVE_SETENV=1;
14578   HAVE_STRTOD=1;
14579   HAVE_STRTOLL=1;
14580   HAVE_STRTOULL=1;
14581   HAVE_STRUCT_RANDOM_DATA=1;
14582   HAVE_SYS_LOADAVG_H=0;
14583   HAVE_UNLOCKPT=1;
14584   HAVE_UNSETENV=1;
14585   REPLACE_CALLOC=0;
14586   REPLACE_CANONICALIZE_FILE_NAME=0;
14587   REPLACE_MALLOC=0;
14588   REPLACE_MKSTEMP=0;
14589   REPLACE_PUTENV=0;
14590   REPLACE_REALLOC=0;
14591   REPLACE_REALPATH=0;
14592   REPLACE_SETENV=0;
14593   REPLACE_STRTOD=0;
14594   REPLACE_UNSETENV=0;
14595
14596
14597   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14598 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14599 if test "${gl_cv_func_malloc_posix+set}" = set; then
14600   $as_echo_n "(cached) " >&6
14601 else
14602
14603                         cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609
14610 int
14611 main ()
14612 {
14613 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14614              choke me
14615              #endif
14616
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629   (eval "$ac_compile") 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } && {
14636          test -z "$ac_c_werror_flag" ||
14637          test ! -s conftest.err
14638        } && test -s conftest.$ac_objext; then
14639   gl_cv_func_malloc_posix=yes
14640 else
14641   $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644         gl_cv_func_malloc_posix=no
14645 fi
14646
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648
14649 fi
14650 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
14651 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14652
14653
14654
14655    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14656 $as_echo_n "checking for mbstate_t... " >&6; }
14657 if test "${ac_cv_type_mbstate_t+set}" = set; then
14658   $as_echo_n "(cached) " >&6
14659 else
14660   cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h.  */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h.  */
14666 $ac_includes_default
14667 #           include <wchar.h>
14668 int
14669 main ()
14670 {
14671 mbstate_t x; return sizeof x;
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (ac_try="$ac_compile"
14678 case "(($ac_try" in
14679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680   *) ac_try_echo=$ac_try;;
14681 esac
14682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14683 $as_echo "$ac_try_echo") >&5
14684   (eval "$ac_compile") 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } && {
14691          test -z "$ac_c_werror_flag" ||
14692          test ! -s conftest.err
14693        } && test -s conftest.$ac_objext; then
14694   ac_cv_type_mbstate_t=yes
14695 else
14696   $as_echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699         ac_cv_type_mbstate_t=no
14700 fi
14701
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 fi
14704 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14705 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14706    if test $ac_cv_type_mbstate_t = yes; then
14707
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_MBSTATE_T 1
14710 _ACEOF
14711
14712    else
14713
14714 cat >>confdefs.h <<\_ACEOF
14715 #define mbstate_t int
14716 _ACEOF
14717
14718    fi
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
14736 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14737 if test "${gt_cv_locale_ja+set}" = set; then
14738   $as_echo_n "(cached) " >&6
14739 else
14740
14741     cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h.  */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h.  */
14747
14748 #include <locale.h>
14749 #include <time.h>
14750 #if HAVE_LANGINFO_CODESET
14751 # include <langinfo.h>
14752 #endif
14753 #include <stdlib.h>
14754 #include <string.h>
14755 struct tm t;
14756 char buf[16];
14757 int main ()
14758 {
14759   const char *p;
14760   /* Check whether the given locale name is recognized by the system.  */
14761   if (setlocale (LC_ALL, "") == NULL) return 1;
14762   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14763      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14764      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14765      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14766      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14767      some unit tests fail.  */
14768 #if HAVE_LANGINFO_CODESET
14769   {
14770     const char *cs = nl_langinfo (CODESET);
14771     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14772       return 1;
14773   }
14774 #endif
14775 #ifdef __CYGWIN__
14776   /* On Cygwin, avoid locale names without encoding suffix, because the
14777      locale_charset() function relies on the encoding suffix.  Note that
14778      LC_ALL is set on the command line.  */
14779   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14780 #endif
14781   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
14782      on Cygwin 1.5.x.  */
14783   if (MB_CUR_MAX == 1)
14784     return 1;
14785   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14786      This excludes the UTF-8 encoding.  */
14787   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14788   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14789   for (p = buf; *p != '\0'; p++)
14790     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14791       return 1;
14792   return 0;
14793 }
14794
14795 _ACEOF
14796     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14797   (eval $ac_link) 2>&5
14798   ac_status=$?
14799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } && test -s conftest$ac_exeext; then
14801       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14802       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14803       # configure script would override the LC_ALL setting. Likewise for
14804       # LC_CTYPE, which is also set at the beginning of the configure script.
14805       # Test for the AIX locale name.
14806       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14807         gt_cv_locale_ja=ja_JP
14808       else
14809         # Test for the locale name with explicit encoding suffix.
14810         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14811           gt_cv_locale_ja=ja_JP.EUC-JP
14812         else
14813           # Test for the HP-UX, OSF/1, NetBSD locale name.
14814           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14815             gt_cv_locale_ja=ja_JP.eucJP
14816           else
14817             # Test for the IRIX, FreeBSD locale name.
14818             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14819               gt_cv_locale_ja=ja_JP.EUC
14820             else
14821               # Test for the Solaris 7 locale name.
14822               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14823                 gt_cv_locale_ja=ja
14824               else
14825                 # Special test for NetBSD 1.6.
14826                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14827                   gt_cv_locale_ja=ja_JP.eucJP
14828                 else
14829                   # None found.
14830                   gt_cv_locale_ja=none
14831                 fi
14832               fi
14833             fi
14834           fi
14835         fi
14836       fi
14837     fi
14838     rm -fr conftest*
14839
14840 fi
14841 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
14842 $as_echo "$gt_cv_locale_ja" >&6; }
14843   LOCALE_JA=$gt_cv_locale_ja
14844
14845
14846
14847
14848
14849   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
14850 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14851 if test "${gt_cv_locale_zh_CN+set}" = set; then
14852   $as_echo_n "(cached) " >&6
14853 else
14854
14855     cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861
14862 #include <locale.h>
14863 #include <stdlib.h>
14864 #include <time.h>
14865 #if HAVE_LANGINFO_CODESET
14866 # include <langinfo.h>
14867 #endif
14868 #include <stdlib.h>
14869 #include <string.h>
14870 struct tm t;
14871 char buf[16];
14872 int main ()
14873 {
14874   const char *p;
14875   /* Check whether the given locale name is recognized by the system.  */
14876   if (setlocale (LC_ALL, "") == NULL) return 1;
14877   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14878      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14879      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14880      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14881      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14882      some unit tests fail.  */
14883 #if HAVE_LANGINFO_CODESET
14884   {
14885     const char *cs = nl_langinfo (CODESET);
14886     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14887       return 1;
14888   }
14889 #endif
14890 #ifdef __CYGWIN__
14891   /* On Cygwin, avoid locale names without encoding suffix, because the
14892      locale_charset() function relies on the encoding suffix.  Note that
14893      LC_ALL is set on the command line.  */
14894   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14895 #endif
14896   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14897      This excludes the UTF-8 encoding.  */
14898   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14899   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14900   for (p = buf; *p != '\0'; p++)
14901     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14902       return 1;
14903   /* Check whether a typical GB18030 multibyte sequence is recognized as a
14904      single wide character.  This excludes the GB2312 and GBK encodings.  */
14905   if (mblen ("\203\062\332\066", 5) != 4)
14906     return 1;
14907   return 0;
14908 }
14909
14910 _ACEOF
14911     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912   (eval $ac_link) 2>&5
14913   ac_status=$?
14914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); } && test -s conftest$ac_exeext; then
14916       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14917       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14918       # configure script would override the LC_ALL setting. Likewise for
14919       # LC_CTYPE, which is also set at the beginning of the configure script.
14920       # Test for the locale name without encoding suffix.
14921       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14922         gt_cv_locale_zh_CN=zh_CN
14923       else
14924         # Test for the locale name with explicit encoding suffix.
14925         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14926           gt_cv_locale_zh_CN=zh_CN.GB18030
14927         else
14928           # None found.
14929           gt_cv_locale_zh_CN=none
14930         fi
14931       fi
14932     else
14933       # If there was a link error, due to mblen(), the system is so old that
14934       # it certainly doesn't have a chinese locale.
14935       gt_cv_locale_zh_CN=none
14936     fi
14937     rm -fr conftest*
14938
14939 fi
14940 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
14941 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14942   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14943
14944
14945
14946
14947   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
14948 $as_echo_n "checking for a french Unicode locale... " >&6; }
14949 if test "${gt_cv_locale_fr_utf8+set}" = set; then
14950   $as_echo_n "(cached) " >&6
14951 else
14952
14953     cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959
14960 #include <locale.h>
14961 #include <time.h>
14962 #if HAVE_LANGINFO_CODESET
14963 # include <langinfo.h>
14964 #endif
14965 #include <stdlib.h>
14966 #include <string.h>
14967 struct tm t;
14968 char buf[16];
14969 int main () {
14970   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
14971      imitates locale dependent behaviour by looking at the environment
14972      variables, and all locales use the UTF-8 encoding.  */
14973 #if !(defined __BEOS__ || defined __HAIKU__)
14974   /* Check whether the given locale name is recognized by the system.  */
14975   if (setlocale (LC_ALL, "") == NULL) return 1;
14976   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14977      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14978      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14979      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14980      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14981      some unit tests fail.  */
14982 # if HAVE_LANGINFO_CODESET
14983   {
14984     const char *cs = nl_langinfo (CODESET);
14985     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14986       return 1;
14987   }
14988 # endif
14989 # ifdef __CYGWIN__
14990   /* On Cygwin, avoid locale names without encoding suffix, because the
14991      locale_charset() function relies on the encoding suffix.  Note that
14992      LC_ALL is set on the command line.  */
14993   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14994 # endif
14995   /* Check whether in the abbreviation of the second month, the second
14996      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14997      two bytes long, with UTF-8 encoding.  */
14998   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14999   if (strftime (buf, sizeof (buf), "%b", &t) < 4
15000       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15001     return 1;
15002 #endif
15003   /* Check whether the decimal separator is a comma.
15004      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15005      are nl_langinfo(RADIXCHAR) are both ".".  */
15006   if (localeconv () ->decimal_point[0] != ',') return 1;
15007   return 0;
15008 }
15009
15010 _ACEOF
15011     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012   (eval $ac_link) 2>&5
15013   ac_status=$?
15014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } && test -s conftest$ac_exeext; then
15016       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15017       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
15018       # configure script would override the LC_ALL setting. Likewise for
15019       # LC_CTYPE, which is also set at the beginning of the configure script.
15020       # Test for the usual locale name.
15021       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15022         gt_cv_locale_fr_utf8=fr_FR
15023       else
15024         # Test for the locale name with explicit encoding suffix.
15025         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15026           gt_cv_locale_fr_utf8=fr_FR.UTF-8
15027         else
15028           # Test for the Solaris 7 locale name.
15029           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15030             gt_cv_locale_fr_utf8=fr.UTF-8
15031           else
15032             # None found.
15033             gt_cv_locale_fr_utf8=none
15034           fi
15035         fi
15036       fi
15037     fi
15038     rm -fr conftest*
15039
15040 fi
15041 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
15042 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15043   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059   GNULIB_MEMCHR=0;
15060   GNULIB_MEMMEM=0;
15061   GNULIB_MEMPCPY=0;
15062   GNULIB_MEMRCHR=0;
15063   GNULIB_RAWMEMCHR=0;
15064   GNULIB_STPCPY=0;
15065   GNULIB_STPNCPY=0;
15066   GNULIB_STRCHRNUL=0;
15067   GNULIB_STRDUP=0;
15068   GNULIB_STRNCAT=0;
15069   GNULIB_STRNDUP=0;
15070   GNULIB_STRNLEN=0;
15071   GNULIB_STRPBRK=0;
15072   GNULIB_STRSEP=0;
15073   GNULIB_STRSTR=0;
15074   GNULIB_STRCASESTR=0;
15075   GNULIB_STRTOK_R=0;
15076   GNULIB_MBSLEN=0;
15077   GNULIB_MBSNLEN=0;
15078   GNULIB_MBSCHR=0;
15079   GNULIB_MBSRCHR=0;
15080   GNULIB_MBSSTR=0;
15081   GNULIB_MBSCASECMP=0;
15082   GNULIB_MBSNCASECMP=0;
15083   GNULIB_MBSPCASECMP=0;
15084   GNULIB_MBSCASESTR=0;
15085   GNULIB_MBSCSPN=0;
15086   GNULIB_MBSPBRK=0;
15087   GNULIB_MBSSPN=0;
15088   GNULIB_MBSSEP=0;
15089   GNULIB_MBSTOK_R=0;
15090   GNULIB_STRERROR=0;
15091   GNULIB_STRSIGNAL=0;
15092   GNULIB_STRVERSCMP=0;
15093   HAVE_MBSLEN=0;
15094     HAVE_MEMCHR=1;
15095   HAVE_DECL_MEMMEM=1;
15096   HAVE_MEMPCPY=1;
15097   HAVE_DECL_MEMRCHR=1;
15098   HAVE_RAWMEMCHR=1;
15099   HAVE_STPCPY=1;
15100   HAVE_STPNCPY=1;
15101   HAVE_STRCHRNUL=1;
15102   HAVE_DECL_STRDUP=1;
15103   HAVE_DECL_STRNDUP=1;
15104   HAVE_DECL_STRNLEN=1;
15105   HAVE_STRPBRK=1;
15106   HAVE_STRSEP=1;
15107   HAVE_STRCASESTR=1;
15108   HAVE_DECL_STRTOK_R=1;
15109   HAVE_DECL_STRSIGNAL=1;
15110   HAVE_STRVERSCMP=1;
15111   REPLACE_MEMCHR=0;
15112   REPLACE_MEMMEM=0;
15113   REPLACE_STPNCPY=0;
15114   REPLACE_STRDUP=0;
15115   REPLACE_STRSTR=0;
15116   REPLACE_STRCASESTR=0;
15117   REPLACE_STRERROR=0;
15118   REPLACE_STRNCAT=0;
15119   REPLACE_STRNDUP=0;
15120   REPLACE_STRNLEN=0;
15121   REPLACE_STRSIGNAL=0;
15122   REPLACE_STRTOK_R=0;
15123   UNDEFINE_STRTOK_R=0;
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15139   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15140   # irrelevant for anonymous mappings.
15141   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
15142 $as_echo_n "checking for mmap... " >&6; }
15143 if test "${ac_cv_func_mmap+set}" = set; then
15144   $as_echo_n "(cached) " >&6
15145 else
15146   cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
15153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15154 #define mmap innocuous_mmap
15155
15156 /* System header to define __stub macros and hopefully few prototypes,
15157     which can conflict with char mmap (); below.
15158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15159     <limits.h> exists even on freestanding compilers.  */
15160
15161 #ifdef __STDC__
15162 # include <limits.h>
15163 #else
15164 # include <assert.h>
15165 #endif
15166
15167 #undef mmap
15168
15169 /* Override any GCC internal prototype to avoid an error.
15170    Use char because int might match the return type of a GCC
15171    builtin and then its argument prototype would still apply.  */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 char mmap ();
15176 /* The GNU C library defines this for functions which it implements
15177     to always fail with ENOSYS.  Some functions are actually named
15178     something starting with __ and the normal name is an alias.  */
15179 #if defined __stub_mmap || defined __stub___mmap
15180 choke me
15181 #endif
15182
15183 int
15184 main ()
15185 {
15186 return mmap ();
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (ac_try="$ac_link"
15193 case "(($ac_try" in
15194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15195   *) ac_try_echo=$ac_try;;
15196 esac
15197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15198 $as_echo "$ac_try_echo") >&5
15199   (eval "$ac_link") 2>conftest.er1
15200   ac_status=$?
15201   grep -v '^ *+' conftest.er1 >conftest.err
15202   rm -f conftest.er1
15203   cat conftest.err >&5
15204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); } && {
15206          test -z "$ac_c_werror_flag" ||
15207          test ! -s conftest.err
15208        } && test -s conftest$ac_exeext && {
15209          test "$cross_compiling" = yes ||
15210          $as_test_x conftest$ac_exeext
15211        }; then
15212   ac_cv_func_mmap=yes
15213 else
15214   $as_echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217         ac_cv_func_mmap=no
15218 fi
15219
15220 rm -rf conftest.dSYM
15221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15222       conftest$ac_exeext conftest.$ac_ext
15223 fi
15224 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
15225 $as_echo "$ac_cv_func_mmap" >&6; }
15226 if test "x$ac_cv_func_mmap" = x""yes; then
15227   gl_have_mmap=yes
15228 else
15229   gl_have_mmap=no
15230 fi
15231
15232
15233   # Try to allow MAP_ANONYMOUS.
15234   gl_have_mmap_anonymous=no
15235   if test $gl_have_mmap = yes; then
15236     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
15237 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15238     cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244
15245 #include <sys/mman.h>
15246 #ifdef MAP_ANONYMOUS
15247     I cant identify this map.
15248 #endif
15249
15250 _ACEOF
15251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15252   $EGREP "I cant identify this map." >/dev/null 2>&1; then
15253   gl_have_mmap_anonymous=yes
15254 fi
15255 rm -f conftest*
15256
15257     if test $gl_have_mmap_anonymous != yes; then
15258       cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h.  */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h.  */
15264
15265 #include <sys/mman.h>
15266 #ifdef MAP_ANON
15267     I cant identify this map.
15268 #endif
15269
15270 _ACEOF
15271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15272   $EGREP "I cant identify this map." >/dev/null 2>&1; then
15273
15274 cat >>confdefs.h <<\_ACEOF
15275 #define MAP_ANONYMOUS MAP_ANON
15276 _ACEOF
15277
15278          gl_have_mmap_anonymous=yes
15279 fi
15280 rm -f conftest*
15281
15282     fi
15283     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
15284 $as_echo "$gl_have_mmap_anonymous" >&6; }
15285     if test $gl_have_mmap_anonymous = yes; then
15286
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_MAP_ANONYMOUS 1
15289 _ACEOF
15290
15291     fi
15292   fi
15293
15294
15295   :
15296
15297
15298
15299
15300
15301
15302   :
15303
15304
15305
15306
15307
15308
15309
15310
15311   :
15312
15313
15314
15315
15316
15317   if test $ac_cv_func_memchr = yes; then
15318     # Detect platform-specific bugs in some versions of glibc:
15319     # memchr should not dereference anything with length 0
15320     #   http://bugzilla.redhat.com/499689
15321     # memchr should not dereference overestimated length after a match
15322     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15323     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
15324     # Assume that memchr works on platforms that lack mprotect.
15325     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
15326 $as_echo_n "checking whether memchr works... " >&6; }
15327 if test "${gl_cv_func_memchr_works+set}" = set; then
15328   $as_echo_n "(cached) " >&6
15329 else
15330   if test "$cross_compiling" = yes; then
15331          gl_cv_func_memchr_works="guessing no"
15332 else
15333   cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339
15340 #include <string.h>
15341 #if HAVE_SYS_MMAN_H
15342 # include <fcntl.h>
15343 # include <unistd.h>
15344 # include <sys/types.h>
15345 # include <sys/mman.h>
15346 # ifndef MAP_FILE
15347 #  define MAP_FILE 0
15348 # endif
15349 #endif
15350
15351 int
15352 main ()
15353 {
15354
15355   char *fence = NULL;
15356 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15357 # if HAVE_MAP_ANONYMOUS
15358   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15359   const int fd = -1;
15360 # else /* !HAVE_MAP_ANONYMOUS */
15361   const int flags = MAP_FILE | MAP_PRIVATE;
15362   int fd = open ("/dev/zero", O_RDONLY, 0666);
15363   if (fd >= 0)
15364 # endif
15365     {
15366       int pagesize = getpagesize ();
15367       char *two_pages =
15368         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15369                        flags, fd, 0);
15370       if (two_pages != (char *)(-1)
15371           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15372         fence = two_pages + pagesize;
15373     }
15374 #endif
15375   if (fence)
15376     {
15377       if (memchr (fence, 0, 0))
15378         return 1;
15379       strcpy (fence - 9, "12345678");
15380       if (memchr (fence - 9, 0, 79) != fence - 1)
15381         return 2;
15382     }
15383   return 0;
15384
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 rm -f conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393   *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397   (eval "$ac_link") 2>&5
15398   ac_status=$?
15399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15401   { (case "(($ac_try" in
15402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403   *) ac_try_echo=$ac_try;;
15404 esac
15405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15406 $as_echo "$ac_try_echo") >&5
15407   (eval "$ac_try") 2>&5
15408   ac_status=$?
15409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; }; then
15411   gl_cv_func_memchr_works=yes
15412 else
15413   $as_echo "$as_me: program exited with status $ac_status" >&5
15414 $as_echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 ( exit $ac_status )
15418 gl_cv_func_memchr_works=no
15419 fi
15420 rm -rf conftest.dSYM
15421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15422 fi
15423
15424
15425 fi
15426 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
15427 $as_echo "$gl_cv_func_memchr_works" >&6; }
15428     if test "$gl_cv_func_memchr_works" != yes; then
15429       REPLACE_MEMCHR=1
15430     fi
15431   else
15432     HAVE_MEMCHR=0
15433   fi
15434   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15435
15436
15437
15438
15439
15440
15441
15442
15443   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15444
15445
15446
15447 for ac_header in bp-sym.h
15448 do
15449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 $as_echo_n "checking for $ac_header... " >&6; }
15453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454   $as_echo_n "(cached) " >&6
15455 fi
15456 ac_res=`eval 'as_val=${'$as_ac_Header'}
15457                  $as_echo "$as_val"'`
15458                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15459 $as_echo "$ac_res" >&6; }
15460 else
15461   # Is the header compilable?
15462 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15463 $as_echo_n "checking $ac_header usability... " >&6; }
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h.  */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h.  */
15470 $ac_includes_default
15471 #include <$ac_header>
15472 _ACEOF
15473 rm -f conftest.$ac_objext
15474 if { (ac_try="$ac_compile"
15475 case "(($ac_try" in
15476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477   *) ac_try_echo=$ac_try;;
15478 esac
15479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15480 $as_echo "$ac_try_echo") >&5
15481   (eval "$ac_compile") 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } && {
15488          test -z "$ac_c_werror_flag" ||
15489          test ! -s conftest.err
15490        } && test -s conftest.$ac_objext; then
15491   ac_header_compiler=yes
15492 else
15493   $as_echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496         ac_header_compiler=no
15497 fi
15498
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15501 $as_echo "$ac_header_compiler" >&6; }
15502
15503 # Is the header present?
15504 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15505 $as_echo_n "checking $ac_header presence... " >&6; }
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512 #include <$ac_header>
15513 _ACEOF
15514 if { (ac_try="$ac_cpp conftest.$ac_ext"
15515 case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15520 $as_echo "$ac_try_echo") >&5
15521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15522   ac_status=$?
15523   grep -v '^ *+' conftest.er1 >conftest.err
15524   rm -f conftest.er1
15525   cat conftest.err >&5
15526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } >/dev/null && {
15528          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15529          test ! -s conftest.err
15530        }; then
15531   ac_header_preproc=yes
15532 else
15533   $as_echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536   ac_header_preproc=no
15537 fi
15538
15539 rm -f conftest.err conftest.$ac_ext
15540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15541 $as_echo "$ac_header_preproc" >&6; }
15542
15543 # So?  What about this header?
15544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15545   yes:no: )
15546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15547 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15550     ac_header_preproc=yes
15551     ;;
15552   no:yes:* )
15553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15554 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15556 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15558 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15560 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15561     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15563     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15564 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15565
15566     ;;
15567 esac
15568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15569 $as_echo_n "checking for $ac_header... " >&6; }
15570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15571   $as_echo_n "(cached) " >&6
15572 else
15573   eval "$as_ac_Header=\$ac_header_preproc"
15574 fi
15575 ac_res=`eval 'as_val=${'$as_ac_Header'}
15576                  $as_echo "$as_val"'`
15577                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15578 $as_echo "$ac_res" >&6; }
15579
15580 fi
15581 as_val=`eval 'as_val=${'$as_ac_Header'}
15582                  $as_echo "$as_val"'`
15583    if test "x$as_val" = x""yes; then
15584   cat >>confdefs.h <<_ACEOF
15585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15586 _ACEOF
15587
15588 fi
15589
15590 done
15591
15592
15593   fi
15594
15595
15596     gl_cv_c_multiarch=no
15597   cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h.  */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h.  */
15603 #ifndef __APPLE_CC__
15604          not a universal capable compiler
15605         #endif
15606         typedef int dummy;
15607
15608 _ACEOF
15609 rm -f conftest.$ac_objext
15610 if { (ac_try="$ac_compile"
15611 case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15616 $as_echo "$ac_try_echo") >&5
15617   (eval "$ac_compile") 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } && {
15624          test -z "$ac_c_werror_flag" ||
15625          test ! -s conftest.err
15626        } && test -s conftest.$ac_objext; then
15627
15628                arch=
15629      prev=
15630      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15631        if test -n "$prev"; then
15632          case $word in
15633            i?86 | x86_64 | ppc | ppc64)
15634              if test -z "$arch" || test "$arch" = "$word"; then
15635                arch="$word"
15636              else
15637                gl_cv_c_multiarch=yes
15638              fi
15639              ;;
15640          esac
15641          prev=
15642        else
15643          if test "x$word" = "x-arch"; then
15644            prev=arch
15645          fi
15646        fi
15647      done
15648
15649 else
15650   $as_echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653
15654 fi
15655
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657   if test $gl_cv_c_multiarch = yes; then
15658
15659 cat >>confdefs.h <<\_ACEOF
15660 #define AA_APPLE_UNIVERSAL_BUILD 1
15661 _ACEOF
15662
15663     APPLE_UNIVERSAL_BUILD=1
15664   else
15665     APPLE_UNIVERSAL_BUILD=0
15666   fi
15667
15668
15669
15670
15671
15672
15673
15674
15675 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
15676 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
15677 if test "${gl_cv_var__system_configuration+set}" = set; then
15678   $as_echo_n "(cached) " >&6
15679 else
15680   cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h.  */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h.  */
15686 #include <sys/systemcfg.h>
15687
15688 int
15689 main ()
15690 {
15691 double x = _system_configuration.physmem;
15692                         if (x > 0.0) return 0;
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (ac_try="$ac_link"
15699 case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15704 $as_echo "$ac_try_echo") >&5
15705   (eval "$ac_link") 2>conftest.er1
15706   ac_status=$?
15707   grep -v '^ *+' conftest.er1 >conftest.err
15708   rm -f conftest.er1
15709   cat conftest.err >&5
15710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); } && {
15712          test -z "$ac_c_werror_flag" ||
15713          test ! -s conftest.err
15714        } && test -s conftest$ac_exeext && {
15715          test "$cross_compiling" = yes ||
15716          $as_test_x conftest$ac_exeext
15717        }; then
15718   gl_cv_var__system_configuration=yes
15719 else
15720   $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723         gl_cv_var__system_configuration=no
15724 fi
15725
15726 rm -rf conftest.dSYM
15727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15728       conftest$ac_exeext conftest.$ac_ext
15729 fi
15730 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
15731 $as_echo "$gl_cv_var__system_configuration" >&6; }
15732
15733     if test $gl_cv_var__system_configuration = yes; then
15734
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE__SYSTEM_CONFIGURATION 1
15737 _ACEOF
15738
15739     fi
15740
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   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
15768 $as_echo_n "checking for ssize_t... " >&6; }
15769 if test "${gt_cv_ssize_t+set}" = set; then
15770   $as_echo_n "(cached) " >&6
15771 else
15772   cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 #include <sys/types.h>
15779 int
15780 main ()
15781 {
15782 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15783             return !x;
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest.$ac_objext
15789 if { (ac_try="$ac_compile"
15790 case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15795 $as_echo "$ac_try_echo") >&5
15796   (eval "$ac_compile") 2>conftest.er1
15797   ac_status=$?
15798   grep -v '^ *+' conftest.er1 >conftest.err
15799   rm -f conftest.er1
15800   cat conftest.err >&5
15801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); } && {
15803          test -z "$ac_c_werror_flag" ||
15804          test ! -s conftest.err
15805        } && test -s conftest.$ac_objext; then
15806   gt_cv_ssize_t=yes
15807 else
15808   $as_echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811         gt_cv_ssize_t=no
15812 fi
15813
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 fi
15816 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
15817 $as_echo "$gt_cv_ssize_t" >&6; }
15818   if test $gt_cv_ssize_t = no; then
15819
15820 cat >>confdefs.h <<\_ACEOF
15821 #define ssize_t int
15822 _ACEOF
15823
15824   fi
15825
15826
15827       { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15828 $as_echo_n "checking whether snprintf is declared... " >&6; }
15829 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15830   $as_echo_n "(cached) " >&6
15831 else
15832   cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h.  */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h.  */
15838 $ac_includes_default
15839 int
15840 main ()
15841 {
15842 #ifndef snprintf
15843   (void) snprintf;
15844 #endif
15845
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (ac_try="$ac_compile"
15852 case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15857 $as_echo "$ac_try_echo") >&5
15858   (eval "$ac_compile") 2>conftest.er1
15859   ac_status=$?
15860   grep -v '^ *+' conftest.er1 >conftest.err
15861   rm -f conftest.er1
15862   cat conftest.err >&5
15863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } && {
15865          test -z "$ac_c_werror_flag" ||
15866          test ! -s conftest.err
15867        } && test -s conftest.$ac_objext; then
15868   ac_cv_have_decl_snprintf=yes
15869 else
15870   $as_echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873         ac_cv_have_decl_snprintf=no
15874 fi
15875
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877 fi
15878 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15879 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
15880 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
15881
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_DECL_SNPRINTF 1
15884 _ACEOF
15885
15886
15887 else
15888   cat >>confdefs.h <<_ACEOF
15889 #define HAVE_DECL_SNPRINTF 0
15890 _ACEOF
15891
15892
15893 fi
15894
15895
15896
15897
15898     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
15899 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
15900 if test "${ac_cv_win_or_dos+set}" = set; then
15901   $as_echo_n "(cached) " >&6
15902 else
15903
15904         cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910
15911 int
15912 main ()
15913 {
15914
15915 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
15916 neither MSDOS nor Windows
15917 #endif
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930   (eval "$ac_compile") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } && {
15937          test -z "$ac_c_werror_flag" ||
15938          test ! -s conftest.err
15939        } && test -s conftest.$ac_objext; then
15940   ac_cv_win_or_dos=yes
15941 else
15942   $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945         ac_cv_win_or_dos=no
15946 fi
15947
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949
15950 fi
15951 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
15952 $as_echo "$ac_cv_win_or_dos" >&6; }
15953
15954     if test x"$ac_cv_win_or_dos" = xyes; then
15955       ac_fs_accepts_drive_letter_prefix=1
15956       ac_fs_backslash_is_file_name_separator=1
15957       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
15958 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
15959 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
15960   $as_echo_n "(cached) " >&6
15961 else
15962
15963           cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h.  */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h.  */
15969
15970 int
15971 main ()
15972 {
15973
15974 #if defined __CYGWIN__
15975 drive letters are always absolute
15976 #endif
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15988 $as_echo "$ac_try_echo") >&5
15989   (eval "$ac_compile") 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } && {
15996          test -z "$ac_c_werror_flag" ||
15997          test ! -s conftest.err
15998        } && test -s conftest.$ac_objext; then
15999   ac_cv_drive_letter_can_be_relative=yes
16000 else
16001   $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004         ac_cv_drive_letter_can_be_relative=no
16005 fi
16006
16007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008
16009 fi
16010 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
16011 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
16012       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
16013         ac_fs_drive_letter_can_be_relative=1
16014       else
16015         ac_fs_drive_letter_can_be_relative=0
16016       fi
16017     else
16018       ac_fs_accepts_drive_letter_prefix=0
16019       ac_fs_backslash_is_file_name_separator=0
16020       ac_fs_drive_letter_can_be_relative=0
16021     fi
16022
16023
16024 cat >>confdefs.h <<_ACEOF
16025 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
16026 _ACEOF
16027
16028
16029
16030
16031
16032
16033 cat >>confdefs.h <<_ACEOF
16034 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
16035 _ACEOF
16036
16037
16038
16039 cat >>confdefs.h <<_ACEOF
16040 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
16041 _ACEOF
16042
16043
16044 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16045 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16046 if test "${ac_cv_header_stdbool_h+set}" = set; then
16047   $as_echo_n "(cached) " >&6
16048 else
16049   cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055
16056              #include <stdbool.h>
16057              #ifndef bool
16058               "error: bool is not defined"
16059              #endif
16060              #ifndef false
16061               "error: false is not defined"
16062              #endif
16063              #if false
16064               "error: false is not 0"
16065              #endif
16066              #ifndef true
16067               "error: true is not defined"
16068              #endif
16069              #if true != 1
16070               "error: true is not 1"
16071              #endif
16072              #ifndef __bool_true_false_are_defined
16073               "error: __bool_true_false_are_defined is not defined"
16074              #endif
16075
16076              struct s { _Bool s: 1; _Bool t; } s;
16077
16078              char a[true == 1 ? 1 : -1];
16079              char b[false == 0 ? 1 : -1];
16080              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16081              char d[(bool) 0.5 == true ? 1 : -1];
16082              /* See body of main program for 'e'.  */
16083              char f[(_Bool) 0.0 == false ? 1 : -1];
16084              char g[true];
16085              char h[sizeof (_Bool)];
16086              char i[sizeof s.t];
16087              enum { j = false, k = true, l = false * true, m = true * 256 };
16088              /* The following fails for
16089                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16090              _Bool n[m];
16091              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16092              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16093              /* Catch a bug in an HP-UX C compiler.  See
16094                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16095                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16096               */
16097              _Bool q = true;
16098              _Bool *pq = &q;
16099
16100 int
16101 main ()
16102 {
16103
16104              bool e = &s;
16105              *pq |= q;
16106              *pq |= ! q;
16107              /* Refer to every declared value, to avoid compiler optimizations.  */
16108              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16109                      + !m + !n + !o + !p + !q + !pq);
16110
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (ac_try="$ac_compile"
16117 case "(($ac_try" in
16118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119   *) ac_try_echo=$ac_try;;
16120 esac
16121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16122 $as_echo "$ac_try_echo") >&5
16123   (eval "$ac_compile") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } && {
16130          test -z "$ac_c_werror_flag" ||
16131          test ! -s conftest.err
16132        } && test -s conftest.$ac_objext; then
16133   ac_cv_header_stdbool_h=yes
16134 else
16135   $as_echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138         ac_cv_header_stdbool_h=no
16139 fi
16140
16141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142 fi
16143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16144 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16145    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16146 $as_echo_n "checking for _Bool... " >&6; }
16147 if test "${ac_cv_type__Bool+set}" = set; then
16148   $as_echo_n "(cached) " >&6
16149 else
16150   ac_cv_type__Bool=no
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 $ac_includes_default
16158 int
16159 main ()
16160 {
16161 if (sizeof (_Bool))
16162        return 0;
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174 $as_echo "$ac_try_echo") >&5
16175   (eval "$ac_compile") 2>conftest.er1
16176   ac_status=$?
16177   grep -v '^ *+' conftest.er1 >conftest.err
16178   rm -f conftest.er1
16179   cat conftest.err >&5
16180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } && {
16182          test -z "$ac_c_werror_flag" ||
16183          test ! -s conftest.err
16184        } && test -s conftest.$ac_objext; then
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 $ac_includes_default
16192 int
16193 main ()
16194 {
16195 if (sizeof ((_Bool)))
16196           return 0;
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205   *) ac_try_echo=$ac_try;;
16206 esac
16207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16208 $as_echo "$ac_try_echo") >&5
16209   (eval "$ac_compile") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest.$ac_objext; then
16219   :
16220 else
16221   $as_echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224         ac_cv_type__Bool=yes
16225 fi
16226
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 else
16229   $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 fi
16237 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16238 $as_echo "$ac_cv_type__Bool" >&6; }
16239 if test "x$ac_cv_type__Bool" = x""yes; then
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define HAVE__BOOL 1
16243 _ACEOF
16244
16245
16246 fi
16247
16248    if test $ac_cv_header_stdbool_h = yes; then
16249
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_STDBOOL_H 1
16252 _ACEOF
16253
16254    fi
16255
16256     REPLACE_NULL=0;
16257   HAVE_WCHAR_T=1;
16258   STDDEF_H='';
16259
16260
16261   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16262 $as_echo_n "checking for wchar_t... " >&6; }
16263 if test "${gt_cv_c_wchar_t+set}" = set; then
16264   $as_echo_n "(cached) " >&6
16265 else
16266   cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272 #include <stddef.h>
16273        wchar_t foo = (wchar_t)'\0';
16274 int
16275 main ()
16276 {
16277
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext
16283 if { (ac_try="$ac_compile"
16284 case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16289 $as_echo "$ac_try_echo") >&5
16290   (eval "$ac_compile") 2>conftest.er1
16291   ac_status=$?
16292   grep -v '^ *+' conftest.er1 >conftest.err
16293   rm -f conftest.er1
16294   cat conftest.err >&5
16295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } && {
16297          test -z "$ac_c_werror_flag" ||
16298          test ! -s conftest.err
16299        } && test -s conftest.$ac_objext; then
16300   gt_cv_c_wchar_t=yes
16301 else
16302   $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305         gt_cv_c_wchar_t=no
16306 fi
16307
16308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309 fi
16310 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16311 $as_echo "$gt_cv_c_wchar_t" >&6; }
16312   if test $gt_cv_c_wchar_t = yes; then
16313
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HAVE_WCHAR_T 1
16316 _ACEOF
16317
16318   fi
16319
16320
16321
16322
16323
16324
16325
16326
16327   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16328 $as_echo_n "checking for long long int... " >&6; }
16329 if test "${ac_cv_type_long_long_int+set}" = set; then
16330   $as_echo_n "(cached) " >&6
16331 else
16332   cat >conftest.$ac_ext <<_ACEOF
16333
16334   /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339 /* For now, do not test the preprocessor; as of 2007 there are too many
16340          implementations with broken preprocessors.  Perhaps this can
16341          be revisited in 2012.  In the meantime, code should not expect
16342          #if to work with literals wider than 32 bits.  */
16343       /* Test literals.  */
16344       long long int ll = 9223372036854775807ll;
16345       long long int nll = -9223372036854775807LL;
16346       unsigned long long int ull = 18446744073709551615ULL;
16347       /* Test constant expressions.   */
16348       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16349                      ? 1 : -1)];
16350       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16351                      ? 1 : -1)];
16352       int i = 63;
16353 int
16354 main ()
16355 {
16356 /* Test availability of runtime routines for shift and division.  */
16357       long long int llmax = 9223372036854775807ll;
16358       unsigned long long int ullmax = 18446744073709551615ull;
16359       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16360               | (llmax / ll) | (llmax % ll)
16361               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16362               | (ullmax / ull) | (ullmax % ull));
16363   ;
16364   return 0;
16365 }
16366
16367 _ACEOF
16368 rm -f conftest.$ac_objext conftest$ac_exeext
16369 if { (ac_try="$ac_link"
16370 case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16375 $as_echo "$ac_try_echo") >&5
16376   (eval "$ac_link") 2>conftest.er1
16377   ac_status=$?
16378   grep -v '^ *+' conftest.er1 >conftest.err
16379   rm -f conftest.er1
16380   cat conftest.err >&5
16381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } && {
16383          test -z "$ac_c_werror_flag" ||
16384          test ! -s conftest.err
16385        } && test -s conftest$ac_exeext && {
16386          test "$cross_compiling" = yes ||
16387          $as_test_x conftest$ac_exeext
16388        }; then
16389                           if test "$cross_compiling" = yes; then
16390   ac_cv_type_long_long_int=yes
16391 else
16392   cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h.  */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h.  */
16398 #include <limits.h>
16399                #ifndef LLONG_MAX
16400                # define HALF \
16401                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16402                # define LLONG_MAX (HALF - 1 + HALF)
16403                #endif
16404 int
16405 main ()
16406 {
16407 long long int n = 1;
16408                int i;
16409                for (i = 0; ; i++)
16410                  {
16411                    long long int m = n << i;
16412                    if (m >> i != n)
16413                      return 1;
16414                    if (LLONG_MAX / 2 < m)
16415                      break;
16416                  }
16417                return 0;
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16429 $as_echo "$ac_try_echo") >&5
16430   (eval "$ac_link") 2>&5
16431   ac_status=$?
16432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16434   { (case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16439 $as_echo "$ac_try_echo") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; }; then
16444   ac_cv_type_long_long_int=yes
16445 else
16446   $as_echo "$as_me: program exited with status $ac_status" >&5
16447 $as_echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450 ( exit $ac_status )
16451 ac_cv_type_long_long_int=no
16452 fi
16453 rm -rf conftest.dSYM
16454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16455 fi
16456
16457
16458 else
16459   $as_echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462         ac_cv_type_long_long_int=no
16463 fi
16464
16465 rm -rf conftest.dSYM
16466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16467       conftest$ac_exeext conftest.$ac_ext
16468 fi
16469 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16470 $as_echo "$ac_cv_type_long_long_int" >&6; }
16471   if test $ac_cv_type_long_long_int = yes; then
16472
16473 cat >>confdefs.h <<\_ACEOF
16474 #define HAVE_LONG_LONG_INT 1
16475 _ACEOF
16476
16477   fi
16478
16479
16480   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16481 $as_echo_n "checking for unsigned long long int... " >&6; }
16482 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16483   $as_echo_n "(cached) " >&6
16484 else
16485   cat >conftest.$ac_ext <<_ACEOF
16486
16487   /* confdefs.h.  */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h.  */
16492 /* For now, do not test the preprocessor; as of 2007 there are too many
16493          implementations with broken preprocessors.  Perhaps this can
16494          be revisited in 2012.  In the meantime, code should not expect
16495          #if to work with literals wider than 32 bits.  */
16496       /* Test literals.  */
16497       long long int ll = 9223372036854775807ll;
16498       long long int nll = -9223372036854775807LL;
16499       unsigned long long int ull = 18446744073709551615ULL;
16500       /* Test constant expressions.   */
16501       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16502                      ? 1 : -1)];
16503       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16504                      ? 1 : -1)];
16505       int i = 63;
16506 int
16507 main ()
16508 {
16509 /* Test availability of runtime routines for shift and division.  */
16510       long long int llmax = 9223372036854775807ll;
16511       unsigned long long int ullmax = 18446744073709551615ull;
16512       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16513               | (llmax / ll) | (llmax % ll)
16514               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16515               | (ullmax / ull) | (ullmax % ull));
16516   ;
16517   return 0;
16518 }
16519
16520 _ACEOF
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16528 $as_echo "$ac_try_echo") >&5
16529   (eval "$ac_link") 2>conftest.er1
16530   ac_status=$?
16531   grep -v '^ *+' conftest.er1 >conftest.err
16532   rm -f conftest.er1
16533   cat conftest.err >&5
16534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } && {
16536          test -z "$ac_c_werror_flag" ||
16537          test ! -s conftest.err
16538        } && test -s conftest$ac_exeext && {
16539          test "$cross_compiling" = yes ||
16540          $as_test_x conftest$ac_exeext
16541        }; then
16542   ac_cv_type_unsigned_long_long_int=yes
16543 else
16544   $as_echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_cv_type_unsigned_long_long_int=no
16548 fi
16549
16550 rm -rf conftest.dSYM
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552       conftest$ac_exeext conftest.$ac_ext
16553 fi
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16555 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16556   if test $ac_cv_type_unsigned_long_long_int = yes; then
16557
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16560 _ACEOF
16561
16562   fi
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577         { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
16578 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
16579 if test "${gl_cv_prog_as_underscore+set}" = set; then
16580   $as_echo_n "(cached) " >&6
16581 else
16582   cat > conftest.c <<EOF
16583 #ifdef __cplusplus
16584 extern "C" int foo (void);
16585 #endif
16586 int foo(void) { return 0; }
16587 EOF
16588      # Look for the assembly language name in the .s file.
16589      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
16590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591   (eval $ac_try) 2>&5
16592   ac_status=$?
16593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; } >/dev/null 2>&1
16595      if grep _foo conftest.s >/dev/null ; then
16596        gl_cv_prog_as_underscore=yes
16597      else
16598        gl_cv_prog_as_underscore=no
16599      fi
16600      rm -f conftest*
16601
16602 fi
16603 { $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
16604 $as_echo "$gl_cv_prog_as_underscore" >&6; }
16605   if test $gl_cv_prog_as_underscore = yes; then
16606     USER_LABEL_PREFIX=_
16607   else
16608     USER_LABEL_PREFIX=
16609   fi
16610
16611 cat >>confdefs.h <<_ACEOF
16612 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
16613 _ACEOF
16614
16615   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
16616
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      if test $gl_cv_have_include_next = yes; then
16652        gl_cv_next_string_h='<'string.h'>'
16653      else
16654        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
16655 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16656 if test "${gl_cv_next_string_h+set}" = set; then
16657   $as_echo_n "(cached) " >&6
16658 else
16659
16660           if test $ac_cv_header_string_h = yes; then
16661             cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h.  */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h.  */
16667 #include <string.h>
16668
16669 _ACEOF
16670                                                                                                 case "$host_os" in
16671               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16672               *)    gl_absname_cpp="$ac_cpp" ;;
16673             esac
16674                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16675                sed -n '\#/string.h#{
16676                  s#.*"\(.*/string.h\)".*#\1#
16677                  s#^/[^/]#//&#
16678                  p
16679                  q
16680                }'`'"'
16681           else
16682             gl_cv_next_string_h='<'string.h'>'
16683           fi
16684
16685 fi
16686 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
16687 $as_echo "$gl_cv_next_string_h" >&6; }
16688      fi
16689      NEXT_STRING_H=$gl_cv_next_string_h
16690
16691      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16692        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16693        gl_next_as_first_directive='<'string.h'>'
16694      else
16695        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16696        gl_next_as_first_directive=$gl_cv_next_string_h
16697      fi
16698      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721   for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
16722     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16723     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
16724 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16725 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
16726   $as_echo_n "(cached) " >&6
16727 else
16728   cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h.  */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h.  */
16734 #include <string.h>
16735
16736 int
16737 main ()
16738 {
16739 #undef $gl_func
16740   (void) $gl_func;
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753   (eval "$ac_compile") 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } && {
16760          test -z "$ac_c_werror_flag" ||
16761          test ! -s conftest.err
16762        } && test -s conftest.$ac_objext; then
16763   eval "$as_gl_Symbol=yes"
16764 else
16765   $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768         eval "$as_gl_Symbol=no"
16769 fi
16770
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 fi
16773 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
16774                  $as_echo "$as_val"'`
16775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16776 $as_echo "$ac_res" >&6; }
16777      as_val=`eval 'as_val=${'$as_gl_Symbol'}
16778                  $as_echo "$as_val"'`
16779    if test "x$as_val" = x""yes; then
16780   cat >>confdefs.h <<_ACEOF
16781 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16782 _ACEOF
16783
16784                      eval ac_cv_have_decl_$gl_func=yes
16785 fi
16786
16787       done
16788
16789
16790 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16791 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16792 if test "${ac_cv_header_stat_broken+set}" = set; then
16793   $as_echo_n "(cached) " >&6
16794 else
16795   cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801 #include <sys/types.h>
16802 #include <sys/stat.h>
16803
16804 #if defined S_ISBLK && defined S_IFDIR
16805 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16806 #endif
16807
16808 #if defined S_ISBLK && defined S_IFCHR
16809 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16810 #endif
16811
16812 #if defined S_ISLNK && defined S_IFREG
16813 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16814 #endif
16815
16816 #if defined S_ISSOCK && defined S_IFREG
16817 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16818 #endif
16819
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (ac_try="$ac_compile"
16823 case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16828 $as_echo "$ac_try_echo") >&5
16829   (eval "$ac_compile") 2>conftest.er1
16830   ac_status=$?
16831   grep -v '^ *+' conftest.er1 >conftest.err
16832   rm -f conftest.er1
16833   cat conftest.err >&5
16834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } && {
16836          test -z "$ac_c_werror_flag" ||
16837          test ! -s conftest.err
16838        } && test -s conftest.$ac_objext; then
16839   ac_cv_header_stat_broken=no
16840 else
16841   $as_echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844         ac_cv_header_stat_broken=yes
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 fi
16849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16850 $as_echo "$ac_cv_header_stat_broken" >&6; }
16851 if test $ac_cv_header_stat_broken = yes; then
16852
16853 cat >>confdefs.h <<\_ACEOF
16854 #define STAT_MACROS_BROKEN 1
16855 _ACEOF
16856
16857 fi
16858
16859
16860
16861
16862
16863
16864
16865 # Check whether --enable-largefile was given.
16866 if test "${enable_largefile+set}" = set; then
16867   enableval=$enable_largefile;
16868 fi
16869
16870 if test "$enable_largefile" != no; then
16871
16872   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16873 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16874 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16875   $as_echo_n "(cached) " >&6
16876 else
16877   ac_cv_sys_largefile_CC=no
16878      if test "$GCC" != yes; then
16879        ac_save_CC=$CC
16880        while :; do
16881          # IRIX 6.2 and later do not support large files by default,
16882          # so use the C compiler's -n32 option if that helps.
16883          cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h.  */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h.  */
16889 #include <sys/types.h>
16890  /* Check that off_t can represent 2**63 - 1 correctly.
16891     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16892     since some C++ compilers masquerading as C compilers
16893     incorrectly reject 9223372036854775807.  */
16894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16895   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16896                        && LARGE_OFF_T % 2147483647 == 1)
16897                       ? 1 : -1];
16898 int
16899 main ()
16900 {
16901
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906          rm -f conftest.$ac_objext
16907 if { (ac_try="$ac_compile"
16908 case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16913 $as_echo "$ac_try_echo") >&5
16914   (eval "$ac_compile") 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } && {
16921          test -z "$ac_c_werror_flag" ||
16922          test ! -s conftest.err
16923        } && test -s conftest.$ac_objext; then
16924   break
16925 else
16926   $as_echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929
16930 fi
16931
16932 rm -f core conftest.err conftest.$ac_objext
16933          CC="$CC -n32"
16934          rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938   *) ac_try_echo=$ac_try;;
16939 esac
16940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16941 $as_echo "$ac_try_echo") >&5
16942   (eval "$ac_compile") 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } && {
16949          test -z "$ac_c_werror_flag" ||
16950          test ! -s conftest.err
16951        } && test -s conftest.$ac_objext; then
16952   ac_cv_sys_largefile_CC=' -n32'; break
16953 else
16954   $as_echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957
16958 fi
16959
16960 rm -f core conftest.err conftest.$ac_objext
16961          break
16962        done
16963        CC=$ac_save_CC
16964        rm -f conftest.$ac_ext
16965     fi
16966 fi
16967 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16968 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16969   if test "$ac_cv_sys_largefile_CC" != no; then
16970     CC=$CC$ac_cv_sys_largefile_CC
16971   fi
16972
16973   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16974 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16975 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16976   $as_echo_n "(cached) " >&6
16977 else
16978   while :; do
16979   cat >conftest.$ac_ext <<_ACEOF
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985 #include <sys/types.h>
16986  /* Check that off_t can represent 2**63 - 1 correctly.
16987     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16988     since some C++ compilers masquerading as C compilers
16989     incorrectly reject 9223372036854775807.  */
16990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16991   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16992                        && LARGE_OFF_T % 2147483647 == 1)
16993                       ? 1 : -1];
16994 int
16995 main ()
16996 {
16997
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest.$ac_objext
17003 if { (ac_try="$ac_compile"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17009 $as_echo "$ac_try_echo") >&5
17010   (eval "$ac_compile") 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } && {
17017          test -z "$ac_c_werror_flag" ||
17018          test ! -s conftest.err
17019        } && test -s conftest.$ac_objext; then
17020   ac_cv_sys_file_offset_bits=no; break
17021 else
17022   $as_echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025
17026 fi
17027
17028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029   cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 #define _FILE_OFFSET_BITS 64
17036 #include <sys/types.h>
17037  /* Check that off_t can represent 2**63 - 1 correctly.
17038     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17039     since some C++ compilers masquerading as C compilers
17040     incorrectly reject 9223372036854775807.  */
17041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17042   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17043                        && LARGE_OFF_T % 2147483647 == 1)
17044                       ? 1 : -1];
17045 int
17046 main ()
17047 {
17048
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 rm -f conftest.$ac_objext
17054 if { (ac_try="$ac_compile"
17055 case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17060 $as_echo "$ac_try_echo") >&5
17061   (eval "$ac_compile") 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } && {
17068          test -z "$ac_c_werror_flag" ||
17069          test ! -s conftest.err
17070        } && test -s conftest.$ac_objext; then
17071   ac_cv_sys_file_offset_bits=64; break
17072 else
17073   $as_echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076
17077 fi
17078
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080   ac_cv_sys_file_offset_bits=unknown
17081   break
17082 done
17083 fi
17084 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17085 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17086 case $ac_cv_sys_file_offset_bits in #(
17087   no | unknown) ;;
17088   *)
17089 cat >>confdefs.h <<_ACEOF
17090 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17091 _ACEOF
17092 ;;
17093 esac
17094 rm -rf conftest*
17095   if test $ac_cv_sys_file_offset_bits = unknown; then
17096     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17097 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17098 if test "${ac_cv_sys_large_files+set}" = set; then
17099   $as_echo_n "(cached) " >&6
17100 else
17101   while :; do
17102   cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 #include <sys/types.h>
17109  /* Check that off_t can represent 2**63 - 1 correctly.
17110     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17111     since some C++ compilers masquerading as C compilers
17112     incorrectly reject 9223372036854775807.  */
17113 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17114   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17115                        && LARGE_OFF_T % 2147483647 == 1)
17116                       ? 1 : -1];
17117 int
17118 main ()
17119 {
17120
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (ac_try="$ac_compile"
17127 case "(($ac_try" in
17128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129   *) ac_try_echo=$ac_try;;
17130 esac
17131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17132 $as_echo "$ac_try_echo") >&5
17133   (eval "$ac_compile") 2>conftest.er1
17134   ac_status=$?
17135   grep -v '^ *+' conftest.er1 >conftest.err
17136   rm -f conftest.er1
17137   cat conftest.err >&5
17138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); } && {
17140          test -z "$ac_c_werror_flag" ||
17141          test ! -s conftest.err
17142        } && test -s conftest.$ac_objext; then
17143   ac_cv_sys_large_files=no; break
17144 else
17145   $as_echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148
17149 fi
17150
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152   cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h.  */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h.  */
17158 #define _LARGE_FILES 1
17159 #include <sys/types.h>
17160  /* Check that off_t can represent 2**63 - 1 correctly.
17161     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17162     since some C++ compilers masquerading as C compilers
17163     incorrectly reject 9223372036854775807.  */
17164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17165   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17166                        && LARGE_OFF_T % 2147483647 == 1)
17167                       ? 1 : -1];
17168 int
17169 main ()
17170 {
17171
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17183 $as_echo "$ac_try_echo") >&5
17184   (eval "$ac_compile") 2>conftest.er1
17185   ac_status=$?
17186   grep -v '^ *+' conftest.er1 >conftest.err
17187   rm -f conftest.er1
17188   cat conftest.err >&5
17189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } && {
17191          test -z "$ac_c_werror_flag" ||
17192          test ! -s conftest.err
17193        } && test -s conftest.$ac_objext; then
17194   ac_cv_sys_large_files=1; break
17195 else
17196   $as_echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199
17200 fi
17201
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203   ac_cv_sys_large_files=unknown
17204   break
17205 done
17206 fi
17207 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17208 $as_echo "$ac_cv_sys_large_files" >&6; }
17209 case $ac_cv_sys_large_files in #(
17210   no | unknown) ;;
17211   *)
17212 cat >>confdefs.h <<_ACEOF
17213 #define _LARGE_FILES $ac_cv_sys_large_files
17214 _ACEOF
17215 ;;
17216 esac
17217 rm -rf conftest*
17218   fi
17219 fi
17220
17221
17222   GNULIB_MKTIME=0;
17223   GNULIB_NANOSLEEP=0;
17224   GNULIB_STRPTIME=0;
17225   GNULIB_TIMEGM=0;
17226   GNULIB_TIME_R=0;
17227     HAVE_LOCALTIME_R=1;
17228   HAVE_NANOSLEEP=1;
17229   HAVE_STRPTIME=1;
17230   HAVE_TIMEGM=1;
17231         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17232   REPLACE_MKTIME=GNULIB_PORTCHECK;
17233   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17234   REPLACE_TIMEGM=GNULIB_PORTCHECK;
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244   :
17245
17246
17247
17248
17249
17250   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
17251 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17252 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
17253   $as_echo_n "(cached) " >&6
17254 else
17255   cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261 #include <time.h>
17262
17263 int
17264 main ()
17265 {
17266 static struct timespec x; x.tv_sec = x.tv_nsec;
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17278 $as_echo "$ac_try_echo") >&5
17279   (eval "$ac_compile") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } && {
17286          test -z "$ac_c_werror_flag" ||
17287          test ! -s conftest.err
17288        } && test -s conftest.$ac_objext; then
17289   gl_cv_sys_struct_timespec_in_time_h=yes
17290 else
17291   $as_echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         gl_cv_sys_struct_timespec_in_time_h=no
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 fi
17299 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17300 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17301
17302   TIME_H_DEFINES_STRUCT_TIMESPEC=0
17303   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
17304   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
17305   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17306     TIME_H_DEFINES_STRUCT_TIMESPEC=1
17307   else
17308     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
17309 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
17310 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
17311   $as_echo_n "(cached) " >&6
17312 else
17313   cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 #include <sys/time.h>
17320
17321 int
17322 main ()
17323 {
17324 static struct timespec x; x.tv_sec = x.tv_nsec;
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext
17330 if { (ac_try="$ac_compile"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17336 $as_echo "$ac_try_echo") >&5
17337   (eval "$ac_compile") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } && {
17344          test -z "$ac_c_werror_flag" ||
17345          test ! -s conftest.err
17346        } && test -s conftest.$ac_objext; then
17347   gl_cv_sys_struct_timespec_in_sys_time_h=yes
17348 else
17349   $as_echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352         gl_cv_sys_struct_timespec_in_sys_time_h=no
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 fi
17357 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17358 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17359     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17360       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
17361     else
17362       { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
17363 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17364 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
17365   $as_echo_n "(cached) " >&6
17366 else
17367   cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h.  */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h.  */
17373 #include <pthread.h>
17374
17375 int
17376 main ()
17377 {
17378 static struct timespec x; x.tv_sec = x.tv_nsec;
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext
17384 if { (ac_try="$ac_compile"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17390 $as_echo "$ac_try_echo") >&5
17391   (eval "$ac_compile") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } && {
17398          test -z "$ac_c_werror_flag" ||
17399          test ! -s conftest.err
17400        } && test -s conftest.$ac_objext; then
17401   gl_cv_sys_struct_timespec_in_pthread_h=yes
17402 else
17403   $as_echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406         gl_cv_sys_struct_timespec_in_pthread_h=no
17407 fi
17408
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410 fi
17411 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17412 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17413       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17414         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
17415       fi
17416     fi
17417   fi
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429   :
17430
17431
17432
17433
17434
17435
17436
17437      if test $gl_cv_have_include_next = yes; then
17438        gl_cv_next_time_h='<'time.h'>'
17439      else
17440        { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
17441 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17442 if test "${gl_cv_next_time_h+set}" = set; then
17443   $as_echo_n "(cached) " >&6
17444 else
17445
17446           if test $ac_cv_header_time_h = yes; then
17447             cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h.  */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h.  */
17453 #include <time.h>
17454
17455 _ACEOF
17456                                                                                                 case "$host_os" in
17457               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17458               *)    gl_absname_cpp="$ac_cpp" ;;
17459             esac
17460                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17461                sed -n '\#/time.h#{
17462                  s#.*"\(.*/time.h\)".*#\1#
17463                  s#^/[^/]#//&#
17464                  p
17465                  q
17466                }'`'"'
17467           else
17468             gl_cv_next_time_h='<'time.h'>'
17469           fi
17470
17471 fi
17472 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
17473 $as_echo "$gl_cv_next_time_h" >&6; }
17474      fi
17475      NEXT_TIME_H=$gl_cv_next_time_h
17476
17477      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17478        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17479        gl_next_as_first_directive='<'time.h'>'
17480      else
17481        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17482        gl_next_as_first_directive=$gl_cv_next_time_h
17483      fi
17484      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
17504 $as_echo_n "checking for wint_t... " >&6; }
17505 if test "${gt_cv_c_wint_t+set}" = set; then
17506   $as_echo_n "(cached) " >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 #include <wchar.h>
17515        wint_t foo = (wchar_t)'\0';
17516 int
17517 main ()
17518 {
17519
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17531 $as_echo "$ac_try_echo") >&5
17532   (eval "$ac_compile") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } && {
17539          test -z "$ac_c_werror_flag" ||
17540          test ! -s conftest.err
17541        } && test -s conftest.$ac_objext; then
17542   gt_cv_c_wint_t=yes
17543 else
17544   $as_echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         gt_cv_c_wint_t=no
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551 fi
17552 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17553 $as_echo "$gt_cv_c_wint_t" >&6; }
17554   if test $gt_cv_c_wint_t = yes; then
17555
17556 cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_WINT_T 1
17558 _ACEOF
17559
17560   fi
17561
17562 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17563 $as_echo_n "checking for size_t... " >&6; }
17564 if test "${ac_cv_type_size_t+set}" = set; then
17565   $as_echo_n "(cached) " >&6
17566 else
17567   ac_cv_type_size_t=no
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h.  */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h.  */
17574 $ac_includes_default
17575 int
17576 main ()
17577 {
17578 if (sizeof (size_t))
17579        return 0;
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17591 $as_echo "$ac_try_echo") >&5
17592   (eval "$ac_compile") 2>conftest.er1
17593   ac_status=$?
17594   grep -v '^ *+' conftest.er1 >conftest.err
17595   rm -f conftest.er1
17596   cat conftest.err >&5
17597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); } && {
17599          test -z "$ac_c_werror_flag" ||
17600          test ! -s conftest.err
17601        } && test -s conftest.$ac_objext; then
17602   cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608 $ac_includes_default
17609 int
17610 main ()
17611 {
17612 if (sizeof ((size_t)))
17613           return 0;
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17625 $as_echo "$ac_try_echo") >&5
17626   (eval "$ac_compile") 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } && {
17633          test -z "$ac_c_werror_flag" ||
17634          test ! -s conftest.err
17635        } && test -s conftest.$ac_objext; then
17636   :
17637 else
17638   $as_echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641         ac_cv_type_size_t=yes
17642 fi
17643
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 else
17646   $as_echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649
17650 fi
17651
17652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17653 fi
17654 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17655 $as_echo "$ac_cv_type_size_t" >&6; }
17656 if test "x$ac_cv_type_size_t" = x""yes; then
17657   :
17658 else
17659
17660 cat >>confdefs.h <<_ACEOF
17661 #define size_t unsigned int
17662 _ACEOF
17663
17664 fi
17665
17666
17667   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
17668 $as_echo_n "checking for inttypes.h... " >&6; }
17669 if test "${gl_cv_header_inttypes_h+set}" = set; then
17670   $as_echo_n "(cached) " >&6
17671 else
17672   cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678 #include <sys/types.h>
17679 #include <inttypes.h>
17680 int
17681 main ()
17682 {
17683 uintmax_t i = (uintmax_t) -1;
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17695 $as_echo "$ac_try_echo") >&5
17696   (eval "$ac_compile") 2>conftest.er1
17697   ac_status=$?
17698   grep -v '^ *+' conftest.er1 >conftest.err
17699   rm -f conftest.er1
17700   cat conftest.err >&5
17701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); } && {
17703          test -z "$ac_c_werror_flag" ||
17704          test ! -s conftest.err
17705        } && test -s conftest.$ac_objext; then
17706   gl_cv_header_inttypes_h=yes
17707 else
17708   $as_echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711         gl_cv_header_inttypes_h=no
17712 fi
17713
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 fi
17716 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17717 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17718   if test $gl_cv_header_inttypes_h = yes; then
17719
17720 cat >>confdefs.h <<_ACEOF
17721 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17722 _ACEOF
17723
17724   fi
17725
17726
17727   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17728 $as_echo_n "checking for stdint.h... " >&6; }
17729 if test "${gl_cv_header_stdint_h+set}" = set; then
17730   $as_echo_n "(cached) " >&6
17731 else
17732   cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h.  */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h.  */
17738 #include <sys/types.h>
17739 #include <stdint.h>
17740 int
17741 main ()
17742 {
17743 uintmax_t i = (uintmax_t) -1;
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17755 $as_echo "$ac_try_echo") >&5
17756   (eval "$ac_compile") 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } && {
17763          test -z "$ac_c_werror_flag" ||
17764          test ! -s conftest.err
17765        } && test -s conftest.$ac_objext; then
17766   gl_cv_header_stdint_h=yes
17767 else
17768   $as_echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771         gl_cv_header_stdint_h=no
17772 fi
17773
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 fi
17776 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17777 $as_echo "$gl_cv_header_stdint_h" >&6; }
17778   if test $gl_cv_header_stdint_h = yes; then
17779
17780 cat >>confdefs.h <<_ACEOF
17781 #define HAVE_STDINT_H_WITH_UINTMAX 1
17782 _ACEOF
17783
17784   fi
17785
17786
17787
17788
17789   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
17790 $as_echo_n "checking for intmax_t... " >&6; }
17791 if test "${gt_cv_c_intmax_t+set}" = set; then
17792   $as_echo_n "(cached) " >&6
17793 else
17794   cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800
17801 #include <stddef.h>
17802 #include <stdlib.h>
17803 #if HAVE_STDINT_H_WITH_UINTMAX
17804 #include <stdint.h>
17805 #endif
17806 #if HAVE_INTTYPES_H_WITH_UINTMAX
17807 #include <inttypes.h>
17808 #endif
17809
17810 int
17811 main ()
17812 {
17813 intmax_t x = -1; return !x;
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826   (eval "$ac_compile") 2>conftest.er1
17827   ac_status=$?
17828   grep -v '^ *+' conftest.er1 >conftest.err
17829   rm -f conftest.er1
17830   cat conftest.err >&5
17831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } && {
17833          test -z "$ac_c_werror_flag" ||
17834          test ! -s conftest.err
17835        } && test -s conftest.$ac_objext; then
17836   gt_cv_c_intmax_t=yes
17837 else
17838   $as_echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841         gt_cv_c_intmax_t=no
17842 fi
17843
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 fi
17846 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17847 $as_echo "$gt_cv_c_intmax_t" >&6; }
17848   if test $gt_cv_c_intmax_t = yes; then
17849
17850 cat >>confdefs.h <<\_ACEOF
17851 #define HAVE_INTMAX_T 1
17852 _ACEOF
17853
17854   else
17855
17856     test $ac_cv_type_long_long_int = yes \
17857       && ac_type='long long' \
17858       || ac_type='long'
17859
17860 cat >>confdefs.h <<_ACEOF
17861 #define intmax_t $ac_type
17862 _ACEOF
17863
17864   fi
17865
17866
17867
17868      { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
17869 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17870 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
17871   $as_echo_n "(cached) " >&6
17872 else
17873
17874       if test "$cross_compiling" = yes; then
17875
17876          case "$host_os" in
17877                                  # Guess yes on glibc systems.
17878            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
17879                                  # Guess yes on FreeBSD >= 5.
17880            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17881            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17882                                  # Guess yes on MacOS X >= 10.3.
17883            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17884            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17885                                  # Guess yes on OpenBSD >= 3.9.
17886            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17887                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17888            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17889                                  # Guess yes on Solaris >= 2.6.
17890            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
17891            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17892                                  # Guess yes on AIX >= 4.
17893            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
17894            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
17895                                  # Guess yes on NetBSD >= 3.
17896            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17897                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17898            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17899                                  # Guess yes on BeOS.
17900            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
17901                                  # If we don't know, assume the worst.
17902            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
17903          esac
17904
17905 else
17906   cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h.  */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h.  */
17912
17913 #include <stdio.h>
17914 #include <string.h>
17915 static char buf[100];
17916 int main ()
17917 {
17918   strcpy (buf, "ABCDEF");
17919   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17920     return 1;
17921   return 0;
17922 }
17923 _ACEOF
17924 rm -f conftest$ac_exeext
17925 if { (ac_try="$ac_link"
17926 case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932   (eval "$ac_link") 2>&5
17933   ac_status=$?
17934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17936   { (case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17941 $as_echo "$ac_try_echo") >&5
17942   (eval "$ac_try") 2>&5
17943   ac_status=$?
17944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; }; then
17946   gl_cv_func_snprintf_retval_c99=yes
17947 else
17948   $as_echo "$as_me: program exited with status $ac_status" >&5
17949 $as_echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952 ( exit $ac_status )
17953 gl_cv_func_snprintf_retval_c99=no
17954 fi
17955 rm -rf conftest.dSYM
17956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17957 fi
17958
17959
17960
17961 fi
17962 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
17963 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
17979 do
17980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17981 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17982 $as_echo_n "checking for $ac_func... " >&6; }
17983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17984   $as_echo_n "(cached) " >&6
17985 else
17986   cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h.  */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h.  */
17992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17994 #define $ac_func innocuous_$ac_func
17995
17996 /* System header to define __stub macros and hopefully few prototypes,
17997     which can conflict with char $ac_func (); below.
17998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17999     <limits.h> exists even on freestanding compilers.  */
18000
18001 #ifdef __STDC__
18002 # include <limits.h>
18003 #else
18004 # include <assert.h>
18005 #endif
18006
18007 #undef $ac_func
18008
18009 /* Override any GCC internal prototype to avoid an error.
18010    Use char because int might match the return type of a GCC
18011    builtin and then its argument prototype would still apply.  */
18012 #ifdef __cplusplus
18013 extern "C"
18014 #endif
18015 char $ac_func ();
18016 /* The GNU C library defines this for functions which it implements
18017     to always fail with ENOSYS.  Some functions are actually named
18018     something starting with __ and the normal name is an alias.  */
18019 #if defined __stub_$ac_func || defined __stub___$ac_func
18020 choke me
18021 #endif
18022
18023 int
18024 main ()
18025 {
18026 return $ac_func ();
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18038 $as_echo "$ac_try_echo") >&5
18039   (eval "$ac_link") 2>conftest.er1
18040   ac_status=$?
18041   grep -v '^ *+' conftest.er1 >conftest.err
18042   rm -f conftest.er1
18043   cat conftest.err >&5
18044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); } && {
18046          test -z "$ac_c_werror_flag" ||
18047          test ! -s conftest.err
18048        } && test -s conftest$ac_exeext && {
18049          test "$cross_compiling" = yes ||
18050          $as_test_x conftest$ac_exeext
18051        }; then
18052   eval "$as_ac_var=yes"
18053 else
18054   $as_echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057         eval "$as_ac_var=no"
18058 fi
18059
18060 rm -rf conftest.dSYM
18061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18062       conftest$ac_exeext conftest.$ac_ext
18063 fi
18064 ac_res=`eval 'as_val=${'$as_ac_var'}
18065                  $as_echo "$as_val"'`
18066                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18067 $as_echo "$ac_res" >&6; }
18068 as_val=`eval 'as_val=${'$as_ac_var'}
18069                  $as_echo "$as_val"'`
18070    if test "x$as_val" = x""yes; then
18071   cat >>confdefs.h <<_ACEOF
18072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18073 _ACEOF
18074
18075 fi
18076 done
18077
18078       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18079 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18080 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18081   $as_echo_n "(cached) " >&6
18082 else
18083   cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 #include <stdio.h>
18090
18091 int
18092 main ()
18093 {
18094 #ifndef _snprintf
18095   (void) _snprintf;
18096 #endif
18097
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext
18103 if { (ac_try="$ac_compile"
18104 case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18109 $as_echo "$ac_try_echo") >&5
18110   (eval "$ac_compile") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } && {
18117          test -z "$ac_c_werror_flag" ||
18118          test ! -s conftest.err
18119        } && test -s conftest.$ac_objext; then
18120   ac_cv_have_decl__snprintf=yes
18121 else
18122   $as_echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125         ac_cv_have_decl__snprintf=no
18126 fi
18127
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 fi
18130 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18131 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18132 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18133
18134 cat >>confdefs.h <<_ACEOF
18135 #define HAVE_DECL__SNPRINTF 1
18136 _ACEOF
18137
18138
18139 else
18140   cat >>confdefs.h <<_ACEOF
18141 #define HAVE_DECL__SNPRINTF 0
18142 _ACEOF
18143
18144
18145 fi
18146
18147
18148
18149   case "$gl_cv_func_snprintf_retval_c99" in
18150     *yes)
18151
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_SNPRINTF_RETVAL_C99 1
18154 _ACEOF
18155
18156       ;;
18157   esac
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178       { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
18179 $as_echo_n "checking whether iswblank is declared... " >&6; }
18180 if test "${ac_cv_have_decl_iswblank+set}" = set; then
18181   $as_echo_n "(cached) " >&6
18182 else
18183   cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189 $ac_includes_default
18190 int
18191 main ()
18192 {
18193 #ifndef iswblank
18194   (void) iswblank;
18195 #endif
18196
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 rm -f conftest.$ac_objext
18202 if { (ac_try="$ac_compile"
18203 case "(($ac_try" in
18204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205   *) ac_try_echo=$ac_try;;
18206 esac
18207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18208 $as_echo "$ac_try_echo") >&5
18209   (eval "$ac_compile") 2>conftest.er1
18210   ac_status=$?
18211   grep -v '^ *+' conftest.er1 >conftest.err
18212   rm -f conftest.er1
18213   cat conftest.err >&5
18214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); } && {
18216          test -z "$ac_c_werror_flag" ||
18217          test ! -s conftest.err
18218        } && test -s conftest.$ac_objext; then
18219   ac_cv_have_decl_iswblank=yes
18220 else
18221   $as_echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224         ac_cv_have_decl_iswblank=no
18225 fi
18226
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228 fi
18229 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
18230 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
18231 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
18232
18233 cat >>confdefs.h <<_ACEOF
18234 #define HAVE_DECL_ISWBLANK 1
18235 _ACEOF
18236
18237
18238 else
18239   cat >>confdefs.h <<_ACEOF
18240 #define HAVE_DECL_ISWBLANK 0
18241 _ACEOF
18242
18243
18244 fi
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255    if true; then
18256   GL_COND_LIBTOOL_TRUE=
18257   GL_COND_LIBTOOL_FALSE='#'
18258 else
18259   GL_COND_LIBTOOL_TRUE='#'
18260   GL_COND_LIBTOOL_FALSE=
18261 fi
18262
18263   gl_cond_libtool=true
18264   gl_m4_base='config/gnulib'
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274   gl_source_base='gnulib'
18275   # Code from module alignof:
18276   # Code from module alloca-opt:
18277
18278
18279
18280
18281
18282   if test $ac_cv_func_alloca_works = no; then
18283     :
18284   fi
18285
18286   # Define an additional variable used in the Makefile substitution.
18287   if test $ac_cv_working_alloca_h = yes; then
18288     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18289 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18290 if test "${gl_cv_rpl_alloca+set}" = set; then
18291   $as_echo_n "(cached) " >&6
18292 else
18293
18294       cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h.  */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h.  */
18300
18301 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18302         Need own alloca
18303 #endif
18304
18305 _ACEOF
18306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18307   $EGREP "Need own alloca" >/dev/null 2>&1; then
18308   gl_cv_rpl_alloca=yes
18309 else
18310   gl_cv_rpl_alloca=no
18311 fi
18312 rm -f conftest*
18313
18314
18315 fi
18316 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18317 $as_echo "$gl_cv_rpl_alloca" >&6; }
18318     if test $gl_cv_rpl_alloca = yes; then
18319
18320 cat >>confdefs.h <<\_ACEOF
18321 #define HAVE_ALLOCA 1
18322 _ACEOF
18323
18324       ALLOCA_H=alloca.h
18325     else
18326                   ALLOCA_H=
18327     fi
18328   else
18329     ALLOCA_H=alloca.h
18330   fi
18331
18332
18333   # Code from module arg-nonnull:
18334   # Code from module arpa_inet:
18335
18336
18337
18338
18339   :
18340
18341
18342
18343
18344
18345   if test $ac_cv_header_arpa_inet_h = yes; then
18346     HAVE_ARPA_INET_H=1
18347   else
18348     HAVE_ARPA_INET_H=0
18349   fi
18350
18351
18352
18353
18354
18355   :
18356
18357
18358
18359
18360
18361
18362
18363      if test $gl_cv_have_include_next = yes; then
18364        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18365      else
18366        { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
18367 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
18368 if test "${gl_cv_next_arpa_inet_h+set}" = set; then
18369   $as_echo_n "(cached) " >&6
18370 else
18371
18372           if test $ac_cv_header_arpa_inet_h = yes; then
18373             cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379 #include <arpa/inet.h>
18380
18381 _ACEOF
18382                                                                                                 case "$host_os" in
18383               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18384               *)    gl_absname_cpp="$ac_cpp" ;;
18385             esac
18386                                                 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18387                sed -n '\#/arpa/inet.h#{
18388                  s#.*"\(.*/arpa/inet.h\)".*#\1#
18389                  s#^/[^/]#//&#
18390                  p
18391                  q
18392                }'`'"'
18393           else
18394             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18395           fi
18396
18397 fi
18398 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
18399 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
18400      fi
18401      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
18402
18403      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18404        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18405        gl_next_as_first_directive='<'arpa/inet.h'>'
18406      else
18407        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18408        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
18409      fi
18410      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
18411
18412
18413
18414
18415
18416
18417
18418   for gl_func in inet_ntop inet_pton; do
18419     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18420     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
18421 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18422 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
18423   $as_echo_n "(cached) " >&6
18424 else
18425   cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431
18432 /* On some systems, this header is not self-consistent.  */
18433 #ifndef __GLIBC__
18434 # include <sys/socket.h>
18435 #endif
18436 #include <arpa/inet.h>
18437
18438 int
18439 main ()
18440 {
18441 #undef $gl_func
18442   (void) $gl_func;
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext
18448 if { (ac_try="$ac_compile"
18449 case "(($ac_try" in
18450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451   *) ac_try_echo=$ac_try;;
18452 esac
18453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18454 $as_echo "$ac_try_echo") >&5
18455   (eval "$ac_compile") 2>conftest.er1
18456   ac_status=$?
18457   grep -v '^ *+' conftest.er1 >conftest.err
18458   rm -f conftest.er1
18459   cat conftest.err >&5
18460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } && {
18462          test -z "$ac_c_werror_flag" ||
18463          test ! -s conftest.err
18464        } && test -s conftest.$ac_objext; then
18465   eval "$as_gl_Symbol=yes"
18466 else
18467   $as_echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18469
18470         eval "$as_gl_Symbol=no"
18471 fi
18472
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 fi
18475 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
18476                  $as_echo "$as_val"'`
18477                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18478 $as_echo "$ac_res" >&6; }
18479      as_val=`eval 'as_val=${'$as_gl_Symbol'}
18480                  $as_echo "$as_val"'`
18481    if test "x$as_val" = x""yes; then
18482   cat >>confdefs.h <<_ACEOF
18483 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18484 _ACEOF
18485
18486                      eval ac_cv_have_decl_$gl_func=yes
18487 fi
18488
18489       done
18490
18491
18492   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18493 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18494 if test -z "$MKDIR_P"; then
18495   if test "${ac_cv_path_mkdir+set}" = set; then
18496   $as_echo_n "(cached) " >&6
18497 else
18498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18499 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18500 do
18501   IFS=$as_save_IFS
18502   test -z "$as_dir" && as_dir=.
18503   for ac_prog in mkdir gmkdir; do
18504          for ac_exec_ext in '' $ac_executable_extensions; do
18505            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18506            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18507              'mkdir (GNU coreutils) '* | \
18508              'mkdir (coreutils) '* | \
18509              'mkdir (fileutils) '4.1*)
18510                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18511                break 3;;
18512            esac
18513          done
18514        done
18515 done
18516 IFS=$as_save_IFS
18517
18518 fi
18519
18520   if test "${ac_cv_path_mkdir+set}" = set; then
18521     MKDIR_P="$ac_cv_path_mkdir -p"
18522   else
18523     # As a last resort, use the slow shell script.  Don't cache a
18524     # value for MKDIR_P within a source directory, because that will
18525     # break other packages using the cache if that directory is
18526     # removed, or if the value is a relative name.
18527     test -d ./--version && rmdir ./--version
18528     MKDIR_P="$ac_install_sh -d"
18529   fi
18530 fi
18531 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18532 $as_echo "$MKDIR_P" >&6; }
18533
18534
18535   # Code from module base64:
18536
18537
18538
18539
18540
18541
18542   # Code from module btowc:
18543
18544
18545
18546
18547
18548
18549   :
18550
18551
18552
18553
18554
18555   if test $ac_cv_func_btowc = no; then
18556     HAVE_BTOWC=0
18557   else
18558
18559
18560
18561
18562         { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
18563 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
18564 if test "${gl_cv_func_btowc_nul+set}" = set; then
18565   $as_echo_n "(cached) " >&6
18566 else
18567
18568         if test "$cross_compiling" = yes; then
18569
18570            case "$host_os" in
18571                       # Guess no on Cygwin.
18572              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
18573                       # Guess yes otherwise.
18574              *)       gl_cv_func_btowc_nul="guessing yes" ;;
18575            esac
18576
18577 else
18578   cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584
18585 #include <stdio.h>
18586 #include <string.h>
18587 #include <wchar.h>
18588 int main ()
18589 {
18590   if (btowc ('\0') != 0)
18591     return 1;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599   *) ac_try_echo=$ac_try;;
18600 esac
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603   (eval "$ac_link") 2>&5
18604   ac_status=$?
18605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18607   { (case "(($ac_try" in
18608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609   *) ac_try_echo=$ac_try;;
18610 esac
18611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18612 $as_echo "$ac_try_echo") >&5
18613   (eval "$ac_try") 2>&5
18614   ac_status=$?
18615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   gl_cv_func_btowc_nul=yes
18618 else
18619   $as_echo "$as_me: program exited with status $ac_status" >&5
18620 $as_echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ( exit $ac_status )
18624 gl_cv_func_btowc_nul=no
18625 fi
18626 rm -rf conftest.dSYM
18627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18628 fi
18629
18630
18631
18632 fi
18633 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
18634 $as_echo "$gl_cv_func_btowc_nul" >&6; }
18635
18636         { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
18637 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
18638 if test "${gl_cv_func_btowc_eof+set}" = set; then
18639   $as_echo_n "(cached) " >&6
18640 else
18641
18642                         case "$host_os" in
18643                  # Guess no on IRIX.
18644           irix*) gl_cv_func_btowc_eof="guessing no" ;;
18645                  # Guess yes otherwise.
18646           *)     gl_cv_func_btowc_eof="guessing yes" ;;
18647         esac
18648         if test $LOCALE_FR != none; then
18649           if test "$cross_compiling" = yes; then
18650   :
18651 else
18652   cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658
18659 #include <locale.h>
18660 #include <stdio.h>
18661 #include <string.h>
18662 #include <wchar.h>
18663 int main ()
18664 {
18665   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18666     {
18667       if (btowc (EOF) != WEOF)
18668         return 1;
18669     }
18670   return 0;
18671 }
18672 _ACEOF
18673 rm -f conftest$ac_exeext
18674 if { (ac_try="$ac_link"
18675 case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18680 $as_echo "$ac_try_echo") >&5
18681   (eval "$ac_link") 2>&5
18682   ac_status=$?
18683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18685   { (case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18690 $as_echo "$ac_try_echo") >&5
18691   (eval "$ac_try") 2>&5
18692   ac_status=$?
18693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   gl_cv_func_btowc_eof=yes
18696 else
18697   $as_echo "$as_me: program exited with status $ac_status" >&5
18698 $as_echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 ( exit $ac_status )
18702 gl_cv_func_btowc_eof=no
18703 fi
18704 rm -rf conftest.dSYM
18705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18706 fi
18707
18708
18709         fi
18710
18711 fi
18712 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
18713 $as_echo "$gl_cv_func_btowc_eof" >&6; }
18714
18715     case "$gl_cv_func_btowc_nul" in
18716       *yes) ;;
18717       *) REPLACE_BTOWC=1 ;;
18718     esac
18719     case "$gl_cv_func_btowc_eof" in
18720       *yes) ;;
18721       *) REPLACE_BTOWC=1 ;;
18722     esac
18723   fi
18724   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
18725
18726     :
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
18737
18738
18739   :
18740
18741   fi
18742
18743
18744
18745
18746   GNULIB_BTOWC=1
18747
18748
18749
18750 cat >>confdefs.h <<\_ACEOF
18751 #define GNULIB_TEST_BTOWC 1
18752 _ACEOF
18753
18754
18755
18756   # Code from module c++defs:
18757   # Code from module c-ctype:
18758   # Code from module configmake:
18759   # Code from module environ:
18760
18761
18762
18763
18764   GNULIB_ENVIRON=1
18765
18766
18767
18768 cat >>confdefs.h <<\_ACEOF
18769 #define GNULIB_TEST_ENVIRON 1
18770 _ACEOF
18771
18772
18773
18774   # Code from module errno:
18775
18776   # Code from module extensions:
18777   # Code from module float:
18778
18779
18780
18781   FLOAT_H=
18782   case "$host_os" in
18783     beos* | openbsd*)
18784       FLOAT_H=float.h
18785
18786
18787
18788
18789   :
18790
18791
18792
18793
18794
18795
18796
18797      if test $gl_cv_have_include_next = yes; then
18798        gl_cv_next_float_h='<'float.h'>'
18799      else
18800        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
18801 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18802 if test "${gl_cv_next_float_h+set}" = set; then
18803   $as_echo_n "(cached) " >&6
18804 else
18805
18806           if test $ac_cv_header_float_h = yes; then
18807             cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 #include <float.h>
18814
18815 _ACEOF
18816                                                                                                 case "$host_os" in
18817               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18818               *)    gl_absname_cpp="$ac_cpp" ;;
18819             esac
18820                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18821                sed -n '\#/float.h#{
18822                  s#.*"\(.*/float.h\)".*#\1#
18823                  s#^/[^/]#//&#
18824                  p
18825                  q
18826                }'`'"'
18827           else
18828             gl_cv_next_float_h='<'float.h'>'
18829           fi
18830
18831 fi
18832 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
18833 $as_echo "$gl_cv_next_float_h" >&6; }
18834      fi
18835      NEXT_FLOAT_H=$gl_cv_next_float_h
18836
18837      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18838        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18839        gl_next_as_first_directive='<'float.h'>'
18840      else
18841        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18842        gl_next_as_first_directive=$gl_cv_next_float_h
18843      fi
18844      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
18845
18846
18847
18848       ;;
18849   esac
18850
18851
18852   # Code from module fseeko:
18853
18854
18855
18856
18857
18858   if test $gl_cv_func_fseeko = no; then
18859     HAVE_FSEEKO=0
18860
18861
18862
18863   if test $gl_cv_func_fseeko = yes; then
18864     REPLACE_FSEEKO=1
18865   fi
18866
18867
18868
18869
18870
18871
18872
18873
18874   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18875
18876
18877
18878   else
18879     if test $gl_cv_var_stdin_large_offset = no; then
18880
18881
18882
18883   if test $gl_cv_func_fseeko = yes; then
18884     REPLACE_FSEEKO=1
18885   fi
18886
18887
18888
18889
18890
18891
18892
18893
18894   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18895
18896
18897
18898     fi
18899   fi
18900
18901
18902
18903
18904   GNULIB_FSEEKO=1
18905
18906
18907
18908 cat >>confdefs.h <<\_ACEOF
18909 #define GNULIB_TEST_FSEEKO 1
18910 _ACEOF
18911
18912
18913
18914   # Code from module fsusage:
18915
18916
18917   :
18918
18919
18920
18921
18922
18923
18924   :
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934 for ac_header in sys/mount.h
18935 do
18936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18938 $as_echo_n "checking for $ac_header... " >&6; }
18939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18940   $as_echo_n "(cached) " >&6
18941 else
18942   cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948 $ac_includes_default
18949      #if HAVE_SYS_PARAM_H
18950        #include <sys/param.h>
18951       #endif
18952
18953 #include <$ac_header>
18954 _ACEOF
18955 rm -f conftest.$ac_objext
18956 if { (ac_try="$ac_compile"
18957 case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18962 $as_echo "$ac_try_echo") >&5
18963   (eval "$ac_compile") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } && {
18970          test -z "$ac_c_werror_flag" ||
18971          test ! -s conftest.err
18972        } && test -s conftest.$ac_objext; then
18973   eval "$as_ac_Header=yes"
18974 else
18975   $as_echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         eval "$as_ac_Header=no"
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982 fi
18983 ac_res=`eval 'as_val=${'$as_ac_Header'}
18984                  $as_echo "$as_val"'`
18985                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18986 $as_echo "$ac_res" >&6; }
18987 as_val=`eval 'as_val=${'$as_ac_Header'}
18988                  $as_echo "$as_val"'`
18989    if test "x$as_val" = x""yes; then
18990   cat >>confdefs.h <<_ACEOF
18991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18992 _ACEOF
18993
18994 fi
18995
18996 done
18997
18998
18999
19000 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
19001 $as_echo "$as_me: checking how to get file system space usage" >&6;}
19002 ac_fsusage_space=no
19003
19004 # Perform only the link test since it seems there are no variants of the
19005 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
19006 # because that got a false positive on SCO OSR5.  Adding the declaration
19007 # of a `struct statvfs' causes this test to fail (as it should) on such
19008 # systems.  That system is reported to work fine with STAT_STATFS4 which
19009 # is what it gets when this test fails.
19010 if test $ac_fsusage_space = no; then
19011   # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19012   # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
19013   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
19014 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
19015 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
19016   $as_echo_n "(cached) " >&6
19017 else
19018   cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h.  */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h.  */
19024 #include <sys/types.h>
19025 #if defined __GLIBC__ && defined __linux__
19026 Do not use statvfs on systems with GNU libc on Linux, because that function
19027 stats all preceding entries in /proc/mounts, and that makes df hang if even
19028 one of the corresponding file systems is hard-mounted, but not available.
19029 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
19030 a system call.
19031 #endif
19032
19033 #ifdef __osf__
19034 "Do not use Tru64's statvfs implementation"
19035 #endif
19036
19037 #include <sys/statvfs.h>
19038 int
19039 main ()
19040 {
19041 struct statvfs fsd; statvfs (0, &fsd);
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19053 $as_echo "$ac_try_echo") >&5
19054   (eval "$ac_link") 2>conftest.er1
19055   ac_status=$?
19056   grep -v '^ *+' conftest.er1 >conftest.err
19057   rm -f conftest.er1
19058   cat conftest.err >&5
19059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); } && {
19061          test -z "$ac_c_werror_flag" ||
19062          test ! -s conftest.err
19063        } && test -s conftest$ac_exeext && {
19064          test "$cross_compiling" = yes ||
19065          $as_test_x conftest$ac_exeext
19066        }; then
19067   fu_cv_sys_stat_statvfs=yes
19068 else
19069   $as_echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072         fu_cv_sys_stat_statvfs=no
19073 fi
19074
19075 rm -rf conftest.dSYM
19076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19077       conftest$ac_exeext conftest.$ac_ext
19078 fi
19079 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
19080 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
19081   if test $fu_cv_sys_stat_statvfs = yes; then
19082     ac_fsusage_space=yes
19083
19084 cat >>confdefs.h <<\_ACEOF
19085 #define STAT_STATVFS 1
19086 _ACEOF
19087
19088   fi
19089 fi
19090
19091 if test $ac_fsusage_space = no; then
19092   # DEC Alpha running OSF/1
19093   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
19094 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
19095   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
19096   $as_echo_n "(cached) " >&6
19097 else
19098   if test "$cross_compiling" = yes; then
19099   fu_cv_sys_stat_statfs3_osf1=no
19100 else
19101   cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107
19108 #include <sys/param.h>
19109 #include <sys/types.h>
19110 #include <sys/mount.h>
19111   int
19112   main ()
19113   {
19114     struct statfs fsd;
19115     fsd.f_fsize = 0;
19116     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
19117   }
19118 _ACEOF
19119 rm -f conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19126 $as_echo "$ac_try_echo") >&5
19127   (eval "$ac_link") 2>&5
19128   ac_status=$?
19129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19136 $as_echo "$ac_try_echo") >&5
19137   (eval "$ac_try") 2>&5
19138   ac_status=$?
19139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; }; then
19141   fu_cv_sys_stat_statfs3_osf1=yes
19142 else
19143   $as_echo "$as_me: program exited with status $ac_status" >&5
19144 $as_echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ( exit $ac_status )
19148 fu_cv_sys_stat_statfs3_osf1=no
19149 fi
19150 rm -rf conftest.dSYM
19151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19152 fi
19153
19154
19155 fi
19156
19157   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19158 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
19159   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19160     ac_fsusage_space=yes
19161
19162 cat >>confdefs.h <<\_ACEOF
19163 #define STAT_STATFS3_OSF1 1
19164 _ACEOF
19165
19166   fi
19167 fi
19168
19169 if test $ac_fsusage_space = no; then
19170   # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
19171   # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19172   # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
19173   # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
19174   # <sys/vfs.h>.)
19175   # (On Solaris, statfs has 4 arguments.)
19176   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
19177 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
19178   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
19179   $as_echo_n "(cached) " >&6
19180 else
19181   if test "$cross_compiling" = yes; then
19182   fu_cv_sys_stat_statfs2_bsize=no
19183 else
19184   cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h.  */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h.  */
19190
19191 #ifdef HAVE_SYS_PARAM_H
19192 #include <sys/param.h>
19193 #endif
19194 #ifdef HAVE_SYS_MOUNT_H
19195 #include <sys/mount.h>
19196 #endif
19197 #ifdef HAVE_SYS_VFS_H
19198 #include <sys/vfs.h>
19199 #endif
19200   int
19201   main ()
19202   {
19203   struct statfs fsd;
19204   fsd.f_bsize = 0;
19205   return statfs (".", &fsd) != 0;
19206   }
19207 _ACEOF
19208 rm -f conftest$ac_exeext
19209 if { (ac_try="$ac_link"
19210 case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19215 $as_echo "$ac_try_echo") >&5
19216   (eval "$ac_link") 2>&5
19217   ac_status=$?
19218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19220   { (case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19225 $as_echo "$ac_try_echo") >&5
19226   (eval "$ac_try") 2>&5
19227   ac_status=$?
19228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; }; then
19230   fu_cv_sys_stat_statfs2_bsize=yes
19231 else
19232   $as_echo "$as_me: program exited with status $ac_status" >&5
19233 $as_echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236 ( exit $ac_status )
19237 fu_cv_sys_stat_statfs2_bsize=no
19238 fi
19239 rm -rf conftest.dSYM
19240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19241 fi
19242
19243
19244 fi
19245
19246   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19247 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
19248   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19249     ac_fsusage_space=yes
19250
19251 cat >>confdefs.h <<\_ACEOF
19252 #define STAT_STATFS2_BSIZE 1
19253 _ACEOF
19254
19255   fi
19256 fi
19257
19258 if test $ac_fsusage_space = no; then
19259   # SVR3
19260   # (Solaris already handled above.)
19261   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19262 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
19263   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
19264   $as_echo_n "(cached) " >&6
19265 else
19266   if test "$cross_compiling" = yes; then
19267   fu_cv_sys_stat_statfs4=no
19268 else
19269   cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275
19276 #include <sys/types.h>
19277 #include <sys/statfs.h>
19278   int
19279   main ()
19280   {
19281   struct statfs fsd;
19282   return statfs (".", &fsd, sizeof fsd, 0) != 0;
19283   }
19284 _ACEOF
19285 rm -f conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293   (eval "$ac_link") 2>&5
19294   ac_status=$?
19295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19297   { (case "(($ac_try" in
19298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299   *) ac_try_echo=$ac_try;;
19300 esac
19301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19302 $as_echo "$ac_try_echo") >&5
19303   (eval "$ac_try") 2>&5
19304   ac_status=$?
19305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307   fu_cv_sys_stat_statfs4=yes
19308 else
19309   $as_echo "$as_me: program exited with status $ac_status" >&5
19310 $as_echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 ( exit $ac_status )
19314 fu_cv_sys_stat_statfs4=no
19315 fi
19316 rm -rf conftest.dSYM
19317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19318 fi
19319
19320
19321 fi
19322
19323   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
19324 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
19325   if test $fu_cv_sys_stat_statfs4 = yes; then
19326     ac_fsusage_space=yes
19327
19328 cat >>confdefs.h <<\_ACEOF
19329 #define STAT_STATFS4 1
19330 _ACEOF
19331
19332   fi
19333 fi
19334
19335 if test $ac_fsusage_space = no; then
19336   # 4.4BSD and older NetBSD
19337   # (OSF/1 already handled above.)
19338   # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
19339   # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
19340   # <sys/mount.h>.)
19341   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
19342 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
19343   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
19344   $as_echo_n "(cached) " >&6
19345 else
19346   if test "$cross_compiling" = yes; then
19347   fu_cv_sys_stat_statfs2_fsize=no
19348 else
19349   cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355
19356 #include <sys/types.h>
19357 #ifdef HAVE_SYS_PARAM_H
19358 #include <sys/param.h>
19359 #endif
19360 #ifdef HAVE_SYS_MOUNT_H
19361 #include <sys/mount.h>
19362 #endif
19363   int
19364   main ()
19365   {
19366   struct statfs fsd;
19367   fsd.f_fsize = 0;
19368   return statfs (".", &fsd) != 0;
19369   }
19370 _ACEOF
19371 rm -f conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19378 $as_echo "$ac_try_echo") >&5
19379   (eval "$ac_link") 2>&5
19380   ac_status=$?
19381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19383   { (case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19388 $as_echo "$ac_try_echo") >&5
19389   (eval "$ac_try") 2>&5
19390   ac_status=$?
19391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   fu_cv_sys_stat_statfs2_fsize=yes
19394 else
19395   $as_echo "$as_me: program exited with status $ac_status" >&5
19396 $as_echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399 ( exit $ac_status )
19400 fu_cv_sys_stat_statfs2_fsize=no
19401 fi
19402 rm -rf conftest.dSYM
19403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19404 fi
19405
19406
19407 fi
19408
19409   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19410 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
19411   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19412     ac_fsusage_space=yes
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define STAT_STATFS2_FSIZE 1
19416 _ACEOF
19417
19418   fi
19419 fi
19420
19421 if test $ac_fsusage_space = no; then
19422   # Ultrix
19423   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19424 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
19425   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
19426   $as_echo_n "(cached) " >&6
19427 else
19428   if test "$cross_compiling" = yes; then
19429   fu_cv_sys_stat_fs_data=no
19430 else
19431   cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437
19438 #include <sys/types.h>
19439 #ifdef HAVE_SYS_PARAM_H
19440 #include <sys/param.h>
19441 #endif
19442 #ifdef HAVE_SYS_MOUNT_H
19443 #include <sys/mount.h>
19444 #endif
19445 #ifdef HAVE_SYS_FS_TYPES_H
19446 #include <sys/fs_types.h>
19447 #endif
19448   int
19449   main ()
19450   {
19451   struct fs_data fsd;
19452   /* Ultrix's statfs returns 1 for success,
19453      0 for not mounted, -1 for failure.  */
19454   return statfs (".", &fsd) != 1;
19455   }
19456 _ACEOF
19457 rm -f conftest$ac_exeext
19458 if { (ac_try="$ac_link"
19459 case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19464 $as_echo "$ac_try_echo") >&5
19465   (eval "$ac_link") 2>&5
19466   ac_status=$?
19467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19469   { (case "(($ac_try" in
19470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471   *) ac_try_echo=$ac_try;;
19472 esac
19473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19474 $as_echo "$ac_try_echo") >&5
19475   (eval "$ac_try") 2>&5
19476   ac_status=$?
19477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   fu_cv_sys_stat_fs_data=yes
19480 else
19481   $as_echo "$as_me: program exited with status $ac_status" >&5
19482 $as_echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485 ( exit $ac_status )
19486 fu_cv_sys_stat_fs_data=no
19487 fi
19488 rm -rf conftest.dSYM
19489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19490 fi
19491
19492
19493 fi
19494
19495   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
19496 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
19497   if test $fu_cv_sys_stat_fs_data = yes; then
19498     ac_fsusage_space=yes
19499
19500 cat >>confdefs.h <<\_ACEOF
19501 #define STAT_STATFS2_FS_DATA 1
19502 _ACEOF
19503
19504   fi
19505 fi
19506
19507 if test $ac_fsusage_space = no; then
19508   # SVR2
19509   # (AIX, HP-UX, OSF/1 already handled above.)
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <sys/filsys.h>
19517
19518 _ACEOF
19519 if { (ac_try="$ac_cpp conftest.$ac_ext"
19520 case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19527   ac_status=$?
19528   grep -v '^ *+' conftest.er1 >conftest.err
19529   rm -f conftest.er1
19530   cat conftest.err >&5
19531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); } >/dev/null && {
19533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19534          test ! -s conftest.err
19535        }; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define STAT_READ_FILSYS 1
19539 _ACEOF
19540
19541      ac_fsusage_space=yes
19542 else
19543   $as_echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19545
19546
19547 fi
19548
19549 rm -f conftest.err conftest.$ac_ext
19550 fi
19551
19552 if test $ac_fsusage_space = yes; then
19553   gl_cv_fs_space=yes
19554 else
19555   gl_cv_fs_space=no
19556 fi
19557
19558
19559
19560   if test $gl_cv_fs_space = yes; then
19561
19562
19563
19564
19565
19566
19567
19568
19569   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
19570
19571
19572
19573
19574
19575
19576 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
19577 do
19578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19580   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19581 $as_echo_n "checking for $ac_header... " >&6; }
19582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19583   $as_echo_n "(cached) " >&6
19584 fi
19585 ac_res=`eval 'as_val=${'$as_ac_Header'}
19586                  $as_echo "$as_val"'`
19587                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19588 $as_echo "$ac_res" >&6; }
19589 else
19590   # Is the header compilable?
19591 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19592 $as_echo_n "checking $ac_header usability... " >&6; }
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 $ac_includes_default
19600 #include <$ac_header>
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606   *) ac_try_echo=$ac_try;;
19607 esac
19608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19609 $as_echo "$ac_try_echo") >&5
19610   (eval "$ac_compile") 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } && {
19617          test -z "$ac_c_werror_flag" ||
19618          test ! -s conftest.err
19619        } && test -s conftest.$ac_objext; then
19620   ac_header_compiler=yes
19621 else
19622   $as_echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625         ac_header_compiler=no
19626 fi
19627
19628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19630 $as_echo "$ac_header_compiler" >&6; }
19631
19632 # Is the header present?
19633 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19634 $as_echo_n "checking $ac_header presence... " >&6; }
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 #include <$ac_header>
19642 _ACEOF
19643 if { (ac_try="$ac_cpp conftest.$ac_ext"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19649 $as_echo "$ac_try_echo") >&5
19650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } >/dev/null && {
19657          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19658          test ! -s conftest.err
19659        }; then
19660   ac_header_preproc=yes
19661 else
19662   $as_echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665   ac_header_preproc=no
19666 fi
19667
19668 rm -f conftest.err conftest.$ac_ext
19669 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19670 $as_echo "$ac_header_preproc" >&6; }
19671
19672 # So?  What about this header?
19673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19674   yes:no: )
19675     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19676 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19677     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19679     ac_header_preproc=yes
19680     ;;
19681   no:yes:* )
19682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19683 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19685 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19687 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19689 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19693 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19694
19695     ;;
19696 esac
19697 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19698 $as_echo_n "checking for $ac_header... " >&6; }
19699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19700   $as_echo_n "(cached) " >&6
19701 else
19702   eval "$as_ac_Header=\$ac_header_preproc"
19703 fi
19704 ac_res=`eval 'as_val=${'$as_ac_Header'}
19705                  $as_echo "$as_val"'`
19706                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19707 $as_echo "$ac_res" >&6; }
19708
19709 fi
19710 as_val=`eval 'as_val=${'$as_ac_Header'}
19711                  $as_echo "$as_val"'`
19712    if test "x$as_val" = x""yes; then
19713   cat >>confdefs.h <<_ACEOF
19714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19715 _ACEOF
19716
19717 fi
19718
19719 done
19720
19721
19722   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
19723 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
19724   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
19725   $as_echo_n "(cached) " >&6
19726 else
19727   cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733
19734 #if !defined(sun) && !defined(__sun)
19735 choke -- this is a workaround for a Sun-specific problem
19736 #endif
19737 #include <sys/types.h>
19738 #include <sys/vfs.h>
19739 int
19740 main ()
19741 {
19742 struct statfs t; long c = *(t.f_spare);
19743         if (c) return 0;
19744   ;
19745   return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (ac_try="$ac_compile"
19750 case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19755 $as_echo "$ac_try_echo") >&5
19756   (eval "$ac_compile") 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } && {
19763          test -z "$ac_c_werror_flag" ||
19764          test ! -s conftest.err
19765        } && test -s conftest.$ac_objext; then
19766   fu_cv_sys_truncating_statfs=yes
19767 else
19768   $as_echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19770
19771         fu_cv_sys_truncating_statfs=no
19772 fi
19773
19774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775 fi
19776
19777   if test $fu_cv_sys_truncating_statfs = yes; then
19778
19779 cat >>confdefs.h <<\_ACEOF
19780 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
19781 _ACEOF
19782
19783   fi
19784   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
19785 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
19786
19787
19788   fi
19789
19790   # Code from module ftello:
19791
19792
19793
19794
19795
19796
19797
19798   { $as_echo "$as_me:$LINENO: checking for ftello" >&5
19799 $as_echo_n "checking for ftello... " >&6; }
19800 if test "${gl_cv_func_ftello+set}" = set; then
19801   $as_echo_n "(cached) " >&6
19802 else
19803
19804       cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 #include <stdio.h>
19811 int
19812 main ()
19813 {
19814 ftello (stdin);
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (ac_try="$ac_link"
19821 case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19826 $as_echo "$ac_try_echo") >&5
19827   (eval "$ac_link") 2>conftest.er1
19828   ac_status=$?
19829   grep -v '^ *+' conftest.er1 >conftest.err
19830   rm -f conftest.er1
19831   cat conftest.err >&5
19832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } && {
19834          test -z "$ac_c_werror_flag" ||
19835          test ! -s conftest.err
19836        } && test -s conftest$ac_exeext && {
19837          test "$cross_compiling" = yes ||
19838          $as_test_x conftest$ac_exeext
19839        }; then
19840   gl_cv_func_ftello=yes
19841 else
19842   $as_echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845         gl_cv_func_ftello=no
19846 fi
19847
19848 rm -rf conftest.dSYM
19849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19850       conftest$ac_exeext conftest.$ac_ext
19851
19852 fi
19853 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello" >&5
19854 $as_echo "$gl_cv_func_ftello" >&6; }
19855   if test $gl_cv_func_ftello = no; then
19856     HAVE_FTELLO=0
19857   else
19858     if test $gl_cv_var_stdin_large_offset = no; then
19859       REPLACE_FTELLO=1
19860     else
19861
19862       { $as_echo "$as_me:$LINENO: checking whether ftello works" >&5
19863 $as_echo_n "checking whether ftello works... " >&6; }
19864 if test "${gl_cv_func_ftello_works+set}" = set; then
19865   $as_echo_n "(cached) " >&6
19866 else
19867
19868                               case "$host_os" in
19869                       # Guess no on Solaris.
19870             solaris*) gl_cv_func_ftello_works="guessing no" ;;
19871                       # Guess yes otherwise.
19872             *)        gl_cv_func_ftello_works="guessing yes" ;;
19873           esac
19874           if test "$cross_compiling" = yes; then
19875   :
19876 else
19877   cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883
19884 #include <stdio.h>
19885 #include <stdlib.h>
19886 #include <string.h>
19887 #define TESTFILE "conftest.tmp"
19888 int
19889 main (void)
19890 {
19891   FILE *fp;
19892
19893   /* Create a file with some contents.  */
19894   fp = fopen (TESTFILE, "w");
19895   if (fp == NULL)
19896     return 70;
19897   if (fwrite ("foogarsh", 1, 8, fp) < 8)
19898     return 71;
19899   if (fclose (fp))
19900     return 72;
19901
19902   /* The file's contents is now "foogarsh".  */
19903
19904   /* Try writing after reading to EOF.  */
19905   fp = fopen (TESTFILE, "r+");
19906   if (fp == NULL)
19907     return 73;
19908   if (fseek (fp, -1, SEEK_END))
19909     return 74;
19910   if (!(getc (fp) == 'h'))
19911     return 1;
19912   if (!(getc (fp) == EOF))
19913     return 2;
19914   if (!(ftell (fp) == 8))
19915     return 3;
19916   if (!(ftell (fp) == 8))
19917     return 4;
19918   if (!(putc ('!', fp) == '!'))
19919     return 5;
19920   if (!(ftell (fp) == 9))
19921     return 6;
19922   if (!(fclose (fp) == 0))
19923     return 7;
19924   fp = fopen (TESTFILE, "r");
19925   if (fp == NULL)
19926     return 75;
19927   {
19928     char buf[10];
19929     if (!(fread (buf, 1, 10, fp) == 9))
19930       return 10;
19931     if (!(memcmp (buf, "foogarsh!", 9) == 0))
19932       return 11;
19933   }
19934   if (!(fclose (fp) == 0))
19935     return 12;
19936
19937   /* The file's contents is now "foogarsh!".  */
19938
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946   *) ac_try_echo=$ac_try;;
19947 esac
19948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19949 $as_echo "$ac_try_echo") >&5
19950   (eval "$ac_link") 2>&5
19951   ac_status=$?
19952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19954   { (case "(($ac_try" in
19955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956   *) ac_try_echo=$ac_try;;
19957 esac
19958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19959 $as_echo "$ac_try_echo") >&5
19960   (eval "$ac_try") 2>&5
19961   ac_status=$?
19962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; }; then
19964   gl_cv_func_ftello_works=yes
19965 else
19966   $as_echo "$as_me: program exited with status $ac_status" >&5
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970 ( exit $ac_status )
19971 gl_cv_func_ftello_works=no
19972 fi
19973 rm -rf conftest.dSYM
19974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19975 fi
19976
19977
19978
19979 fi
19980 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello_works" >&5
19981 $as_echo "$gl_cv_func_ftello_works" >&6; }
19982       case "$gl_cv_func_ftello_works" in
19983         *yes) ;;
19984         *)
19985           REPLACE_FTELLO=1
19986
19987 cat >>confdefs.h <<\_ACEOF
19988 #define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1
19989 _ACEOF
19990
19991           ;;
19992       esac
19993     fi
19994   fi
19995   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
20006
20007
20008   fi
20009
20010
20011
20012
20013   GNULIB_FTELLO=1
20014
20015
20016
20017 cat >>confdefs.h <<\_ACEOF
20018 #define GNULIB_TEST_FTELLO 1
20019 _ACEOF
20020
20021
20022
20023   # Code from module ftruncate:
20024
20025
20026
20027
20028   :
20029
20030
20031
20032
20033
20034   if test $ac_cv_func_ftruncate = no; then
20035     HAVE_FTRUNCATE=0
20036
20037
20038
20039
20040
20041
20042
20043
20044   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
20045
20046
20047
20048 for ac_func in chsize
20049 do
20050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20051 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20052 $as_echo_n "checking for $ac_func... " >&6; }
20053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20054   $as_echo_n "(cached) " >&6
20055 else
20056   cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20064 #define $ac_func innocuous_$ac_func
20065
20066 /* System header to define __stub macros and hopefully few prototypes,
20067     which can conflict with char $ac_func (); below.
20068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20069     <limits.h> exists even on freestanding compilers.  */
20070
20071 #ifdef __STDC__
20072 # include <limits.h>
20073 #else
20074 # include <assert.h>
20075 #endif
20076
20077 #undef $ac_func
20078
20079 /* Override any GCC internal prototype to avoid an error.
20080    Use char because int might match the return type of a GCC
20081    builtin and then its argument prototype would still apply.  */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char $ac_func ();
20086 /* The GNU C library defines this for functions which it implements
20087     to always fail with ENOSYS.  Some functions are actually named
20088     something starting with __ and the normal name is an alias.  */
20089 #if defined __stub_$ac_func || defined __stub___$ac_func
20090 choke me
20091 #endif
20092
20093 int
20094 main ()
20095 {
20096 return $ac_func ();
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20108 $as_echo "$ac_try_echo") >&5
20109   (eval "$ac_link") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest$ac_exeext && {
20119          test "$cross_compiling" = yes ||
20120          $as_test_x conftest$ac_exeext
20121        }; then
20122   eval "$as_ac_var=yes"
20123 else
20124   $as_echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127         eval "$as_ac_var=no"
20128 fi
20129
20130 rm -rf conftest.dSYM
20131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20132       conftest$ac_exeext conftest.$ac_ext
20133 fi
20134 ac_res=`eval 'as_val=${'$as_ac_var'}
20135                  $as_echo "$as_val"'`
20136                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20137 $as_echo "$ac_res" >&6; }
20138 as_val=`eval 'as_val=${'$as_ac_var'}
20139                  $as_echo "$as_val"'`
20140    if test "x$as_val" = x""yes; then
20141   cat >>confdefs.h <<_ACEOF
20142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20143 _ACEOF
20144
20145 fi
20146 done
20147
20148
20149     case "$host_os" in
20150       mingw*)
20151         # Yes, we know mingw lacks ftruncate.
20152         ;;
20153       *)
20154         # If someone lacks ftruncate, make configure fail, and request
20155         # a bug report to inform us about it.
20156         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
20157           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20159 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
20160               Please report this, along with the output of \"uname -a\", to the
20161               bug-coreutils@gnu.org mailing list.  To continue past this point,
20162               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20163               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20164 See \`config.log' for more details." >&5
20165 $as_echo "$as_me: error: Your system lacks the ftruncate function.
20166               Please report this, along with the output of \"uname -a\", to the
20167               bug-coreutils@gnu.org mailing list.  To continue past this point,
20168               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20169               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20170 See \`config.log' for more details." >&2;}
20171    { (exit 1); exit 1; }; }; }
20172         fi
20173     esac
20174   fi
20175
20176
20177
20178
20179   GNULIB_FTRUNCATE=1
20180
20181
20182
20183 cat >>confdefs.h <<\_ACEOF
20184 #define GNULIB_TEST_FTRUNCATE 1
20185 _ACEOF
20186
20187
20188
20189   # Code from module full-read:
20190   # Code from module full-write:
20191   # Code from module getaddrinfo:
20192
20193       { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
20194 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
20195   GETADDRINFO_LIB=
20196   gai_saved_LIBS="$LIBS"
20197
20198               { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
20199 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
20200 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20201   $as_echo_n "(cached) " >&6
20202 else
20203   ac_func_search_save_LIBS=$LIBS
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210
20211 /* Override any GCC internal prototype to avoid an error.
20212    Use char because int might match the return type of a GCC
20213    builtin and then its argument prototype would still apply.  */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 char getaddrinfo ();
20218 int
20219 main ()
20220 {
20221 return getaddrinfo ();
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 for ac_lib in '' socket network net; do
20227   if test -z "$ac_lib"; then
20228     ac_res="none required"
20229   else
20230     ac_res=-l$ac_lib
20231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20232   fi
20233   rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20240 $as_echo "$ac_try_echo") >&5
20241   (eval "$ac_link") 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } && {
20248          test -z "$ac_c_werror_flag" ||
20249          test ! -s conftest.err
20250        } && test -s conftest$ac_exeext && {
20251          test "$cross_compiling" = yes ||
20252          $as_test_x conftest$ac_exeext
20253        }; then
20254   ac_cv_search_getaddrinfo=$ac_res
20255 else
20256   $as_echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259
20260 fi
20261
20262 rm -rf conftest.dSYM
20263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20264       conftest$ac_exeext
20265   if test "${ac_cv_search_getaddrinfo+set}" = set; then
20266   break
20267 fi
20268 done
20269 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20270   :
20271 else
20272   ac_cv_search_getaddrinfo=no
20273 fi
20274 rm conftest.$ac_ext
20275 LIBS=$ac_func_search_save_LIBS
20276 fi
20277 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
20278 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
20279 ac_res=$ac_cv_search_getaddrinfo
20280 if test "$ac_res" != no; then
20281   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20282   if test "$ac_cv_search_getaddrinfo" != "none required"; then
20283        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
20284      fi
20285 fi
20286
20287   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20288
20289   { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20290 $as_echo_n "checking for getaddrinfo... " >&6; }
20291 if test "${gl_cv_func_getaddrinfo+set}" = set; then
20292   $as_echo_n "(cached) " >&6
20293 else
20294
20295     cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301
20302 #include <sys/types.h>
20303 #ifdef HAVE_SYS_SOCKET_H
20304 #include <sys/socket.h>
20305 #endif
20306 #ifdef HAVE_NETDB_H
20307 #include <netdb.h>
20308 #endif
20309 #include <stddef.h>
20310
20311 int
20312 main ()
20313 {
20314 getaddrinfo("", "", NULL, NULL);
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327   (eval "$ac_link") 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } && {
20334          test -z "$ac_c_werror_flag" ||
20335          test ! -s conftest.err
20336        } && test -s conftest$ac_exeext && {
20337          test "$cross_compiling" = yes ||
20338          $as_test_x conftest$ac_exeext
20339        }; then
20340   gl_cv_func_getaddrinfo=yes
20341 else
20342   $as_echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         gl_cv_func_getaddrinfo=no
20346 fi
20347
20348 rm -rf conftest.dSYM
20349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20350       conftest$ac_exeext conftest.$ac_ext
20351 fi
20352 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
20353 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
20354   if test $gl_cv_func_getaddrinfo = no; then
20355     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
20356 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
20357 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
20358   $as_echo_n "(cached) " >&6
20359 else
20360
20361       gl_cv_w32_getaddrinfo=no
20362       am_save_LIBS="$LIBS"
20363       LIBS="$LIBS -lws2_32"
20364       cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370
20371 #ifdef HAVE_WS2TCPIP_H
20372 #include <ws2tcpip.h>
20373 #endif
20374 #include <stddef.h>
20375
20376 int
20377 main ()
20378 {
20379 getaddrinfo(NULL, NULL, NULL, NULL);
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20391 $as_echo "$ac_try_echo") >&5
20392   (eval "$ac_link") 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } && {
20399          test -z "$ac_c_werror_flag" ||
20400          test ! -s conftest.err
20401        } && test -s conftest$ac_exeext && {
20402          test "$cross_compiling" = yes ||
20403          $as_test_x conftest$ac_exeext
20404        }; then
20405   gl_cv_w32_getaddrinfo=yes
20406 else
20407   $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410
20411 fi
20412
20413 rm -rf conftest.dSYM
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415       conftest$ac_exeext conftest.$ac_ext
20416       LIBS="$am_save_LIBS"
20417
20418 fi
20419 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
20420 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
20421     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
20422       GETADDRINFO_LIB="-lws2_32"
20423       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20424     else
20425
20426
20427
20428
20429
20430
20431
20432
20433   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
20434
20435     fi
20436   fi
20437
20438   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
20439   # inline function declared in ws2tcpip.h, so we need to get that
20440   # header included somehow.
20441   { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
20442 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
20443 if test "${gl_cv_func_gai_strerror+set}" = set; then
20444   $as_echo_n "(cached) " >&6
20445 else
20446
20447       cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453
20454 #include <sys/types.h>
20455 #ifdef HAVE_SYS_SOCKET_H
20456 #include <sys/socket.h>
20457 #endif
20458 #ifdef HAVE_NETDB_H
20459 #include <netdb.h>
20460 #endif
20461 #ifdef HAVE_WS2TCPIP_H
20462 #include <ws2tcpip.h>
20463 #endif
20464 #include <stddef.h>
20465
20466 int
20467 main ()
20468 {
20469 gai_strerror (NULL);
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20481 $as_echo "$ac_try_echo") >&5
20482   (eval "$ac_link") 2>conftest.er1
20483   ac_status=$?
20484   grep -v '^ *+' conftest.er1 >conftest.err
20485   rm -f conftest.er1
20486   cat conftest.err >&5
20487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } && {
20489          test -z "$ac_c_werror_flag" ||
20490          test ! -s conftest.err
20491        } && test -s conftest$ac_exeext && {
20492          test "$cross_compiling" = yes ||
20493          $as_test_x conftest$ac_exeext
20494        }; then
20495   gl_cv_func_gai_strerror=yes
20496 else
20497   $as_echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500         gl_cv_func_gai_strerror=no
20501 fi
20502
20503 rm -rf conftest.dSYM
20504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20505       conftest$ac_exeext conftest.$ac_ext
20506 fi
20507 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
20508 $as_echo "$gl_cv_func_gai_strerror" >&6; }
20509   if test $gl_cv_func_gai_strerror = no; then
20510
20511
20512
20513
20514
20515
20516
20517
20518   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
20519
20520   fi
20521
20522   LIBS="$gai_saved_LIBS"
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532       { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
20533 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
20534 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
20535   $as_echo_n "(cached) " >&6
20536 else
20537   cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543 #include <sys/socket.h>
20544
20545 int
20546 main ()
20547 {
20548 static struct sockaddr ac_aggr;
20549 if (ac_aggr.sa_len)
20550 return 0;
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562 $as_echo "$ac_try_echo") >&5
20563   (eval "$ac_compile") 2>conftest.er1
20564   ac_status=$?
20565   grep -v '^ *+' conftest.er1 >conftest.err
20566   rm -f conftest.er1
20567   cat conftest.err >&5
20568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); } && {
20570          test -z "$ac_c_werror_flag" ||
20571          test ! -s conftest.err
20572        } && test -s conftest.$ac_objext; then
20573   ac_cv_member_struct_sockaddr_sa_len=yes
20574 else
20575   $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578         cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584 #include <sys/socket.h>
20585
20586 int
20587 main ()
20588 {
20589 static struct sockaddr ac_aggr;
20590 if (sizeof ac_aggr.sa_len)
20591 return 0;
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20603 $as_echo "$ac_try_echo") >&5
20604   (eval "$ac_compile") 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } && {
20611          test -z "$ac_c_werror_flag" ||
20612          test ! -s conftest.err
20613        } && test -s conftest.$ac_objext; then
20614   ac_cv_member_struct_sockaddr_sa_len=yes
20615 else
20616   $as_echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619         ac_cv_member_struct_sockaddr_sa_len=no
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 fi
20624
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
20628 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
20629 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
20633 _ACEOF
20634
20635
20636 fi
20637
20638
20639
20640   :
20641
20642
20643
20644
20645
20646
20647   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
20648 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
20649 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
20650   $as_echo_n "(cached) " >&6
20651 else
20652   cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658
20659   /* sys/types.h is not needed according to POSIX, but the
20660      sys/socket.h in i386-unknown-freebsd4.10 and
20661      powerpc-apple-darwin5.5 required it. */
20662 #include <sys/types.h>
20663 #ifdef HAVE_SYS_SOCKET_H
20664 #include <sys/socket.h>
20665 #endif
20666 #ifdef HAVE_NETDB_H
20667 #include <netdb.h>
20668 #endif
20669 #ifdef HAVE_WS2TCPIP_H
20670 #include <ws2tcpip.h>
20671 #endif
20672
20673
20674 int
20675 main ()
20676 {
20677 #ifndef getaddrinfo
20678   (void) getaddrinfo;
20679 #endif
20680
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20692 $as_echo "$ac_try_echo") >&5
20693   (eval "$ac_compile") 2>conftest.er1
20694   ac_status=$?
20695   grep -v '^ *+' conftest.er1 >conftest.err
20696   rm -f conftest.er1
20697   cat conftest.err >&5
20698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } && {
20700          test -z "$ac_c_werror_flag" ||
20701          test ! -s conftest.err
20702        } && test -s conftest.$ac_objext; then
20703   ac_cv_have_decl_getaddrinfo=yes
20704 else
20705   $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708         ac_cv_have_decl_getaddrinfo=no
20709 fi
20710
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712 fi
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
20714 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
20715 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define HAVE_DECL_GETADDRINFO 1
20719 _ACEOF
20720
20721
20722 else
20723   cat >>confdefs.h <<_ACEOF
20724 #define HAVE_DECL_GETADDRINFO 0
20725 _ACEOF
20726
20727
20728 fi
20729 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
20730 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
20731 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
20732   $as_echo_n "(cached) " >&6
20733 else
20734   cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h.  */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h.  */
20740
20741   /* sys/types.h is not needed according to POSIX, but the
20742      sys/socket.h in i386-unknown-freebsd4.10 and
20743      powerpc-apple-darwin5.5 required it. */
20744 #include <sys/types.h>
20745 #ifdef HAVE_SYS_SOCKET_H
20746 #include <sys/socket.h>
20747 #endif
20748 #ifdef HAVE_NETDB_H
20749 #include <netdb.h>
20750 #endif
20751 #ifdef HAVE_WS2TCPIP_H
20752 #include <ws2tcpip.h>
20753 #endif
20754
20755
20756 int
20757 main ()
20758 {
20759 #ifndef freeaddrinfo
20760   (void) freeaddrinfo;
20761 #endif
20762
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext
20768 if { (ac_try="$ac_compile"
20769 case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20774 $as_echo "$ac_try_echo") >&5
20775   (eval "$ac_compile") 2>conftest.er1
20776   ac_status=$?
20777   grep -v '^ *+' conftest.er1 >conftest.err
20778   rm -f conftest.er1
20779   cat conftest.err >&5
20780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } && {
20782          test -z "$ac_c_werror_flag" ||
20783          test ! -s conftest.err
20784        } && test -s conftest.$ac_objext; then
20785   ac_cv_have_decl_freeaddrinfo=yes
20786 else
20787   $as_echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790         ac_cv_have_decl_freeaddrinfo=no
20791 fi
20792
20793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20794 fi
20795 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
20796 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
20797 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
20798
20799 cat >>confdefs.h <<_ACEOF
20800 #define HAVE_DECL_FREEADDRINFO 1
20801 _ACEOF
20802
20803
20804 else
20805   cat >>confdefs.h <<_ACEOF
20806 #define HAVE_DECL_FREEADDRINFO 0
20807 _ACEOF
20808
20809
20810 fi
20811 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
20812 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
20813 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
20814   $as_echo_n "(cached) " >&6
20815 else
20816   cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822
20823   /* sys/types.h is not needed according to POSIX, but the
20824      sys/socket.h in i386-unknown-freebsd4.10 and
20825      powerpc-apple-darwin5.5 required it. */
20826 #include <sys/types.h>
20827 #ifdef HAVE_SYS_SOCKET_H
20828 #include <sys/socket.h>
20829 #endif
20830 #ifdef HAVE_NETDB_H
20831 #include <netdb.h>
20832 #endif
20833 #ifdef HAVE_WS2TCPIP_H
20834 #include <ws2tcpip.h>
20835 #endif
20836
20837
20838 int
20839 main ()
20840 {
20841 #ifndef gai_strerror
20842   (void) gai_strerror;
20843 #endif
20844
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (ac_try="$ac_compile"
20851 case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856 $as_echo "$ac_try_echo") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest.$ac_objext; then
20867   ac_cv_have_decl_gai_strerror=yes
20868 else
20869   $as_echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872         ac_cv_have_decl_gai_strerror=no
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 fi
20877 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
20878 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
20879 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
20880
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE_DECL_GAI_STRERROR 1
20883 _ACEOF
20884
20885
20886 else
20887   cat >>confdefs.h <<_ACEOF
20888 #define HAVE_DECL_GAI_STRERROR 0
20889 _ACEOF
20890
20891
20892 fi
20893 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
20894 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
20895 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
20896   $as_echo_n "(cached) " >&6
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904
20905   /* sys/types.h is not needed according to POSIX, but the
20906      sys/socket.h in i386-unknown-freebsd4.10 and
20907      powerpc-apple-darwin5.5 required it. */
20908 #include <sys/types.h>
20909 #ifdef HAVE_SYS_SOCKET_H
20910 #include <sys/socket.h>
20911 #endif
20912 #ifdef HAVE_NETDB_H
20913 #include <netdb.h>
20914 #endif
20915 #ifdef HAVE_WS2TCPIP_H
20916 #include <ws2tcpip.h>
20917 #endif
20918
20919
20920 int
20921 main ()
20922 {
20923 #ifndef getnameinfo
20924   (void) getnameinfo;
20925 #endif
20926
20927   ;
20928   return 0;
20929 }
20930 _ACEOF
20931 rm -f conftest.$ac_objext
20932 if { (ac_try="$ac_compile"
20933 case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939   (eval "$ac_compile") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && {
20946          test -z "$ac_c_werror_flag" ||
20947          test ! -s conftest.err
20948        } && test -s conftest.$ac_objext; then
20949   ac_cv_have_decl_getnameinfo=yes
20950 else
20951   $as_echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954         ac_cv_have_decl_getnameinfo=no
20955 fi
20956
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 fi
20959 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
20960 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
20961 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
20962
20963 cat >>confdefs.h <<_ACEOF
20964 #define HAVE_DECL_GETNAMEINFO 1
20965 _ACEOF
20966
20967
20968 else
20969   cat >>confdefs.h <<_ACEOF
20970 #define HAVE_DECL_GETNAMEINFO 0
20971 _ACEOF
20972
20973
20974 fi
20975
20976
20977   if test $ac_cv_have_decl_getaddrinfo = no; then
20978     HAVE_DECL_GETADDRINFO=0
20979   fi
20980   if test $ac_cv_have_decl_freeaddrinfo = no; then
20981     HAVE_DECL_FREEADDRINFO=0
20982   fi
20983   if test $ac_cv_have_decl_gai_strerror = no; then
20984     HAVE_DECL_GAI_STRERROR=0
20985   fi
20986   if test $ac_cv_have_decl_getnameinfo = no; then
20987     HAVE_DECL_GETNAMEINFO=0
20988   fi
20989
20990   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
20991 $as_echo_n "checking for struct addrinfo... " >&6; }
20992 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
20993   $as_echo_n "(cached) " >&6
20994 else
20995   ac_cv_type_struct_addrinfo=no
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002
21003 #include <sys/types.h>
21004 #ifdef HAVE_SYS_SOCKET_H
21005 #include <sys/socket.h>
21006 #endif
21007 #ifdef HAVE_NETDB_H
21008 #include <netdb.h>
21009 #endif
21010 #ifdef HAVE_WS2TCPIP_H
21011 #include <ws2tcpip.h>
21012 #endif
21013
21014
21015 int
21016 main ()
21017 {
21018 if (sizeof (struct addrinfo))
21019        return 0;
21020   ;
21021   return 0;
21022 }
21023 _ACEOF
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028   *) ac_try_echo=$ac_try;;
21029 esac
21030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21031 $as_echo "$ac_try_echo") >&5
21032   (eval "$ac_compile") 2>conftest.er1
21033   ac_status=$?
21034   grep -v '^ *+' conftest.er1 >conftest.err
21035   rm -f conftest.er1
21036   cat conftest.err >&5
21037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); } && {
21039          test -z "$ac_c_werror_flag" ||
21040          test ! -s conftest.err
21041        } && test -s conftest.$ac_objext; then
21042   cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048
21049 #include <sys/types.h>
21050 #ifdef HAVE_SYS_SOCKET_H
21051 #include <sys/socket.h>
21052 #endif
21053 #ifdef HAVE_NETDB_H
21054 #include <netdb.h>
21055 #endif
21056 #ifdef HAVE_WS2TCPIP_H
21057 #include <ws2tcpip.h>
21058 #endif
21059
21060
21061 int
21062 main ()
21063 {
21064 if (sizeof ((struct addrinfo)))
21065           return 0;
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21077 $as_echo "$ac_try_echo") >&5
21078   (eval "$ac_compile") 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } && {
21085          test -z "$ac_c_werror_flag" ||
21086          test ! -s conftest.err
21087        } && test -s conftest.$ac_objext; then
21088   :
21089 else
21090   $as_echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093         ac_cv_type_struct_addrinfo=yes
21094 fi
21095
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 else
21098   $as_echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101
21102 fi
21103
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105 fi
21106 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
21107 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
21108 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
21109
21110 cat >>confdefs.h <<_ACEOF
21111 #define HAVE_STRUCT_ADDRINFO 1
21112 _ACEOF
21113
21114
21115 fi
21116
21117   if test $ac_cv_type_struct_addrinfo = no; then
21118     HAVE_STRUCT_ADDRINFO=0
21119   fi
21120
21121     case " $GETADDRINFO_LIB " in
21122     *" $HOSTENT_LIB "*) ;;
21123     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
21124   esac
21125
21126     case " $GETADDRINFO_LIB " in
21127     *" $SERVENT_LIB "*) ;;
21128     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
21129   esac
21130
21131     case " $GETADDRINFO_LIB " in
21132     *" $INET_NTOP_LIB "*) ;;
21133     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
21134   esac
21135
21136
21137
21138
21139
21140
21141
21142   GNULIB_GETADDRINFO=1
21143
21144
21145   # Code from module getopt-gnu:
21146
21147
21148
21149
21150
21151
21152
21153 cat >>confdefs.h <<\_ACEOF
21154 #define GNULIB_TEST_GETOPT_GNU 1
21155 _ACEOF
21156
21157
21158   # Code from module getopt-posix:
21159
21160
21161
21162
21163
21164   if test -n "$gl_replace_getopt"; then
21165
21166
21167
21168   GETOPT_H=getopt.h
21169
21170 cat >>confdefs.h <<\_ACEOF
21171 #define __GETOPT_PREFIX rpl_
21172 _ACEOF
21173
21174
21175
21176     GNULIB_UNISTD_H_GETOPT=1
21177
21178
21179
21180
21181
21182
21183
21184
21185   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21196
21197
21198
21199   :
21200
21201
21202
21203
21204
21205
21206
21207
21208 fi
21209
21210
21211
21212   # Code from module gettext-h:
21213
21214
21215   # Code from module gettimeofday:
21216
21217
21218
21219
21220
21221   :
21222
21223
21224
21225
21226
21227
21228   gl_gettimeofday_timezone=void
21229   if test $ac_cv_func_gettimeofday != yes; then
21230     HAVE_GETTIMEOFDAY=0
21231
21232
21233
21234
21235
21236
21237
21238
21239   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21240
21241
21242
21243 for ac_header in sys/timeb.h
21244 do
21245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21247   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21248 $as_echo_n "checking for $ac_header... " >&6; }
21249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21250   $as_echo_n "(cached) " >&6
21251 fi
21252 ac_res=`eval 'as_val=${'$as_ac_Header'}
21253                  $as_echo "$as_val"'`
21254                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21255 $as_echo "$ac_res" >&6; }
21256 else
21257   # Is the header compilable?
21258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 $as_echo_n "checking $ac_header usability... " >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266 $ac_includes_default
21267 #include <$ac_header>
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21276 $as_echo "$ac_try_echo") >&5
21277   (eval "$ac_compile") 2>conftest.er1
21278   ac_status=$?
21279   grep -v '^ *+' conftest.er1 >conftest.err
21280   rm -f conftest.er1
21281   cat conftest.err >&5
21282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); } && {
21284          test -z "$ac_c_werror_flag" ||
21285          test ! -s conftest.err
21286        } && test -s conftest.$ac_objext; then
21287   ac_header_compiler=yes
21288 else
21289   $as_echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292         ac_header_compiler=no
21293 fi
21294
21295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21297 $as_echo "$ac_header_compiler" >&6; }
21298
21299 # Is the header present?
21300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21301 $as_echo_n "checking $ac_header presence... " >&6; }
21302 cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308 #include <$ac_header>
21309 _ACEOF
21310 if { (ac_try="$ac_cpp conftest.$ac_ext"
21311 case "(($ac_try" in
21312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313   *) ac_try_echo=$ac_try;;
21314 esac
21315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21316 $as_echo "$ac_try_echo") >&5
21317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21318   ac_status=$?
21319   grep -v '^ *+' conftest.er1 >conftest.err
21320   rm -f conftest.er1
21321   cat conftest.err >&5
21322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); } >/dev/null && {
21324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21325          test ! -s conftest.err
21326        }; then
21327   ac_header_preproc=yes
21328 else
21329   $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332   ac_header_preproc=no
21333 fi
21334
21335 rm -f conftest.err conftest.$ac_ext
21336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21337 $as_echo "$ac_header_preproc" >&6; }
21338
21339 # So?  What about this header?
21340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21341   yes:no: )
21342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21346     ac_header_preproc=yes
21347     ;;
21348   no:yes:* )
21349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21352 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21356 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21361
21362     ;;
21363 esac
21364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 $as_echo_n "checking for $ac_header... " >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367   $as_echo_n "(cached) " >&6
21368 else
21369   eval "$as_ac_Header=\$ac_header_preproc"
21370 fi
21371 ac_res=`eval 'as_val=${'$as_ac_Header'}
21372                  $as_echo "$as_val"'`
21373                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21374 $as_echo "$ac_res" >&6; }
21375
21376 fi
21377 as_val=`eval 'as_val=${'$as_ac_Header'}
21378                  $as_echo "$as_val"'`
21379    if test "x$as_val" = x""yes; then
21380   cat >>confdefs.h <<_ACEOF
21381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21382 _ACEOF
21383
21384 fi
21385
21386 done
21387
21388
21389 for ac_func in _ftime
21390 do
21391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21392 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21393 $as_echo_n "checking for $ac_func... " >&6; }
21394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21395   $as_echo_n "(cached) " >&6
21396 else
21397   cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h.  */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h.  */
21403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21405 #define $ac_func innocuous_$ac_func
21406
21407 /* System header to define __stub macros and hopefully few prototypes,
21408     which can conflict with char $ac_func (); below.
21409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410     <limits.h> exists even on freestanding compilers.  */
21411
21412 #ifdef __STDC__
21413 # include <limits.h>
21414 #else
21415 # include <assert.h>
21416 #endif
21417
21418 #undef $ac_func
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421    Use char because int might match the return type of a GCC
21422    builtin and then its argument prototype would still apply.  */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 char $ac_func ();
21427 /* The GNU C library defines this for functions which it implements
21428     to always fail with ENOSYS.  Some functions are actually named
21429     something starting with __ and the normal name is an alias.  */
21430 #if defined __stub_$ac_func || defined __stub___$ac_func
21431 choke me
21432 #endif
21433
21434 int
21435 main ()
21436 {
21437 return $ac_func ();
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21449 $as_echo "$ac_try_echo") >&5
21450   (eval "$ac_link") 2>conftest.er1
21451   ac_status=$?
21452   grep -v '^ *+' conftest.er1 >conftest.err
21453   rm -f conftest.er1
21454   cat conftest.err >&5
21455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); } && {
21457          test -z "$ac_c_werror_flag" ||
21458          test ! -s conftest.err
21459        } && test -s conftest$ac_exeext && {
21460          test "$cross_compiling" = yes ||
21461          $as_test_x conftest$ac_exeext
21462        }; then
21463   eval "$as_ac_var=yes"
21464 else
21465   $as_echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468         eval "$as_ac_var=no"
21469 fi
21470
21471 rm -rf conftest.dSYM
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473       conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 ac_res=`eval 'as_val=${'$as_ac_var'}
21476                  $as_echo "$as_val"'`
21477                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21478 $as_echo "$ac_res" >&6; }
21479 as_val=`eval 'as_val=${'$as_ac_var'}
21480                  $as_echo "$as_val"'`
21481    if test "x$as_val" = x""yes; then
21482   cat >>confdefs.h <<_ACEOF
21483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21484 _ACEOF
21485
21486 fi
21487 done
21488
21489
21490   else
21491
21492
21493
21494  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21495 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21496 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
21497   $as_echo_n "(cached) " >&6
21498 else
21499   if test "$cross_compiling" = yes; then
21500        gl_cv_func_gettimeofday_clobber=yes
21501 else
21502   cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 #include <string.h>
21509           #include <sys/time.h>
21510           #include <time.h>
21511           #include <stdlib.h>
21512
21513 int
21514 main ()
21515 {
21516
21517           time_t t = 0;
21518           struct tm *lt;
21519           struct tm saved_lt;
21520           struct timeval tv;
21521           lt = localtime (&t);
21522           saved_lt = *lt;
21523           gettimeofday (&tv, NULL);
21524           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21525
21526   ;
21527   return 0;
21528 }
21529 _ACEOF
21530 rm -f conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534   *) ac_try_echo=$ac_try;;
21535 esac
21536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21537 $as_echo "$ac_try_echo") >&5
21538   (eval "$ac_link") 2>&5
21539   ac_status=$?
21540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21542   { (case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21547 $as_echo "$ac_try_echo") >&5
21548   (eval "$ac_try") 2>&5
21549   ac_status=$?
21550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); }; }; then
21552   gl_cv_func_gettimeofday_clobber=no
21553 else
21554   $as_echo "$as_me: program exited with status $ac_status" >&5
21555 $as_echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 ( exit $ac_status )
21559 gl_cv_func_gettimeofday_clobber=yes
21560 fi
21561 rm -rf conftest.dSYM
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21563 fi
21564
21565
21566 fi
21567 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
21568 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21569
21570  if test $gl_cv_func_gettimeofday_clobber = yes; then
21571    REPLACE_GETTIMEOFDAY=1
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21582
21583
21584
21585 for ac_header in sys/timeb.h
21586 do
21587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21589   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21590 $as_echo_n "checking for $ac_header... " >&6; }
21591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21592   $as_echo_n "(cached) " >&6
21593 fi
21594 ac_res=`eval 'as_val=${'$as_ac_Header'}
21595                  $as_echo "$as_val"'`
21596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21597 $as_echo "$ac_res" >&6; }
21598 else
21599   # Is the header compilable?
21600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21601 $as_echo_n "checking $ac_header usability... " >&6; }
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609 #include <$ac_header>
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21618 $as_echo "$ac_try_echo") >&5
21619   (eval "$ac_compile") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } && {
21626          test -z "$ac_c_werror_flag" ||
21627          test ! -s conftest.err
21628        } && test -s conftest.$ac_objext; then
21629   ac_header_compiler=yes
21630 else
21631   $as_echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634         ac_header_compiler=no
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21639 $as_echo "$ac_header_compiler" >&6; }
21640
21641 # Is the header present?
21642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21643 $as_echo_n "checking $ac_header presence... " >&6; }
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h.  */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h.  */
21650 #include <$ac_header>
21651 _ACEOF
21652 if { (ac_try="$ac_cpp conftest.$ac_ext"
21653 case "(($ac_try" in
21654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655   *) ac_try_echo=$ac_try;;
21656 esac
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } >/dev/null && {
21666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667          test ! -s conftest.err
21668        }; then
21669   ac_header_preproc=yes
21670 else
21671   $as_echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674   ac_header_preproc=no
21675 fi
21676
21677 rm -f conftest.err conftest.$ac_ext
21678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 $as_echo "$ac_header_preproc" >&6; }
21680
21681 # So?  What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683   yes:no: )
21684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21688     ac_header_preproc=yes
21689     ;;
21690   no:yes:* )
21691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21694 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21698 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21703
21704     ;;
21705 esac
21706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21707 $as_echo_n "checking for $ac_header... " >&6; }
21708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21709   $as_echo_n "(cached) " >&6
21710 else
21711   eval "$as_ac_Header=\$ac_header_preproc"
21712 fi
21713 ac_res=`eval 'as_val=${'$as_ac_Header'}
21714                  $as_echo "$as_val"'`
21715                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21716 $as_echo "$ac_res" >&6; }
21717
21718 fi
21719 as_val=`eval 'as_val=${'$as_ac_Header'}
21720                  $as_echo "$as_val"'`
21721    if test "x$as_val" = x""yes; then
21722   cat >>confdefs.h <<_ACEOF
21723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21724 _ACEOF
21725
21726 fi
21727
21728 done
21729
21730
21731 for ac_func in _ftime
21732 do
21733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21734 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21735 $as_echo_n "checking for $ac_func... " >&6; }
21736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21737   $as_echo_n "(cached) " >&6
21738 else
21739   cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21747 #define $ac_func innocuous_$ac_func
21748
21749 /* System header to define __stub macros and hopefully few prototypes,
21750     which can conflict with char $ac_func (); below.
21751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21752     <limits.h> exists even on freestanding compilers.  */
21753
21754 #ifdef __STDC__
21755 # include <limits.h>
21756 #else
21757 # include <assert.h>
21758 #endif
21759
21760 #undef $ac_func
21761
21762 /* Override any GCC internal prototype to avoid an error.
21763    Use char because int might match the return type of a GCC
21764    builtin and then its argument prototype would still apply.  */
21765 #ifdef __cplusplus
21766 extern "C"
21767 #endif
21768 char $ac_func ();
21769 /* The GNU C library defines this for functions which it implements
21770     to always fail with ENOSYS.  Some functions are actually named
21771     something starting with __ and the normal name is an alias.  */
21772 #if defined __stub_$ac_func || defined __stub___$ac_func
21773 choke me
21774 #endif
21775
21776 int
21777 main ()
21778 {
21779 return $ac_func ();
21780   ;
21781   return 0;
21782 }
21783 _ACEOF
21784 rm -f conftest.$ac_objext conftest$ac_exeext
21785 if { (ac_try="$ac_link"
21786 case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21791 $as_echo "$ac_try_echo") >&5
21792   (eval "$ac_link") 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } && {
21799          test -z "$ac_c_werror_flag" ||
21800          test ! -s conftest.err
21801        } && test -s conftest$ac_exeext && {
21802          test "$cross_compiling" = yes ||
21803          $as_test_x conftest$ac_exeext
21804        }; then
21805   eval "$as_ac_var=yes"
21806 else
21807   $as_echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810         eval "$as_ac_var=no"
21811 fi
21812
21813 rm -rf conftest.dSYM
21814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21815       conftest$ac_exeext conftest.$ac_ext
21816 fi
21817 ac_res=`eval 'as_val=${'$as_ac_var'}
21818                  $as_echo "$as_val"'`
21819                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21820 $as_echo "$ac_res" >&6; }
21821 as_val=`eval 'as_val=${'$as_ac_var'}
21822                  $as_echo "$as_val"'`
21823    if test "x$as_val" = x""yes; then
21824   cat >>confdefs.h <<_ACEOF
21825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21826 _ACEOF
21827
21828 fi
21829 done
21830
21831
21832
21833 cat >>confdefs.h <<\_ACEOF
21834 #define gmtime rpl_gmtime
21835 _ACEOF
21836
21837
21838 cat >>confdefs.h <<\_ACEOF
21839 #define localtime rpl_localtime
21840 _ACEOF
21841
21842
21843
21844 cat >>confdefs.h <<\_ACEOF
21845 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
21846 _ACEOF
21847
21848  fi
21849
21850     { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21851 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21852 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21853   $as_echo_n "(cached) " >&6
21854 else
21855   cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h.  */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h.  */
21861 #include <sys/time.h>
21862               struct timeval c;
21863               int gettimeofday (struct timeval *restrict, void *restrict);
21864
21865 int
21866 main ()
21867 {
21868 /* glibc uses struct timezone * rather than the POSIX void *
21869                  if _GNU_SOURCE is defined.  However, since the only portable
21870                  use of gettimeofday uses NULL as the second parameter, and
21871                  since the glibc definition is actually more typesafe, it is
21872                  not worth wrapping this to get a compliant signature.  */
21873               int (*f) (struct timeval *restrict, void *restrict)
21874                 = gettimeofday;
21875               int x = f (&c, 0);
21876               return !(x | c.tv_sec | c.tv_usec);
21877
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886   *) ac_try_echo=$ac_try;;
21887 esac
21888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21889 $as_echo "$ac_try_echo") >&5
21890   (eval "$ac_compile") 2>conftest.er1
21891   ac_status=$?
21892   grep -v '^ *+' conftest.er1 >conftest.err
21893   rm -f conftest.er1
21894   cat conftest.err >&5
21895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } && {
21897          test -z "$ac_c_werror_flag" ||
21898          test ! -s conftest.err
21899        } && test -s conftest.$ac_objext; then
21900   gl_cv_func_gettimeofday_posix_signature=yes
21901 else
21902   $as_echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905         cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 #include <sys/time.h>
21912 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21913
21914 int
21915 main ()
21916 {
21917
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926   *) ac_try_echo=$ac_try;;
21927 esac
21928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21929 $as_echo "$ac_try_echo") >&5
21930   (eval "$ac_compile") 2>conftest.er1
21931   ac_status=$?
21932   grep -v '^ *+' conftest.er1 >conftest.err
21933   rm -f conftest.er1
21934   cat conftest.err >&5
21935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); } && {
21937          test -z "$ac_c_werror_flag" ||
21938          test ! -s conftest.err
21939        } && test -s conftest.$ac_objext; then
21940   gl_cv_func_gettimeofday_posix_signature=almost
21941 else
21942   $as_echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945         gl_cv_func_gettimeofday_posix_signature=no
21946 fi
21947
21948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 fi
21950
21951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21952 fi
21953 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21954 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21955     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21956       gl_gettimeofday_timezone='struct timezone'
21957     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21958       REPLACE_GETTIMEOFDAY=1
21959
21960
21961
21962
21963
21964
21965
21966
21967   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21968
21969
21970
21971 for ac_header in sys/timeb.h
21972 do
21973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21975   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21976 $as_echo_n "checking for $ac_header... " >&6; }
21977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21978   $as_echo_n "(cached) " >&6
21979 fi
21980 ac_res=`eval 'as_val=${'$as_ac_Header'}
21981                  $as_echo "$as_val"'`
21982                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21983 $as_echo "$ac_res" >&6; }
21984 else
21985   # Is the header compilable?
21986 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21987 $as_echo_n "checking $ac_header usability... " >&6; }
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21994 $ac_includes_default
21995 #include <$ac_header>
21996 _ACEOF
21997 rm -f conftest.$ac_objext
21998 if { (ac_try="$ac_compile"
21999 case "(($ac_try" in
22000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001   *) ac_try_echo=$ac_try;;
22002 esac
22003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005   (eval "$ac_compile") 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } && {
22012          test -z "$ac_c_werror_flag" ||
22013          test ! -s conftest.err
22014        } && test -s conftest.$ac_objext; then
22015   ac_header_compiler=yes
22016 else
22017   $as_echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020         ac_header_compiler=no
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22025 $as_echo "$ac_header_compiler" >&6; }
22026
22027 # Is the header present?
22028 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22029 $as_echo_n "checking $ac_header presence... " >&6; }
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036 #include <$ac_header>
22037 _ACEOF
22038 if { (ac_try="$ac_cpp conftest.$ac_ext"
22039 case "(($ac_try" in
22040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041   *) ac_try_echo=$ac_try;;
22042 esac
22043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22044 $as_echo "$ac_try_echo") >&5
22045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22046   ac_status=$?
22047   grep -v '^ *+' conftest.er1 >conftest.err
22048   rm -f conftest.er1
22049   cat conftest.err >&5
22050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } >/dev/null && {
22052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22053          test ! -s conftest.err
22054        }; then
22055   ac_header_preproc=yes
22056 else
22057   $as_echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060   ac_header_preproc=no
22061 fi
22062
22063 rm -f conftest.err conftest.$ac_ext
22064 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22065 $as_echo "$ac_header_preproc" >&6; }
22066
22067 # So?  What about this header?
22068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22069   yes:no: )
22070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22071 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22074     ac_header_preproc=yes
22075     ;;
22076   no:yes:* )
22077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22078 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22080 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22082 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22084 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22088 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22089
22090     ;;
22091 esac
22092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22093 $as_echo_n "checking for $ac_header... " >&6; }
22094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22095   $as_echo_n "(cached) " >&6
22096 else
22097   eval "$as_ac_Header=\$ac_header_preproc"
22098 fi
22099 ac_res=`eval 'as_val=${'$as_ac_Header'}
22100                  $as_echo "$as_val"'`
22101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22102 $as_echo "$ac_res" >&6; }
22103
22104 fi
22105 as_val=`eval 'as_val=${'$as_ac_Header'}
22106                  $as_echo "$as_val"'`
22107    if test "x$as_val" = x""yes; then
22108   cat >>confdefs.h <<_ACEOF
22109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22110 _ACEOF
22111
22112 fi
22113
22114 done
22115
22116
22117 for ac_func in _ftime
22118 do
22119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22120 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22121 $as_echo_n "checking for $ac_func... " >&6; }
22122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22123   $as_echo_n "(cached) " >&6
22124 else
22125   cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22133 #define $ac_func innocuous_$ac_func
22134
22135 /* System header to define __stub macros and hopefully few prototypes,
22136     which can conflict with char $ac_func (); below.
22137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22138     <limits.h> exists even on freestanding compilers.  */
22139
22140 #ifdef __STDC__
22141 # include <limits.h>
22142 #else
22143 # include <assert.h>
22144 #endif
22145
22146 #undef $ac_func
22147
22148 /* Override any GCC internal prototype to avoid an error.
22149    Use char because int might match the return type of a GCC
22150    builtin and then its argument prototype would still apply.  */
22151 #ifdef __cplusplus
22152 extern "C"
22153 #endif
22154 char $ac_func ();
22155 /* The GNU C library defines this for functions which it implements
22156     to always fail with ENOSYS.  Some functions are actually named
22157     something starting with __ and the normal name is an alias.  */
22158 #if defined __stub_$ac_func || defined __stub___$ac_func
22159 choke me
22160 #endif
22161
22162 int
22163 main ()
22164 {
22165 return $ac_func ();
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (ac_try="$ac_link"
22172 case "(($ac_try" in
22173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174   *) ac_try_echo=$ac_try;;
22175 esac
22176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22177 $as_echo "$ac_try_echo") >&5
22178   (eval "$ac_link") 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } && {
22185          test -z "$ac_c_werror_flag" ||
22186          test ! -s conftest.err
22187        } && test -s conftest$ac_exeext && {
22188          test "$cross_compiling" = yes ||
22189          $as_test_x conftest$ac_exeext
22190        }; then
22191   eval "$as_ac_var=yes"
22192 else
22193   $as_echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196         eval "$as_ac_var=no"
22197 fi
22198
22199 rm -rf conftest.dSYM
22200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22201       conftest$ac_exeext conftest.$ac_ext
22202 fi
22203 ac_res=`eval 'as_val=${'$as_ac_var'}
22204                  $as_echo "$as_val"'`
22205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22206 $as_echo "$ac_res" >&6; }
22207 as_val=`eval 'as_val=${'$as_ac_var'}
22208                  $as_echo "$as_val"'`
22209    if test "x$as_val" = x""yes; then
22210   cat >>confdefs.h <<_ACEOF
22211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22212 _ACEOF
22213
22214 fi
22215 done
22216
22217
22218     fi
22219   fi
22220
22221 cat >>confdefs.h <<_ACEOF
22222 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22223 _ACEOF
22224
22225
22226
22227
22228
22229   GNULIB_GETTIMEOFDAY=1
22230
22231
22232
22233 cat >>confdefs.h <<\_ACEOF
22234 #define GNULIB_TEST_GETTIMEOFDAY 1
22235 _ACEOF
22236
22237
22238
22239   # Code from module havelib:
22240   # Code from module hostent:
22241
22242                   HOSTENT_LIB=
22243   gl_saved_libs="$LIBS"
22244   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22245 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22246 if test "${ac_cv_search_gethostbyname+set}" = set; then
22247   $as_echo_n "(cached) " >&6
22248 else
22249   ac_func_search_save_LIBS=$LIBS
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256
22257 /* Override any GCC internal prototype to avoid an error.
22258    Use char because int might match the return type of a GCC
22259    builtin and then its argument prototype would still apply.  */
22260 #ifdef __cplusplus
22261 extern "C"
22262 #endif
22263 char gethostbyname ();
22264 int
22265 main ()
22266 {
22267 return gethostbyname ();
22268   ;
22269   return 0;
22270 }
22271 _ACEOF
22272 for ac_lib in '' nsl network net; do
22273   if test -z "$ac_lib"; then
22274     ac_res="none required"
22275   else
22276     ac_res=-l$ac_lib
22277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22278   fi
22279   rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (ac_try="$ac_link"
22281 case "(($ac_try" in
22282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283   *) ac_try_echo=$ac_try;;
22284 esac
22285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22286 $as_echo "$ac_try_echo") >&5
22287   (eval "$ac_link") 2>conftest.er1
22288   ac_status=$?
22289   grep -v '^ *+' conftest.er1 >conftest.err
22290   rm -f conftest.er1
22291   cat conftest.err >&5
22292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); } && {
22294          test -z "$ac_c_werror_flag" ||
22295          test ! -s conftest.err
22296        } && test -s conftest$ac_exeext && {
22297          test "$cross_compiling" = yes ||
22298          $as_test_x conftest$ac_exeext
22299        }; then
22300   ac_cv_search_gethostbyname=$ac_res
22301 else
22302   $as_echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305
22306 fi
22307
22308 rm -rf conftest.dSYM
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310       conftest$ac_exeext
22311   if test "${ac_cv_search_gethostbyname+set}" = set; then
22312   break
22313 fi
22314 done
22315 if test "${ac_cv_search_gethostbyname+set}" = set; then
22316   :
22317 else
22318   ac_cv_search_gethostbyname=no
22319 fi
22320 rm conftest.$ac_ext
22321 LIBS=$ac_func_search_save_LIBS
22322 fi
22323 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22324 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22325 ac_res=$ac_cv_search_gethostbyname
22326 if test "$ac_res" != no; then
22327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22328   if test "$ac_cv_search_gethostbyname" != "none required"; then
22329        HOSTENT_LIB="$ac_cv_search_gethostbyname"
22330      fi
22331 fi
22332
22333   LIBS="$gl_saved_libs"
22334   if test -z "$HOSTENT_LIB"; then
22335
22336 for ac_func in gethostbyname
22337 do
22338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 $as_echo_n "checking for $ac_func... " >&6; }
22341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342   $as_echo_n "(cached) " >&6
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22352 #define $ac_func innocuous_$ac_func
22353
22354 /* System header to define __stub macros and hopefully few prototypes,
22355     which can conflict with char $ac_func (); below.
22356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357     <limits.h> exists even on freestanding compilers.  */
22358
22359 #ifdef __STDC__
22360 # include <limits.h>
22361 #else
22362 # include <assert.h>
22363 #endif
22364
22365 #undef $ac_func
22366
22367 /* Override any GCC internal prototype to avoid an error.
22368    Use char because int might match the return type of a GCC
22369    builtin and then its argument prototype would still apply.  */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char $ac_func ();
22374 /* The GNU C library defines this for functions which it implements
22375     to always fail with ENOSYS.  Some functions are actually named
22376     something starting with __ and the normal name is an alias.  */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22378 choke me
22379 #endif
22380
22381 int
22382 main ()
22383 {
22384 return $ac_func ();
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393   *) ac_try_echo=$ac_try;;
22394 esac
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397   (eval "$ac_link") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && {
22404          test -z "$ac_c_werror_flag" ||
22405          test ! -s conftest.err
22406        } && test -s conftest$ac_exeext && {
22407          test "$cross_compiling" = yes ||
22408          $as_test_x conftest$ac_exeext
22409        }; then
22410   eval "$as_ac_var=yes"
22411 else
22412   $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         eval "$as_ac_var=no"
22416 fi
22417
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420       conftest$ac_exeext conftest.$ac_ext
22421 fi
22422 ac_res=`eval 'as_val=${'$as_ac_var'}
22423                  $as_echo "$as_val"'`
22424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22425 $as_echo "$ac_res" >&6; }
22426 as_val=`eval 'as_val=${'$as_ac_var'}
22427                  $as_echo "$as_val"'`
22428    if test "x$as_val" = x""yes; then
22429   cat >>confdefs.h <<_ACEOF
22430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22431 _ACEOF
22432
22433 else
22434
22435       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
22436 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
22437 if test "${gl_cv_w32_gethostbyname+set}" = set; then
22438   $as_echo_n "(cached) " >&6
22439 else
22440   gl_cv_w32_gethostbyname=no
22441          gl_save_LIBS="$LIBS"
22442          LIBS="$LIBS -lws2_32"
22443          cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449
22450 #ifdef HAVE_WINSOCK2_H
22451 #include <winsock2.h>
22452 #endif
22453 #include <stddef.h>
22454
22455 int
22456 main ()
22457 {
22458 gethostbyname(NULL);
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 rm -f conftest.$ac_objext conftest$ac_exeext
22464 if { (ac_try="$ac_link"
22465 case "(($ac_try" in
22466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467   *) ac_try_echo=$ac_try;;
22468 esac
22469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22470 $as_echo "$ac_try_echo") >&5
22471   (eval "$ac_link") 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } && {
22478          test -z "$ac_c_werror_flag" ||
22479          test ! -s conftest.err
22480        } && test -s conftest$ac_exeext && {
22481          test "$cross_compiling" = yes ||
22482          $as_test_x conftest$ac_exeext
22483        }; then
22484   gl_cv_w32_gethostbyname=yes
22485 else
22486   $as_echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489
22490 fi
22491
22492 rm -rf conftest.dSYM
22493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22494       conftest$ac_exeext conftest.$ac_ext
22495          LIBS="$gl_save_LIBS"
22496
22497 fi
22498 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
22499 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
22500       if test "$gl_cv_w32_gethostbyname" = "yes"; then
22501         HOSTENT_LIB="-lws2_32"
22502       fi
22503
22504 fi
22505 done
22506
22507   fi
22508
22509
22510   # Code from module include_next:
22511   # Code from module inet_ntop:
22512
22513
22514
22515
22516     :
22517
22518
22519       gl_save_LIBS=$LIBS
22520   { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
22521 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22522 if test "${ac_cv_search_inet_ntop+set}" = set; then
22523   $as_echo_n "(cached) " >&6
22524 else
22525   ac_func_search_save_LIBS=$LIBS
22526 cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532
22533 /* Override any GCC internal prototype to avoid an error.
22534    Use char because int might match the return type of a GCC
22535    builtin and then its argument prototype would still apply.  */
22536 #ifdef __cplusplus
22537 extern "C"
22538 #endif
22539 char inet_ntop ();
22540 int
22541 main ()
22542 {
22543 return inet_ntop ();
22544   ;
22545   return 0;
22546 }
22547 _ACEOF
22548 for ac_lib in '' nsl; do
22549   if test -z "$ac_lib"; then
22550     ac_res="none required"
22551   else
22552     ac_res=-l$ac_lib
22553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22554   fi
22555   rm -f conftest.$ac_objext conftest$ac_exeext
22556 if { (ac_try="$ac_link"
22557 case "(($ac_try" in
22558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559   *) ac_try_echo=$ac_try;;
22560 esac
22561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22562 $as_echo "$ac_try_echo") >&5
22563   (eval "$ac_link") 2>conftest.er1
22564   ac_status=$?
22565   grep -v '^ *+' conftest.er1 >conftest.err
22566   rm -f conftest.er1
22567   cat conftest.err >&5
22568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } && {
22570          test -z "$ac_c_werror_flag" ||
22571          test ! -s conftest.err
22572        } && test -s conftest$ac_exeext && {
22573          test "$cross_compiling" = yes ||
22574          $as_test_x conftest$ac_exeext
22575        }; then
22576   ac_cv_search_inet_ntop=$ac_res
22577 else
22578   $as_echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581
22582 fi
22583
22584 rm -rf conftest.dSYM
22585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22586       conftest$ac_exeext
22587   if test "${ac_cv_search_inet_ntop+set}" = set; then
22588   break
22589 fi
22590 done
22591 if test "${ac_cv_search_inet_ntop+set}" = set; then
22592   :
22593 else
22594   ac_cv_search_inet_ntop=no
22595 fi
22596 rm conftest.$ac_ext
22597 LIBS=$ac_func_search_save_LIBS
22598 fi
22599 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
22600 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22601 ac_res=$ac_cv_search_inet_ntop
22602 if test "$ac_res" != no; then
22603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604
22605 else
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615 for ac_func in inet_ntop
22616 do
22617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22619 $as_echo_n "checking for $ac_func... " >&6; }
22620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22621   $as_echo_n "(cached) " >&6
22622 else
22623   cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h.  */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h.  */
22629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22631 #define $ac_func innocuous_$ac_func
22632
22633 /* System header to define __stub macros and hopefully few prototypes,
22634     which can conflict with char $ac_func (); below.
22635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22636     <limits.h> exists even on freestanding compilers.  */
22637
22638 #ifdef __STDC__
22639 # include <limits.h>
22640 #else
22641 # include <assert.h>
22642 #endif
22643
22644 #undef $ac_func
22645
22646 /* Override any GCC internal prototype to avoid an error.
22647    Use char because int might match the return type of a GCC
22648    builtin and then its argument prototype would still apply.  */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char $ac_func ();
22653 /* The GNU C library defines this for functions which it implements
22654     to always fail with ENOSYS.  Some functions are actually named
22655     something starting with __ and the normal name is an alias.  */
22656 #if defined __stub_$ac_func || defined __stub___$ac_func
22657 choke me
22658 #endif
22659
22660 int
22661 main ()
22662 {
22663 return $ac_func ();
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext conftest$ac_exeext
22669 if { (ac_try="$ac_link"
22670 case "(($ac_try" in
22671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672   *) ac_try_echo=$ac_try;;
22673 esac
22674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22675 $as_echo "$ac_try_echo") >&5
22676   (eval "$ac_link") 2>conftest.er1
22677   ac_status=$?
22678   grep -v '^ *+' conftest.er1 >conftest.err
22679   rm -f conftest.er1
22680   cat conftest.err >&5
22681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); } && {
22683          test -z "$ac_c_werror_flag" ||
22684          test ! -s conftest.err
22685        } && test -s conftest$ac_exeext && {
22686          test "$cross_compiling" = yes ||
22687          $as_test_x conftest$ac_exeext
22688        }; then
22689   eval "$as_ac_var=yes"
22690 else
22691   $as_echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694         eval "$as_ac_var=no"
22695 fi
22696
22697 rm -rf conftest.dSYM
22698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22699       conftest$ac_exeext conftest.$ac_ext
22700 fi
22701 ac_res=`eval 'as_val=${'$as_ac_var'}
22702                  $as_echo "$as_val"'`
22703                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22704 $as_echo "$ac_res" >&6; }
22705 as_val=`eval 'as_val=${'$as_ac_var'}
22706                  $as_echo "$as_val"'`
22707    if test "x$as_val" = x""yes; then
22708   cat >>confdefs.h <<_ACEOF
22709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22710 _ACEOF
22711
22712 else
22713
22714     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22715
22716 fi
22717 done
22718
22719
22720 fi
22721
22722   LIBS=$gl_save_LIBS
22723   INET_NTOP_LIB=
22724   if test "$ac_cv_search_inet_ntop" != "no" &&
22725      test "$ac_cv_search_inet_ntop" != "none required"; then
22726     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
22727   fi
22728
22729
22730
22731   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
22732 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
22733 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
22734   $as_echo_n "(cached) " >&6
22735 else
22736   cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h.  */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h.  */
22742 #include <arpa/inet.h>
22743
22744 int
22745 main ()
22746 {
22747 #ifndef inet_ntop
22748   (void) inet_ntop;
22749 #endif
22750
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759   *) ac_try_echo=$ac_try;;
22760 esac
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763   (eval "$ac_compile") 2>conftest.er1
22764   ac_status=$?
22765   grep -v '^ *+' conftest.er1 >conftest.err
22766   rm -f conftest.er1
22767   cat conftest.err >&5
22768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); } && {
22770          test -z "$ac_c_werror_flag" ||
22771          test ! -s conftest.err
22772        } && test -s conftest.$ac_objext; then
22773   ac_cv_have_decl_inet_ntop=yes
22774 else
22775   $as_echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778         ac_cv_have_decl_inet_ntop=no
22779 fi
22780
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782 fi
22783 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
22784 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
22785 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
22786
22787 cat >>confdefs.h <<_ACEOF
22788 #define HAVE_DECL_INET_NTOP 1
22789 _ACEOF
22790
22791
22792 else
22793   cat >>confdefs.h <<_ACEOF
22794 #define HAVE_DECL_INET_NTOP 0
22795 _ACEOF
22796
22797
22798 fi
22799
22800
22801   if test $ac_cv_have_decl_inet_ntop = no; then
22802     HAVE_DECL_INET_NTOP=0
22803   fi
22804
22805
22806
22807
22808
22809
22810
22811   GNULIB_INET_NTOP=1
22812
22813
22814   # Code from module inet_pton:
22815
22816
22817
22818
22819     :
22820
22821
22822       gl_save_LIBS=$LIBS
22823   { $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
22824 $as_echo_n "checking for library containing inet_pton... " >&6; }
22825 if test "${ac_cv_search_inet_pton+set}" = set; then
22826   $as_echo_n "(cached) " >&6
22827 else
22828   ac_func_search_save_LIBS=$LIBS
22829 cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835
22836 /* Override any GCC internal prototype to avoid an error.
22837    Use char because int might match the return type of a GCC
22838    builtin and then its argument prototype would still apply.  */
22839 #ifdef __cplusplus
22840 extern "C"
22841 #endif
22842 char inet_pton ();
22843 int
22844 main ()
22845 {
22846 return inet_pton ();
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 for ac_lib in '' nsl; do
22852   if test -z "$ac_lib"; then
22853     ac_res="none required"
22854   else
22855     ac_res=-l$ac_lib
22856     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22857   fi
22858   rm -f conftest.$ac_objext conftest$ac_exeext
22859 if { (ac_try="$ac_link"
22860 case "(($ac_try" in
22861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862   *) ac_try_echo=$ac_try;;
22863 esac
22864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22865 $as_echo "$ac_try_echo") >&5
22866   (eval "$ac_link") 2>conftest.er1
22867   ac_status=$?
22868   grep -v '^ *+' conftest.er1 >conftest.err
22869   rm -f conftest.er1
22870   cat conftest.err >&5
22871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); } && {
22873          test -z "$ac_c_werror_flag" ||
22874          test ! -s conftest.err
22875        } && test -s conftest$ac_exeext && {
22876          test "$cross_compiling" = yes ||
22877          $as_test_x conftest$ac_exeext
22878        }; then
22879   ac_cv_search_inet_pton=$ac_res
22880 else
22881   $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884
22885 fi
22886
22887 rm -rf conftest.dSYM
22888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22889       conftest$ac_exeext
22890   if test "${ac_cv_search_inet_pton+set}" = set; then
22891   break
22892 fi
22893 done
22894 if test "${ac_cv_search_inet_pton+set}" = set; then
22895   :
22896 else
22897   ac_cv_search_inet_pton=no
22898 fi
22899 rm conftest.$ac_ext
22900 LIBS=$ac_func_search_save_LIBS
22901 fi
22902 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
22903 $as_echo "$ac_cv_search_inet_pton" >&6; }
22904 ac_res=$ac_cv_search_inet_pton
22905 if test "$ac_res" != no; then
22906   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22907
22908 else
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918 for ac_func in inet_pton
22919 do
22920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22921 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22922 $as_echo_n "checking for $ac_func... " >&6; }
22923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22924   $as_echo_n "(cached) " >&6
22925 else
22926   cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22934 #define $ac_func innocuous_$ac_func
22935
22936 /* System header to define __stub macros and hopefully few prototypes,
22937     which can conflict with char $ac_func (); below.
22938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22939     <limits.h> exists even on freestanding compilers.  */
22940
22941 #ifdef __STDC__
22942 # include <limits.h>
22943 #else
22944 # include <assert.h>
22945 #endif
22946
22947 #undef $ac_func
22948
22949 /* Override any GCC internal prototype to avoid an error.
22950    Use char because int might match the return type of a GCC
22951    builtin and then its argument prototype would still apply.  */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char $ac_func ();
22956 /* The GNU C library defines this for functions which it implements
22957     to always fail with ENOSYS.  Some functions are actually named
22958     something starting with __ and the normal name is an alias.  */
22959 #if defined __stub_$ac_func || defined __stub___$ac_func
22960 choke me
22961 #endif
22962
22963 int
22964 main ()
22965 {
22966 return $ac_func ();
22967   ;
22968   return 0;
22969 }
22970 _ACEOF
22971 rm -f conftest.$ac_objext conftest$ac_exeext
22972 if { (ac_try="$ac_link"
22973 case "(($ac_try" in
22974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975   *) ac_try_echo=$ac_try;;
22976 esac
22977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22978 $as_echo "$ac_try_echo") >&5
22979   (eval "$ac_link") 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } && {
22986          test -z "$ac_c_werror_flag" ||
22987          test ! -s conftest.err
22988        } && test -s conftest$ac_exeext && {
22989          test "$cross_compiling" = yes ||
22990          $as_test_x conftest$ac_exeext
22991        }; then
22992   eval "$as_ac_var=yes"
22993 else
22994   $as_echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997         eval "$as_ac_var=no"
22998 fi
22999
23000 rm -rf conftest.dSYM
23001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23002       conftest$ac_exeext conftest.$ac_ext
23003 fi
23004 ac_res=`eval 'as_val=${'$as_ac_var'}
23005                  $as_echo "$as_val"'`
23006                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23007 $as_echo "$ac_res" >&6; }
23008 as_val=`eval 'as_val=${'$as_ac_var'}
23009                  $as_echo "$as_val"'`
23010    if test "x$as_val" = x""yes; then
23011   cat >>confdefs.h <<_ACEOF
23012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23013 _ACEOF
23014
23015 else
23016
23017     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23018
23019 fi
23020 done
23021
23022
23023 fi
23024
23025   LIBS=$gl_save_LIBS
23026   INET_PTON_LIB=
23027   if test "$ac_cv_search_inet_pton" != "no" &&
23028      test "$ac_cv_search_inet_pton" != "none required"; then
23029     INET_PTON_LIB="$ac_cv_search_inet_pton"
23030   fi
23031
23032
23033
23034   { $as_echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
23035 $as_echo_n "checking whether inet_pton is declared... " >&6; }
23036 if test "${ac_cv_have_decl_inet_pton+set}" = set; then
23037   $as_echo_n "(cached) " >&6
23038 else
23039   cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045 #include <arpa/inet.h>
23046
23047 int
23048 main ()
23049 {
23050 #ifndef inet_pton
23051   (void) inet_pton;
23052 #endif
23053
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062   *) ac_try_echo=$ac_try;;
23063 esac
23064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23065 $as_echo "$ac_try_echo") >&5
23066   (eval "$ac_compile") 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } && {
23073          test -z "$ac_c_werror_flag" ||
23074          test ! -s conftest.err
23075        } && test -s conftest.$ac_objext; then
23076   ac_cv_have_decl_inet_pton=yes
23077 else
23078   $as_echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23080
23081         ac_cv_have_decl_inet_pton=no
23082 fi
23083
23084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23085 fi
23086 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
23087 $as_echo "$ac_cv_have_decl_inet_pton" >&6; }
23088 if test "x$ac_cv_have_decl_inet_pton" = x""yes; then
23089
23090 cat >>confdefs.h <<_ACEOF
23091 #define HAVE_DECL_INET_PTON 1
23092 _ACEOF
23093
23094
23095 else
23096   cat >>confdefs.h <<_ACEOF
23097 #define HAVE_DECL_INET_PTON 0
23098 _ACEOF
23099
23100
23101 fi
23102
23103
23104   if test $ac_cv_have_decl_inet_pton = no; then
23105     HAVE_DECL_INET_PTON=0
23106   fi
23107
23108
23109
23110
23111
23112
23113
23114   GNULIB_INET_PTON=1
23115
23116
23117   # Code from module langinfo:
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127   :
23128
23129
23130
23131
23132
23133
23134
23135      if test $gl_cv_have_include_next = yes; then
23136        gl_cv_next_langinfo_h='<'langinfo.h'>'
23137      else
23138        { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
23139 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
23140 if test "${gl_cv_next_langinfo_h+set}" = set; then
23141   $as_echo_n "(cached) " >&6
23142 else
23143
23144           if test $ac_cv_header_langinfo_h = yes; then
23145             cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h.  */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h.  */
23151 #include <langinfo.h>
23152
23153 _ACEOF
23154                                                                                                 case "$host_os" in
23155               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23156               *)    gl_absname_cpp="$ac_cpp" ;;
23157             esac
23158                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23159                sed -n '\#/langinfo.h#{
23160                  s#.*"\(.*/langinfo.h\)".*#\1#
23161                  s#^/[^/]#//&#
23162                  p
23163                  q
23164                }'`'"'
23165           else
23166             gl_cv_next_langinfo_h='<'langinfo.h'>'
23167           fi
23168
23169 fi
23170 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
23171 $as_echo "$gl_cv_next_langinfo_h" >&6; }
23172      fi
23173      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
23174
23175      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23176        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23177        gl_next_as_first_directive='<'langinfo.h'>'
23178      else
23179        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23180        gl_next_as_first_directive=$gl_cv_next_langinfo_h
23181      fi
23182      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
23183
23184
23185
23186
23187     HAVE_LANGINFO_CODESET=0
23188   HAVE_LANGINFO_ERA=0
23189
23190   :
23191
23192
23193
23194
23195
23196   if test $ac_cv_header_langinfo_h = yes; then
23197     HAVE_LANGINFO_H=1
23198             { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
23199 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
23200 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
23201   $as_echo_n "(cached) " >&6
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 #include <langinfo.h>
23210 int a = CODESET;
23211
23212 int
23213 main ()
23214 {
23215
23216   ;
23217   return 0;
23218 }
23219 _ACEOF
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224   *) ac_try_echo=$ac_try;;
23225 esac
23226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23227 $as_echo "$ac_try_echo") >&5
23228   (eval "$ac_compile") 2>conftest.er1
23229   ac_status=$?
23230   grep -v '^ *+' conftest.er1 >conftest.err
23231   rm -f conftest.er1
23232   cat conftest.err >&5
23233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); } && {
23235          test -z "$ac_c_werror_flag" ||
23236          test ! -s conftest.err
23237        } && test -s conftest.$ac_objext; then
23238   gl_cv_header_langinfo_codeset=yes
23239 else
23240   $as_echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23242
23243         gl_cv_header_langinfo_codeset=no
23244 fi
23245
23246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247
23248 fi
23249 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
23250 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
23251     if test $gl_cv_header_langinfo_codeset = yes; then
23252       HAVE_LANGINFO_CODESET=1
23253     fi
23254     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
23255 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
23256 if test "${gl_cv_header_langinfo_era+set}" = set; then
23257   $as_echo_n "(cached) " >&6
23258 else
23259   cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265 #include <langinfo.h>
23266 int a = ERA;
23267
23268 int
23269 main ()
23270 {
23271
23272   ;
23273   return 0;
23274 }
23275 _ACEOF
23276 rm -f conftest.$ac_objext
23277 if { (ac_try="$ac_compile"
23278 case "(($ac_try" in
23279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280   *) ac_try_echo=$ac_try;;
23281 esac
23282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23283 $as_echo "$ac_try_echo") >&5
23284   (eval "$ac_compile") 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } && {
23291          test -z "$ac_c_werror_flag" ||
23292          test ! -s conftest.err
23293        } && test -s conftest.$ac_objext; then
23294   gl_cv_header_langinfo_era=yes
23295 else
23296   $as_echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23298
23299         gl_cv_header_langinfo_era=no
23300 fi
23301
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303
23304 fi
23305 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
23306 $as_echo "$gl_cv_header_langinfo_era" >&6; }
23307     if test $gl_cv_header_langinfo_era = yes; then
23308       HAVE_LANGINFO_ERA=1
23309     fi
23310   else
23311     HAVE_LANGINFO_H=0
23312   fi
23313
23314
23315
23316
23317
23318
23319   for gl_func in nl_langinfo; do
23320     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23321     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23322 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23323 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23324   $as_echo_n "(cached) " >&6
23325 else
23326   cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h.  */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h.  */
23332 #include <langinfo.h>
23333
23334 int
23335 main ()
23336 {
23337 #undef $gl_func
23338   (void) $gl_func;
23339   ;
23340   return 0;
23341 }
23342 _ACEOF
23343 rm -f conftest.$ac_objext
23344 if { (ac_try="$ac_compile"
23345 case "(($ac_try" in
23346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347   *) ac_try_echo=$ac_try;;
23348 esac
23349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23350 $as_echo "$ac_try_echo") >&5
23351   (eval "$ac_compile") 2>conftest.er1
23352   ac_status=$?
23353   grep -v '^ *+' conftest.er1 >conftest.err
23354   rm -f conftest.er1
23355   cat conftest.err >&5
23356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); } && {
23358          test -z "$ac_c_werror_flag" ||
23359          test ! -s conftest.err
23360        } && test -s conftest.$ac_objext; then
23361   eval "$as_gl_Symbol=yes"
23362 else
23363   $as_echo "$as_me: failed program was:" >&5
23364 sed 's/^/| /' conftest.$ac_ext >&5
23365
23366         eval "$as_gl_Symbol=no"
23367 fi
23368
23369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23370 fi
23371 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23372                  $as_echo "$as_val"'`
23373                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23374 $as_echo "$ac_res" >&6; }
23375      as_val=`eval 'as_val=${'$as_gl_Symbol'}
23376                  $as_echo "$as_val"'`
23377    if test "x$as_val" = x""yes; then
23378   cat >>confdefs.h <<_ACEOF
23379 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23380 _ACEOF
23381
23382                      eval ac_cv_have_decl_$gl_func=yes
23383 fi
23384
23385       done
23386
23387
23388   # Code from module localcharset:
23389
23390
23391
23392
23393   :
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
23404
23405   # Code from module lock:
23406
23407
23408   if test "$gl_threads_api" = posix; then
23409     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
23410     # pthread_rwlock_* functions.
23411     { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
23412 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
23413 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
23414   $as_echo_n "(cached) " >&6
23415 else
23416   ac_cv_type_pthread_rwlock_t=no
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423 #include <pthread.h>
23424
23425 int
23426 main ()
23427 {
23428 if (sizeof (pthread_rwlock_t))
23429        return 0;
23430   ;
23431   return 0;
23432 }
23433 _ACEOF
23434 rm -f conftest.$ac_objext
23435 if { (ac_try="$ac_compile"
23436 case "(($ac_try" in
23437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438   *) ac_try_echo=$ac_try;;
23439 esac
23440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23441 $as_echo "$ac_try_echo") >&5
23442   (eval "$ac_compile") 2>conftest.er1
23443   ac_status=$?
23444   grep -v '^ *+' conftest.er1 >conftest.err
23445   rm -f conftest.er1
23446   cat conftest.err >&5
23447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); } && {
23449          test -z "$ac_c_werror_flag" ||
23450          test ! -s conftest.err
23451        } && test -s conftest.$ac_objext; then
23452   cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h.  */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h.  */
23458 #include <pthread.h>
23459
23460 int
23461 main ()
23462 {
23463 if (sizeof ((pthread_rwlock_t)))
23464           return 0;
23465   ;
23466   return 0;
23467 }
23468 _ACEOF
23469 rm -f conftest.$ac_objext
23470 if { (ac_try="$ac_compile"
23471 case "(($ac_try" in
23472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473   *) ac_try_echo=$ac_try;;
23474 esac
23475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23476 $as_echo "$ac_try_echo") >&5
23477   (eval "$ac_compile") 2>conftest.er1
23478   ac_status=$?
23479   grep -v '^ *+' conftest.er1 >conftest.err
23480   rm -f conftest.er1
23481   cat conftest.err >&5
23482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); } && {
23484          test -z "$ac_c_werror_flag" ||
23485          test ! -s conftest.err
23486        } && test -s conftest.$ac_objext; then
23487   :
23488 else
23489   $as_echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492         ac_cv_type_pthread_rwlock_t=yes
23493 fi
23494
23495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23496 else
23497   $as_echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500
23501 fi
23502
23503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504 fi
23505 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
23506 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
23507 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
23508
23509 cat >>confdefs.h <<\_ACEOF
23510 #define HAVE_PTHREAD_RWLOCK 1
23511 _ACEOF
23512
23513 fi
23514
23515     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23516     cat >conftest.$ac_ext <<_ACEOF
23517
23518       /* confdefs.h.  */
23519 _ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h.  */
23523 #include <pthread.h>
23524 int
23525 main ()
23526 {
23527
23528 #if __FreeBSD__ == 4
23529 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23530 #else
23531 int x = (int)PTHREAD_MUTEX_RECURSIVE;
23532 return !x;
23533 #endif
23534
23535   ;
23536   return 0;
23537 }
23538 _ACEOF
23539 rm -f conftest.$ac_objext
23540 if { (ac_try="$ac_compile"
23541 case "(($ac_try" in
23542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543   *) ac_try_echo=$ac_try;;
23544 esac
23545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23546 $as_echo "$ac_try_echo") >&5
23547   (eval "$ac_compile") 2>conftest.er1
23548   ac_status=$?
23549   grep -v '^ *+' conftest.er1 >conftest.err
23550   rm -f conftest.er1
23551   cat conftest.err >&5
23552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); } && {
23554          test -z "$ac_c_werror_flag" ||
23555          test ! -s conftest.err
23556        } && test -s conftest.$ac_objext; then
23557
23558 cat >>confdefs.h <<\_ACEOF
23559 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
23560 _ACEOF
23561
23562 else
23563   $as_echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23565
23566
23567 fi
23568
23569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23570   fi
23571
23572
23573
23574
23575   # Code from module lseek:
23576
23577
23578
23579   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
23580 $as_echo_n "checking whether lseek detects pipes... " >&6; }
23581 if test "${gl_cv_func_lseek_pipe+set}" = set; then
23582   $as_echo_n "(cached) " >&6
23583 else
23584   if test $cross_compiling = no; then
23585        cat >conftest.$ac_ext <<_ACEOF
23586 /* confdefs.h.  */
23587 _ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h.  */
23591
23592 #include <sys/types.h> /* for off_t */
23593 #include <stdio.h> /* for SEEK_CUR */
23594 #include <unistd.h>
23595 int
23596 main ()
23597 {
23598
23599   /* Exit with success only if stdin is seekable.  */
23600   return lseek (0, (off_t)0, SEEK_CUR) < 0;
23601
23602   ;
23603   return 0;
23604 }
23605 _ACEOF
23606 rm -f conftest.$ac_objext conftest$ac_exeext
23607 if { (ac_try="$ac_link"
23608 case "(($ac_try" in
23609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610   *) ac_try_echo=$ac_try;;
23611 esac
23612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23613 $as_echo "$ac_try_echo") >&5
23614   (eval "$ac_link") 2>conftest.er1
23615   ac_status=$?
23616   grep -v '^ *+' conftest.er1 >conftest.err
23617   rm -f conftest.er1
23618   cat conftest.err >&5
23619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); } && {
23621          test -z "$ac_c_werror_flag" ||
23622          test ! -s conftest.err
23623        } && test -s conftest$ac_exeext && {
23624          test "$cross_compiling" = yes ||
23625          $as_test_x conftest$ac_exeext
23626        }; then
23627   if test -s conftest$ac_exeext \
23628              && ./conftest$ac_exeext < conftest.$ac_ext \
23629              && test 1 = "`echo hi \
23630                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
23631             gl_cv_func_lseek_pipe=yes
23632           else
23633             gl_cv_func_lseek_pipe=no
23634           fi
23635 else
23636   $as_echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639         gl_cv_func_lseek_pipe=no
23640 fi
23641
23642 rm -rf conftest.dSYM
23643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23644       conftest$ac_exeext conftest.$ac_ext
23645      else
23646        cat >conftest.$ac_ext <<_ACEOF
23647 /* confdefs.h.  */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h.  */
23652
23653 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
23654 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
23655   Choke me.
23656 #endif
23657 _ACEOF
23658 rm -f conftest.$ac_objext
23659 if { (ac_try="$ac_compile"
23660 case "(($ac_try" in
23661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662   *) ac_try_echo=$ac_try;;
23663 esac
23664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23665 $as_echo "$ac_try_echo") >&5
23666   (eval "$ac_compile") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest.$ac_objext; then
23676   gl_cv_func_lseek_pipe=yes
23677 else
23678   $as_echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23680
23681         gl_cv_func_lseek_pipe=no
23682 fi
23683
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685      fi
23686 fi
23687 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
23688 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
23689   if test $gl_cv_func_lseek_pipe = no; then
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23700
23701
23702   REPLACE_LSEEK=1
23703
23704 cat >>confdefs.h <<\_ACEOF
23705 #define LSEEK_PIPE_BROKEN 1
23706 _ACEOF
23707
23708
23709   fi
23710
23711
23712
23713
23714   GNULIB_LSEEK=1
23715
23716
23717
23718 cat >>confdefs.h <<\_ACEOF
23719 #define GNULIB_TEST_LSEEK 1
23720 _ACEOF
23721
23722
23723
23724   # Code from module lstat:
23725
23726
23727
23728   :
23729
23730
23731
23732
23733
23734   if test $ac_cv_func_lstat = yes; then
23735
23736     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23737             REPLACE_LSTAT=1
23738     fi
23739     # Prerequisites of lib/lstat.c.
23740
23741   else
23742     HAVE_LSTAT=0
23743   fi
23744
23745
23746
23747
23748   GNULIB_LSTAT=1
23749
23750
23751
23752 cat >>confdefs.h <<\_ACEOF
23753 #define GNULIB_TEST_LSTAT 1
23754 _ACEOF
23755
23756
23757
23758   # Code from module malloc-gnu:
23759
23760
23761
23762 for ac_header in stdlib.h
23763 do
23764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23766   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23767 $as_echo_n "checking for $ac_header... " >&6; }
23768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23769   $as_echo_n "(cached) " >&6
23770 fi
23771 ac_res=`eval 'as_val=${'$as_ac_Header'}
23772                  $as_echo "$as_val"'`
23773                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23774 $as_echo "$ac_res" >&6; }
23775 else
23776   # Is the header compilable?
23777 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23778 $as_echo_n "checking $ac_header usability... " >&6; }
23779 cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h.  */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h.  */
23785 $ac_includes_default
23786 #include <$ac_header>
23787 _ACEOF
23788 rm -f conftest.$ac_objext
23789 if { (ac_try="$ac_compile"
23790 case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795 $as_echo "$ac_try_echo") >&5
23796   (eval "$ac_compile") 2>conftest.er1
23797   ac_status=$?
23798   grep -v '^ *+' conftest.er1 >conftest.err
23799   rm -f conftest.er1
23800   cat conftest.err >&5
23801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); } && {
23803          test -z "$ac_c_werror_flag" ||
23804          test ! -s conftest.err
23805        } && test -s conftest.$ac_objext; then
23806   ac_header_compiler=yes
23807 else
23808   $as_echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23810
23811         ac_header_compiler=no
23812 fi
23813
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23815 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23816 $as_echo "$ac_header_compiler" >&6; }
23817
23818 # Is the header present?
23819 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23820 $as_echo_n "checking $ac_header presence... " >&6; }
23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h.  */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h.  */
23827 #include <$ac_header>
23828 _ACEOF
23829 if { (ac_try="$ac_cpp conftest.$ac_ext"
23830 case "(($ac_try" in
23831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832   *) ac_try_echo=$ac_try;;
23833 esac
23834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23835 $as_echo "$ac_try_echo") >&5
23836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23837   ac_status=$?
23838   grep -v '^ *+' conftest.er1 >conftest.err
23839   rm -f conftest.er1
23840   cat conftest.err >&5
23841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } >/dev/null && {
23843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23844          test ! -s conftest.err
23845        }; then
23846   ac_header_preproc=yes
23847 else
23848   $as_echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23850
23851   ac_header_preproc=no
23852 fi
23853
23854 rm -f conftest.err conftest.$ac_ext
23855 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23856 $as_echo "$ac_header_preproc" >&6; }
23857
23858 # So?  What about this header?
23859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23860   yes:no: )
23861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23862 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23865     ac_header_preproc=yes
23866     ;;
23867   no:yes:* )
23868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23869 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23871 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23873 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23875 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23879 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23880
23881     ;;
23882 esac
23883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23884 $as_echo_n "checking for $ac_header... " >&6; }
23885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23886   $as_echo_n "(cached) " >&6
23887 else
23888   eval "$as_ac_Header=\$ac_header_preproc"
23889 fi
23890 ac_res=`eval 'as_val=${'$as_ac_Header'}
23891                  $as_echo "$as_val"'`
23892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23893 $as_echo "$ac_res" >&6; }
23894
23895 fi
23896 as_val=`eval 'as_val=${'$as_ac_Header'}
23897                  $as_echo "$as_val"'`
23898    if test "x$as_val" = x""yes; then
23899   cat >>confdefs.h <<_ACEOF
23900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23901 _ACEOF
23902
23903 fi
23904
23905 done
23906
23907 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23908 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23909 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23910   $as_echo_n "(cached) " >&6
23911 else
23912   if test "$cross_compiling" = yes; then
23913   ac_cv_func_malloc_0_nonnull=no
23914 else
23915   cat >conftest.$ac_ext <<_ACEOF
23916 /* confdefs.h.  */
23917 _ACEOF
23918 cat confdefs.h >>conftest.$ac_ext
23919 cat >>conftest.$ac_ext <<_ACEOF
23920 /* end confdefs.h.  */
23921 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23922 # include <stdlib.h>
23923 #else
23924 char *malloc ();
23925 #endif
23926
23927 int
23928 main ()
23929 {
23930 return ! malloc (0);
23931   ;
23932   return 0;
23933 }
23934 _ACEOF
23935 rm -f conftest$ac_exeext
23936 if { (ac_try="$ac_link"
23937 case "(($ac_try" in
23938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939   *) ac_try_echo=$ac_try;;
23940 esac
23941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23942 $as_echo "$ac_try_echo") >&5
23943   (eval "$ac_link") 2>&5
23944   ac_status=$?
23945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23947   { (case "(($ac_try" in
23948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949   *) ac_try_echo=$ac_try;;
23950 esac
23951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23952 $as_echo "$ac_try_echo") >&5
23953   (eval "$ac_try") 2>&5
23954   ac_status=$?
23955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956   (exit $ac_status); }; }; then
23957   ac_cv_func_malloc_0_nonnull=yes
23958 else
23959   $as_echo "$as_me: program exited with status $ac_status" >&5
23960 $as_echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963 ( exit $ac_status )
23964 ac_cv_func_malloc_0_nonnull=no
23965 fi
23966 rm -rf conftest.dSYM
23967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23968 fi
23969
23970
23971 fi
23972 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23973 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23974 if test $ac_cv_func_malloc_0_nonnull = yes; then
23975
23976 cat >>confdefs.h <<\_ACEOF
23977 #define HAVE_MALLOC_GNU 1
23978 _ACEOF
23979
23980 else
23981   cat >>confdefs.h <<\_ACEOF
23982 #define HAVE_MALLOC_GNU 0
23983 _ACEOF
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23995
23996   REPLACE_MALLOC=1
23997
23998
23999 fi
24000
24001
24002
24003
24004
24005 cat >>confdefs.h <<_ACEOF
24006 #define GNULIB_MALLOC_GNU 1
24007 _ACEOF
24008
24009
24010   # Code from module malloc-posix:
24011
24012
24013
24014   if test $gl_cv_func_malloc_posix = yes; then
24015
24016 cat >>confdefs.h <<\_ACEOF
24017 #define HAVE_MALLOC_POSIX 1
24018 _ACEOF
24019
24020   else
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24031
24032   REPLACE_MALLOC=1
24033
24034   fi
24035
24036
24037
24038
24039   GNULIB_MALLOC_POSIX=1
24040
24041
24042
24043 cat >>confdefs.h <<\_ACEOF
24044 #define GNULIB_TEST_MALLOC_POSIX 1
24045 _ACEOF
24046
24047
24048
24049   # Code from module mbrtowc:
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059   :
24060
24061
24062
24063
24064
24065
24066   :
24067
24068
24069
24070
24071
24072   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24073
24074
24075
24076      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24077 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24078 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24079   $as_echo_n "(cached) " >&6
24080 else
24081
24082                   case "$host_os" in
24083                      # Guess no on AIX and OSF/1.
24084         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24085                      # Guess yes otherwise.
24086         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24087       esac
24088       if test $LOCALE_JA != none; then
24089         if test "$cross_compiling" = yes; then
24090   :
24091 else
24092   cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098
24099 #include <locale.h>
24100 #include <string.h>
24101 #include <wchar.h>
24102 int main ()
24103 {
24104   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24105     {
24106       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24107       mbstate_t state;
24108       wchar_t wc;
24109
24110       memset (&state, '\0', sizeof (mbstate_t));
24111       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24112         if (mbsinit (&state))
24113           return 1;
24114     }
24115   return 0;
24116 }
24117 _ACEOF
24118 rm -f conftest$ac_exeext
24119 if { (ac_try="$ac_link"
24120 case "(($ac_try" in
24121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122   *) ac_try_echo=$ac_try;;
24123 esac
24124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24125 $as_echo "$ac_try_echo") >&5
24126   (eval "$ac_link") 2>&5
24127   ac_status=$?
24128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24130   { (case "(($ac_try" in
24131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132   *) ac_try_echo=$ac_try;;
24133 esac
24134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24135 $as_echo "$ac_try_echo") >&5
24136   (eval "$ac_try") 2>&5
24137   ac_status=$?
24138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); }; }; then
24140   gl_cv_func_mbrtowc_incomplete_state=yes
24141 else
24142   $as_echo "$as_me: program exited with status $ac_status" >&5
24143 $as_echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146 ( exit $ac_status )
24147 gl_cv_func_mbrtowc_incomplete_state=no
24148 fi
24149 rm -rf conftest.dSYM
24150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24151 fi
24152
24153
24154       fi
24155
24156 fi
24157 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24158 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24159
24160
24161
24162
24163      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24164 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24165 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24166   $as_echo_n "(cached) " >&6
24167 else
24168
24169                   case "$host_os" in
24170                     # Guess no on Solaris 8.
24171         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24172                     # Guess yes otherwise.
24173         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24174       esac
24175       if test $LOCALE_ZH_CN != none; then
24176         if test "$cross_compiling" = yes; then
24177   :
24178 else
24179   cat >conftest.$ac_ext <<_ACEOF
24180 /* confdefs.h.  */
24181 _ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h.  */
24185
24186 #include <locale.h>
24187 #include <stdlib.h>
24188 #include <string.h>
24189 #include <wchar.h>
24190 int main ()
24191 {
24192   /* This fails on Solaris 8:
24193      mbrtowc returns 2, and sets wc to 0x00F0.
24194      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24195   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24196     {
24197       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24198       mbstate_t state;
24199       wchar_t wc;
24200
24201       memset (&state, '\0', sizeof (mbstate_t));
24202       if (mbrtowc (&wc, input + 3, 6, &state) != 4
24203           && mbtowc (&wc, input + 3, 6) == 4)
24204         return 1;
24205     }
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213   *) ac_try_echo=$ac_try;;
24214 esac
24215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24216 $as_echo "$ac_try_echo") >&5
24217   (eval "$ac_link") 2>&5
24218   ac_status=$?
24219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24221   { (case "(($ac_try" in
24222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223   *) ac_try_echo=$ac_try;;
24224 esac
24225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24226 $as_echo "$ac_try_echo") >&5
24227   (eval "$ac_try") 2>&5
24228   ac_status=$?
24229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); }; }; then
24231   gl_cv_func_mbrtowc_sanitycheck=yes
24232 else
24233   $as_echo "$as_me: program exited with status $ac_status" >&5
24234 $as_echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ( exit $ac_status )
24238 gl_cv_func_mbrtowc_sanitycheck=no
24239 fi
24240 rm -rf conftest.dSYM
24241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24242 fi
24243
24244
24245       fi
24246
24247 fi
24248 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24249 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24250
24251     REPLACE_MBSTATE_T=0
24252     case "$gl_cv_func_mbrtowc_incomplete_state" in
24253       *yes) ;;
24254       *) REPLACE_MBSTATE_T=1 ;;
24255     esac
24256     case "$gl_cv_func_mbrtowc_sanitycheck" in
24257       *yes) ;;
24258       *) REPLACE_MBSTATE_T=1 ;;
24259     esac
24260   else
24261     REPLACE_MBSTATE_T=1
24262   fi
24263   if test $REPLACE_MBSTATE_T = 1; then
24264
24265     :
24266
24267   fi
24268
24269
24270
24271   :
24272
24273
24274
24275
24276
24277   if test $ac_cv_func_mbrtowc = no; then
24278     HAVE_MBRTOWC=0
24279   else
24280     if test $REPLACE_MBSTATE_T = 1; then
24281       REPLACE_MBRTOWC=1
24282     else
24283
24284
24285
24286      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
24287 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24288 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
24289   $as_echo_n "(cached) " >&6
24290 else
24291
24292                   case "$host_os" in
24293               # Guess no on OSF/1.
24294         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
24295               # Guess yes otherwise.
24296         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
24297       esac
24298       if test $LOCALE_FR_UTF8 != none; then
24299         if test "$cross_compiling" = yes; then
24300   :
24301 else
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308
24309 #include <locale.h>
24310 #include <string.h>
24311 #include <wchar.h>
24312 int main ()
24313 {
24314   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24315     {
24316       mbstate_t state;
24317       wchar_t wc;
24318       int ret;
24319
24320       memset (&state, '\0', sizeof (mbstate_t));
24321       wc = (wchar_t) 0xBADFACE;
24322       mbrtowc (&wc, NULL, 5, &state);
24323       /* Check that wc was not modified.  */
24324       if (wc != (wchar_t) 0xBADFACE)
24325         return 1;
24326     }
24327   return 0;
24328 }
24329 _ACEOF
24330 rm -f conftest$ac_exeext
24331 if { (ac_try="$ac_link"
24332 case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24337 $as_echo "$ac_try_echo") >&5
24338   (eval "$ac_link") 2>&5
24339   ac_status=$?
24340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24342   { (case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24347 $as_echo "$ac_try_echo") >&5
24348   (eval "$ac_try") 2>&5
24349   ac_status=$?
24350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; }; then
24352   gl_cv_func_mbrtowc_null_arg=yes
24353 else
24354   $as_echo "$as_me: program exited with status $ac_status" >&5
24355 $as_echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24357
24358 ( exit $ac_status )
24359 gl_cv_func_mbrtowc_null_arg=no
24360 fi
24361 rm -rf conftest.dSYM
24362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24363 fi
24364
24365
24366       fi
24367
24368 fi
24369 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
24370 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
24371
24372
24373
24374
24375
24376      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
24377 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24378 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
24379   $as_echo_n "(cached) " >&6
24380 else
24381
24382                   case "$host_os" in
24383                           # Guess no on HP-UX and Solaris.
24384         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
24385                           # Guess yes otherwise.
24386         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
24387       esac
24388       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
24389         if test "$cross_compiling" = yes; then
24390   :
24391 else
24392   cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398
24399 #include <locale.h>
24400 #include <string.h>
24401 #include <wchar.h>
24402 int main ()
24403 {
24404   /* This fails on Solaris.  */
24405   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24406     {
24407       char input[] = "B\303\274\303\237er"; /* "Büßer" */
24408       mbstate_t state;
24409       wchar_t wc;
24410
24411       memset (&state, '\0', sizeof (mbstate_t));
24412       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24413         {
24414           input[1] = '\0';
24415           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24416             return 1;
24417         }
24418     }
24419   /* This fails on HP-UX 11.11.  */
24420   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24421     {
24422       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24423       mbstate_t state;
24424       wchar_t wc;
24425
24426       memset (&state, '\0', sizeof (mbstate_t));
24427       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24428         {
24429           input[1] = '\0';
24430           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24431             return 1;
24432         }
24433     }
24434   return 0;
24435 }
24436 _ACEOF
24437 rm -f conftest$ac_exeext
24438 if { (ac_try="$ac_link"
24439 case "(($ac_try" in
24440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441   *) ac_try_echo=$ac_try;;
24442 esac
24443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24444 $as_echo "$ac_try_echo") >&5
24445   (eval "$ac_link") 2>&5
24446   ac_status=$?
24447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24449   { (case "(($ac_try" in
24450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451   *) ac_try_echo=$ac_try;;
24452 esac
24453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24454 $as_echo "$ac_try_echo") >&5
24455   (eval "$ac_try") 2>&5
24456   ac_status=$?
24457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458   (exit $ac_status); }; }; then
24459   gl_cv_func_mbrtowc_retval=yes
24460 else
24461   $as_echo "$as_me: program exited with status $ac_status" >&5
24462 $as_echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24464
24465 ( exit $ac_status )
24466 gl_cv_func_mbrtowc_retval=no
24467 fi
24468 rm -rf conftest.dSYM
24469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24470 fi
24471
24472
24473       fi
24474
24475 fi
24476 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
24477 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24478
24479
24480
24481
24482      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24483 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24484 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
24485   $as_echo_n "(cached) " >&6
24486 else
24487
24488                   case "$host_os" in
24489                        # Guess no on Solaris 8 and 9.
24490         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
24491                        # Guess yes otherwise.
24492         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
24493       esac
24494       if test $LOCALE_ZH_CN != none; then
24495         if test "$cross_compiling" = yes; then
24496   :
24497 else
24498   cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504
24505 #include <locale.h>
24506 #include <string.h>
24507 #include <wchar.h>
24508 int main ()
24509 {
24510   /* This fails on Solaris 8 and 9.  */
24511   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24512     {
24513       mbstate_t state;
24514       wchar_t wc;
24515
24516       memset (&state, '\0', sizeof (mbstate_t));
24517       if (mbrtowc (&wc, "", 1, &state) != 0)
24518         return 1;
24519     }
24520   return 0;
24521 }
24522 _ACEOF
24523 rm -f conftest$ac_exeext
24524 if { (ac_try="$ac_link"
24525 case "(($ac_try" in
24526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527   *) ac_try_echo=$ac_try;;
24528 esac
24529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24530 $as_echo "$ac_try_echo") >&5
24531   (eval "$ac_link") 2>&5
24532   ac_status=$?
24533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24535   { (case "(($ac_try" in
24536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24537   *) ac_try_echo=$ac_try;;
24538 esac
24539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24540 $as_echo "$ac_try_echo") >&5
24541   (eval "$ac_try") 2>&5
24542   ac_status=$?
24543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; }; then
24545   gl_cv_func_mbrtowc_nul_retval=yes
24546 else
24547   $as_echo "$as_me: program exited with status $ac_status" >&5
24548 $as_echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551 ( exit $ac_status )
24552 gl_cv_func_mbrtowc_nul_retval=no
24553 fi
24554 rm -rf conftest.dSYM
24555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24556 fi
24557
24558
24559       fi
24560
24561 fi
24562 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24563 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24564
24565       case "$gl_cv_func_mbrtowc_null_arg" in
24566         *yes) ;;
24567         *)
24568 cat >>confdefs.h <<\_ACEOF
24569 #define MBRTOWC_NULL_ARG_BUG 1
24570 _ACEOF
24571
24572            REPLACE_MBRTOWC=1
24573            ;;
24574       esac
24575       case "$gl_cv_func_mbrtowc_retval" in
24576         *yes) ;;
24577         *)
24578 cat >>confdefs.h <<\_ACEOF
24579 #define MBRTOWC_RETVAL_BUG 1
24580 _ACEOF
24581
24582            REPLACE_MBRTOWC=1
24583            ;;
24584       esac
24585       case "$gl_cv_func_mbrtowc_nul_retval" in
24586         *yes) ;;
24587         *)
24588 cat >>confdefs.h <<\_ACEOF
24589 #define MBRTOWC_NUL_RETVAL_BUG 1
24590 _ACEOF
24591
24592            REPLACE_MBRTOWC=1
24593            ;;
24594       esac
24595     fi
24596   fi
24597   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
24598
24599     :
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
24610
24611
24612   :
24613
24614   fi
24615
24616
24617
24618
24619   GNULIB_MBRTOWC=1
24620
24621
24622
24623 cat >>confdefs.h <<\_ACEOF
24624 #define GNULIB_TEST_MBRTOWC 1
24625 _ACEOF
24626
24627
24628
24629   # Code from module mbsinit:
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639   :
24640
24641
24642
24643
24644
24645
24646   :
24647
24648
24649
24650
24651
24652   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24653
24654
24655
24656      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24657 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24658 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24659   $as_echo_n "(cached) " >&6
24660 else
24661
24662                   case "$host_os" in
24663                      # Guess no on AIX and OSF/1.
24664         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24665                      # Guess yes otherwise.
24666         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24667       esac
24668       if test $LOCALE_JA != none; then
24669         if test "$cross_compiling" = yes; then
24670   :
24671 else
24672   cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h.  */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h.  */
24678
24679 #include <locale.h>
24680 #include <string.h>
24681 #include <wchar.h>
24682 int main ()
24683 {
24684   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24685     {
24686       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24687       mbstate_t state;
24688       wchar_t wc;
24689
24690       memset (&state, '\0', sizeof (mbstate_t));
24691       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24692         if (mbsinit (&state))
24693           return 1;
24694     }
24695   return 0;
24696 }
24697 _ACEOF
24698 rm -f conftest$ac_exeext
24699 if { (ac_try="$ac_link"
24700 case "(($ac_try" in
24701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702   *) ac_try_echo=$ac_try;;
24703 esac
24704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24705 $as_echo "$ac_try_echo") >&5
24706   (eval "$ac_link") 2>&5
24707   ac_status=$?
24708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24710   { (case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24715 $as_echo "$ac_try_echo") >&5
24716   (eval "$ac_try") 2>&5
24717   ac_status=$?
24718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); }; }; then
24720   gl_cv_func_mbrtowc_incomplete_state=yes
24721 else
24722   $as_echo "$as_me: program exited with status $ac_status" >&5
24723 $as_echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24725
24726 ( exit $ac_status )
24727 gl_cv_func_mbrtowc_incomplete_state=no
24728 fi
24729 rm -rf conftest.dSYM
24730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24731 fi
24732
24733
24734       fi
24735
24736 fi
24737 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24738 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24739
24740
24741
24742
24743      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24744 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24745 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24746   $as_echo_n "(cached) " >&6
24747 else
24748
24749                   case "$host_os" in
24750                     # Guess no on Solaris 8.
24751         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24752                     # Guess yes otherwise.
24753         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24754       esac
24755       if test $LOCALE_ZH_CN != none; then
24756         if test "$cross_compiling" = yes; then
24757   :
24758 else
24759   cat >conftest.$ac_ext <<_ACEOF
24760 /* confdefs.h.  */
24761 _ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h.  */
24765
24766 #include <locale.h>
24767 #include <stdlib.h>
24768 #include <string.h>
24769 #include <wchar.h>
24770 int main ()
24771 {
24772   /* This fails on Solaris 8:
24773      mbrtowc returns 2, and sets wc to 0x00F0.
24774      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24775   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24776     {
24777       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24778       mbstate_t state;
24779       wchar_t wc;
24780
24781       memset (&state, '\0', sizeof (mbstate_t));
24782       if (mbrtowc (&wc, input + 3, 6, &state) != 4
24783           && mbtowc (&wc, input + 3, 6) == 4)
24784         return 1;
24785     }
24786   return 0;
24787 }
24788 _ACEOF
24789 rm -f conftest$ac_exeext
24790 if { (ac_try="$ac_link"
24791 case "(($ac_try" in
24792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793   *) ac_try_echo=$ac_try;;
24794 esac
24795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24796 $as_echo "$ac_try_echo") >&5
24797   (eval "$ac_link") 2>&5
24798   ac_status=$?
24799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24801   { (case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24806 $as_echo "$ac_try_echo") >&5
24807   (eval "$ac_try") 2>&5
24808   ac_status=$?
24809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); }; }; then
24811   gl_cv_func_mbrtowc_sanitycheck=yes
24812 else
24813   $as_echo "$as_me: program exited with status $ac_status" >&5
24814 $as_echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24816
24817 ( exit $ac_status )
24818 gl_cv_func_mbrtowc_sanitycheck=no
24819 fi
24820 rm -rf conftest.dSYM
24821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24822 fi
24823
24824
24825       fi
24826
24827 fi
24828 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24829 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24830
24831     REPLACE_MBSTATE_T=0
24832     case "$gl_cv_func_mbrtowc_incomplete_state" in
24833       *yes) ;;
24834       *) REPLACE_MBSTATE_T=1 ;;
24835     esac
24836     case "$gl_cv_func_mbrtowc_sanitycheck" in
24837       *yes) ;;
24838       *) REPLACE_MBSTATE_T=1 ;;
24839     esac
24840   else
24841     REPLACE_MBSTATE_T=1
24842   fi
24843   if test $REPLACE_MBSTATE_T = 1; then
24844
24845     :
24846
24847   fi
24848
24849
24850
24851   :
24852
24853
24854
24855
24856
24857   if test $ac_cv_func_mbsinit = no; then
24858     HAVE_MBSINIT=0
24859   else
24860     if test $REPLACE_MBSTATE_T = 1; then
24861       REPLACE_MBSINIT=1
24862     fi
24863   fi
24864   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
24865
24866     :
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
24877
24878
24879   :
24880
24881   fi
24882
24883
24884
24885
24886   GNULIB_MBSINIT=1
24887
24888
24889
24890 cat >>confdefs.h <<\_ACEOF
24891 #define GNULIB_TEST_MBSINIT 1
24892 _ACEOF
24893
24894
24895
24896   # Code from module memchr:
24897
24898
24899
24900
24901   GNULIB_MEMCHR=1
24902
24903
24904
24905 cat >>confdefs.h <<\_ACEOF
24906 #define GNULIB_TEST_MEMCHR 1
24907 _ACEOF
24908
24909
24910
24911   # Code from module mkdtemp:
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923 for ac_func in mkdtemp
24924 do
24925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24927 $as_echo_n "checking for $ac_func... " >&6; }
24928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24929   $as_echo_n "(cached) " >&6
24930 else
24931   cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h.  */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h.  */
24937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24939 #define $ac_func innocuous_$ac_func
24940
24941 /* System header to define __stub macros and hopefully few prototypes,
24942     which can conflict with char $ac_func (); below.
24943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24944     <limits.h> exists even on freestanding compilers.  */
24945
24946 #ifdef __STDC__
24947 # include <limits.h>
24948 #else
24949 # include <assert.h>
24950 #endif
24951
24952 #undef $ac_func
24953
24954 /* Override any GCC internal prototype to avoid an error.
24955    Use char because int might match the return type of a GCC
24956    builtin and then its argument prototype would still apply.  */
24957 #ifdef __cplusplus
24958 extern "C"
24959 #endif
24960 char $ac_func ();
24961 /* The GNU C library defines this for functions which it implements
24962     to always fail with ENOSYS.  Some functions are actually named
24963     something starting with __ and the normal name is an alias.  */
24964 #if defined __stub_$ac_func || defined __stub___$ac_func
24965 choke me
24966 #endif
24967
24968 int
24969 main ()
24970 {
24971 return $ac_func ();
24972   ;
24973   return 0;
24974 }
24975 _ACEOF
24976 rm -f conftest.$ac_objext conftest$ac_exeext
24977 if { (ac_try="$ac_link"
24978 case "(($ac_try" in
24979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980   *) ac_try_echo=$ac_try;;
24981 esac
24982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24983 $as_echo "$ac_try_echo") >&5
24984   (eval "$ac_link") 2>conftest.er1
24985   ac_status=$?
24986   grep -v '^ *+' conftest.er1 >conftest.err
24987   rm -f conftest.er1
24988   cat conftest.err >&5
24989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990   (exit $ac_status); } && {
24991          test -z "$ac_c_werror_flag" ||
24992          test ! -s conftest.err
24993        } && test -s conftest$ac_exeext && {
24994          test "$cross_compiling" = yes ||
24995          $as_test_x conftest$ac_exeext
24996        }; then
24997   eval "$as_ac_var=yes"
24998 else
24999   $as_echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25001
25002         eval "$as_ac_var=no"
25003 fi
25004
25005 rm -rf conftest.dSYM
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007       conftest$ac_exeext conftest.$ac_ext
25008 fi
25009 ac_res=`eval 'as_val=${'$as_ac_var'}
25010                  $as_echo "$as_val"'`
25011                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25012 $as_echo "$ac_res" >&6; }
25013 as_val=`eval 'as_val=${'$as_ac_var'}
25014                  $as_echo "$as_val"'`
25015    if test "x$as_val" = x""yes; then
25016   cat >>confdefs.h <<_ACEOF
25017 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25018 _ACEOF
25019
25020 else
25021
25022     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25023
25024 fi
25025 done
25026
25027
25028   if test $ac_cv_func_mkdtemp = no; then
25029     HAVE_MKDTEMP=0
25030     :
25031
25032   fi
25033
25034
25035
25036
25037   GNULIB_MKDTEMP=1
25038
25039
25040
25041 cat >>confdefs.h <<\_ACEOF
25042 #define GNULIB_TEST_MKDTEMP 1
25043 _ACEOF
25044
25045
25046
25047   # Code from module multiarch:
25048
25049   # Code from module netdb:
25050
25051
25052
25053   :
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063   :
25064
25065
25066
25067
25068
25069
25070
25071      if test $gl_cv_have_include_next = yes; then
25072        gl_cv_next_netdb_h='<'netdb.h'>'
25073      else
25074        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
25075 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
25076 if test "${gl_cv_next_netdb_h+set}" = set; then
25077   $as_echo_n "(cached) " >&6
25078 else
25079
25080           if test $ac_cv_header_netdb_h = yes; then
25081             cat >conftest.$ac_ext <<_ACEOF
25082 /* confdefs.h.  */
25083 _ACEOF
25084 cat confdefs.h >>conftest.$ac_ext
25085 cat >>conftest.$ac_ext <<_ACEOF
25086 /* end confdefs.h.  */
25087 #include <netdb.h>
25088
25089 _ACEOF
25090                                                                                                 case "$host_os" in
25091               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25092               *)    gl_absname_cpp="$ac_cpp" ;;
25093             esac
25094                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25095                sed -n '\#/netdb.h#{
25096                  s#.*"\(.*/netdb.h\)".*#\1#
25097                  s#^/[^/]#//&#
25098                  p
25099                  q
25100                }'`'"'
25101           else
25102             gl_cv_next_netdb_h='<'netdb.h'>'
25103           fi
25104
25105 fi
25106 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
25107 $as_echo "$gl_cv_next_netdb_h" >&6; }
25108      fi
25109      NEXT_NETDB_H=$gl_cv_next_netdb_h
25110
25111      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25112        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25113        gl_next_as_first_directive='<'netdb.h'>'
25114      else
25115        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25116        gl_next_as_first_directive=$gl_cv_next_netdb_h
25117      fi
25118      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
25119
25120
25121
25122   if test $ac_cv_header_netdb_h = yes; then
25123     HAVE_NETDB_H=1
25124   else
25125     HAVE_NETDB_H=0
25126   fi
25127
25128
25129
25130
25131
25132
25133
25134   for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
25135     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25136     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25137 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25138 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25139   $as_echo_n "(cached) " >&6
25140 else
25141   cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147 #include <netdb.h>
25148 int
25149 main ()
25150 {
25151 #undef $gl_func
25152   (void) $gl_func;
25153   ;
25154   return 0;
25155 }
25156 _ACEOF
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161   *) ac_try_echo=$ac_try;;
25162 esac
25163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25164 $as_echo "$ac_try_echo") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_c_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest.$ac_objext; then
25175   eval "$as_gl_Symbol=yes"
25176 else
25177   $as_echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180         eval "$as_gl_Symbol=no"
25181 fi
25182
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 fi
25185 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25186                  $as_echo "$as_val"'`
25187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25188 $as_echo "$ac_res" >&6; }
25189      as_val=`eval 'as_val=${'$as_gl_Symbol'}
25190                  $as_echo "$as_val"'`
25191    if test "x$as_val" = x""yes; then
25192   cat >>confdefs.h <<_ACEOF
25193 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25194 _ACEOF
25195
25196                      eval ac_cv_have_decl_$gl_func=yes
25197 fi
25198
25199       done
25200
25201
25202   # Code from module netinet_in:
25203
25204   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
25205 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25206 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
25207   $as_echo_n "(cached) " >&6
25208 else
25209
25210       cat >conftest.$ac_ext <<_ACEOF
25211 /* confdefs.h.  */
25212 _ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h.  */
25216 #include <netinet/in.h>
25217 int
25218 main ()
25219 {
25220
25221   ;
25222   return 0;
25223 }
25224 _ACEOF
25225 rm -f conftest.$ac_objext
25226 if { (ac_try="$ac_compile"
25227 case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25232 $as_echo "$ac_try_echo") >&5
25233   (eval "$ac_compile") 2>conftest.er1
25234   ac_status=$?
25235   grep -v '^ *+' conftest.er1 >conftest.err
25236   rm -f conftest.er1
25237   cat conftest.err >&5
25238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); } && {
25240          test -z "$ac_c_werror_flag" ||
25241          test ! -s conftest.err
25242        } && test -s conftest.$ac_objext; then
25243   gl_cv_header_netinet_in_h_selfcontained=yes
25244 else
25245   $as_echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25247
25248         gl_cv_header_netinet_in_h_selfcontained=no
25249 fi
25250
25251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25252
25253 fi
25254 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25255 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25256   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25257     NETINET_IN_H=''
25258   else
25259     NETINET_IN_H='netinet/in.h'
25260
25261 for ac_header in netinet/in.h
25262 do
25263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25265   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25266 $as_echo_n "checking for $ac_header... " >&6; }
25267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25268   $as_echo_n "(cached) " >&6
25269 fi
25270 ac_res=`eval 'as_val=${'$as_ac_Header'}
25271                  $as_echo "$as_val"'`
25272                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25273 $as_echo "$ac_res" >&6; }
25274 else
25275   # Is the header compilable?
25276 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25277 $as_echo_n "checking $ac_header usability... " >&6; }
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h.  */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h.  */
25284 $ac_includes_default
25285 #include <$ac_header>
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291   *) ac_try_echo=$ac_try;;
25292 esac
25293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25294 $as_echo "$ac_try_echo") >&5
25295   (eval "$ac_compile") 2>conftest.er1
25296   ac_status=$?
25297   grep -v '^ *+' conftest.er1 >conftest.err
25298   rm -f conftest.er1
25299   cat conftest.err >&5
25300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && {
25302          test -z "$ac_c_werror_flag" ||
25303          test ! -s conftest.err
25304        } && test -s conftest.$ac_objext; then
25305   ac_header_compiler=yes
25306 else
25307   $as_echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25309
25310         ac_header_compiler=no
25311 fi
25312
25313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25314 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25315 $as_echo "$ac_header_compiler" >&6; }
25316
25317 # Is the header present?
25318 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25319 $as_echo_n "checking $ac_header presence... " >&6; }
25320 cat >conftest.$ac_ext <<_ACEOF
25321 /* confdefs.h.  */
25322 _ACEOF
25323 cat confdefs.h >>conftest.$ac_ext
25324 cat >>conftest.$ac_ext <<_ACEOF
25325 /* end confdefs.h.  */
25326 #include <$ac_header>
25327 _ACEOF
25328 if { (ac_try="$ac_cpp conftest.$ac_ext"
25329 case "(($ac_try" in
25330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331   *) ac_try_echo=$ac_try;;
25332 esac
25333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25334 $as_echo "$ac_try_echo") >&5
25335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25336   ac_status=$?
25337   grep -v '^ *+' conftest.er1 >conftest.err
25338   rm -f conftest.er1
25339   cat conftest.err >&5
25340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); } >/dev/null && {
25342          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25343          test ! -s conftest.err
25344        }; then
25345   ac_header_preproc=yes
25346 else
25347   $as_echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350   ac_header_preproc=no
25351 fi
25352
25353 rm -f conftest.err conftest.$ac_ext
25354 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25355 $as_echo "$ac_header_preproc" >&6; }
25356
25357 # So?  What about this header?
25358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25359   yes:no: )
25360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25361 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25364     ac_header_preproc=yes
25365     ;;
25366   no:yes:* )
25367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25368 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25370 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25372 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25374 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25378 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25379
25380     ;;
25381 esac
25382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25383 $as_echo_n "checking for $ac_header... " >&6; }
25384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25385   $as_echo_n "(cached) " >&6
25386 else
25387   eval "$as_ac_Header=\$ac_header_preproc"
25388 fi
25389 ac_res=`eval 'as_val=${'$as_ac_Header'}
25390                  $as_echo "$as_val"'`
25391                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25392 $as_echo "$ac_res" >&6; }
25393
25394 fi
25395 as_val=`eval 'as_val=${'$as_ac_Header'}
25396                  $as_echo "$as_val"'`
25397    if test "x$as_val" = x""yes; then
25398   cat >>confdefs.h <<_ACEOF
25399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25400 _ACEOF
25401
25402 fi
25403
25404 done
25405
25406
25407
25408
25409
25410   :
25411
25412
25413
25414
25415
25416
25417
25418      if test $gl_cv_have_include_next = yes; then
25419        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25420      else
25421        { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
25422 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25423 if test "${gl_cv_next_netinet_in_h+set}" = set; then
25424   $as_echo_n "(cached) " >&6
25425 else
25426
25427           if test $ac_cv_header_netinet_in_h = yes; then
25428             cat >conftest.$ac_ext <<_ACEOF
25429 /* confdefs.h.  */
25430 _ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h.  */
25434 #include <netinet/in.h>
25435
25436 _ACEOF
25437                                                                                                 case "$host_os" in
25438               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25439               *)    gl_absname_cpp="$ac_cpp" ;;
25440             esac
25441                                                 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25442                sed -n '\#/netinet/in.h#{
25443                  s#.*"\(.*/netinet/in.h\)".*#\1#
25444                  s#^/[^/]#//&#
25445                  p
25446                  q
25447                }'`'"'
25448           else
25449             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25450           fi
25451
25452 fi
25453 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
25454 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25455      fi
25456      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
25457
25458      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25459        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25460        gl_next_as_first_directive='<'netinet/in.h'>'
25461      else
25462        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25463        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
25464      fi
25465      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
25466
25467
25468
25469     if test $ac_cv_header_netinet_in_h = yes; then
25470       HAVE_NETINET_IN_H=1
25471     else
25472       HAVE_NETINET_IN_H=0
25473     fi
25474
25475   fi
25476
25477
25478   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25479 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25480 if test -z "$MKDIR_P"; then
25481   if test "${ac_cv_path_mkdir+set}" = set; then
25482   $as_echo_n "(cached) " >&6
25483 else
25484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25486 do
25487   IFS=$as_save_IFS
25488   test -z "$as_dir" && as_dir=.
25489   for ac_prog in mkdir gmkdir; do
25490          for ac_exec_ext in '' $ac_executable_extensions; do
25491            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25492            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25493              'mkdir (GNU coreutils) '* | \
25494              'mkdir (coreutils) '* | \
25495              'mkdir (fileutils) '4.1*)
25496                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25497                break 3;;
25498            esac
25499          done
25500        done
25501 done
25502 IFS=$as_save_IFS
25503
25504 fi
25505
25506   if test "${ac_cv_path_mkdir+set}" = set; then
25507     MKDIR_P="$ac_cv_path_mkdir -p"
25508   else
25509     # As a last resort, use the slow shell script.  Don't cache a
25510     # value for MKDIR_P within a source directory, because that will
25511     # break other packages using the cache if that directory is
25512     # removed, or if the value is a relative name.
25513     test -d ./--version && rmdir ./--version
25514     MKDIR_P="$ac_install_sh -d"
25515   fi
25516 fi
25517 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25518 $as_echo "$MKDIR_P" >&6; }
25519
25520
25521   # Code from module nl_langinfo:
25522
25523
25524
25525
25526   :
25527
25528
25529
25530
25531
25532   if test $ac_cv_func_nl_langinfo = yes; then
25533     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
25534       :
25535     else
25536       REPLACE_NL_LANGINFO=1
25537
25538 cat >>confdefs.h <<\_ACEOF
25539 #define REPLACE_NL_LANGINFO 1
25540 _ACEOF
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25551
25552     fi
25553   else
25554     HAVE_NL_LANGINFO=0
25555
25556
25557
25558
25559
25560
25561
25562
25563   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25564
25565   fi
25566
25567
25568
25569
25570   GNULIB_NL_LANGINFO=1
25571
25572
25573
25574 cat >>confdefs.h <<\_ACEOF
25575 #define GNULIB_TEST_NL_LANGINFO 1
25576 _ACEOF
25577
25578
25579
25580   # Code from module physmem:
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
25591
25592
25593   # Prerequisites of lib/physmem.c.
25594
25595
25596
25597
25598
25599
25600
25601 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
25602     machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
25603 do
25604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25605 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25606 $as_echo_n "checking for $ac_header... " >&6; }
25607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25608   $as_echo_n "(cached) " >&6
25609 else
25610   cat >conftest.$ac_ext <<_ACEOF
25611 /* confdefs.h.  */
25612 _ACEOF
25613 cat confdefs.h >>conftest.$ac_ext
25614 cat >>conftest.$ac_ext <<_ACEOF
25615 /* end confdefs.h.  */
25616 $ac_includes_default
25617
25618 #include <$ac_header>
25619 _ACEOF
25620 rm -f conftest.$ac_objext
25621 if { (ac_try="$ac_compile"
25622 case "(($ac_try" in
25623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624   *) ac_try_echo=$ac_try;;
25625 esac
25626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25627 $as_echo "$ac_try_echo") >&5
25628   (eval "$ac_compile") 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && {
25635          test -z "$ac_c_werror_flag" ||
25636          test ! -s conftest.err
25637        } && test -s conftest.$ac_objext; then
25638   eval "$as_ac_Header=yes"
25639 else
25640   $as_echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643         eval "$as_ac_Header=no"
25644 fi
25645
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 fi
25648 ac_res=`eval 'as_val=${'$as_ac_Header'}
25649                  $as_echo "$as_val"'`
25650                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25651 $as_echo "$ac_res" >&6; }
25652 as_val=`eval 'as_val=${'$as_ac_Header'}
25653                  $as_echo "$as_val"'`
25654    if test "x$as_val" = x""yes; then
25655   cat >>confdefs.h <<_ACEOF
25656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25657 _ACEOF
25658
25659 fi
25660
25661 done
25662
25663
25664 for ac_header in sys/sysctl.h
25665 do
25666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25668 $as_echo_n "checking for $ac_header... " >&6; }
25669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25670   $as_echo_n "(cached) " >&6
25671 else
25672   cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h.  */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h.  */
25678 $ac_includes_default
25679      #if HAVE_SYS_PARAM_H
25680      # include <sys/param.h>
25681      #endif
25682
25683
25684 #include <$ac_header>
25685 _ACEOF
25686 rm -f conftest.$ac_objext
25687 if { (ac_try="$ac_compile"
25688 case "(($ac_try" in
25689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690   *) ac_try_echo=$ac_try;;
25691 esac
25692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25693 $as_echo "$ac_try_echo") >&5
25694   (eval "$ac_compile") 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } && {
25701          test -z "$ac_c_werror_flag" ||
25702          test ! -s conftest.err
25703        } && test -s conftest.$ac_objext; then
25704   eval "$as_ac_Header=yes"
25705 else
25706   $as_echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709         eval "$as_ac_Header=no"
25710 fi
25711
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 fi
25714 ac_res=`eval 'as_val=${'$as_ac_Header'}
25715                  $as_echo "$as_val"'`
25716                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25717 $as_echo "$ac_res" >&6; }
25718 as_val=`eval 'as_val=${'$as_ac_Header'}
25719                  $as_echo "$as_val"'`
25720    if test "x$as_val" = x""yes; then
25721   cat >>confdefs.h <<_ACEOF
25722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25723 _ACEOF
25724
25725 fi
25726
25727 done
25728
25729
25730
25731
25732
25733
25734
25735
25736 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
25737 do
25738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25739 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25740 $as_echo_n "checking for $ac_func... " >&6; }
25741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25742   $as_echo_n "(cached) " >&6
25743 else
25744   cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25752 #define $ac_func innocuous_$ac_func
25753
25754 /* System header to define __stub macros and hopefully few prototypes,
25755     which can conflict with char $ac_func (); below.
25756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25757     <limits.h> exists even on freestanding compilers.  */
25758
25759 #ifdef __STDC__
25760 # include <limits.h>
25761 #else
25762 # include <assert.h>
25763 #endif
25764
25765 #undef $ac_func
25766
25767 /* Override any GCC internal prototype to avoid an error.
25768    Use char because int might match the return type of a GCC
25769    builtin and then its argument prototype would still apply.  */
25770 #ifdef __cplusplus
25771 extern "C"
25772 #endif
25773 char $ac_func ();
25774 /* The GNU C library defines this for functions which it implements
25775     to always fail with ENOSYS.  Some functions are actually named
25776     something starting with __ and the normal name is an alias.  */
25777 #if defined __stub_$ac_func || defined __stub___$ac_func
25778 choke me
25779 #endif
25780
25781 int
25782 main ()
25783 {
25784 return $ac_func ();
25785   ;
25786   return 0;
25787 }
25788 _ACEOF
25789 rm -f conftest.$ac_objext conftest$ac_exeext
25790 if { (ac_try="$ac_link"
25791 case "(($ac_try" in
25792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793   *) ac_try_echo=$ac_try;;
25794 esac
25795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25796 $as_echo "$ac_try_echo") >&5
25797   (eval "$ac_link") 2>conftest.er1
25798   ac_status=$?
25799   grep -v '^ *+' conftest.er1 >conftest.err
25800   rm -f conftest.er1
25801   cat conftest.err >&5
25802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); } && {
25804          test -z "$ac_c_werror_flag" ||
25805          test ! -s conftest.err
25806        } && test -s conftest$ac_exeext && {
25807          test "$cross_compiling" = yes ||
25808          $as_test_x conftest$ac_exeext
25809        }; then
25810   eval "$as_ac_var=yes"
25811 else
25812   $as_echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25814
25815         eval "$as_ac_var=no"
25816 fi
25817
25818 rm -rf conftest.dSYM
25819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25820       conftest$ac_exeext conftest.$ac_ext
25821 fi
25822 ac_res=`eval 'as_val=${'$as_ac_var'}
25823                  $as_echo "$as_val"'`
25824                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25825 $as_echo "$ac_res" >&6; }
25826 as_val=`eval 'as_val=${'$as_ac_var'}
25827                  $as_echo "$as_val"'`
25828    if test "x$as_val" = x""yes; then
25829   cat >>confdefs.h <<_ACEOF
25830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25831 _ACEOF
25832
25833 fi
25834 done
25835
25836
25837
25838   # Code from module regex:
25839
25840
25841   :
25842
25843
25844
25845
25846
25847
25848
25849 # Check whether --with-included-regex was given.
25850 if test "${with_included_regex+set}" = set; then
25851   withval=$with_included_regex;
25852 fi
25853
25854
25855   case $with_included_regex in #(
25856   yes|no) ac_use_included_regex=$with_included_regex
25857         ;;
25858   '')
25859     # If the system regex support is good enough that it passes the
25860     # following run test, then default to *not* using the included regex.c.
25861     # If cross compiling, assume the test would fail and use the included
25862     # regex.c.
25863     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25864 $as_echo_n "checking for working re_compile_pattern... " >&6; }
25865 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25866   $as_echo_n "(cached) " >&6
25867 else
25868   if test "$cross_compiling" = yes; then
25869          gl_cv_func_re_compile_pattern_working=no
25870 else
25871   cat >conftest.$ac_ext <<_ACEOF
25872 /* confdefs.h.  */
25873 _ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h.  */
25877 $ac_includes_default
25878            #if HAVE_LOCALE_H
25879             #include <locale.h>
25880            #endif
25881            #include <limits.h>
25882            #include <regex.h>
25883
25884 int
25885 main ()
25886 {
25887 static struct re_pattern_buffer regex;
25888             unsigned char folded_chars[UCHAR_MAX + 1];
25889             int i;
25890             const char *s;
25891             struct re_registers regs;
25892
25893             #if HAVE_LOCALE_H
25894               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25895                  This test needs valgrind to catch the bug on Debian
25896                  GNU/Linux 3.1 x86, but it might catch the bug better
25897                  on other platforms and it shouldn't hurt to try the
25898                  test here.  */
25899               if (setlocale (LC_ALL, "en_US.UTF-8"))
25900                 {
25901                   static char const pat[] = "insert into";
25902                   static char const data[] =
25903                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25904                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25905                                  | RE_ICASE);
25906                   memset (&regex, 0, sizeof regex);
25907                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
25908                   if (s)
25909                     return 1;
25910                   if (re_search (&regex, data, sizeof data - 1,
25911                                  0, sizeof data - 1, &regs)
25912                       != -1)
25913                     return 1;
25914                   if (! setlocale (LC_ALL, "C"))
25915                     return 1;
25916                 }
25917             #endif
25918
25919             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
25920             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25921             memset (&regex, 0, sizeof regex);
25922             s = re_compile_pattern ("a[^x]b", 6, &regex);
25923             if (s)
25924               return 1;
25925
25926             /* This should fail, but succeeds for glibc-2.5.  */
25927             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
25928               return 1;
25929
25930             /* This regular expression is from Spencer ere test number 75
25931                in grep-2.3.  */
25932             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25933             memset (&regex, 0, sizeof regex);
25934             for (i = 0; i <= UCHAR_MAX; i++)
25935               folded_chars[i] = i;
25936             regex.translate = folded_chars;
25937             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
25938             /* This should fail with _Invalid character class name_ error.  */
25939             if (!s)
25940               return 1;
25941
25942             /* Ensure that [b-a] is diagnosed as invalid, when
25943                using RE_NO_EMPTY_RANGES. */
25944             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
25945             memset (&regex, 0, sizeof regex);
25946             s = re_compile_pattern ("a[b-a]", 6, &regex);
25947             if (s == 0)
25948               return 1;
25949
25950             /* This should succeed, but does not for glibc-2.1.3.  */
25951             memset (&regex, 0, sizeof regex);
25952             s = re_compile_pattern ("{1", 2, &regex);
25953
25954             if (s)
25955               return 1;
25956
25957             /* The following example is derived from a problem report
25958                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
25959             memset (&regex, 0, sizeof regex);
25960             s = re_compile_pattern ("[an\371]*n", 7, &regex);
25961             if (s)
25962               return 1;
25963
25964             /* This should match, but does not for glibc-2.2.1.  */
25965             if (re_match (&regex, "an", 2, 0, &regs) != 2)
25966               return 1;
25967
25968             memset (&regex, 0, sizeof regex);
25969             s = re_compile_pattern ("x", 1, &regex);
25970             if (s)
25971               return 1;
25972
25973             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
25974             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
25975               return 1;
25976
25977             /* The version of regex.c in older versions of gnulib
25978                ignored RE_ICASE.  Detect that problem too.  */
25979             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25980             memset (&regex, 0, sizeof regex);
25981             s = re_compile_pattern ("x", 1, &regex);
25982             if (s)
25983               return 1;
25984
25985             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
25986               return 1;
25987
25988             /* Catch a bug reported by Vin Shelton in
25989                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
25990                */
25991             re_set_syntax (RE_SYNTAX_POSIX_BASIC
25992                            & ~RE_CONTEXT_INVALID_DUP
25993                            & ~RE_NO_EMPTY_RANGES);
25994             memset (&regex, 0, sizeof regex);
25995             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
25996             if (s)
25997               return 1;
25998
25999             /* REG_STARTEND was added to glibc on 2004-01-15.
26000                Reject older versions.  */
26001             if (! REG_STARTEND)
26002               return 1;
26003
26004             /* Reject hosts whose regoff_t values are too narrow.
26005                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
26006                and 32-bit int.  */
26007             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
26008                 || sizeof (regoff_t) < sizeof (ssize_t))
26009               return 1;
26010
26011             return 0;
26012   ;
26013   return 0;
26014 }
26015 _ACEOF
26016 rm -f conftest$ac_exeext
26017 if { (ac_try="$ac_link"
26018 case "(($ac_try" in
26019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020   *) ac_try_echo=$ac_try;;
26021 esac
26022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26023 $as_echo "$ac_try_echo") >&5
26024   (eval "$ac_link") 2>&5
26025   ac_status=$?
26026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26028   { (case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034   (eval "$ac_try") 2>&5
26035   ac_status=$?
26036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); }; }; then
26038   gl_cv_func_re_compile_pattern_working=yes
26039 else
26040   $as_echo "$as_me: program exited with status $ac_status" >&5
26041 $as_echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26043
26044 ( exit $ac_status )
26045 gl_cv_func_re_compile_pattern_working=no
26046 fi
26047 rm -rf conftest.dSYM
26048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26049 fi
26050
26051
26052 fi
26053 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
26054 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
26055     case $gl_cv_func_re_compile_pattern_working in #(
26056     yes) ac_use_included_regex=no;; #(
26057     no) ac_use_included_regex=yes;;
26058     esac
26059     ;;
26060   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
26061 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
26062    { (exit 1); exit 1; }; }
26063     ;;
26064   esac
26065
26066   if test $ac_use_included_regex = yes; then
26067
26068 cat >>confdefs.h <<\_ACEOF
26069 #define _REGEX_LARGE_OFFSETS 1
26070 _ACEOF
26071
26072
26073 cat >>confdefs.h <<\_ACEOF
26074 #define re_syntax_options rpl_re_syntax_options
26075 _ACEOF
26076
26077
26078 cat >>confdefs.h <<\_ACEOF
26079 #define re_set_syntax rpl_re_set_syntax
26080 _ACEOF
26081
26082
26083 cat >>confdefs.h <<\_ACEOF
26084 #define re_compile_pattern rpl_re_compile_pattern
26085 _ACEOF
26086
26087
26088 cat >>confdefs.h <<\_ACEOF
26089 #define re_compile_fastmap rpl_re_compile_fastmap
26090 _ACEOF
26091
26092
26093 cat >>confdefs.h <<\_ACEOF
26094 #define re_search rpl_re_search
26095 _ACEOF
26096
26097
26098 cat >>confdefs.h <<\_ACEOF
26099 #define re_search_2 rpl_re_search_2
26100 _ACEOF
26101
26102
26103 cat >>confdefs.h <<\_ACEOF
26104 #define re_match rpl_re_match
26105 _ACEOF
26106
26107
26108 cat >>confdefs.h <<\_ACEOF
26109 #define re_match_2 rpl_re_match_2
26110 _ACEOF
26111
26112
26113 cat >>confdefs.h <<\_ACEOF
26114 #define re_set_registers rpl_re_set_registers
26115 _ACEOF
26116
26117
26118 cat >>confdefs.h <<\_ACEOF
26119 #define re_comp rpl_re_comp
26120 _ACEOF
26121
26122
26123 cat >>confdefs.h <<\_ACEOF
26124 #define re_exec rpl_re_exec
26125 _ACEOF
26126
26127
26128 cat >>confdefs.h <<\_ACEOF
26129 #define regcomp rpl_regcomp
26130 _ACEOF
26131
26132
26133 cat >>confdefs.h <<\_ACEOF
26134 #define regexec rpl_regexec
26135 _ACEOF
26136
26137
26138 cat >>confdefs.h <<\_ACEOF
26139 #define regerror rpl_regerror
26140 _ACEOF
26141
26142
26143 cat >>confdefs.h <<\_ACEOF
26144 #define regfree rpl_regfree
26145 _ACEOF
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
26156
26157
26158
26159
26160
26161
26162
26163 for ac_header in libintl.h
26164 do
26165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26167   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26168 $as_echo_n "checking for $ac_header... " >&6; }
26169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26170   $as_echo_n "(cached) " >&6
26171 fi
26172 ac_res=`eval 'as_val=${'$as_ac_Header'}
26173                  $as_echo "$as_val"'`
26174                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26175 $as_echo "$ac_res" >&6; }
26176 else
26177   # Is the header compilable?
26178 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26179 $as_echo_n "checking $ac_header usability... " >&6; }
26180 cat >conftest.$ac_ext <<_ACEOF
26181 /* confdefs.h.  */
26182 _ACEOF
26183 cat confdefs.h >>conftest.$ac_ext
26184 cat >>conftest.$ac_ext <<_ACEOF
26185 /* end confdefs.h.  */
26186 $ac_includes_default
26187 #include <$ac_header>
26188 _ACEOF
26189 rm -f conftest.$ac_objext
26190 if { (ac_try="$ac_compile"
26191 case "(($ac_try" in
26192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193   *) ac_try_echo=$ac_try;;
26194 esac
26195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26196 $as_echo "$ac_try_echo") >&5
26197   (eval "$ac_compile") 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && {
26204          test -z "$ac_c_werror_flag" ||
26205          test ! -s conftest.err
26206        } && test -s conftest.$ac_objext; then
26207   ac_header_compiler=yes
26208 else
26209   $as_echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26211
26212         ac_header_compiler=no
26213 fi
26214
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26217 $as_echo "$ac_header_compiler" >&6; }
26218
26219 # Is the header present?
26220 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26221 $as_echo_n "checking $ac_header presence... " >&6; }
26222 cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h.  */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h.  */
26228 #include <$ac_header>
26229 _ACEOF
26230 if { (ac_try="$ac_cpp conftest.$ac_ext"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26236 $as_echo "$ac_try_echo") >&5
26237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26238   ac_status=$?
26239   grep -v '^ *+' conftest.er1 >conftest.err
26240   rm -f conftest.er1
26241   cat conftest.err >&5
26242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } >/dev/null && {
26244          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26245          test ! -s conftest.err
26246        }; then
26247   ac_header_preproc=yes
26248 else
26249   $as_echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252   ac_header_preproc=no
26253 fi
26254
26255 rm -f conftest.err conftest.$ac_ext
26256 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26257 $as_echo "$ac_header_preproc" >&6; }
26258
26259 # So?  What about this header?
26260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26261   yes:no: )
26262     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26263 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26264     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26266     ac_header_preproc=yes
26267     ;;
26268   no:yes:* )
26269     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26270 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26271     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26272 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26273     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26274 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26276 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26279     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26280 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26281
26282     ;;
26283 esac
26284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26285 $as_echo_n "checking for $ac_header... " >&6; }
26286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26287   $as_echo_n "(cached) " >&6
26288 else
26289   eval "$as_ac_Header=\$ac_header_preproc"
26290 fi
26291 ac_res=`eval 'as_val=${'$as_ac_Header'}
26292                  $as_echo "$as_val"'`
26293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26294 $as_echo "$ac_res" >&6; }
26295
26296 fi
26297 as_val=`eval 'as_val=${'$as_ac_Header'}
26298                  $as_echo "$as_val"'`
26299    if test "x$as_val" = x""yes; then
26300   cat >>confdefs.h <<_ACEOF
26301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26302 _ACEOF
26303
26304 fi
26305
26306 done
26307
26308
26309   :
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
26322 $as_echo_n "checking whether isblank is declared... " >&6; }
26323 if test "${ac_cv_have_decl_isblank+set}" = set; then
26324   $as_echo_n "(cached) " >&6
26325 else
26326   cat >conftest.$ac_ext <<_ACEOF
26327 /* confdefs.h.  */
26328 _ACEOF
26329 cat confdefs.h >>conftest.$ac_ext
26330 cat >>conftest.$ac_ext <<_ACEOF
26331 /* end confdefs.h.  */
26332 #include <ctype.h>
26333
26334 int
26335 main ()
26336 {
26337 #ifndef isblank
26338   (void) isblank;
26339 #endif
26340
26341   ;
26342   return 0;
26343 }
26344 _ACEOF
26345 rm -f conftest.$ac_objext
26346 if { (ac_try="$ac_compile"
26347 case "(($ac_try" in
26348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349   *) ac_try_echo=$ac_try;;
26350 esac
26351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26352 $as_echo "$ac_try_echo") >&5
26353   (eval "$ac_compile") 2>conftest.er1
26354   ac_status=$?
26355   grep -v '^ *+' conftest.er1 >conftest.err
26356   rm -f conftest.er1
26357   cat conftest.err >&5
26358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); } && {
26360          test -z "$ac_c_werror_flag" ||
26361          test ! -s conftest.err
26362        } && test -s conftest.$ac_objext; then
26363   ac_cv_have_decl_isblank=yes
26364 else
26365   $as_echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26367
26368         ac_cv_have_decl_isblank=no
26369 fi
26370
26371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26372 fi
26373 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
26374 $as_echo "$ac_cv_have_decl_isblank" >&6; }
26375 if test "x$ac_cv_have_decl_isblank" = x""yes; then
26376
26377 cat >>confdefs.h <<_ACEOF
26378 #define HAVE_DECL_ISBLANK 1
26379 _ACEOF
26380
26381
26382 else
26383   cat >>confdefs.h <<_ACEOF
26384 #define HAVE_DECL_ISBLANK 0
26385 _ACEOF
26386
26387
26388 fi
26389
26390
26391
26392   fi
26393
26394   # Code from module safe-read:
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
26405
26406
26407
26408
26409
26410
26411   # Code from module safe-write:
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
26422
26423
26424
26425
26426
26427
26428
26429
26430   # Code from module servent:
26431
26432                       SERVENT_LIB=
26433   gl_saved_libs="$LIBS"
26434   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
26435 $as_echo_n "checking for library containing getservbyname... " >&6; }
26436 if test "${ac_cv_search_getservbyname+set}" = set; then
26437   $as_echo_n "(cached) " >&6
26438 else
26439   ac_func_search_save_LIBS=$LIBS
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446
26447 /* Override any GCC internal prototype to avoid an error.
26448    Use char because int might match the return type of a GCC
26449    builtin and then its argument prototype would still apply.  */
26450 #ifdef __cplusplus
26451 extern "C"
26452 #endif
26453 char getservbyname ();
26454 int
26455 main ()
26456 {
26457 return getservbyname ();
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 for ac_lib in '' socket network net; do
26463   if test -z "$ac_lib"; then
26464     ac_res="none required"
26465   else
26466     ac_res=-l$ac_lib
26467     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26468   fi
26469   rm -f conftest.$ac_objext conftest$ac_exeext
26470 if { (ac_try="$ac_link"
26471 case "(($ac_try" in
26472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26473   *) ac_try_echo=$ac_try;;
26474 esac
26475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26476 $as_echo "$ac_try_echo") >&5
26477   (eval "$ac_link") 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } && {
26484          test -z "$ac_c_werror_flag" ||
26485          test ! -s conftest.err
26486        } && test -s conftest$ac_exeext && {
26487          test "$cross_compiling" = yes ||
26488          $as_test_x conftest$ac_exeext
26489        }; then
26490   ac_cv_search_getservbyname=$ac_res
26491 else
26492   $as_echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26494
26495
26496 fi
26497
26498 rm -rf conftest.dSYM
26499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26500       conftest$ac_exeext
26501   if test "${ac_cv_search_getservbyname+set}" = set; then
26502   break
26503 fi
26504 done
26505 if test "${ac_cv_search_getservbyname+set}" = set; then
26506   :
26507 else
26508   ac_cv_search_getservbyname=no
26509 fi
26510 rm conftest.$ac_ext
26511 LIBS=$ac_func_search_save_LIBS
26512 fi
26513 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
26514 $as_echo "$ac_cv_search_getservbyname" >&6; }
26515 ac_res=$ac_cv_search_getservbyname
26516 if test "$ac_res" != no; then
26517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26518   if test "$ac_cv_search_getservbyname" != "none required"; then
26519        SERVENT_LIB="$ac_cv_search_getservbyname"
26520      fi
26521 fi
26522
26523   LIBS="$gl_saved_libs"
26524   if test -z "$SERVENT_LIB"; then
26525
26526 for ac_func in getservbyname
26527 do
26528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26530 $as_echo_n "checking for $ac_func... " >&6; }
26531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26532   $as_echo_n "(cached) " >&6
26533 else
26534   cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26542 #define $ac_func innocuous_$ac_func
26543
26544 /* System header to define __stub macros and hopefully few prototypes,
26545     which can conflict with char $ac_func (); below.
26546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26547     <limits.h> exists even on freestanding compilers.  */
26548
26549 #ifdef __STDC__
26550 # include <limits.h>
26551 #else
26552 # include <assert.h>
26553 #endif
26554
26555 #undef $ac_func
26556
26557 /* Override any GCC internal prototype to avoid an error.
26558    Use char because int might match the return type of a GCC
26559    builtin and then its argument prototype would still apply.  */
26560 #ifdef __cplusplus
26561 extern "C"
26562 #endif
26563 char $ac_func ();
26564 /* The GNU C library defines this for functions which it implements
26565     to always fail with ENOSYS.  Some functions are actually named
26566     something starting with __ and the normal name is an alias.  */
26567 #if defined __stub_$ac_func || defined __stub___$ac_func
26568 choke me
26569 #endif
26570
26571 int
26572 main ()
26573 {
26574 return $ac_func ();
26575   ;
26576   return 0;
26577 }
26578 _ACEOF
26579 rm -f conftest.$ac_objext conftest$ac_exeext
26580 if { (ac_try="$ac_link"
26581 case "(($ac_try" in
26582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583   *) ac_try_echo=$ac_try;;
26584 esac
26585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26586 $as_echo "$ac_try_echo") >&5
26587   (eval "$ac_link") 2>conftest.er1
26588   ac_status=$?
26589   grep -v '^ *+' conftest.er1 >conftest.err
26590   rm -f conftest.er1
26591   cat conftest.err >&5
26592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); } && {
26594          test -z "$ac_c_werror_flag" ||
26595          test ! -s conftest.err
26596        } && test -s conftest$ac_exeext && {
26597          test "$cross_compiling" = yes ||
26598          $as_test_x conftest$ac_exeext
26599        }; then
26600   eval "$as_ac_var=yes"
26601 else
26602   $as_echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605         eval "$as_ac_var=no"
26606 fi
26607
26608 rm -rf conftest.dSYM
26609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26610       conftest$ac_exeext conftest.$ac_ext
26611 fi
26612 ac_res=`eval 'as_val=${'$as_ac_var'}
26613                  $as_echo "$as_val"'`
26614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26615 $as_echo "$ac_res" >&6; }
26616 as_val=`eval 'as_val=${'$as_ac_var'}
26617                  $as_echo "$as_val"'`
26618    if test "x$as_val" = x""yes; then
26619   cat >>confdefs.h <<_ACEOF
26620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26621 _ACEOF
26622
26623 else
26624
26625       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
26626 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
26627 if test "${gl_cv_w32_getservbyname+set}" = set; then
26628   $as_echo_n "(cached) " >&6
26629 else
26630   gl_cv_w32_getservbyname=no
26631          gl_save_LIBS="$LIBS"
26632          LIBS="$LIBS -lws2_32"
26633          cat >conftest.$ac_ext <<_ACEOF
26634 /* confdefs.h.  */
26635 _ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h.  */
26639
26640 #ifdef HAVE_WINSOCK2_H
26641 #include <winsock2.h>
26642 #endif
26643 #include <stddef.h>
26644
26645 int
26646 main ()
26647 {
26648 getservbyname(NULL,NULL);
26649   ;
26650   return 0;
26651 }
26652 _ACEOF
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (ac_try="$ac_link"
26655 case "(($ac_try" in
26656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657   *) ac_try_echo=$ac_try;;
26658 esac
26659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26660 $as_echo "$ac_try_echo") >&5
26661   (eval "$ac_link") 2>conftest.er1
26662   ac_status=$?
26663   grep -v '^ *+' conftest.er1 >conftest.err
26664   rm -f conftest.er1
26665   cat conftest.err >&5
26666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); } && {
26668          test -z "$ac_c_werror_flag" ||
26669          test ! -s conftest.err
26670        } && test -s conftest$ac_exeext && {
26671          test "$cross_compiling" = yes ||
26672          $as_test_x conftest$ac_exeext
26673        }; then
26674   gl_cv_w32_getservbyname=yes
26675 else
26676   $as_echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26678
26679
26680 fi
26681
26682 rm -rf conftest.dSYM
26683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26684       conftest$ac_exeext conftest.$ac_ext
26685          LIBS="$gl_save_LIBS"
26686
26687 fi
26688 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
26689 $as_echo "$gl_cv_w32_getservbyname" >&6; }
26690       if test "$gl_cv_w32_getservbyname" = "yes"; then
26691         SERVENT_LIB="-lws2_32"
26692       fi
26693
26694 fi
26695 done
26696
26697   fi
26698
26699
26700   # Code from module size_max:
26701
26702
26703 for ac_header in stdint.h
26704 do
26705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26707   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26708 $as_echo_n "checking for $ac_header... " >&6; }
26709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26710   $as_echo_n "(cached) " >&6
26711 fi
26712 ac_res=`eval 'as_val=${'$as_ac_Header'}
26713                  $as_echo "$as_val"'`
26714                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26715 $as_echo "$ac_res" >&6; }
26716 else
26717   # Is the header compilable?
26718 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26719 $as_echo_n "checking $ac_header usability... " >&6; }
26720 cat >conftest.$ac_ext <<_ACEOF
26721 /* confdefs.h.  */
26722 _ACEOF
26723 cat confdefs.h >>conftest.$ac_ext
26724 cat >>conftest.$ac_ext <<_ACEOF
26725 /* end confdefs.h.  */
26726 $ac_includes_default
26727 #include <$ac_header>
26728 _ACEOF
26729 rm -f conftest.$ac_objext
26730 if { (ac_try="$ac_compile"
26731 case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26736 $as_echo "$ac_try_echo") >&5
26737   (eval "$ac_compile") 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } && {
26744          test -z "$ac_c_werror_flag" ||
26745          test ! -s conftest.err
26746        } && test -s conftest.$ac_objext; then
26747   ac_header_compiler=yes
26748 else
26749   $as_echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26751
26752         ac_header_compiler=no
26753 fi
26754
26755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26756 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26757 $as_echo "$ac_header_compiler" >&6; }
26758
26759 # Is the header present?
26760 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26761 $as_echo_n "checking $ac_header presence... " >&6; }
26762 cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h.  */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h.  */
26768 #include <$ac_header>
26769 _ACEOF
26770 if { (ac_try="$ac_cpp conftest.$ac_ext"
26771 case "(($ac_try" in
26772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773   *) ac_try_echo=$ac_try;;
26774 esac
26775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26776 $as_echo "$ac_try_echo") >&5
26777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } >/dev/null && {
26784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26785          test ! -s conftest.err
26786        }; then
26787   ac_header_preproc=yes
26788 else
26789   $as_echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792   ac_header_preproc=no
26793 fi
26794
26795 rm -f conftest.err conftest.$ac_ext
26796 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26797 $as_echo "$ac_header_preproc" >&6; }
26798
26799 # So?  What about this header?
26800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26801   yes:no: )
26802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26803 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26806     ac_header_preproc=yes
26807     ;;
26808   no:yes:* )
26809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26810 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26812 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26813     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26814 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26816 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26818 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26820 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26821
26822     ;;
26823 esac
26824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26825 $as_echo_n "checking for $ac_header... " >&6; }
26826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26827   $as_echo_n "(cached) " >&6
26828 else
26829   eval "$as_ac_Header=\$ac_header_preproc"
26830 fi
26831 ac_res=`eval 'as_val=${'$as_ac_Header'}
26832                  $as_echo "$as_val"'`
26833                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26834 $as_echo "$ac_res" >&6; }
26835
26836 fi
26837 as_val=`eval 'as_val=${'$as_ac_Header'}
26838                  $as_echo "$as_val"'`
26839    if test "x$as_val" = x""yes; then
26840   cat >>confdefs.h <<_ACEOF
26841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26842 _ACEOF
26843
26844 fi
26845
26846 done
26847
26848     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26849 $as_echo_n "checking for SIZE_MAX... " >&6; }
26850   result=
26851   cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h.  */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h.  */
26857
26858 #include <limits.h>
26859 #if HAVE_STDINT_H
26860 #include <stdint.h>
26861 #endif
26862 #ifdef SIZE_MAX
26863 Found it
26864 #endif
26865
26866 _ACEOF
26867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26868   $EGREP "Found it" >/dev/null 2>&1; then
26869   result=yes
26870 fi
26871 rm -f conftest*
26872
26873   if test -z "$result"; then
26874                 if test "$cross_compiling" = yes; then
26875   # Depending upon the size, compute the lo and hi bounds.
26876 cat >conftest.$ac_ext <<_ACEOF
26877 /* confdefs.h.  */
26878 _ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h.  */
26882 #include <stddef.h>
26883 #include <limits.h>
26884 int
26885 main ()
26886 {
26887 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
26888 test_array [0] = 0
26889
26890   ;
26891   return 0;
26892 }
26893 _ACEOF
26894 rm -f conftest.$ac_objext
26895 if { (ac_try="$ac_compile"
26896 case "(($ac_try" in
26897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898   *) ac_try_echo=$ac_try;;
26899 esac
26900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26901 $as_echo "$ac_try_echo") >&5
26902   (eval "$ac_compile") 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } && {
26909          test -z "$ac_c_werror_flag" ||
26910          test ! -s conftest.err
26911        } && test -s conftest.$ac_objext; then
26912   ac_lo=0 ac_mid=0
26913   while :; do
26914     cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h.  */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h.  */
26920 #include <stddef.h>
26921 #include <limits.h>
26922 int
26923 main ()
26924 {
26925 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26926 test_array [0] = 0
26927
26928   ;
26929   return 0;
26930 }
26931 _ACEOF
26932 rm -f conftest.$ac_objext
26933 if { (ac_try="$ac_compile"
26934 case "(($ac_try" in
26935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26936   *) ac_try_echo=$ac_try;;
26937 esac
26938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26939 $as_echo "$ac_try_echo") >&5
26940   (eval "$ac_compile") 2>conftest.er1
26941   ac_status=$?
26942   grep -v '^ *+' conftest.er1 >conftest.err
26943   rm -f conftest.er1
26944   cat conftest.err >&5
26945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); } && {
26947          test -z "$ac_c_werror_flag" ||
26948          test ! -s conftest.err
26949        } && test -s conftest.$ac_objext; then
26950   ac_hi=$ac_mid; break
26951 else
26952   $as_echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955         ac_lo=`expr $ac_mid + 1`
26956                         if test $ac_lo -le $ac_mid; then
26957                           ac_lo= ac_hi=
26958                           break
26959                         fi
26960                         ac_mid=`expr 2 '*' $ac_mid + 1`
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964   done
26965 else
26966   $as_echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26968
26969         cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h.  */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h.  */
26975 #include <stddef.h>
26976 #include <limits.h>
26977 int
26978 main ()
26979 {
26980 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
26981 test_array [0] = 0
26982
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 rm -f conftest.$ac_objext
26988 if { (ac_try="$ac_compile"
26989 case "(($ac_try" in
26990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991   *) ac_try_echo=$ac_try;;
26992 esac
26993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26994 $as_echo "$ac_try_echo") >&5
26995   (eval "$ac_compile") 2>conftest.er1
26996   ac_status=$?
26997   grep -v '^ *+' conftest.er1 >conftest.err
26998   rm -f conftest.er1
26999   cat conftest.err >&5
27000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001   (exit $ac_status); } && {
27002          test -z "$ac_c_werror_flag" ||
27003          test ! -s conftest.err
27004        } && test -s conftest.$ac_objext; then
27005   ac_hi=-1 ac_mid=-1
27006   while :; do
27007     cat >conftest.$ac_ext <<_ACEOF
27008 /* confdefs.h.  */
27009 _ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h.  */
27013 #include <stddef.h>
27014 #include <limits.h>
27015 int
27016 main ()
27017 {
27018 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27019 test_array [0] = 0
27020
27021   ;
27022   return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest.$ac_objext
27026 if { (ac_try="$ac_compile"
27027 case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27032 $as_echo "$ac_try_echo") >&5
27033   (eval "$ac_compile") 2>conftest.er1
27034   ac_status=$?
27035   grep -v '^ *+' conftest.er1 >conftest.err
27036   rm -f conftest.er1
27037   cat conftest.err >&5
27038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); } && {
27040          test -z "$ac_c_werror_flag" ||
27041          test ! -s conftest.err
27042        } && test -s conftest.$ac_objext; then
27043   ac_lo=$ac_mid; break
27044 else
27045   $as_echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048         ac_hi=`expr '(' $ac_mid ')' - 1`
27049                         if test $ac_mid -le $ac_hi; then
27050                           ac_lo= ac_hi=
27051                           break
27052                         fi
27053                         ac_mid=`expr 2 '*' $ac_mid`
27054 fi
27055
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057   done
27058 else
27059   $as_echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27061
27062         ac_lo= ac_hi=
27063 fi
27064
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066 fi
27067
27068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27069 # Binary search between lo and hi bounds.
27070 while test "x$ac_lo" != "x$ac_hi"; do
27071   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27072   cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078 #include <stddef.h>
27079 #include <limits.h>
27080 int
27081 main ()
27082 {
27083 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27084 test_array [0] = 0
27085
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext
27091 if { (ac_try="$ac_compile"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27097 $as_echo "$ac_try_echo") >&5
27098   (eval "$ac_compile") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } && {
27105          test -z "$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        } && test -s conftest.$ac_objext; then
27108   ac_hi=$ac_mid
27109 else
27110   $as_echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113         ac_lo=`expr '(' $ac_mid ')' + 1`
27114 fi
27115
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 done
27118 case $ac_lo in
27119 ?*) size_t_bits_minus_1=$ac_lo;;
27120 '') size_t_bits_minus_1= ;;
27121 esac
27122 else
27123   cat >conftest.$ac_ext <<_ACEOF
27124 /* confdefs.h.  */
27125 _ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h.  */
27129 #include <stddef.h>
27130 #include <limits.h>
27131 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
27132 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
27133 #include <stdio.h>
27134 #include <stdlib.h>
27135 int
27136 main ()
27137 {
27138
27139   FILE *f = fopen ("conftest.val", "w");
27140   if (! f)
27141     return 1;
27142   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
27143     {
27144       long int i = longval ();
27145       if (i != (sizeof (size_t) * CHAR_BIT - 1))
27146         return 1;
27147       fprintf (f, "%ld", i);
27148     }
27149   else
27150     {
27151       unsigned long int i = ulongval ();
27152       if (i != (sizeof (size_t) * CHAR_BIT - 1))
27153         return 1;
27154       fprintf (f, "%lu", i);
27155     }
27156   /* Do not output a trailing newline, as this causes \r\n confusion
27157      on some platforms.  */
27158   return ferror (f) || fclose (f) != 0;
27159
27160   ;
27161   return 0;
27162 }
27163 _ACEOF
27164 rm -f conftest$ac_exeext
27165 if { (ac_try="$ac_link"
27166 case "(($ac_try" in
27167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168   *) ac_try_echo=$ac_try;;
27169 esac
27170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27171 $as_echo "$ac_try_echo") >&5
27172   (eval "$ac_link") 2>&5
27173   ac_status=$?
27174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27176   { (case "(($ac_try" in
27177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178   *) ac_try_echo=$ac_try;;
27179 esac
27180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27181 $as_echo "$ac_try_echo") >&5
27182   (eval "$ac_try") 2>&5
27183   ac_status=$?
27184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); }; }; then
27186   size_t_bits_minus_1=`cat conftest.val`
27187 else
27188   $as_echo "$as_me: program exited with status $ac_status" >&5
27189 $as_echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192 ( exit $ac_status )
27193 size_t_bits_minus_1=
27194 fi
27195 rm -rf conftest.dSYM
27196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27197 fi
27198 rm -f conftest.val
27199
27200     if test "$cross_compiling" = yes; then
27201   # Depending upon the size, compute the lo and hi bounds.
27202 cat >conftest.$ac_ext <<_ACEOF
27203 /* confdefs.h.  */
27204 _ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h.  */
27208 #include <stddef.h>
27209 int
27210 main ()
27211 {
27212 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
27213 test_array [0] = 0
27214
27215   ;
27216   return 0;
27217 }
27218 _ACEOF
27219 rm -f conftest.$ac_objext
27220 if { (ac_try="$ac_compile"
27221 case "(($ac_try" in
27222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223   *) ac_try_echo=$ac_try;;
27224 esac
27225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27226 $as_echo "$ac_try_echo") >&5
27227   (eval "$ac_compile") 2>conftest.er1
27228   ac_status=$?
27229   grep -v '^ *+' conftest.er1 >conftest.err
27230   rm -f conftest.er1
27231   cat conftest.err >&5
27232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); } && {
27234          test -z "$ac_c_werror_flag" ||
27235          test ! -s conftest.err
27236        } && test -s conftest.$ac_objext; then
27237   ac_lo=0 ac_mid=0
27238   while :; do
27239     cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245 #include <stddef.h>
27246 int
27247 main ()
27248 {
27249 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27250 test_array [0] = 0
27251
27252   ;
27253   return 0;
27254 }
27255 _ACEOF
27256 rm -f conftest.$ac_objext
27257 if { (ac_try="$ac_compile"
27258 case "(($ac_try" in
27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260   *) ac_try_echo=$ac_try;;
27261 esac
27262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27263 $as_echo "$ac_try_echo") >&5
27264   (eval "$ac_compile") 2>conftest.er1
27265   ac_status=$?
27266   grep -v '^ *+' conftest.er1 >conftest.err
27267   rm -f conftest.er1
27268   cat conftest.err >&5
27269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); } && {
27271          test -z "$ac_c_werror_flag" ||
27272          test ! -s conftest.err
27273        } && test -s conftest.$ac_objext; then
27274   ac_hi=$ac_mid; break
27275 else
27276   $as_echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27278
27279         ac_lo=`expr $ac_mid + 1`
27280                         if test $ac_lo -le $ac_mid; then
27281                           ac_lo= ac_hi=
27282                           break
27283                         fi
27284                         ac_mid=`expr 2 '*' $ac_mid + 1`
27285 fi
27286
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288   done
27289 else
27290   $as_echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293         cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299 #include <stddef.h>
27300 int
27301 main ()
27302 {
27303 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
27304 test_array [0] = 0
27305
27306   ;
27307   return 0;
27308 }
27309 _ACEOF
27310 rm -f conftest.$ac_objext
27311 if { (ac_try="$ac_compile"
27312 case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27317 $as_echo "$ac_try_echo") >&5
27318   (eval "$ac_compile") 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } && {
27325          test -z "$ac_c_werror_flag" ||
27326          test ! -s conftest.err
27327        } && test -s conftest.$ac_objext; then
27328   ac_hi=-1 ac_mid=-1
27329   while :; do
27330     cat >conftest.$ac_ext <<_ACEOF
27331 /* confdefs.h.  */
27332 _ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h.  */
27336 #include <stddef.h>
27337 int
27338 main ()
27339 {
27340 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
27341 test_array [0] = 0
27342
27343   ;
27344   return 0;
27345 }
27346 _ACEOF
27347 rm -f conftest.$ac_objext
27348 if { (ac_try="$ac_compile"
27349 case "(($ac_try" in
27350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351   *) ac_try_echo=$ac_try;;
27352 esac
27353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27354 $as_echo "$ac_try_echo") >&5
27355   (eval "$ac_compile") 2>conftest.er1
27356   ac_status=$?
27357   grep -v '^ *+' conftest.er1 >conftest.err
27358   rm -f conftest.er1
27359   cat conftest.err >&5
27360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); } && {
27362          test -z "$ac_c_werror_flag" ||
27363          test ! -s conftest.err
27364        } && test -s conftest.$ac_objext; then
27365   ac_lo=$ac_mid; break
27366 else
27367   $as_echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370         ac_hi=`expr '(' $ac_mid ')' - 1`
27371                         if test $ac_mid -le $ac_hi; then
27372                           ac_lo= ac_hi=
27373                           break
27374                         fi
27375                         ac_mid=`expr 2 '*' $ac_mid`
27376 fi
27377
27378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27379   done
27380 else
27381   $as_echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27383
27384         ac_lo= ac_hi=
27385 fi
27386
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27388 fi
27389
27390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391 # Binary search between lo and hi bounds.
27392 while test "x$ac_lo" != "x$ac_hi"; do
27393   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27394   cat >conftest.$ac_ext <<_ACEOF
27395 /* confdefs.h.  */
27396 _ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h.  */
27400 #include <stddef.h>
27401 int
27402 main ()
27403 {
27404 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27405 test_array [0] = 0
27406
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27418 $as_echo "$ac_try_echo") >&5
27419   (eval "$ac_compile") 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } && {
27426          test -z "$ac_c_werror_flag" ||
27427          test ! -s conftest.err
27428        } && test -s conftest.$ac_objext; then
27429   ac_hi=$ac_mid
27430 else
27431   $as_echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434         ac_lo=`expr '(' $ac_mid ')' + 1`
27435 fi
27436
27437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438 done
27439 case $ac_lo in
27440 ?*) fits_in_uint=$ac_lo;;
27441 '') fits_in_uint= ;;
27442 esac
27443 else
27444   cat >conftest.$ac_ext <<_ACEOF
27445 /* confdefs.h.  */
27446 _ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h.  */
27450 #include <stddef.h>
27451 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
27452 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
27453 #include <stdio.h>
27454 #include <stdlib.h>
27455 int
27456 main ()
27457 {
27458
27459   FILE *f = fopen ("conftest.val", "w");
27460   if (! f)
27461     return 1;
27462   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
27463     {
27464       long int i = longval ();
27465       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27466         return 1;
27467       fprintf (f, "%ld", i);
27468     }
27469   else
27470     {
27471       unsigned long int i = ulongval ();
27472       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27473         return 1;
27474       fprintf (f, "%lu", i);
27475     }
27476   /* Do not output a trailing newline, as this causes \r\n confusion
27477      on some platforms.  */
27478   return ferror (f) || fclose (f) != 0;
27479
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 rm -f conftest$ac_exeext
27485 if { (ac_try="$ac_link"
27486 case "(($ac_try" in
27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488   *) ac_try_echo=$ac_try;;
27489 esac
27490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27491 $as_echo "$ac_try_echo") >&5
27492   (eval "$ac_link") 2>&5
27493   ac_status=$?
27494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27501 $as_echo "$ac_try_echo") >&5
27502   (eval "$ac_try") 2>&5
27503   ac_status=$?
27504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; }; then
27506   fits_in_uint=`cat conftest.val`
27507 else
27508   $as_echo "$as_me: program exited with status $ac_status" >&5
27509 $as_echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27511
27512 ( exit $ac_status )
27513 fits_in_uint=
27514 fi
27515 rm -rf conftest.dSYM
27516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27517 fi
27518 rm -f conftest.val
27519
27520     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
27521       if test $fits_in_uint = 1; then
27522                         cat >conftest.$ac_ext <<_ACEOF
27523 /* confdefs.h.  */
27524 _ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h.  */
27528 #include <stddef.h>
27529           extern size_t foo;
27530           extern unsigned long foo;
27531
27532 int
27533 main ()
27534 {
27535
27536   ;
27537   return 0;
27538 }
27539 _ACEOF
27540 rm -f conftest.$ac_objext
27541 if { (ac_try="$ac_compile"
27542 case "(($ac_try" in
27543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544   *) ac_try_echo=$ac_try;;
27545 esac
27546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27547 $as_echo "$ac_try_echo") >&5
27548   (eval "$ac_compile") 2>conftest.er1
27549   ac_status=$?
27550   grep -v '^ *+' conftest.er1 >conftest.err
27551   rm -f conftest.er1
27552   cat conftest.err >&5
27553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); } && {
27555          test -z "$ac_c_werror_flag" ||
27556          test ! -s conftest.err
27557        } && test -s conftest.$ac_objext; then
27558   fits_in_uint=0
27559 else
27560   $as_echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27562
27563
27564 fi
27565
27566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27567       fi
27568                         if test $fits_in_uint = 1; then
27569         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
27570       else
27571         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
27572       fi
27573     else
27574             result='((size_t)~(size_t)0)'
27575     fi
27576   fi
27577   { $as_echo "$as_me:$LINENO: result: $result" >&5
27578 $as_echo "$result" >&6; }
27579   if test "$result" != yes; then
27580
27581 cat >>confdefs.h <<_ACEOF
27582 #define SIZE_MAX $result
27583 _ACEOF
27584
27585   fi
27586
27587   # Code from module snprintf:
27588
27589
27590   gl_cv_func_snprintf_usable=no
27591
27592 for ac_func in snprintf
27593 do
27594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27595 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27596 $as_echo_n "checking for $ac_func... " >&6; }
27597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27598   $as_echo_n "(cached) " >&6
27599 else
27600   cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27608 #define $ac_func innocuous_$ac_func
27609
27610 /* System header to define __stub macros and hopefully few prototypes,
27611     which can conflict with char $ac_func (); below.
27612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27613     <limits.h> exists even on freestanding compilers.  */
27614
27615 #ifdef __STDC__
27616 # include <limits.h>
27617 #else
27618 # include <assert.h>
27619 #endif
27620
27621 #undef $ac_func
27622
27623 /* Override any GCC internal prototype to avoid an error.
27624    Use char because int might match the return type of a GCC
27625    builtin and then its argument prototype would still apply.  */
27626 #ifdef __cplusplus
27627 extern "C"
27628 #endif
27629 char $ac_func ();
27630 /* The GNU C library defines this for functions which it implements
27631     to always fail with ENOSYS.  Some functions are actually named
27632     something starting with __ and the normal name is an alias.  */
27633 #if defined __stub_$ac_func || defined __stub___$ac_func
27634 choke me
27635 #endif
27636
27637 int
27638 main ()
27639 {
27640 return $ac_func ();
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext conftest$ac_exeext
27646 if { (ac_try="$ac_link"
27647 case "(($ac_try" in
27648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649   *) ac_try_echo=$ac_try;;
27650 esac
27651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27652 $as_echo "$ac_try_echo") >&5
27653   (eval "$ac_link") 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } && {
27660          test -z "$ac_c_werror_flag" ||
27661          test ! -s conftest.err
27662        } && test -s conftest$ac_exeext && {
27663          test "$cross_compiling" = yes ||
27664          $as_test_x conftest$ac_exeext
27665        }; then
27666   eval "$as_ac_var=yes"
27667 else
27668   $as_echo "$as_me: failed program was:" >&5
27669 sed 's/^/| /' conftest.$ac_ext >&5
27670
27671         eval "$as_ac_var=no"
27672 fi
27673
27674 rm -rf conftest.dSYM
27675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27676       conftest$ac_exeext conftest.$ac_ext
27677 fi
27678 ac_res=`eval 'as_val=${'$as_ac_var'}
27679                  $as_echo "$as_val"'`
27680                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27681 $as_echo "$ac_res" >&6; }
27682 as_val=`eval 'as_val=${'$as_ac_var'}
27683                  $as_echo "$as_val"'`
27684    if test "x$as_val" = x""yes; then
27685   cat >>confdefs.h <<_ACEOF
27686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27687 _ACEOF
27688
27689 fi
27690 done
27691
27692   if test $ac_cv_func_snprintf = yes; then
27693
27694
27695   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
27696 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
27697 if test "${gl_cv_func_snprintf_size1+set}" = set; then
27698   $as_echo_n "(cached) " >&6
27699 else
27700
27701       if test "$cross_compiling" = yes; then
27702   gl_cv_func_snprintf_size1="guessing yes"
27703 else
27704   cat >conftest.$ac_ext <<_ACEOF
27705 /* confdefs.h.  */
27706 _ACEOF
27707 cat confdefs.h >>conftest.$ac_ext
27708 cat >>conftest.$ac_ext <<_ACEOF
27709 /* end confdefs.h.  */
27710
27711 #include <stdio.h>
27712 int main()
27713 {
27714   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
27715   snprintf (buf, 1, "%d", 12345);
27716   return buf[1] != 'E';
27717 }
27718 _ACEOF
27719 rm -f conftest$ac_exeext
27720 if { (ac_try="$ac_link"
27721 case "(($ac_try" in
27722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723   *) ac_try_echo=$ac_try;;
27724 esac
27725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27726 $as_echo "$ac_try_echo") >&5
27727   (eval "$ac_link") 2>&5
27728   ac_status=$?
27729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27731   { (case "(($ac_try" in
27732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733   *) ac_try_echo=$ac_try;;
27734 esac
27735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27736 $as_echo "$ac_try_echo") >&5
27737   (eval "$ac_try") 2>&5
27738   ac_status=$?
27739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; }; then
27741   gl_cv_func_snprintf_size1=yes
27742 else
27743   $as_echo "$as_me: program exited with status $ac_status" >&5
27744 $as_echo "$as_me: failed program was:" >&5
27745 sed 's/^/| /' conftest.$ac_ext >&5
27746
27747 ( exit $ac_status )
27748 gl_cv_func_snprintf_size1=no
27749 fi
27750 rm -rf conftest.dSYM
27751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27752 fi
27753
27754
27755
27756 fi
27757 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
27758 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
27759
27760     case "$gl_cv_func_snprintf_size1" in
27761       *yes)
27762         gl_cv_func_snprintf_usable=yes
27763         ;;
27764     esac
27765   fi
27766   if test $gl_cv_func_snprintf_usable = no; then
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
27778
27779   if test $ac_cv_func_snprintf = yes; then
27780     REPLACE_SNPRINTF=1
27781   fi
27782   :
27783
27784   fi
27785
27786   :
27787
27788
27789
27790
27791
27792   if test $ac_cv_have_decl_snprintf = no; then
27793     HAVE_DECL_SNPRINTF=0
27794   fi
27795
27796
27797
27798
27799   GNULIB_SNPRINTF=1
27800
27801
27802
27803 cat >>confdefs.h <<\_ACEOF
27804 #define GNULIB_TEST_SNPRINTF 1
27805 _ACEOF
27806
27807
27808
27809   # Code from module socklen:
27810      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27811 $as_echo_n "checking for socklen_t... " >&6; }
27812 if test "${ac_cv_type_socklen_t+set}" = set; then
27813   $as_echo_n "(cached) " >&6
27814 else
27815   ac_cv_type_socklen_t=no
27816 cat >conftest.$ac_ext <<_ACEOF
27817 /* confdefs.h.  */
27818 _ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h.  */
27822 #include <sys/types.h>
27823       #if HAVE_SYS_SOCKET_H
27824       # include <sys/socket.h>
27825       #elif HAVE_WS2TCPIP_H
27826       # include <ws2tcpip.h>
27827       #endif
27828
27829 int
27830 main ()
27831 {
27832 if (sizeof (socklen_t))
27833        return 0;
27834   ;
27835   return 0;
27836 }
27837 _ACEOF
27838 rm -f conftest.$ac_objext
27839 if { (ac_try="$ac_compile"
27840 case "(($ac_try" in
27841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842   *) ac_try_echo=$ac_try;;
27843 esac
27844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27845 $as_echo "$ac_try_echo") >&5
27846   (eval "$ac_compile") 2>conftest.er1
27847   ac_status=$?
27848   grep -v '^ *+' conftest.er1 >conftest.err
27849   rm -f conftest.er1
27850   cat conftest.err >&5
27851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } && {
27853          test -z "$ac_c_werror_flag" ||
27854          test ! -s conftest.err
27855        } && test -s conftest.$ac_objext; then
27856   cat >conftest.$ac_ext <<_ACEOF
27857 /* confdefs.h.  */
27858 _ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h.  */
27862 #include <sys/types.h>
27863       #if HAVE_SYS_SOCKET_H
27864       # include <sys/socket.h>
27865       #elif HAVE_WS2TCPIP_H
27866       # include <ws2tcpip.h>
27867       #endif
27868
27869 int
27870 main ()
27871 {
27872 if (sizeof ((socklen_t)))
27873           return 0;
27874   ;
27875   return 0;
27876 }
27877 _ACEOF
27878 rm -f conftest.$ac_objext
27879 if { (ac_try="$ac_compile"
27880 case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27885 $as_echo "$ac_try_echo") >&5
27886   (eval "$ac_compile") 2>conftest.er1
27887   ac_status=$?
27888   grep -v '^ *+' conftest.er1 >conftest.err
27889   rm -f conftest.er1
27890   cat conftest.err >&5
27891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); } && {
27893          test -z "$ac_c_werror_flag" ||
27894          test ! -s conftest.err
27895        } && test -s conftest.$ac_objext; then
27896   :
27897 else
27898   $as_echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27900
27901         ac_cv_type_socklen_t=yes
27902 fi
27903
27904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27905 else
27906   $as_echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27908
27909
27910 fi
27911
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 fi
27914 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27915 $as_echo "$ac_cv_type_socklen_t" >&6; }
27916 if test "x$ac_cv_type_socklen_t" = x""yes; then
27917   :
27918 else
27919   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27920 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27921       if test "${gl_cv_socklen_t_equiv+set}" = set; then
27922   $as_echo_n "(cached) " >&6
27923 else
27924   # Systems have either "struct sockaddr *" or
27925          # "void *" as the second argument to getpeername
27926          gl_cv_socklen_t_equiv=
27927          for arg2 in "struct sockaddr" void; do
27928            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
27929              cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935 #include <sys/types.h>
27936                    #include <sys/socket.h>
27937
27938                    int getpeername (int, $arg2 *, $t *);
27939 int
27940 main ()
27941 {
27942 $t len;
27943                   getpeername (0, 0, &len);
27944   ;
27945   return 0;
27946 }
27947 _ACEOF
27948 rm -f conftest.$ac_objext
27949 if { (ac_try="$ac_compile"
27950 case "(($ac_try" in
27951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952   *) ac_try_echo=$ac_try;;
27953 esac
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956   (eval "$ac_compile") 2>conftest.er1
27957   ac_status=$?
27958   grep -v '^ *+' conftest.er1 >conftest.err
27959   rm -f conftest.er1
27960   cat conftest.err >&5
27961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } && {
27963          test -z "$ac_c_werror_flag" ||
27964          test ! -s conftest.err
27965        } && test -s conftest.$ac_objext; then
27966   gl_cv_socklen_t_equiv="$t"
27967 else
27968   $as_echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27970
27971
27972 fi
27973
27974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27975              test "$gl_cv_socklen_t_equiv" != "" && break
27976            done
27977            test "$gl_cv_socklen_t_equiv" != "" && break
27978          done
27979
27980 fi
27981
27982       if test "$gl_cv_socklen_t_equiv" = ""; then
27983         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27984 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27985    { (exit 1); exit 1; }; }
27986       fi
27987       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
27988 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27989
27990 cat >>confdefs.h <<_ACEOF
27991 #define socklen_t $gl_cv_socklen_t_equiv
27992 _ACEOF
27993
27994 fi
27995
27996   # Code from module ssize_t:
27997
27998   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
27999 $as_echo_n "checking for ssize_t... " >&6; }
28000 if test "${gt_cv_ssize_t+set}" = set; then
28001   $as_echo_n "(cached) " >&6
28002 else
28003   cat >conftest.$ac_ext <<_ACEOF
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009 #include <sys/types.h>
28010 int
28011 main ()
28012 {
28013 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28014             return !x;
28015   ;
28016   return 0;
28017 }
28018 _ACEOF
28019 rm -f conftest.$ac_objext
28020 if { (ac_try="$ac_compile"
28021 case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28026 $as_echo "$ac_try_echo") >&5
28027   (eval "$ac_compile") 2>conftest.er1
28028   ac_status=$?
28029   grep -v '^ *+' conftest.er1 >conftest.err
28030   rm -f conftest.er1
28031   cat conftest.err >&5
28032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); } && {
28034          test -z "$ac_c_werror_flag" ||
28035          test ! -s conftest.err
28036        } && test -s conftest.$ac_objext; then
28037   gt_cv_ssize_t=yes
28038 else
28039   $as_echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042         gt_cv_ssize_t=no
28043 fi
28044
28045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046 fi
28047 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28048 $as_echo "$gt_cv_ssize_t" >&6; }
28049   if test $gt_cv_ssize_t = no; then
28050
28051 cat >>confdefs.h <<\_ACEOF
28052 #define ssize_t int
28053 _ACEOF
28054
28055   fi
28056
28057   # Code from module stat:
28058
28059
28060
28061
28062   :
28063
28064
28065
28066
28067
28068     { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
28069 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28070 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
28071   $as_echo_n "(cached) " >&6
28072 else
28073   if test "$cross_compiling" = yes; then
28074   case $host_os in
28075             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28076             *) gl_cv_func_stat_dir_slash="guessing yes";;
28077           esac
28078 else
28079   cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 #include <sys/stat.h>
28086
28087 int
28088 main ()
28089 {
28090 struct stat st; return stat (".", &st) != stat ("./", &st);
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest$ac_exeext
28096 if { (ac_try="$ac_link"
28097 case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28102 $as_echo "$ac_try_echo") >&5
28103   (eval "$ac_link") 2>&5
28104   ac_status=$?
28105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28107   { (case "(($ac_try" in
28108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109   *) ac_try_echo=$ac_try;;
28110 esac
28111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28112 $as_echo "$ac_try_echo") >&5
28113   (eval "$ac_try") 2>&5
28114   ac_status=$?
28115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); }; }; then
28117   gl_cv_func_stat_dir_slash=yes
28118 else
28119   $as_echo "$as_me: program exited with status $ac_status" >&5
28120 $as_echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28122
28123 ( exit $ac_status )
28124 gl_cv_func_stat_dir_slash=no
28125 fi
28126 rm -rf conftest.dSYM
28127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28128 fi
28129
28130
28131 fi
28132 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
28133 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28134       { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
28135 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28136 if test "${gl_cv_func_stat_file_slash+set}" = set; then
28137   $as_echo_n "(cached) " >&6
28138 else
28139   touch conftest.tmp
28140        # Assume that if we have lstat, we can also check symlinks.
28141        if test $ac_cv_func_lstat = yes; then
28142          ln -s conftest.tmp conftest.lnk
28143        fi
28144        if test "$cross_compiling" = yes; then
28145   gl_cv_func_stat_file_slash="guessing no"
28146 else
28147   cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h.  */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h.  */
28153 #include <sys/stat.h>
28154
28155 int
28156 main ()
28157 {
28158 struct stat st;
28159       if (!stat ("conftest.tmp/", &st)) return 1;
28160 #if HAVE_LSTAT
28161       if (!stat ("conftest.lnk/", &st)) return 2;
28162 #endif
28163
28164   ;
28165   return 0;
28166 }
28167 _ACEOF
28168 rm -f conftest$ac_exeext
28169 if { (ac_try="$ac_link"
28170 case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28175 $as_echo "$ac_try_echo") >&5
28176   (eval "$ac_link") 2>&5
28177   ac_status=$?
28178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180   { (case "(($ac_try" in
28181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182   *) ac_try_echo=$ac_try;;
28183 esac
28184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185 $as_echo "$ac_try_echo") >&5
28186   (eval "$ac_try") 2>&5
28187   ac_status=$?
28188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); }; }; then
28190   gl_cv_func_stat_file_slash=yes
28191 else
28192   $as_echo "$as_me: program exited with status $ac_status" >&5
28193 $as_echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28195
28196 ( exit $ac_status )
28197 gl_cv_func_stat_file_slash=no
28198 fi
28199 rm -rf conftest.dSYM
28200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28201 fi
28202
28203
28204        rm -f conftest.tmp conftest.lnk
28205 fi
28206 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
28207 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28208   case $gl_cv_func_stat_dir_slash in
28209     *no) REPLACE_STAT=1
28210
28211 cat >>confdefs.h <<\_ACEOF
28212 #define REPLACE_FUNC_STAT_DIR 1
28213 _ACEOF
28214 ;;
28215   esac
28216   case $gl_cv_func_stat_file_slash in
28217     *no) REPLACE_STAT=1
28218
28219 cat >>confdefs.h <<\_ACEOF
28220 #define REPLACE_FUNC_STAT_FILE 1
28221 _ACEOF
28222 ;;
28223   esac
28224   if test $REPLACE_STAT = 1; then
28225
28226
28227
28228
28229
28230
28231
28232
28233   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28234
28235
28236   fi
28237
28238
28239
28240
28241   GNULIB_STAT=1
28242
28243
28244
28245 cat >>confdefs.h <<\_ACEOF
28246 #define GNULIB_TEST_STAT 1
28247 _ACEOF
28248
28249
28250
28251   # Code from module stdbool:
28252
28253
28254
28255   # Define two additional variables used in the Makefile substitution.
28256
28257   if test "$ac_cv_header_stdbool_h" = yes; then
28258     STDBOOL_H=''
28259   else
28260     STDBOOL_H='stdbool.h'
28261   fi
28262
28263
28264   if test "$ac_cv_type__Bool" = yes; then
28265     HAVE__BOOL=1
28266   else
28267     HAVE__BOOL=0
28268   fi
28269
28270
28271   # Code from module stddef:
28272
28273
28274
28275   if test $gt_cv_c_wchar_t = no; then
28276     HAVE_WCHAR_T=0
28277     STDDEF_H=stddef.h
28278   fi
28279   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
28280 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28281 if test "${gl_cv_decl_null_works+set}" = set; then
28282   $as_echo_n "(cached) " >&6
28283 else
28284   cat >conftest.$ac_ext <<_ACEOF
28285 /* confdefs.h.  */
28286 _ACEOF
28287 cat confdefs.h >>conftest.$ac_ext
28288 cat >>conftest.$ac_ext <<_ACEOF
28289 /* end confdefs.h.  */
28290 #include <stddef.h>
28291       int test[2 * (sizeof NULL == sizeof (void *)) -1];
28292
28293 int
28294 main ()
28295 {
28296
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest.$ac_objext
28302 if { (ac_try="$ac_compile"
28303 case "(($ac_try" in
28304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305   *) ac_try_echo=$ac_try;;
28306 esac
28307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28308 $as_echo "$ac_try_echo") >&5
28309   (eval "$ac_compile") 2>conftest.er1
28310   ac_status=$?
28311   grep -v '^ *+' conftest.er1 >conftest.err
28312   rm -f conftest.er1
28313   cat conftest.err >&5
28314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); } && {
28316          test -z "$ac_c_werror_flag" ||
28317          test ! -s conftest.err
28318        } && test -s conftest.$ac_objext; then
28319   gl_cv_decl_null_works=yes
28320 else
28321   $as_echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28323
28324         gl_cv_decl_null_works=no
28325 fi
28326
28327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28328 fi
28329 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
28330 $as_echo "$gl_cv_decl_null_works" >&6; }
28331   if test $gl_cv_decl_null_works = no; then
28332     REPLACE_NULL=1
28333     STDDEF_H=stddef.h
28334   fi
28335   if test -n "$STDDEF_H"; then
28336
28337
28338
28339
28340   :
28341
28342
28343
28344
28345
28346
28347
28348      if test $gl_cv_have_include_next = yes; then
28349        gl_cv_next_stddef_h='<'stddef.h'>'
28350      else
28351        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
28352 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28353 if test "${gl_cv_next_stddef_h+set}" = set; then
28354   $as_echo_n "(cached) " >&6
28355 else
28356
28357           if test $ac_cv_header_stddef_h = yes; then
28358             cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h.  */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h.  */
28364 #include <stddef.h>
28365
28366 _ACEOF
28367                                                                                                 case "$host_os" in
28368               aix*) gl_absname_cpp="$ac_cpp -C" ;;
28369               *)    gl_absname_cpp="$ac_cpp" ;;
28370             esac
28371                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28372                sed -n '\#/stddef.h#{
28373                  s#.*"\(.*/stddef.h\)".*#\1#
28374                  s#^/[^/]#//&#
28375                  p
28376                  q
28377                }'`'"'
28378           else
28379             gl_cv_next_stddef_h='<'stddef.h'>'
28380           fi
28381
28382 fi
28383 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
28384 $as_echo "$gl_cv_next_stddef_h" >&6; }
28385      fi
28386      NEXT_STDDEF_H=$gl_cv_next_stddef_h
28387
28388      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28389        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28390        gl_next_as_first_directive='<'stddef.h'>'
28391      else
28392        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28393        gl_next_as_first_directive=$gl_cv_next_stddef_h
28394      fi
28395      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
28396
28397
28398
28399   fi
28400
28401   # Code from module stdint:
28402
28403
28404
28405   if test $ac_cv_type_long_long_int = yes; then
28406     HAVE_LONG_LONG_INT=1
28407   else
28408     HAVE_LONG_LONG_INT=0
28409   fi
28410
28411
28412   if test $ac_cv_type_unsigned_long_long_int = yes; then
28413     HAVE_UNSIGNED_LONG_LONG_INT=1
28414   else
28415     HAVE_UNSIGNED_LONG_LONG_INT=0
28416   fi
28417
28418
28419       if test $ac_cv_header_inttypes_h = yes; then
28420     HAVE_INTTYPES_H=1
28421   else
28422     HAVE_INTTYPES_H=0
28423   fi
28424
28425
28426       if test $ac_cv_header_sys_types_h = yes; then
28427     HAVE_SYS_TYPES_H=1
28428   else
28429     HAVE_SYS_TYPES_H=0
28430   fi
28431
28432
28433
28434
28435
28436
28437   :
28438
28439
28440
28441
28442
28443
28444
28445      if test $gl_cv_have_include_next = yes; then
28446        gl_cv_next_stdint_h='<'stdint.h'>'
28447      else
28448        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
28449 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
28450 if test "${gl_cv_next_stdint_h+set}" = set; then
28451   $as_echo_n "(cached) " >&6
28452 else
28453
28454           if test $ac_cv_header_stdint_h = yes; then
28455             cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461 #include <stdint.h>
28462
28463 _ACEOF
28464                                                                                                 case "$host_os" in
28465               aix*) gl_absname_cpp="$ac_cpp -C" ;;
28466               *)    gl_absname_cpp="$ac_cpp" ;;
28467             esac
28468                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28469                sed -n '\#/stdint.h#{
28470                  s#.*"\(.*/stdint.h\)".*#\1#
28471                  s#^/[^/]#//&#
28472                  p
28473                  q
28474                }'`'"'
28475           else
28476             gl_cv_next_stdint_h='<'stdint.h'>'
28477           fi
28478
28479 fi
28480 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
28481 $as_echo "$gl_cv_next_stdint_h" >&6; }
28482      fi
28483      NEXT_STDINT_H=$gl_cv_next_stdint_h
28484
28485      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28486        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28487        gl_next_as_first_directive='<'stdint.h'>'
28488      else
28489        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28490        gl_next_as_first_directive=$gl_cv_next_stdint_h
28491      fi
28492      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
28493
28494
28495
28496   if test $ac_cv_header_stdint_h = yes; then
28497     HAVE_STDINT_H=1
28498   else
28499     HAVE_STDINT_H=0
28500   fi
28501
28502
28503     if test $ac_cv_header_stdint_h = yes; then
28504     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
28505 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
28506 if test "${gl_cv_header_working_stdint_h+set}" = set; then
28507   $as_echo_n "(cached) " >&6
28508 else
28509   gl_cv_header_working_stdint_h=no
28510        cat >conftest.$ac_ext <<_ACEOF
28511
28512          /* confdefs.h.  */
28513 _ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h.  */
28517
28518 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28519 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28520 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28521 #include <stdint.h>
28522 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
28523 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
28524 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
28525 #endif
28526
28527
28528   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28529      included before <wchar.h>.  */
28530   #include <stddef.h>
28531   #include <signal.h>
28532   #if HAVE_WCHAR_H
28533   # include <stdio.h>
28534   # include <time.h>
28535   # include <wchar.h>
28536   #endif
28537
28538
28539 #ifdef INT8_MAX
28540 int8_t a1 = INT8_MAX;
28541 int8_t a1min = INT8_MIN;
28542 #endif
28543 #ifdef INT16_MAX
28544 int16_t a2 = INT16_MAX;
28545 int16_t a2min = INT16_MIN;
28546 #endif
28547 #ifdef INT32_MAX
28548 int32_t a3 = INT32_MAX;
28549 int32_t a3min = INT32_MIN;
28550 #endif
28551 #ifdef INT64_MAX
28552 int64_t a4 = INT64_MAX;
28553 int64_t a4min = INT64_MIN;
28554 #endif
28555 #ifdef UINT8_MAX
28556 uint8_t b1 = UINT8_MAX;
28557 #else
28558 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28559 #endif
28560 #ifdef UINT16_MAX
28561 uint16_t b2 = UINT16_MAX;
28562 #endif
28563 #ifdef UINT32_MAX
28564 uint32_t b3 = UINT32_MAX;
28565 #endif
28566 #ifdef UINT64_MAX
28567 uint64_t b4 = UINT64_MAX;
28568 #endif
28569 int_least8_t c1 = INT8_C (0x7f);
28570 int_least8_t c1max = INT_LEAST8_MAX;
28571 int_least8_t c1min = INT_LEAST8_MIN;
28572 int_least16_t c2 = INT16_C (0x7fff);
28573 int_least16_t c2max = INT_LEAST16_MAX;
28574 int_least16_t c2min = INT_LEAST16_MIN;
28575 int_least32_t c3 = INT32_C (0x7fffffff);
28576 int_least32_t c3max = INT_LEAST32_MAX;
28577 int_least32_t c3min = INT_LEAST32_MIN;
28578 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28579 int_least64_t c4max = INT_LEAST64_MAX;
28580 int_least64_t c4min = INT_LEAST64_MIN;
28581 uint_least8_t d1 = UINT8_C (0xff);
28582 uint_least8_t d1max = UINT_LEAST8_MAX;
28583 uint_least16_t d2 = UINT16_C (0xffff);
28584 uint_least16_t d2max = UINT_LEAST16_MAX;
28585 uint_least32_t d3 = UINT32_C (0xffffffff);
28586 uint_least32_t d3max = UINT_LEAST32_MAX;
28587 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28588 uint_least64_t d4max = UINT_LEAST64_MAX;
28589 int_fast8_t e1 = INT_FAST8_MAX;
28590 int_fast8_t e1min = INT_FAST8_MIN;
28591 int_fast16_t e2 = INT_FAST16_MAX;
28592 int_fast16_t e2min = INT_FAST16_MIN;
28593 int_fast32_t e3 = INT_FAST32_MAX;
28594 int_fast32_t e3min = INT_FAST32_MIN;
28595 int_fast64_t e4 = INT_FAST64_MAX;
28596 int_fast64_t e4min = INT_FAST64_MIN;
28597 uint_fast8_t f1 = UINT_FAST8_MAX;
28598 uint_fast16_t f2 = UINT_FAST16_MAX;
28599 uint_fast32_t f3 = UINT_FAST32_MAX;
28600 uint_fast64_t f4 = UINT_FAST64_MAX;
28601 #ifdef INTPTR_MAX
28602 intptr_t g = INTPTR_MAX;
28603 intptr_t gmin = INTPTR_MIN;
28604 #endif
28605 #ifdef UINTPTR_MAX
28606 uintptr_t h = UINTPTR_MAX;
28607 #endif
28608 intmax_t i = INTMAX_MAX;
28609 uintmax_t j = UINTMAX_MAX;
28610
28611 #include <limits.h> /* for CHAR_BIT */
28612 #define TYPE_MINIMUM(t) \
28613   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
28614 #define TYPE_MAXIMUM(t) \
28615   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
28616 struct s {
28617   int check_PTRDIFF:
28618       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
28619       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
28620       ? 1 : -1;
28621   /* Detect bug in FreeBSD 6.0 / ia64.  */
28622   int check_SIG_ATOMIC:
28623       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
28624       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
28625       ? 1 : -1;
28626   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
28627   int check_WCHAR:
28628       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
28629       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
28630       ? 1 : -1;
28631   /* Detect bug in mingw.  */
28632   int check_WINT:
28633       WINT_MIN == TYPE_MINIMUM (wint_t)
28634       && WINT_MAX == TYPE_MAXIMUM (wint_t)
28635       ? 1 : -1;
28636
28637   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
28638   int check_UINT8_C:
28639         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
28640   int check_UINT16_C:
28641         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
28642
28643   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
28644 #ifdef UINT8_MAX
28645   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
28646 #endif
28647 #ifdef UINT16_MAX
28648   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
28649 #endif
28650 #ifdef UINT32_MAX
28651   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
28652 #endif
28653 #ifdef UINT64_MAX
28654   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
28655 #endif
28656   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
28657   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
28658   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
28659   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
28660   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
28661   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
28662   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
28663   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
28664   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
28665   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
28666   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
28667 };
28668
28669 int
28670 main ()
28671 {
28672
28673   ;
28674   return 0;
28675 }
28676 _ACEOF
28677 rm -f conftest.$ac_objext
28678 if { (ac_try="$ac_compile"
28679 case "(($ac_try" in
28680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681   *) ac_try_echo=$ac_try;;
28682 esac
28683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28684 $as_echo "$ac_try_echo") >&5
28685   (eval "$ac_compile") 2>conftest.er1
28686   ac_status=$?
28687   grep -v '^ *+' conftest.er1 >conftest.err
28688   rm -f conftest.er1
28689   cat conftest.err >&5
28690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); } && {
28692          test -z "$ac_c_werror_flag" ||
28693          test ! -s conftest.err
28694        } && test -s conftest.$ac_objext; then
28695                                                     if test "$cross_compiling" = yes; then
28696                  gl_cv_header_working_stdint_h=yes
28697
28698 else
28699   cat >conftest.$ac_ext <<_ACEOF
28700
28701             /* confdefs.h.  */
28702 _ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h.  */
28706
28707 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28708 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28709 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28710 #include <stdint.h>
28711
28712
28713   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28714      included before <wchar.h>.  */
28715   #include <stddef.h>
28716   #include <signal.h>
28717   #if HAVE_WCHAR_H
28718   # include <stdio.h>
28719   # include <time.h>
28720   # include <wchar.h>
28721   #endif
28722
28723
28724 #include <stdio.h>
28725 #include <string.h>
28726 #define MVAL(macro) MVAL1(macro)
28727 #define MVAL1(expression) #expression
28728 static const char *macro_values[] =
28729   {
28730 #ifdef INT8_MAX
28731     MVAL (INT8_MAX),
28732 #endif
28733 #ifdef INT16_MAX
28734     MVAL (INT16_MAX),
28735 #endif
28736 #ifdef INT32_MAX
28737     MVAL (INT32_MAX),
28738 #endif
28739 #ifdef INT64_MAX
28740     MVAL (INT64_MAX),
28741 #endif
28742 #ifdef UINT8_MAX
28743     MVAL (UINT8_MAX),
28744 #endif
28745 #ifdef UINT16_MAX
28746     MVAL (UINT16_MAX),
28747 #endif
28748 #ifdef UINT32_MAX
28749     MVAL (UINT32_MAX),
28750 #endif
28751 #ifdef UINT64_MAX
28752     MVAL (UINT64_MAX),
28753 #endif
28754     NULL
28755   };
28756
28757 int
28758 main ()
28759 {
28760
28761   const char **mv;
28762   for (mv = macro_values; *mv != NULL; mv++)
28763     {
28764       const char *value = *mv;
28765       /* Test whether it looks like a cast expression.  */
28766       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
28767           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
28768           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
28769           || strncmp (value, "((int)"/*)*/, 6) == 0
28770           || strncmp (value, "((signed short)"/*)*/, 15) == 0
28771           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
28772         return 1;
28773     }
28774   return 0;
28775
28776   ;
28777   return 0;
28778 }
28779 _ACEOF
28780 rm -f conftest$ac_exeext
28781 if { (ac_try="$ac_link"
28782 case "(($ac_try" in
28783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784   *) ac_try_echo=$ac_try;;
28785 esac
28786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28787 $as_echo "$ac_try_echo") >&5
28788   (eval "$ac_link") 2>&5
28789   ac_status=$?
28790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28792   { (case "(($ac_try" in
28793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794   *) ac_try_echo=$ac_try;;
28795 esac
28796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797 $as_echo "$ac_try_echo") >&5
28798   (eval "$ac_try") 2>&5
28799   ac_status=$?
28800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); }; }; then
28802   gl_cv_header_working_stdint_h=yes
28803 else
28804   $as_echo "$as_me: program exited with status $ac_status" >&5
28805 $as_echo "$as_me: failed program was:" >&5
28806 sed 's/^/| /' conftest.$ac_ext >&5
28807
28808 fi
28809 rm -rf conftest.dSYM
28810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28811 fi
28812
28813
28814
28815 else
28816   $as_echo "$as_me: failed program was:" >&5
28817 sed 's/^/| /' conftest.$ac_ext >&5
28818
28819
28820 fi
28821
28822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28823
28824 fi
28825 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28826 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
28827   fi
28828   if test "$gl_cv_header_working_stdint_h" = yes; then
28829     STDINT_H=
28830   else
28831
28832
28833 for ac_header in sys/inttypes.h sys/bitypes.h
28834 do
28835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28837   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28838 $as_echo_n "checking for $ac_header... " >&6; }
28839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28840   $as_echo_n "(cached) " >&6
28841 fi
28842 ac_res=`eval 'as_val=${'$as_ac_Header'}
28843                  $as_echo "$as_val"'`
28844                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28845 $as_echo "$ac_res" >&6; }
28846 else
28847   # Is the header compilable?
28848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28849 $as_echo_n "checking $ac_header usability... " >&6; }
28850 cat >conftest.$ac_ext <<_ACEOF
28851 /* confdefs.h.  */
28852 _ACEOF
28853 cat confdefs.h >>conftest.$ac_ext
28854 cat >>conftest.$ac_ext <<_ACEOF
28855 /* end confdefs.h.  */
28856 $ac_includes_default
28857 #include <$ac_header>
28858 _ACEOF
28859 rm -f conftest.$ac_objext
28860 if { (ac_try="$ac_compile"
28861 case "(($ac_try" in
28862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863   *) ac_try_echo=$ac_try;;
28864 esac
28865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28866 $as_echo "$ac_try_echo") >&5
28867   (eval "$ac_compile") 2>conftest.er1
28868   ac_status=$?
28869   grep -v '^ *+' conftest.er1 >conftest.err
28870   rm -f conftest.er1
28871   cat conftest.err >&5
28872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); } && {
28874          test -z "$ac_c_werror_flag" ||
28875          test ! -s conftest.err
28876        } && test -s conftest.$ac_objext; then
28877   ac_header_compiler=yes
28878 else
28879   $as_echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882         ac_header_compiler=no
28883 fi
28884
28885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28887 $as_echo "$ac_header_compiler" >&6; }
28888
28889 # Is the header present?
28890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28891 $as_echo_n "checking $ac_header presence... " >&6; }
28892 cat >conftest.$ac_ext <<_ACEOF
28893 /* confdefs.h.  */
28894 _ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h.  */
28898 #include <$ac_header>
28899 _ACEOF
28900 if { (ac_try="$ac_cpp conftest.$ac_ext"
28901 case "(($ac_try" in
28902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903   *) ac_try_echo=$ac_try;;
28904 esac
28905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28906 $as_echo "$ac_try_echo") >&5
28907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28908   ac_status=$?
28909   grep -v '^ *+' conftest.er1 >conftest.err
28910   rm -f conftest.er1
28911   cat conftest.err >&5
28912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); } >/dev/null && {
28914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28915          test ! -s conftest.err
28916        }; then
28917   ac_header_preproc=yes
28918 else
28919   $as_echo "$as_me: failed program was:" >&5
28920 sed 's/^/| /' conftest.$ac_ext >&5
28921
28922   ac_header_preproc=no
28923 fi
28924
28925 rm -f conftest.err conftest.$ac_ext
28926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28927 $as_echo "$ac_header_preproc" >&6; }
28928
28929 # So?  What about this header?
28930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28931   yes:no: )
28932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28936     ac_header_preproc=yes
28937     ;;
28938   no:yes:* )
28939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28942 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28946 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28951
28952     ;;
28953 esac
28954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28955 $as_echo_n "checking for $ac_header... " >&6; }
28956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28957   $as_echo_n "(cached) " >&6
28958 else
28959   eval "$as_ac_Header=\$ac_header_preproc"
28960 fi
28961 ac_res=`eval 'as_val=${'$as_ac_Header'}
28962                  $as_echo "$as_val"'`
28963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28964 $as_echo "$ac_res" >&6; }
28965
28966 fi
28967 as_val=`eval 'as_val=${'$as_ac_Header'}
28968                  $as_echo "$as_val"'`
28969    if test "x$as_val" = x""yes; then
28970   cat >>confdefs.h <<_ACEOF
28971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28972 _ACEOF
28973
28974 fi
28975
28976 done
28977
28978     if test $ac_cv_header_sys_inttypes_h = yes; then
28979       HAVE_SYS_INTTYPES_H=1
28980     else
28981       HAVE_SYS_INTTYPES_H=0
28982     fi
28983
28984     if test $ac_cv_header_sys_bitypes_h = yes; then
28985       HAVE_SYS_BITYPES_H=1
28986     else
28987       HAVE_SYS_BITYPES_H=0
28988     fi
28989
28990
28991
28992   :
28993
28994
28995
28996
28997
28998
28999
29000
29001   if test $APPLE_UNIVERSAL_BUILD = 0; then
29002
29003
29004
29005
29006   for gltype in ptrdiff_t size_t ; do
29007     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29008 $as_echo_n "checking for bit size of $gltype... " >&6; }
29009 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29010   $as_echo_n "(cached) " >&6
29011 else
29012   if test "$cross_compiling" = yes; then
29013   # Depending upon the size, compute the lo and hi bounds.
29014 cat >conftest.$ac_ext <<_ACEOF
29015 /* confdefs.h.  */
29016 _ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h.  */
29020
29021   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29022      included before <wchar.h>.  */
29023   #include <stddef.h>
29024   #include <signal.h>
29025   #if HAVE_WCHAR_H
29026   # include <stdio.h>
29027   # include <time.h>
29028   # include <wchar.h>
29029   #endif
29030
29031 #include <limits.h>
29032 int
29033 main ()
29034 {
29035 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29036 test_array [0] = 0
29037
29038   ;
29039   return 0;
29040 }
29041 _ACEOF
29042 rm -f conftest.$ac_objext
29043 if { (ac_try="$ac_compile"
29044 case "(($ac_try" in
29045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046   *) ac_try_echo=$ac_try;;
29047 esac
29048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29049 $as_echo "$ac_try_echo") >&5
29050   (eval "$ac_compile") 2>conftest.er1
29051   ac_status=$?
29052   grep -v '^ *+' conftest.er1 >conftest.err
29053   rm -f conftest.er1
29054   cat conftest.err >&5
29055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); } && {
29057          test -z "$ac_c_werror_flag" ||
29058          test ! -s conftest.err
29059        } && test -s conftest.$ac_objext; then
29060   ac_lo=0 ac_mid=0
29061   while :; do
29062     cat >conftest.$ac_ext <<_ACEOF
29063 /* confdefs.h.  */
29064 _ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h.  */
29068
29069   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29070      included before <wchar.h>.  */
29071   #include <stddef.h>
29072   #include <signal.h>
29073   #if HAVE_WCHAR_H
29074   # include <stdio.h>
29075   # include <time.h>
29076   # include <wchar.h>
29077   #endif
29078
29079 #include <limits.h>
29080 int
29081 main ()
29082 {
29083 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29084 test_array [0] = 0
29085
29086   ;
29087   return 0;
29088 }
29089 _ACEOF
29090 rm -f conftest.$ac_objext
29091 if { (ac_try="$ac_compile"
29092 case "(($ac_try" in
29093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094   *) ac_try_echo=$ac_try;;
29095 esac
29096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29097 $as_echo "$ac_try_echo") >&5
29098   (eval "$ac_compile") 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } && {
29105          test -z "$ac_c_werror_flag" ||
29106          test ! -s conftest.err
29107        } && test -s conftest.$ac_objext; then
29108   ac_hi=$ac_mid; break
29109 else
29110   $as_echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29112
29113         ac_lo=`expr $ac_mid + 1`
29114                         if test $ac_lo -le $ac_mid; then
29115                           ac_lo= ac_hi=
29116                           break
29117                         fi
29118                         ac_mid=`expr 2 '*' $ac_mid + 1`
29119 fi
29120
29121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122   done
29123 else
29124   $as_echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29126
29127         cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133
29134   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29135      included before <wchar.h>.  */
29136   #include <stddef.h>
29137   #include <signal.h>
29138   #if HAVE_WCHAR_H
29139   # include <stdio.h>
29140   # include <time.h>
29141   # include <wchar.h>
29142   #endif
29143
29144 #include <limits.h>
29145 int
29146 main ()
29147 {
29148 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29149 test_array [0] = 0
29150
29151   ;
29152   return 0;
29153 }
29154 _ACEOF
29155 rm -f conftest.$ac_objext
29156 if { (ac_try="$ac_compile"
29157 case "(($ac_try" in
29158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159   *) ac_try_echo=$ac_try;;
29160 esac
29161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29162 $as_echo "$ac_try_echo") >&5
29163   (eval "$ac_compile") 2>conftest.er1
29164   ac_status=$?
29165   grep -v '^ *+' conftest.er1 >conftest.err
29166   rm -f conftest.er1
29167   cat conftest.err >&5
29168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); } && {
29170          test -z "$ac_c_werror_flag" ||
29171          test ! -s conftest.err
29172        } && test -s conftest.$ac_objext; then
29173   ac_hi=-1 ac_mid=-1
29174   while :; do
29175     cat >conftest.$ac_ext <<_ACEOF
29176 /* confdefs.h.  */
29177 _ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h.  */
29181
29182   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29183      included before <wchar.h>.  */
29184   #include <stddef.h>
29185   #include <signal.h>
29186   #if HAVE_WCHAR_H
29187   # include <stdio.h>
29188   # include <time.h>
29189   # include <wchar.h>
29190   #endif
29191
29192 #include <limits.h>
29193 int
29194 main ()
29195 {
29196 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29197 test_array [0] = 0
29198
29199   ;
29200   return 0;
29201 }
29202 _ACEOF
29203 rm -f conftest.$ac_objext
29204 if { (ac_try="$ac_compile"
29205 case "(($ac_try" in
29206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207   *) ac_try_echo=$ac_try;;
29208 esac
29209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29210 $as_echo "$ac_try_echo") >&5
29211   (eval "$ac_compile") 2>conftest.er1
29212   ac_status=$?
29213   grep -v '^ *+' conftest.er1 >conftest.err
29214   rm -f conftest.er1
29215   cat conftest.err >&5
29216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217   (exit $ac_status); } && {
29218          test -z "$ac_c_werror_flag" ||
29219          test ! -s conftest.err
29220        } && test -s conftest.$ac_objext; then
29221   ac_lo=$ac_mid; break
29222 else
29223   $as_echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29225
29226         ac_hi=`expr '(' $ac_mid ')' - 1`
29227                         if test $ac_mid -le $ac_hi; then
29228                           ac_lo= ac_hi=
29229                           break
29230                         fi
29231                         ac_mid=`expr 2 '*' $ac_mid`
29232 fi
29233
29234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29235   done
29236 else
29237   $as_echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240         ac_lo= ac_hi=
29241 fi
29242
29243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29244 fi
29245
29246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29247 # Binary search between lo and hi bounds.
29248 while test "x$ac_lo" != "x$ac_hi"; do
29249   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29250   cat >conftest.$ac_ext <<_ACEOF
29251 /* confdefs.h.  */
29252 _ACEOF
29253 cat confdefs.h >>conftest.$ac_ext
29254 cat >>conftest.$ac_ext <<_ACEOF
29255 /* end confdefs.h.  */
29256
29257   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29258      included before <wchar.h>.  */
29259   #include <stddef.h>
29260   #include <signal.h>
29261   #if HAVE_WCHAR_H
29262   # include <stdio.h>
29263   # include <time.h>
29264   # include <wchar.h>
29265   #endif
29266
29267 #include <limits.h>
29268 int
29269 main ()
29270 {
29271 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29272 test_array [0] = 0
29273
29274   ;
29275   return 0;
29276 }
29277 _ACEOF
29278 rm -f conftest.$ac_objext
29279 if { (ac_try="$ac_compile"
29280 case "(($ac_try" in
29281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282   *) ac_try_echo=$ac_try;;
29283 esac
29284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29285 $as_echo "$ac_try_echo") >&5
29286   (eval "$ac_compile") 2>conftest.er1
29287   ac_status=$?
29288   grep -v '^ *+' conftest.er1 >conftest.err
29289   rm -f conftest.er1
29290   cat conftest.err >&5
29291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292   (exit $ac_status); } && {
29293          test -z "$ac_c_werror_flag" ||
29294          test ! -s conftest.err
29295        } && test -s conftest.$ac_objext; then
29296   ac_hi=$ac_mid
29297 else
29298   $as_echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29300
29301         ac_lo=`expr '(' $ac_mid ')' + 1`
29302 fi
29303
29304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29305 done
29306 case $ac_lo in
29307 ?*) result=$ac_lo;;
29308 '') result=unknown ;;
29309 esac
29310 else
29311   cat >conftest.$ac_ext <<_ACEOF
29312 /* confdefs.h.  */
29313 _ACEOF
29314 cat confdefs.h >>conftest.$ac_ext
29315 cat >>conftest.$ac_ext <<_ACEOF
29316 /* end confdefs.h.  */
29317
29318   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29319      included before <wchar.h>.  */
29320   #include <stddef.h>
29321   #include <signal.h>
29322   #if HAVE_WCHAR_H
29323   # include <stdio.h>
29324   # include <time.h>
29325   # include <wchar.h>
29326   #endif
29327
29328 #include <limits.h>
29329 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29330 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29331 #include <stdio.h>
29332 #include <stdlib.h>
29333 int
29334 main ()
29335 {
29336
29337   FILE *f = fopen ("conftest.val", "w");
29338   if (! f)
29339     return 1;
29340   if ((sizeof ($gltype) * CHAR_BIT) < 0)
29341     {
29342       long int i = longval ();
29343       if (i != (sizeof ($gltype) * CHAR_BIT))
29344         return 1;
29345       fprintf (f, "%ld", i);
29346     }
29347   else
29348     {
29349       unsigned long int i = ulongval ();
29350       if (i != (sizeof ($gltype) * CHAR_BIT))
29351         return 1;
29352       fprintf (f, "%lu", i);
29353     }
29354   /* Do not output a trailing newline, as this causes \r\n confusion
29355      on some platforms.  */
29356   return ferror (f) || fclose (f) != 0;
29357
29358   ;
29359   return 0;
29360 }
29361 _ACEOF
29362 rm -f conftest$ac_exeext
29363 if { (ac_try="$ac_link"
29364 case "(($ac_try" in
29365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366   *) ac_try_echo=$ac_try;;
29367 esac
29368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29369 $as_echo "$ac_try_echo") >&5
29370   (eval "$ac_link") 2>&5
29371   ac_status=$?
29372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29374   { (case "(($ac_try" in
29375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376   *) ac_try_echo=$ac_try;;
29377 esac
29378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29379 $as_echo "$ac_try_echo") >&5
29380   (eval "$ac_try") 2>&5
29381   ac_status=$?
29382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); }; }; then
29384   result=`cat conftest.val`
29385 else
29386   $as_echo "$as_me: program exited with status $ac_status" >&5
29387 $as_echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390 ( exit $ac_status )
29391 result=unknown
29392 fi
29393 rm -rf conftest.dSYM
29394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29395 fi
29396 rm -f conftest.val
29397        eval gl_cv_bitsizeof_${gltype}=\$result
29398
29399 fi
29400 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29401                  $as_echo "$as_val"'`
29402                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29403 $as_echo "$ac_res" >&6; }
29404     eval result=\$gl_cv_bitsizeof_${gltype}
29405     if test $result = unknown; then
29406                                                 result=0
29407     fi
29408     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29409     cat >>confdefs.h <<_ACEOF
29410 #define BITSIZEOF_${GLTYPE} $result
29411 _ACEOF
29412
29413     eval BITSIZEOF_${GLTYPE}=\$result
29414   done
29415
29416
29417   fi
29418
29419
29420
29421
29422
29423   for gltype in sig_atomic_t wchar_t wint_t ; do
29424     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29425 $as_echo_n "checking for bit size of $gltype... " >&6; }
29426 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29427   $as_echo_n "(cached) " >&6
29428 else
29429   if test "$cross_compiling" = yes; then
29430   # Depending upon the size, compute the lo and hi bounds.
29431 cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437
29438   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29439      included before <wchar.h>.  */
29440   #include <stddef.h>
29441   #include <signal.h>
29442   #if HAVE_WCHAR_H
29443   # include <stdio.h>
29444   # include <time.h>
29445   # include <wchar.h>
29446   #endif
29447
29448 #include <limits.h>
29449 int
29450 main ()
29451 {
29452 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29453 test_array [0] = 0
29454
29455   ;
29456   return 0;
29457 }
29458 _ACEOF
29459 rm -f conftest.$ac_objext
29460 if { (ac_try="$ac_compile"
29461 case "(($ac_try" in
29462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463   *) ac_try_echo=$ac_try;;
29464 esac
29465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29466 $as_echo "$ac_try_echo") >&5
29467   (eval "$ac_compile") 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } && {
29474          test -z "$ac_c_werror_flag" ||
29475          test ! -s conftest.err
29476        } && test -s conftest.$ac_objext; then
29477   ac_lo=0 ac_mid=0
29478   while :; do
29479     cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485
29486   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29487      included before <wchar.h>.  */
29488   #include <stddef.h>
29489   #include <signal.h>
29490   #if HAVE_WCHAR_H
29491   # include <stdio.h>
29492   # include <time.h>
29493   # include <wchar.h>
29494   #endif
29495
29496 #include <limits.h>
29497 int
29498 main ()
29499 {
29500 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29501 test_array [0] = 0
29502
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext
29508 if { (ac_try="$ac_compile"
29509 case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29514 $as_echo "$ac_try_echo") >&5
29515   (eval "$ac_compile") 2>conftest.er1
29516   ac_status=$?
29517   grep -v '^ *+' conftest.er1 >conftest.err
29518   rm -f conftest.er1
29519   cat conftest.err >&5
29520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } && {
29522          test -z "$ac_c_werror_flag" ||
29523          test ! -s conftest.err
29524        } && test -s conftest.$ac_objext; then
29525   ac_hi=$ac_mid; break
29526 else
29527   $as_echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29529
29530         ac_lo=`expr $ac_mid + 1`
29531                         if test $ac_lo -le $ac_mid; then
29532                           ac_lo= ac_hi=
29533                           break
29534                         fi
29535                         ac_mid=`expr 2 '*' $ac_mid + 1`
29536 fi
29537
29538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29539   done
29540 else
29541   $as_echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544         cat >conftest.$ac_ext <<_ACEOF
29545 /* confdefs.h.  */
29546 _ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h.  */
29550
29551   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29552      included before <wchar.h>.  */
29553   #include <stddef.h>
29554   #include <signal.h>
29555   #if HAVE_WCHAR_H
29556   # include <stdio.h>
29557   # include <time.h>
29558   # include <wchar.h>
29559   #endif
29560
29561 #include <limits.h>
29562 int
29563 main ()
29564 {
29565 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29566 test_array [0] = 0
29567
29568   ;
29569   return 0;
29570 }
29571 _ACEOF
29572 rm -f conftest.$ac_objext
29573 if { (ac_try="$ac_compile"
29574 case "(($ac_try" in
29575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576   *) ac_try_echo=$ac_try;;
29577 esac
29578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29579 $as_echo "$ac_try_echo") >&5
29580   (eval "$ac_compile") 2>conftest.er1
29581   ac_status=$?
29582   grep -v '^ *+' conftest.er1 >conftest.err
29583   rm -f conftest.er1
29584   cat conftest.err >&5
29585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); } && {
29587          test -z "$ac_c_werror_flag" ||
29588          test ! -s conftest.err
29589        } && test -s conftest.$ac_objext; then
29590   ac_hi=-1 ac_mid=-1
29591   while :; do
29592     cat >conftest.$ac_ext <<_ACEOF
29593 /* confdefs.h.  */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h.  */
29598
29599   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29600      included before <wchar.h>.  */
29601   #include <stddef.h>
29602   #include <signal.h>
29603   #if HAVE_WCHAR_H
29604   # include <stdio.h>
29605   # include <time.h>
29606   # include <wchar.h>
29607   #endif
29608
29609 #include <limits.h>
29610 int
29611 main ()
29612 {
29613 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29614 test_array [0] = 0
29615
29616   ;
29617   return 0;
29618 }
29619 _ACEOF
29620 rm -f conftest.$ac_objext
29621 if { (ac_try="$ac_compile"
29622 case "(($ac_try" in
29623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624   *) ac_try_echo=$ac_try;;
29625 esac
29626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29627 $as_echo "$ac_try_echo") >&5
29628   (eval "$ac_compile") 2>conftest.er1
29629   ac_status=$?
29630   grep -v '^ *+' conftest.er1 >conftest.err
29631   rm -f conftest.er1
29632   cat conftest.err >&5
29633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); } && {
29635          test -z "$ac_c_werror_flag" ||
29636          test ! -s conftest.err
29637        } && test -s conftest.$ac_objext; then
29638   ac_lo=$ac_mid; break
29639 else
29640   $as_echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29642
29643         ac_hi=`expr '(' $ac_mid ')' - 1`
29644                         if test $ac_mid -le $ac_hi; then
29645                           ac_lo= ac_hi=
29646                           break
29647                         fi
29648                         ac_mid=`expr 2 '*' $ac_mid`
29649 fi
29650
29651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29652   done
29653 else
29654   $as_echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657         ac_lo= ac_hi=
29658 fi
29659
29660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29661 fi
29662
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 # Binary search between lo and hi bounds.
29665 while test "x$ac_lo" != "x$ac_hi"; do
29666   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29667   cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673
29674   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29675      included before <wchar.h>.  */
29676   #include <stddef.h>
29677   #include <signal.h>
29678   #if HAVE_WCHAR_H
29679   # include <stdio.h>
29680   # include <time.h>
29681   # include <wchar.h>
29682   #endif
29683
29684 #include <limits.h>
29685 int
29686 main ()
29687 {
29688 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29689 test_array [0] = 0
29690
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext
29696 if { (ac_try="$ac_compile"
29697 case "(($ac_try" in
29698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699   *) ac_try_echo=$ac_try;;
29700 esac
29701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29702 $as_echo "$ac_try_echo") >&5
29703   (eval "$ac_compile") 2>conftest.er1
29704   ac_status=$?
29705   grep -v '^ *+' conftest.er1 >conftest.err
29706   rm -f conftest.er1
29707   cat conftest.err >&5
29708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); } && {
29710          test -z "$ac_c_werror_flag" ||
29711          test ! -s conftest.err
29712        } && test -s conftest.$ac_objext; then
29713   ac_hi=$ac_mid
29714 else
29715   $as_echo "$as_me: failed program was:" >&5
29716 sed 's/^/| /' conftest.$ac_ext >&5
29717
29718         ac_lo=`expr '(' $ac_mid ')' + 1`
29719 fi
29720
29721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29722 done
29723 case $ac_lo in
29724 ?*) result=$ac_lo;;
29725 '') result=unknown ;;
29726 esac
29727 else
29728   cat >conftest.$ac_ext <<_ACEOF
29729 /* confdefs.h.  */
29730 _ACEOF
29731 cat confdefs.h >>conftest.$ac_ext
29732 cat >>conftest.$ac_ext <<_ACEOF
29733 /* end confdefs.h.  */
29734
29735   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29736      included before <wchar.h>.  */
29737   #include <stddef.h>
29738   #include <signal.h>
29739   #if HAVE_WCHAR_H
29740   # include <stdio.h>
29741   # include <time.h>
29742   # include <wchar.h>
29743   #endif
29744
29745 #include <limits.h>
29746 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29747 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29748 #include <stdio.h>
29749 #include <stdlib.h>
29750 int
29751 main ()
29752 {
29753
29754   FILE *f = fopen ("conftest.val", "w");
29755   if (! f)
29756     return 1;
29757   if ((sizeof ($gltype) * CHAR_BIT) < 0)
29758     {
29759       long int i = longval ();
29760       if (i != (sizeof ($gltype) * CHAR_BIT))
29761         return 1;
29762       fprintf (f, "%ld", i);
29763     }
29764   else
29765     {
29766       unsigned long int i = ulongval ();
29767       if (i != (sizeof ($gltype) * CHAR_BIT))
29768         return 1;
29769       fprintf (f, "%lu", i);
29770     }
29771   /* Do not output a trailing newline, as this causes \r\n confusion
29772      on some platforms.  */
29773   return ferror (f) || fclose (f) != 0;
29774
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 rm -f conftest$ac_exeext
29780 if { (ac_try="$ac_link"
29781 case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29786 $as_echo "$ac_try_echo") >&5
29787   (eval "$ac_link") 2>&5
29788   ac_status=$?
29789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29791   { (case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29796 $as_echo "$ac_try_echo") >&5
29797   (eval "$ac_try") 2>&5
29798   ac_status=$?
29799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800   (exit $ac_status); }; }; then
29801   result=`cat conftest.val`
29802 else
29803   $as_echo "$as_me: program exited with status $ac_status" >&5
29804 $as_echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807 ( exit $ac_status )
29808 result=unknown
29809 fi
29810 rm -rf conftest.dSYM
29811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29812 fi
29813 rm -f conftest.val
29814        eval gl_cv_bitsizeof_${gltype}=\$result
29815
29816 fi
29817 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29818                  $as_echo "$as_val"'`
29819                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29820 $as_echo "$ac_res" >&6; }
29821     eval result=\$gl_cv_bitsizeof_${gltype}
29822     if test $result = unknown; then
29823                                                 result=0
29824     fi
29825     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29826     cat >>confdefs.h <<_ACEOF
29827 #define BITSIZEOF_${GLTYPE} $result
29828 _ACEOF
29829
29830     eval BITSIZEOF_${GLTYPE}=\$result
29831   done
29832
29833
29834
29835
29836
29837
29838
29839   for gltype in sig_atomic_t wchar_t wint_t ; do
29840     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
29841 $as_echo_n "checking whether $gltype is signed... " >&6; }
29842 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
29843   $as_echo_n "(cached) " >&6
29844 else
29845   cat >conftest.$ac_ext <<_ACEOF
29846 /* confdefs.h.  */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h.  */
29851
29852   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29853      included before <wchar.h>.  */
29854   #include <stddef.h>
29855   #include <signal.h>
29856   #if HAVE_WCHAR_H
29857   # include <stdio.h>
29858   # include <time.h>
29859   # include <wchar.h>
29860   #endif
29861
29862             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
29863 int
29864 main ()
29865 {
29866
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest.$ac_objext
29872 if { (ac_try="$ac_compile"
29873 case "(($ac_try" in
29874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875   *) ac_try_echo=$ac_try;;
29876 esac
29877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29878 $as_echo "$ac_try_echo") >&5
29879   (eval "$ac_compile") 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } && {
29886          test -z "$ac_c_werror_flag" ||
29887          test ! -s conftest.err
29888        } && test -s conftest.$ac_objext; then
29889   result=yes
29890 else
29891   $as_echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29893
29894         result=no
29895 fi
29896
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898        eval gl_cv_type_${gltype}_signed=\$result
29899
29900 fi
29901 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
29902                  $as_echo "$as_val"'`
29903                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29904 $as_echo "$ac_res" >&6; }
29905     eval result=\$gl_cv_type_${gltype}_signed
29906     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29907     if test "$result" = yes; then
29908       cat >>confdefs.h <<_ACEOF
29909 #define HAVE_SIGNED_${GLTYPE} 1
29910 _ACEOF
29911
29912       eval HAVE_SIGNED_${GLTYPE}=1
29913     else
29914       eval HAVE_SIGNED_${GLTYPE}=0
29915     fi
29916   done
29917
29918
29919   gl_cv_type_ptrdiff_t_signed=yes
29920   gl_cv_type_size_t_signed=no
29921   if test $APPLE_UNIVERSAL_BUILD = 0; then
29922
29923
29924
29925
29926   for gltype in ptrdiff_t size_t ; do
29927     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
29928 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
29929 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
29930   $as_echo_n "(cached) " >&6
29931 else
29932   eval gl_cv_type_${gltype}_suffix=no
29933        eval result=\$gl_cv_type_${gltype}_signed
29934        if test "$result" = yes; then
29935          glsufu=
29936        else
29937          glsufu=u
29938        fi
29939        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29940          case $glsuf in
29941            '')  gltype1='int';;
29942            l)   gltype1='long int';;
29943            ll)  gltype1='long long int';;
29944            i64) gltype1='__int64';;
29945            u)   gltype1='unsigned int';;
29946            ul)  gltype1='unsigned long int';;
29947            ull) gltype1='unsigned long long int';;
29948            ui64)gltype1='unsigned __int64';;
29949          esac
29950          cat >conftest.$ac_ext <<_ACEOF
29951 /* confdefs.h.  */
29952 _ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h.  */
29956
29957   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29958      included before <wchar.h>.  */
29959   #include <stddef.h>
29960   #include <signal.h>
29961   #if HAVE_WCHAR_H
29962   # include <stdio.h>
29963   # include <time.h>
29964   # include <wchar.h>
29965   #endif
29966
29967               extern $gltype foo;
29968               extern $gltype1 foo;
29969 int
29970 main ()
29971 {
29972
29973   ;
29974   return 0;
29975 }
29976 _ACEOF
29977 rm -f conftest.$ac_objext
29978 if { (ac_try="$ac_compile"
29979 case "(($ac_try" in
29980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29981   *) ac_try_echo=$ac_try;;
29982 esac
29983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29984 $as_echo "$ac_try_echo") >&5
29985   (eval "$ac_compile") 2>conftest.er1
29986   ac_status=$?
29987   grep -v '^ *+' conftest.er1 >conftest.err
29988   rm -f conftest.er1
29989   cat conftest.err >&5
29990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); } && {
29992          test -z "$ac_c_werror_flag" ||
29993          test ! -s conftest.err
29994        } && test -s conftest.$ac_objext; then
29995   eval gl_cv_type_${gltype}_suffix=\$glsuf
29996 else
29997   $as_echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
29999
30000
30001 fi
30002
30003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30004          eval result=\$gl_cv_type_${gltype}_suffix
30005          test "$result" != no && break
30006        done
30007 fi
30008 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30009                  $as_echo "$as_val"'`
30010                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30011 $as_echo "$ac_res" >&6; }
30012     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30013     eval result=\$gl_cv_type_${gltype}_suffix
30014     test "$result" = no && result=
30015     eval ${GLTYPE}_SUFFIX=\$result
30016     cat >>confdefs.h <<_ACEOF
30017 #define ${GLTYPE}_SUFFIX $result
30018 _ACEOF
30019
30020   done
30021
30022
30023   fi
30024
30025
30026
30027
30028
30029   for gltype in sig_atomic_t wchar_t wint_t ; do
30030     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30031 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30032 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30033   $as_echo_n "(cached) " >&6
30034 else
30035   eval gl_cv_type_${gltype}_suffix=no
30036        eval result=\$gl_cv_type_${gltype}_signed
30037        if test "$result" = yes; then
30038          glsufu=
30039        else
30040          glsufu=u
30041        fi
30042        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30043          case $glsuf in
30044            '')  gltype1='int';;
30045            l)   gltype1='long int';;
30046            ll)  gltype1='long long int';;
30047            i64) gltype1='__int64';;
30048            u)   gltype1='unsigned int';;
30049            ul)  gltype1='unsigned long int';;
30050            ull) gltype1='unsigned long long int';;
30051            ui64)gltype1='unsigned __int64';;
30052          esac
30053          cat >conftest.$ac_ext <<_ACEOF
30054 /* confdefs.h.  */
30055 _ACEOF
30056 cat confdefs.h >>conftest.$ac_ext
30057 cat >>conftest.$ac_ext <<_ACEOF
30058 /* end confdefs.h.  */
30059
30060   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30061      included before <wchar.h>.  */
30062   #include <stddef.h>
30063   #include <signal.h>
30064   #if HAVE_WCHAR_H
30065   # include <stdio.h>
30066   # include <time.h>
30067   # include <wchar.h>
30068   #endif
30069
30070               extern $gltype foo;
30071               extern $gltype1 foo;
30072 int
30073 main ()
30074 {
30075
30076   ;
30077   return 0;
30078 }
30079 _ACEOF
30080 rm -f conftest.$ac_objext
30081 if { (ac_try="$ac_compile"
30082 case "(($ac_try" in
30083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084   *) ac_try_echo=$ac_try;;
30085 esac
30086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30087 $as_echo "$ac_try_echo") >&5
30088   (eval "$ac_compile") 2>conftest.er1
30089   ac_status=$?
30090   grep -v '^ *+' conftest.er1 >conftest.err
30091   rm -f conftest.er1
30092   cat conftest.err >&5
30093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094   (exit $ac_status); } && {
30095          test -z "$ac_c_werror_flag" ||
30096          test ! -s conftest.err
30097        } && test -s conftest.$ac_objext; then
30098   eval gl_cv_type_${gltype}_suffix=\$glsuf
30099 else
30100   $as_echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30102
30103
30104 fi
30105
30106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107          eval result=\$gl_cv_type_${gltype}_suffix
30108          test "$result" != no && break
30109        done
30110 fi
30111 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30112                  $as_echo "$as_val"'`
30113                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30114 $as_echo "$ac_res" >&6; }
30115     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30116     eval result=\$gl_cv_type_${gltype}_suffix
30117     test "$result" = no && result=
30118     eval ${GLTYPE}_SUFFIX=\$result
30119     cat >>confdefs.h <<_ACEOF
30120 #define ${GLTYPE}_SUFFIX $result
30121 _ACEOF
30122
30123   done
30124
30125
30126
30127     STDINT_H=stdint.h
30128   fi
30129
30130
30131   # Code from module stdio:
30132
30133
30134
30135
30136
30137
30138
30139
30140   :
30141
30142
30143
30144
30145
30146
30147
30148      if test $gl_cv_have_include_next = yes; then
30149        gl_cv_next_stdio_h='<'stdio.h'>'
30150      else
30151        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
30152 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30153 if test "${gl_cv_next_stdio_h+set}" = set; then
30154   $as_echo_n "(cached) " >&6
30155 else
30156
30157           if test $ac_cv_header_stdio_h = yes; then
30158             cat >conftest.$ac_ext <<_ACEOF
30159 /* confdefs.h.  */
30160 _ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h.  */
30164 #include <stdio.h>
30165
30166 _ACEOF
30167                                                                                                 case "$host_os" in
30168               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30169               *)    gl_absname_cpp="$ac_cpp" ;;
30170             esac
30171                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30172                sed -n '\#/stdio.h#{
30173                  s#.*"\(.*/stdio.h\)".*#\1#
30174                  s#^/[^/]#//&#
30175                  p
30176                  q
30177                }'`'"'
30178           else
30179             gl_cv_next_stdio_h='<'stdio.h'>'
30180           fi
30181
30182 fi
30183 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
30184 $as_echo "$gl_cv_next_stdio_h" >&6; }
30185      fi
30186      NEXT_STDIO_H=$gl_cv_next_stdio_h
30187
30188      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30189        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30190        gl_next_as_first_directive='<'stdio.h'>'
30191      else
30192        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30193        gl_next_as_first_directive=$gl_cv_next_stdio_h
30194      fi
30195      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30196
30197
30198
30199       GNULIB_FPRINTF=1
30200   GNULIB_PRINTF=1
30201   GNULIB_VFPRINTF=1
30202   GNULIB_VPRINTF=1
30203   GNULIB_FPUTC=1
30204   GNULIB_PUTC=1
30205   GNULIB_PUTCHAR=1
30206   GNULIB_FPUTS=1
30207   GNULIB_PUTS=1
30208   GNULIB_FWRITE=1
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224   for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
30225     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30226     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30227 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30228 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30229   $as_echo_n "(cached) " >&6
30230 else
30231   cat >conftest.$ac_ext <<_ACEOF
30232 /* confdefs.h.  */
30233 _ACEOF
30234 cat confdefs.h >>conftest.$ac_ext
30235 cat >>conftest.$ac_ext <<_ACEOF
30236 /* end confdefs.h.  */
30237 #include <stdio.h>
30238
30239 int
30240 main ()
30241 {
30242 #undef $gl_func
30243   (void) $gl_func;
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext
30249 if { (ac_try="$ac_compile"
30250 case "(($ac_try" in
30251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252   *) ac_try_echo=$ac_try;;
30253 esac
30254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30255 $as_echo "$ac_try_echo") >&5
30256   (eval "$ac_compile") 2>conftest.er1
30257   ac_status=$?
30258   grep -v '^ *+' conftest.er1 >conftest.err
30259   rm -f conftest.er1
30260   cat conftest.err >&5
30261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); } && {
30263          test -z "$ac_c_werror_flag" ||
30264          test ! -s conftest.err
30265        } && test -s conftest.$ac_objext; then
30266   eval "$as_gl_Symbol=yes"
30267 else
30268   $as_echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.$ac_ext >&5
30270
30271         eval "$as_gl_Symbol=no"
30272 fi
30273
30274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30275 fi
30276 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30277                  $as_echo "$as_val"'`
30278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30279 $as_echo "$ac_res" >&6; }
30280      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30281                  $as_echo "$as_val"'`
30282    if test "x$as_val" = x""yes; then
30283   cat >>confdefs.h <<_ACEOF
30284 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30285 _ACEOF
30286
30287                      eval ac_cv_have_decl_$gl_func=yes
30288 fi
30289
30290       done
30291
30292
30293   # Code from module stdlib:
30294
30295
30296
30297
30298
30299
30300   :
30301
30302
30303
30304
30305
30306
30307
30308      if test $gl_cv_have_include_next = yes; then
30309        gl_cv_next_stdlib_h='<'stdlib.h'>'
30310      else
30311        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
30312 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30313 if test "${gl_cv_next_stdlib_h+set}" = set; then
30314   $as_echo_n "(cached) " >&6
30315 else
30316
30317           if test $ac_cv_header_stdlib_h = yes; then
30318             cat >conftest.$ac_ext <<_ACEOF
30319 /* confdefs.h.  */
30320 _ACEOF
30321 cat confdefs.h >>conftest.$ac_ext
30322 cat >>conftest.$ac_ext <<_ACEOF
30323 /* end confdefs.h.  */
30324 #include <stdlib.h>
30325
30326 _ACEOF
30327                                                                                                 case "$host_os" in
30328               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30329               *)    gl_absname_cpp="$ac_cpp" ;;
30330             esac
30331                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30332                sed -n '\#/stdlib.h#{
30333                  s#.*"\(.*/stdlib.h\)".*#\1#
30334                  s#^/[^/]#//&#
30335                  p
30336                  q
30337                }'`'"'
30338           else
30339             gl_cv_next_stdlib_h='<'stdlib.h'>'
30340           fi
30341
30342 fi
30343 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
30344 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30345      fi
30346      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30347
30348      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30349        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30350        gl_next_as_first_directive='<'stdlib.h'>'
30351      else
30352        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30353        gl_next_as_first_directive=$gl_cv_next_stdlib_h
30354      fi
30355      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30356
30357
30358
30359
30360 for ac_header in random.h
30361 do
30362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30364 $as_echo_n "checking for $ac_header... " >&6; }
30365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30366   $as_echo_n "(cached) " >&6
30367 else
30368   cat >conftest.$ac_ext <<_ACEOF
30369 /* confdefs.h.  */
30370 _ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h.  */
30374 $ac_includes_default
30375
30376 #include <$ac_header>
30377 _ACEOF
30378 rm -f conftest.$ac_objext
30379 if { (ac_try="$ac_compile"
30380 case "(($ac_try" in
30381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382   *) ac_try_echo=$ac_try;;
30383 esac
30384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30385 $as_echo "$ac_try_echo") >&5
30386   (eval "$ac_compile") 2>conftest.er1
30387   ac_status=$?
30388   grep -v '^ *+' conftest.er1 >conftest.err
30389   rm -f conftest.er1
30390   cat conftest.err >&5
30391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); } && {
30393          test -z "$ac_c_werror_flag" ||
30394          test ! -s conftest.err
30395        } && test -s conftest.$ac_objext; then
30396   eval "$as_ac_Header=yes"
30397 else
30398   $as_echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30400
30401         eval "$as_ac_Header=no"
30402 fi
30403
30404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30405 fi
30406 ac_res=`eval 'as_val=${'$as_ac_Header'}
30407                  $as_echo "$as_val"'`
30408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30409 $as_echo "$ac_res" >&6; }
30410 as_val=`eval 'as_val=${'$as_ac_Header'}
30411                  $as_echo "$as_val"'`
30412    if test "x$as_val" = x""yes; then
30413   cat >>confdefs.h <<_ACEOF
30414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30415 _ACEOF
30416
30417 fi
30418
30419 done
30420
30421   if test $ac_cv_header_random_h = yes; then
30422     HAVE_RANDOM_H=1
30423   else
30424     HAVE_RANDOM_H=0
30425   fi
30426
30427   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
30428 $as_echo_n "checking for struct random_data... " >&6; }
30429 if test "${ac_cv_type_struct_random_data+set}" = set; then
30430   $as_echo_n "(cached) " >&6
30431 else
30432   ac_cv_type_struct_random_data=no
30433 cat >conftest.$ac_ext <<_ACEOF
30434 /* confdefs.h.  */
30435 _ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h.  */
30439 #include <stdlib.h>
30440       #if HAVE_RANDOM_H
30441       # include <random.h>
30442       #endif
30443
30444
30445 int
30446 main ()
30447 {
30448 if (sizeof (struct random_data))
30449        return 0;
30450   ;
30451   return 0;
30452 }
30453 _ACEOF
30454 rm -f conftest.$ac_objext
30455 if { (ac_try="$ac_compile"
30456 case "(($ac_try" in
30457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458   *) ac_try_echo=$ac_try;;
30459 esac
30460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30461 $as_echo "$ac_try_echo") >&5
30462   (eval "$ac_compile") 2>conftest.er1
30463   ac_status=$?
30464   grep -v '^ *+' conftest.er1 >conftest.err
30465   rm -f conftest.er1
30466   cat conftest.err >&5
30467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); } && {
30469          test -z "$ac_c_werror_flag" ||
30470          test ! -s conftest.err
30471        } && test -s conftest.$ac_objext; then
30472   cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h.  */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h.  */
30478 #include <stdlib.h>
30479       #if HAVE_RANDOM_H
30480       # include <random.h>
30481       #endif
30482
30483
30484 int
30485 main ()
30486 {
30487 if (sizeof ((struct random_data)))
30488           return 0;
30489   ;
30490   return 0;
30491 }
30492 _ACEOF
30493 rm -f conftest.$ac_objext
30494 if { (ac_try="$ac_compile"
30495 case "(($ac_try" in
30496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497   *) ac_try_echo=$ac_try;;
30498 esac
30499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30500 $as_echo "$ac_try_echo") >&5
30501   (eval "$ac_compile") 2>conftest.er1
30502   ac_status=$?
30503   grep -v '^ *+' conftest.er1 >conftest.err
30504   rm -f conftest.er1
30505   cat conftest.err >&5
30506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); } && {
30508          test -z "$ac_c_werror_flag" ||
30509          test ! -s conftest.err
30510        } && test -s conftest.$ac_objext; then
30511   :
30512 else
30513   $as_echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30515
30516         ac_cv_type_struct_random_data=yes
30517 fi
30518
30519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30520 else
30521   $as_echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30523
30524
30525 fi
30526
30527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30528 fi
30529 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
30530 $as_echo "$ac_cv_type_struct_random_data" >&6; }
30531 if test "x$ac_cv_type_struct_random_data" = x""yes; then
30532
30533 cat >>confdefs.h <<_ACEOF
30534 #define HAVE_STRUCT_RANDOM_DATA 1
30535 _ACEOF
30536
30537
30538 else
30539   HAVE_STRUCT_RANDOM_DATA=0
30540 fi
30541
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   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
30569     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30570     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30571 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30572 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30573   $as_echo_n "(cached) " >&6
30574 else
30575   cat >conftest.$ac_ext <<_ACEOF
30576 /* confdefs.h.  */
30577 _ACEOF
30578 cat confdefs.h >>conftest.$ac_ext
30579 cat >>conftest.$ac_ext <<_ACEOF
30580 /* end confdefs.h.  */
30581 #include <stdlib.h>
30582 #if HAVE_SYS_LOADAVG_H
30583 # include <sys/loadavg.h>
30584 #endif
30585 #if HAVE_RANDOM_H
30586 # include <random.h>
30587 #endif
30588
30589 int
30590 main ()
30591 {
30592 #undef $gl_func
30593   (void) $gl_func;
30594   ;
30595   return 0;
30596 }
30597 _ACEOF
30598 rm -f conftest.$ac_objext
30599 if { (ac_try="$ac_compile"
30600 case "(($ac_try" in
30601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602   *) ac_try_echo=$ac_try;;
30603 esac
30604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30605 $as_echo "$ac_try_echo") >&5
30606   (eval "$ac_compile") 2>conftest.er1
30607   ac_status=$?
30608   grep -v '^ *+' conftest.er1 >conftest.err
30609   rm -f conftest.er1
30610   cat conftest.err >&5
30611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); } && {
30613          test -z "$ac_c_werror_flag" ||
30614          test ! -s conftest.err
30615        } && test -s conftest.$ac_objext; then
30616   eval "$as_gl_Symbol=yes"
30617 else
30618   $as_echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30620
30621         eval "$as_gl_Symbol=no"
30622 fi
30623
30624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30625 fi
30626 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30627                  $as_echo "$as_val"'`
30628                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30629 $as_echo "$ac_res" >&6; }
30630      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30631                  $as_echo "$as_val"'`
30632    if test "x$as_val" = x""yes; then
30633   cat >>confdefs.h <<_ACEOF
30634 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30635 _ACEOF
30636
30637                      eval ac_cv_have_decl_$gl_func=yes
30638 fi
30639
30640       done
30641
30642
30643   # Code from module streq:
30644   # Code from module string:
30645
30646
30647
30648   # Code from module sys_socket:
30649
30650
30651
30652
30653   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
30654 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
30655 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
30656   $as_echo_n "(cached) " >&6
30657 else
30658
30659       cat >conftest.$ac_ext <<_ACEOF
30660 /* confdefs.h.  */
30661 _ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h.  */
30665 #include <sys/socket.h>
30666 int
30667 main ()
30668 {
30669
30670   ;
30671   return 0;
30672 }
30673 _ACEOF
30674 rm -f conftest.$ac_objext
30675 if { (ac_try="$ac_compile"
30676 case "(($ac_try" in
30677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678   *) ac_try_echo=$ac_try;;
30679 esac
30680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30681 $as_echo "$ac_try_echo") >&5
30682   (eval "$ac_compile") 2>conftest.er1
30683   ac_status=$?
30684   grep -v '^ *+' conftest.er1 >conftest.err
30685   rm -f conftest.er1
30686   cat conftest.err >&5
30687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); } && {
30689          test -z "$ac_c_werror_flag" ||
30690          test ! -s conftest.err
30691        } && test -s conftest.$ac_objext; then
30692   gl_cv_header_sys_socket_h_selfcontained=yes
30693 else
30694   $as_echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697         gl_cv_header_sys_socket_h_selfcontained=no
30698 fi
30699
30700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30701
30702 fi
30703 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
30704 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
30705   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
30706
30707 for ac_func in shutdown
30708 do
30709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30710 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30711 $as_echo_n "checking for $ac_func... " >&6; }
30712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30713   $as_echo_n "(cached) " >&6
30714 else
30715   cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30723 #define $ac_func innocuous_$ac_func
30724
30725 /* System header to define __stub macros and hopefully few prototypes,
30726     which can conflict with char $ac_func (); below.
30727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728     <limits.h> exists even on freestanding compilers.  */
30729
30730 #ifdef __STDC__
30731 # include <limits.h>
30732 #else
30733 # include <assert.h>
30734 #endif
30735
30736 #undef $ac_func
30737
30738 /* Override any GCC internal prototype to avoid an error.
30739    Use char because int might match the return type of a GCC
30740    builtin and then its argument prototype would still apply.  */
30741 #ifdef __cplusplus
30742 extern "C"
30743 #endif
30744 char $ac_func ();
30745 /* The GNU C library defines this for functions which it implements
30746     to always fail with ENOSYS.  Some functions are actually named
30747     something starting with __ and the normal name is an alias.  */
30748 #if defined __stub_$ac_func || defined __stub___$ac_func
30749 choke me
30750 #endif
30751
30752 int
30753 main ()
30754 {
30755 return $ac_func ();
30756   ;
30757   return 0;
30758 }
30759 _ACEOF
30760 rm -f conftest.$ac_objext conftest$ac_exeext
30761 if { (ac_try="$ac_link"
30762 case "(($ac_try" in
30763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764   *) ac_try_echo=$ac_try;;
30765 esac
30766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30767 $as_echo "$ac_try_echo") >&5
30768   (eval "$ac_link") 2>conftest.er1
30769   ac_status=$?
30770   grep -v '^ *+' conftest.er1 >conftest.err
30771   rm -f conftest.er1
30772   cat conftest.err >&5
30773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); } && {
30775          test -z "$ac_c_werror_flag" ||
30776          test ! -s conftest.err
30777        } && test -s conftest$ac_exeext && {
30778          test "$cross_compiling" = yes ||
30779          $as_test_x conftest$ac_exeext
30780        }; then
30781   eval "$as_ac_var=yes"
30782 else
30783   $as_echo "$as_me: failed program was:" >&5
30784 sed 's/^/| /' conftest.$ac_ext >&5
30785
30786         eval "$as_ac_var=no"
30787 fi
30788
30789 rm -rf conftest.dSYM
30790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30791       conftest$ac_exeext conftest.$ac_ext
30792 fi
30793 ac_res=`eval 'as_val=${'$as_ac_var'}
30794                  $as_echo "$as_val"'`
30795                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30796 $as_echo "$ac_res" >&6; }
30797 as_val=`eval 'as_val=${'$as_ac_var'}
30798                  $as_echo "$as_val"'`
30799    if test "x$as_val" = x""yes; then
30800   cat >>confdefs.h <<_ACEOF
30801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802 _ACEOF
30803
30804 fi
30805 done
30806
30807     if test $ac_cv_func_shutdown = yes; then
30808       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
30809 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
30810 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
30811   $as_echo_n "(cached) " >&6
30812 else
30813
30814           cat >conftest.$ac_ext <<_ACEOF
30815 /* confdefs.h.  */
30816 _ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h.  */
30820 #include <sys/socket.h>
30821 int
30822 main ()
30823 {
30824 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
30825   ;
30826   return 0;
30827 }
30828 _ACEOF
30829 rm -f conftest.$ac_objext
30830 if { (ac_try="$ac_compile"
30831 case "(($ac_try" in
30832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833   *) ac_try_echo=$ac_try;;
30834 esac
30835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30836 $as_echo "$ac_try_echo") >&5
30837   (eval "$ac_compile") 2>conftest.er1
30838   ac_status=$?
30839   grep -v '^ *+' conftest.er1 >conftest.err
30840   rm -f conftest.er1
30841   cat conftest.err >&5
30842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); } && {
30844          test -z "$ac_c_werror_flag" ||
30845          test ! -s conftest.err
30846        } && test -s conftest.$ac_objext; then
30847   gl_cv_header_sys_socket_h_shut=yes
30848 else
30849   $as_echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30851
30852         gl_cv_header_sys_socket_h_shut=no
30853 fi
30854
30855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30856
30857 fi
30858 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
30859 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
30860       if test $gl_cv_header_sys_socket_h_shut = no; then
30861         SYS_SOCKET_H='sys/socket.h'
30862       fi
30863     fi
30864   fi
30865   # We need to check for ws2tcpip.h now.
30866
30867
30868
30869
30870
30871   :
30872
30873
30874
30875
30876
30877
30878
30879      if test $gl_cv_have_include_next = yes; then
30880        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30881      else
30882        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
30883 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
30884 if test "${gl_cv_next_sys_socket_h+set}" = set; then
30885   $as_echo_n "(cached) " >&6
30886 else
30887
30888           if test $ac_cv_header_sys_socket_h = yes; then
30889             cat >conftest.$ac_ext <<_ACEOF
30890 /* confdefs.h.  */
30891 _ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h.  */
30895 #include <sys/socket.h>
30896
30897 _ACEOF
30898                                                                                                 case "$host_os" in
30899               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30900               *)    gl_absname_cpp="$ac_cpp" ;;
30901             esac
30902                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30903                sed -n '\#/sys/socket.h#{
30904                  s#.*"\(.*/sys/socket.h\)".*#\1#
30905                  s#^/[^/]#//&#
30906                  p
30907                  q
30908                }'`'"'
30909           else
30910             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30911           fi
30912
30913 fi
30914 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
30915 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
30916      fi
30917      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
30918
30919      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30920        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30921        gl_next_as_first_directive='<'sys/socket.h'>'
30922      else
30923        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30924        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
30925      fi
30926      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
30927
30928
30929
30930   if test $ac_cv_header_sys_socket_h = yes; then
30931     HAVE_SYS_SOCKET_H=1
30932     HAVE_WS2TCPIP_H=0
30933   else
30934     HAVE_SYS_SOCKET_H=0
30935
30936 for ac_header in ws2tcpip.h
30937 do
30938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30941 $as_echo_n "checking for $ac_header... " >&6; }
30942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30943   $as_echo_n "(cached) " >&6
30944 fi
30945 ac_res=`eval 'as_val=${'$as_ac_Header'}
30946                  $as_echo "$as_val"'`
30947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30948 $as_echo "$ac_res" >&6; }
30949 else
30950   # Is the header compilable?
30951 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30952 $as_echo_n "checking $ac_header usability... " >&6; }
30953 cat >conftest.$ac_ext <<_ACEOF
30954 /* confdefs.h.  */
30955 _ACEOF
30956 cat confdefs.h >>conftest.$ac_ext
30957 cat >>conftest.$ac_ext <<_ACEOF
30958 /* end confdefs.h.  */
30959 $ac_includes_default
30960 #include <$ac_header>
30961 _ACEOF
30962 rm -f conftest.$ac_objext
30963 if { (ac_try="$ac_compile"
30964 case "(($ac_try" in
30965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966   *) ac_try_echo=$ac_try;;
30967 esac
30968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30969 $as_echo "$ac_try_echo") >&5
30970   (eval "$ac_compile") 2>conftest.er1
30971   ac_status=$?
30972   grep -v '^ *+' conftest.er1 >conftest.err
30973   rm -f conftest.er1
30974   cat conftest.err >&5
30975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); } && {
30977          test -z "$ac_c_werror_flag" ||
30978          test ! -s conftest.err
30979        } && test -s conftest.$ac_objext; then
30980   ac_header_compiler=yes
30981 else
30982   $as_echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30984
30985         ac_header_compiler=no
30986 fi
30987
30988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30990 $as_echo "$ac_header_compiler" >&6; }
30991
30992 # Is the header present?
30993 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30994 $as_echo_n "checking $ac_header presence... " >&6; }
30995 cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h.  */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h.  */
31001 #include <$ac_header>
31002 _ACEOF
31003 if { (ac_try="$ac_cpp conftest.$ac_ext"
31004 case "(($ac_try" in
31005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006   *) ac_try_echo=$ac_try;;
31007 esac
31008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31009 $as_echo "$ac_try_echo") >&5
31010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31011   ac_status=$?
31012   grep -v '^ *+' conftest.er1 >conftest.err
31013   rm -f conftest.er1
31014   cat conftest.err >&5
31015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016   (exit $ac_status); } >/dev/null && {
31017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31018          test ! -s conftest.err
31019        }; then
31020   ac_header_preproc=yes
31021 else
31022   $as_echo "$as_me: failed program was:" >&5
31023 sed 's/^/| /' conftest.$ac_ext >&5
31024
31025   ac_header_preproc=no
31026 fi
31027
31028 rm -f conftest.err conftest.$ac_ext
31029 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31030 $as_echo "$ac_header_preproc" >&6; }
31031
31032 # So?  What about this header?
31033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31034   yes:no: )
31035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31036 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31038 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31039     ac_header_preproc=yes
31040     ;;
31041   no:yes:* )
31042     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31043 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31044     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31045 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31047 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31049 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31050     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31051 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31053 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31054
31055     ;;
31056 esac
31057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31058 $as_echo_n "checking for $ac_header... " >&6; }
31059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31060   $as_echo_n "(cached) " >&6
31061 else
31062   eval "$as_ac_Header=\$ac_header_preproc"
31063 fi
31064 ac_res=`eval 'as_val=${'$as_ac_Header'}
31065                  $as_echo "$as_val"'`
31066                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31067 $as_echo "$ac_res" >&6; }
31068
31069 fi
31070 as_val=`eval 'as_val=${'$as_ac_Header'}
31071                  $as_echo "$as_val"'`
31072    if test "x$as_val" = x""yes; then
31073   cat >>confdefs.h <<_ACEOF
31074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31075 _ACEOF
31076
31077 fi
31078
31079 done
31080
31081     if test $ac_cv_header_ws2tcpip_h = yes; then
31082       HAVE_WS2TCPIP_H=1
31083     else
31084       HAVE_WS2TCPIP_H=0
31085     fi
31086   fi
31087
31088
31089
31090   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31091 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
31092 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31093   $as_echo_n "(cached) " >&6
31094 else
31095   ac_cv_type_struct_sockaddr_storage=no
31096 cat >conftest.$ac_ext <<_ACEOF
31097 /* confdefs.h.  */
31098 _ACEOF
31099 cat confdefs.h >>conftest.$ac_ext
31100 cat >>conftest.$ac_ext <<_ACEOF
31101 /* end confdefs.h.  */
31102
31103   /* sys/types.h is not needed according to POSIX, but the
31104      sys/socket.h in i386-unknown-freebsd4.10 and
31105      powerpc-apple-darwin5.5 required it. */
31106 #include <sys/types.h>
31107 #ifdef HAVE_SYS_SOCKET_H
31108 #include <sys/socket.h>
31109 #endif
31110 #ifdef HAVE_WS2TCPIP_H
31111 #include <ws2tcpip.h>
31112 #endif
31113
31114
31115 int
31116 main ()
31117 {
31118 if (sizeof (struct sockaddr_storage))
31119        return 0;
31120   ;
31121   return 0;
31122 }
31123 _ACEOF
31124 rm -f conftest.$ac_objext
31125 if { (ac_try="$ac_compile"
31126 case "(($ac_try" in
31127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128   *) ac_try_echo=$ac_try;;
31129 esac
31130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31131 $as_echo "$ac_try_echo") >&5
31132   (eval "$ac_compile") 2>conftest.er1
31133   ac_status=$?
31134   grep -v '^ *+' conftest.er1 >conftest.err
31135   rm -f conftest.er1
31136   cat conftest.err >&5
31137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138   (exit $ac_status); } && {
31139          test -z "$ac_c_werror_flag" ||
31140          test ! -s conftest.err
31141        } && test -s conftest.$ac_objext; then
31142   cat >conftest.$ac_ext <<_ACEOF
31143 /* confdefs.h.  */
31144 _ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h.  */
31148
31149   /* sys/types.h is not needed according to POSIX, but the
31150      sys/socket.h in i386-unknown-freebsd4.10 and
31151      powerpc-apple-darwin5.5 required it. */
31152 #include <sys/types.h>
31153 #ifdef HAVE_SYS_SOCKET_H
31154 #include <sys/socket.h>
31155 #endif
31156 #ifdef HAVE_WS2TCPIP_H
31157 #include <ws2tcpip.h>
31158 #endif
31159
31160
31161 int
31162 main ()
31163 {
31164 if (sizeof ((struct sockaddr_storage)))
31165           return 0;
31166   ;
31167   return 0;
31168 }
31169 _ACEOF
31170 rm -f conftest.$ac_objext
31171 if { (ac_try="$ac_compile"
31172 case "(($ac_try" in
31173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174   *) ac_try_echo=$ac_try;;
31175 esac
31176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31177 $as_echo "$ac_try_echo") >&5
31178   (eval "$ac_compile") 2>conftest.er1
31179   ac_status=$?
31180   grep -v '^ *+' conftest.er1 >conftest.err
31181   rm -f conftest.er1
31182   cat conftest.err >&5
31183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184   (exit $ac_status); } && {
31185          test -z "$ac_c_werror_flag" ||
31186          test ! -s conftest.err
31187        } && test -s conftest.$ac_objext; then
31188   :
31189 else
31190   $as_echo "$as_me: failed program was:" >&5
31191 sed 's/^/| /' conftest.$ac_ext >&5
31192
31193         ac_cv_type_struct_sockaddr_storage=yes
31194 fi
31195
31196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31197 else
31198   $as_echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201
31202 fi
31203
31204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31205 fi
31206 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31207 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31208 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31209
31210 cat >>confdefs.h <<_ACEOF
31211 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
31212 _ACEOF
31213
31214
31215 fi
31216 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
31217 $as_echo_n "checking for sa_family_t... " >&6; }
31218 if test "${ac_cv_type_sa_family_t+set}" = set; then
31219   $as_echo_n "(cached) " >&6
31220 else
31221   ac_cv_type_sa_family_t=no
31222 cat >conftest.$ac_ext <<_ACEOF
31223 /* confdefs.h.  */
31224 _ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h.  */
31228
31229   /* sys/types.h is not needed according to POSIX, but the
31230      sys/socket.h in i386-unknown-freebsd4.10 and
31231      powerpc-apple-darwin5.5 required it. */
31232 #include <sys/types.h>
31233 #ifdef HAVE_SYS_SOCKET_H
31234 #include <sys/socket.h>
31235 #endif
31236 #ifdef HAVE_WS2TCPIP_H
31237 #include <ws2tcpip.h>
31238 #endif
31239
31240
31241 int
31242 main ()
31243 {
31244 if (sizeof (sa_family_t))
31245        return 0;
31246   ;
31247   return 0;
31248 }
31249 _ACEOF
31250 rm -f conftest.$ac_objext
31251 if { (ac_try="$ac_compile"
31252 case "(($ac_try" in
31253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254   *) ac_try_echo=$ac_try;;
31255 esac
31256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31257 $as_echo "$ac_try_echo") >&5
31258   (eval "$ac_compile") 2>conftest.er1
31259   ac_status=$?
31260   grep -v '^ *+' conftest.er1 >conftest.err
31261   rm -f conftest.er1
31262   cat conftest.err >&5
31263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264   (exit $ac_status); } && {
31265          test -z "$ac_c_werror_flag" ||
31266          test ! -s conftest.err
31267        } && test -s conftest.$ac_objext; then
31268   cat >conftest.$ac_ext <<_ACEOF
31269 /* confdefs.h.  */
31270 _ACEOF
31271 cat confdefs.h >>conftest.$ac_ext
31272 cat >>conftest.$ac_ext <<_ACEOF
31273 /* end confdefs.h.  */
31274
31275   /* sys/types.h is not needed according to POSIX, but the
31276      sys/socket.h in i386-unknown-freebsd4.10 and
31277      powerpc-apple-darwin5.5 required it. */
31278 #include <sys/types.h>
31279 #ifdef HAVE_SYS_SOCKET_H
31280 #include <sys/socket.h>
31281 #endif
31282 #ifdef HAVE_WS2TCPIP_H
31283 #include <ws2tcpip.h>
31284 #endif
31285
31286
31287 int
31288 main ()
31289 {
31290 if (sizeof ((sa_family_t)))
31291           return 0;
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext
31297 if { (ac_try="$ac_compile"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31303 $as_echo "$ac_try_echo") >&5
31304   (eval "$ac_compile") 2>conftest.er1
31305   ac_status=$?
31306   grep -v '^ *+' conftest.er1 >conftest.err
31307   rm -f conftest.er1
31308   cat conftest.err >&5
31309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); } && {
31311          test -z "$ac_c_werror_flag" ||
31312          test ! -s conftest.err
31313        } && test -s conftest.$ac_objext; then
31314   :
31315 else
31316   $as_echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31318
31319         ac_cv_type_sa_family_t=yes
31320 fi
31321
31322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31323 else
31324   $as_echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31326
31327
31328 fi
31329
31330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31331 fi
31332 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31333 $as_echo "$ac_cv_type_sa_family_t" >&6; }
31334 if test "x$ac_cv_type_sa_family_t" = x""yes; then
31335
31336 cat >>confdefs.h <<_ACEOF
31337 #define HAVE_SA_FAMILY_T 1
31338 _ACEOF
31339
31340
31341 fi
31342
31343   if test $ac_cv_type_struct_sockaddr_storage = no; then
31344     HAVE_STRUCT_SOCKADDR_STORAGE=0
31345   fi
31346   if test $ac_cv_type_sa_family_t = no; then
31347     HAVE_SA_FAMILY_T=0
31348   fi
31349
31350
31351
31352
31353   :
31354
31355
31356
31357
31358
31359   if test $ac_cv_header_sys_socket_h != yes; then
31360
31361 for ac_header in winsock2.h
31362 do
31363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31365   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31366 $as_echo_n "checking for $ac_header... " >&6; }
31367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31368   $as_echo_n "(cached) " >&6
31369 fi
31370 ac_res=`eval 'as_val=${'$as_ac_Header'}
31371                  $as_echo "$as_val"'`
31372                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31373 $as_echo "$ac_res" >&6; }
31374 else
31375   # Is the header compilable?
31376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31377 $as_echo_n "checking $ac_header usability... " >&6; }
31378 cat >conftest.$ac_ext <<_ACEOF
31379 /* confdefs.h.  */
31380 _ACEOF
31381 cat confdefs.h >>conftest.$ac_ext
31382 cat >>conftest.$ac_ext <<_ACEOF
31383 /* end confdefs.h.  */
31384 $ac_includes_default
31385 #include <$ac_header>
31386 _ACEOF
31387 rm -f conftest.$ac_objext
31388 if { (ac_try="$ac_compile"
31389 case "(($ac_try" in
31390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391   *) ac_try_echo=$ac_try;;
31392 esac
31393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31394 $as_echo "$ac_try_echo") >&5
31395   (eval "$ac_compile") 2>conftest.er1
31396   ac_status=$?
31397   grep -v '^ *+' conftest.er1 >conftest.err
31398   rm -f conftest.er1
31399   cat conftest.err >&5
31400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); } && {
31402          test -z "$ac_c_werror_flag" ||
31403          test ! -s conftest.err
31404        } && test -s conftest.$ac_objext; then
31405   ac_header_compiler=yes
31406 else
31407   $as_echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31409
31410         ac_header_compiler=no
31411 fi
31412
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31415 $as_echo "$ac_header_compiler" >&6; }
31416
31417 # Is the header present?
31418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31419 $as_echo_n "checking $ac_header presence... " >&6; }
31420 cat >conftest.$ac_ext <<_ACEOF
31421 /* confdefs.h.  */
31422 _ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h.  */
31426 #include <$ac_header>
31427 _ACEOF
31428 if { (ac_try="$ac_cpp conftest.$ac_ext"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31434 $as_echo "$ac_try_echo") >&5
31435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31436   ac_status=$?
31437   grep -v '^ *+' conftest.er1 >conftest.err
31438   rm -f conftest.er1
31439   cat conftest.err >&5
31440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); } >/dev/null && {
31442          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31443          test ! -s conftest.err
31444        }; then
31445   ac_header_preproc=yes
31446 else
31447   $as_echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31449
31450   ac_header_preproc=no
31451 fi
31452
31453 rm -f conftest.err conftest.$ac_ext
31454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31455 $as_echo "$ac_header_preproc" >&6; }
31456
31457 # So?  What about this header?
31458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31459   yes:no: )
31460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31464     ac_header_preproc=yes
31465     ;;
31466   no:yes:* )
31467     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31469     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31470 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31471     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31473     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31474 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31475     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31479
31480     ;;
31481 esac
31482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31483 $as_echo_n "checking for $ac_header... " >&6; }
31484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31485   $as_echo_n "(cached) " >&6
31486 else
31487   eval "$as_ac_Header=\$ac_header_preproc"
31488 fi
31489 ac_res=`eval 'as_val=${'$as_ac_Header'}
31490                  $as_echo "$as_val"'`
31491                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31492 $as_echo "$ac_res" >&6; }
31493
31494 fi
31495 as_val=`eval 'as_val=${'$as_ac_Header'}
31496                  $as_echo "$as_val"'`
31497    if test "x$as_val" = x""yes; then
31498   cat >>confdefs.h <<_ACEOF
31499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31500 _ACEOF
31501
31502 fi
31503
31504 done
31505
31506   fi
31507   if test "$ac_cv_header_winsock2_h" = yes; then
31508     HAVE_WINSOCK2_H=1
31509     UNISTD_H_HAVE_WINSOCK2_H=1
31510     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
31511   else
31512     HAVE_WINSOCK2_H=0
31513   fi
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533   for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
31534     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31535     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31536 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31537 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31538   $as_echo_n "(cached) " >&6
31539 else
31540   cat >conftest.$ac_ext <<_ACEOF
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546
31547 /* Some systems require prerequisite headers.  */
31548 #include <sys/types.h>
31549 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
31550 # include <sys/time.h>
31551 #endif
31552 #include <sys/select.h>
31553
31554 int
31555 main ()
31556 {
31557 #undef $gl_func
31558   (void) $gl_func;
31559   ;
31560   return 0;
31561 }
31562 _ACEOF
31563 rm -f conftest.$ac_objext
31564 if { (ac_try="$ac_compile"
31565 case "(($ac_try" in
31566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567   *) ac_try_echo=$ac_try;;
31568 esac
31569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31570 $as_echo "$ac_try_echo") >&5
31571   (eval "$ac_compile") 2>conftest.er1
31572   ac_status=$?
31573   grep -v '^ *+' conftest.er1 >conftest.err
31574   rm -f conftest.er1
31575   cat conftest.err >&5
31576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); } && {
31578          test -z "$ac_c_werror_flag" ||
31579          test ! -s conftest.err
31580        } && test -s conftest.$ac_objext; then
31581   eval "$as_gl_Symbol=yes"
31582 else
31583   $as_echo "$as_me: failed program was:" >&5
31584 sed 's/^/| /' conftest.$ac_ext >&5
31585
31586         eval "$as_gl_Symbol=no"
31587 fi
31588
31589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31590 fi
31591 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31592                  $as_echo "$as_val"'`
31593                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31594 $as_echo "$ac_res" >&6; }
31595      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31596                  $as_echo "$as_val"'`
31597    if test "x$as_val" = x""yes; then
31598   cat >>confdefs.h <<_ACEOF
31599 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31600 _ACEOF
31601
31602                      eval ac_cv_have_decl_$gl_func=yes
31603 fi
31604
31605       done
31606
31607
31608   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31609 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31610 if test -z "$MKDIR_P"; then
31611   if test "${ac_cv_path_mkdir+set}" = set; then
31612   $as_echo_n "(cached) " >&6
31613 else
31614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31615 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31616 do
31617   IFS=$as_save_IFS
31618   test -z "$as_dir" && as_dir=.
31619   for ac_prog in mkdir gmkdir; do
31620          for ac_exec_ext in '' $ac_executable_extensions; do
31621            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31622            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31623              'mkdir (GNU coreutils) '* | \
31624              'mkdir (coreutils) '* | \
31625              'mkdir (fileutils) '4.1*)
31626                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31627                break 3;;
31628            esac
31629          done
31630        done
31631 done
31632 IFS=$as_save_IFS
31633
31634 fi
31635
31636   if test "${ac_cv_path_mkdir+set}" = set; then
31637     MKDIR_P="$ac_cv_path_mkdir -p"
31638   else
31639     # As a last resort, use the slow shell script.  Don't cache a
31640     # value for MKDIR_P within a source directory, because that will
31641     # break other packages using the cache if that directory is
31642     # removed, or if the value is a relative name.
31643     test -d ./--version && rmdir ./--version
31644     MKDIR_P="$ac_install_sh -d"
31645   fi
31646 fi
31647 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31648 $as_echo "$MKDIR_P" >&6; }
31649
31650
31651   # Code from module sys_stat:
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663   :
31664
31665
31666
31667
31668
31669
31670
31671      if test $gl_cv_have_include_next = yes; then
31672        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31673      else
31674        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31675 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
31676 if test "${gl_cv_next_sys_stat_h+set}" = set; then
31677   $as_echo_n "(cached) " >&6
31678 else
31679
31680           if test $ac_cv_header_sys_stat_h = yes; then
31681             cat >conftest.$ac_ext <<_ACEOF
31682 /* confdefs.h.  */
31683 _ACEOF
31684 cat confdefs.h >>conftest.$ac_ext
31685 cat >>conftest.$ac_ext <<_ACEOF
31686 /* end confdefs.h.  */
31687 #include <sys/stat.h>
31688
31689 _ACEOF
31690                                                                                                 case "$host_os" in
31691               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31692               *)    gl_absname_cpp="$ac_cpp" ;;
31693             esac
31694                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31695                sed -n '\#/sys/stat.h#{
31696                  s#.*"\(.*/sys/stat.h\)".*#\1#
31697                  s#^/[^/]#//&#
31698                  p
31699                  q
31700                }'`'"'
31701           else
31702             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31703           fi
31704
31705 fi
31706 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
31707 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
31708      fi
31709      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31710
31711      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31712        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31713        gl_next_as_first_directive='<'sys/stat.h'>'
31714      else
31715        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31716        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
31717      fi
31718      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
31719
31720
31721
31722
31723       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
31724 $as_echo_n "checking for nlink_t... " >&6; }
31725 if test "${ac_cv_type_nlink_t+set}" = set; then
31726   $as_echo_n "(cached) " >&6
31727 else
31728   ac_cv_type_nlink_t=no
31729 cat >conftest.$ac_ext <<_ACEOF
31730 /* confdefs.h.  */
31731 _ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h.  */
31735 #include <sys/types.h>
31736      #include <sys/stat.h>
31737
31738 int
31739 main ()
31740 {
31741 if (sizeof (nlink_t))
31742        return 0;
31743   ;
31744   return 0;
31745 }
31746 _ACEOF
31747 rm -f conftest.$ac_objext
31748 if { (ac_try="$ac_compile"
31749 case "(($ac_try" in
31750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31751   *) ac_try_echo=$ac_try;;
31752 esac
31753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31754 $as_echo "$ac_try_echo") >&5
31755   (eval "$ac_compile") 2>conftest.er1
31756   ac_status=$?
31757   grep -v '^ *+' conftest.er1 >conftest.err
31758   rm -f conftest.er1
31759   cat conftest.err >&5
31760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761   (exit $ac_status); } && {
31762          test -z "$ac_c_werror_flag" ||
31763          test ! -s conftest.err
31764        } && test -s conftest.$ac_objext; then
31765   cat >conftest.$ac_ext <<_ACEOF
31766 /* confdefs.h.  */
31767 _ACEOF
31768 cat confdefs.h >>conftest.$ac_ext
31769 cat >>conftest.$ac_ext <<_ACEOF
31770 /* end confdefs.h.  */
31771 #include <sys/types.h>
31772      #include <sys/stat.h>
31773
31774 int
31775 main ()
31776 {
31777 if (sizeof ((nlink_t)))
31778           return 0;
31779   ;
31780   return 0;
31781 }
31782 _ACEOF
31783 rm -f conftest.$ac_objext
31784 if { (ac_try="$ac_compile"
31785 case "(($ac_try" in
31786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787   *) ac_try_echo=$ac_try;;
31788 esac
31789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31790 $as_echo "$ac_try_echo") >&5
31791   (eval "$ac_compile") 2>conftest.er1
31792   ac_status=$?
31793   grep -v '^ *+' conftest.er1 >conftest.err
31794   rm -f conftest.er1
31795   cat conftest.err >&5
31796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); } && {
31798          test -z "$ac_c_werror_flag" ||
31799          test ! -s conftest.err
31800        } && test -s conftest.$ac_objext; then
31801   :
31802 else
31803   $as_echo "$as_me: failed program was:" >&5
31804 sed 's/^/| /' conftest.$ac_ext >&5
31805
31806         ac_cv_type_nlink_t=yes
31807 fi
31808
31809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31810 else
31811   $as_echo "$as_me: failed program was:" >&5
31812 sed 's/^/| /' conftest.$ac_ext >&5
31813
31814
31815 fi
31816
31817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31818 fi
31819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
31820 $as_echo "$ac_cv_type_nlink_t" >&6; }
31821 if test "x$ac_cv_type_nlink_t" = x""yes; then
31822   :
31823 else
31824
31825 cat >>confdefs.h <<\_ACEOF
31826 #define nlink_t int
31827 _ACEOF
31828
31829 fi
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845   for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
31846     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31847     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31848 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31849 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31850   $as_echo_n "(cached) " >&6
31851 else
31852   cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858 #include <sys/stat.h>
31859
31860 int
31861 main ()
31862 {
31863 #undef $gl_func
31864   (void) $gl_func;
31865   ;
31866   return 0;
31867 }
31868 _ACEOF
31869 rm -f conftest.$ac_objext
31870 if { (ac_try="$ac_compile"
31871 case "(($ac_try" in
31872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873   *) ac_try_echo=$ac_try;;
31874 esac
31875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31876 $as_echo "$ac_try_echo") >&5
31877   (eval "$ac_compile") 2>conftest.er1
31878   ac_status=$?
31879   grep -v '^ *+' conftest.er1 >conftest.err
31880   rm -f conftest.er1
31881   cat conftest.err >&5
31882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883   (exit $ac_status); } && {
31884          test -z "$ac_c_werror_flag" ||
31885          test ! -s conftest.err
31886        } && test -s conftest.$ac_objext; then
31887   eval "$as_gl_Symbol=yes"
31888 else
31889   $as_echo "$as_me: failed program was:" >&5
31890 sed 's/^/| /' conftest.$ac_ext >&5
31891
31892         eval "$as_gl_Symbol=no"
31893 fi
31894
31895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31896 fi
31897 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31898                  $as_echo "$as_val"'`
31899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31900 $as_echo "$ac_res" >&6; }
31901      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31902                  $as_echo "$as_val"'`
31903    if test "x$as_val" = x""yes; then
31904   cat >>confdefs.h <<_ACEOF
31905 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31906 _ACEOF
31907
31908                      eval ac_cv_have_decl_$gl_func=yes
31909 fi
31910
31911       done
31912
31913
31914   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31915 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31916 if test -z "$MKDIR_P"; then
31917   if test "${ac_cv_path_mkdir+set}" = set; then
31918   $as_echo_n "(cached) " >&6
31919 else
31920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31921 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31922 do
31923   IFS=$as_save_IFS
31924   test -z "$as_dir" && as_dir=.
31925   for ac_prog in mkdir gmkdir; do
31926          for ac_exec_ext in '' $ac_executable_extensions; do
31927            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31928            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31929              'mkdir (GNU coreutils) '* | \
31930              'mkdir (coreutils) '* | \
31931              'mkdir (fileutils) '4.1*)
31932                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31933                break 3;;
31934            esac
31935          done
31936        done
31937 done
31938 IFS=$as_save_IFS
31939
31940 fi
31941
31942   if test "${ac_cv_path_mkdir+set}" = set; then
31943     MKDIR_P="$ac_cv_path_mkdir -p"
31944   else
31945     # As a last resort, use the slow shell script.  Don't cache a
31946     # value for MKDIR_P within a source directory, because that will
31947     # break other packages using the cache if that directory is
31948     # removed, or if the value is a relative name.
31949     test -d ./--version && rmdir ./--version
31950     MKDIR_P="$ac_install_sh -d"
31951   fi
31952 fi
31953 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31954 $as_echo "$MKDIR_P" >&6; }
31955
31956
31957   # Code from module sys_time:
31958
31959
31960
31961   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31963 if test -z "$MKDIR_P"; then
31964   if test "${ac_cv_path_mkdir+set}" = set; then
31965   $as_echo_n "(cached) " >&6
31966 else
31967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31969 do
31970   IFS=$as_save_IFS
31971   test -z "$as_dir" && as_dir=.
31972   for ac_prog in mkdir gmkdir; do
31973          for ac_exec_ext in '' $ac_executable_extensions; do
31974            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31975            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31976              'mkdir (GNU coreutils) '* | \
31977              'mkdir (coreutils) '* | \
31978              'mkdir (fileutils) '4.1*)
31979                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31980                break 3;;
31981            esac
31982          done
31983        done
31984 done
31985 IFS=$as_save_IFS
31986
31987 fi
31988
31989   if test "${ac_cv_path_mkdir+set}" = set; then
31990     MKDIR_P="$ac_cv_path_mkdir -p"
31991   else
31992     # As a last resort, use the slow shell script.  Don't cache a
31993     # value for MKDIR_P within a source directory, because that will
31994     # break other packages using the cache if that directory is
31995     # removed, or if the value is a relative name.
31996     test -d ./--version && rmdir ./--version
31997     MKDIR_P="$ac_install_sh -d"
31998   fi
31999 fi
32000 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32001 $as_echo "$MKDIR_P" >&6; }
32002
32003
32004   # Code from module tempname:
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
32017
32018
32019   :
32020
32021
32022   # Code from module threadlib:
32023
32024
32025
32026
32027   # Code from module time:
32028
32029
32030
32031   # Code from module unistd:
32032
32033
32034
32035
32036
32037
32038
32039
32040   :
32041
32042
32043
32044
32045
32046
32047
32048      if test $gl_cv_have_include_next = yes; then
32049        gl_cv_next_unistd_h='<'unistd.h'>'
32050      else
32051        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
32052 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
32053 if test "${gl_cv_next_unistd_h+set}" = set; then
32054   $as_echo_n "(cached) " >&6
32055 else
32056
32057           if test $ac_cv_header_unistd_h = yes; then
32058             cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h.  */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h.  */
32064 #include <unistd.h>
32065
32066 _ACEOF
32067                                                                                                 case "$host_os" in
32068               aix*) gl_absname_cpp="$ac_cpp -C" ;;
32069               *)    gl_absname_cpp="$ac_cpp" ;;
32070             esac
32071                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32072                sed -n '\#/unistd.h#{
32073                  s#.*"\(.*/unistd.h\)".*#\1#
32074                  s#^/[^/]#//&#
32075                  p
32076                  q
32077                }'`'"'
32078           else
32079             gl_cv_next_unistd_h='<'unistd.h'>'
32080           fi
32081
32082 fi
32083 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
32084 $as_echo "$gl_cv_next_unistd_h" >&6; }
32085      fi
32086      NEXT_UNISTD_H=$gl_cv_next_unistd_h
32087
32088      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32089        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32090        gl_next_as_first_directive='<'unistd.h'>'
32091      else
32092        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32093        gl_next_as_first_directive=$gl_cv_next_unistd_h
32094      fi
32095      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
32096
32097
32098
32099
32100
32101   :
32102
32103
32104
32105
32106
32107   if test $ac_cv_header_unistd_h = yes; then
32108     HAVE_UNISTD_H=1
32109   else
32110     HAVE_UNISTD_H=0
32111   fi
32112
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   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
32154     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32155     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32156 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32157 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32158   $as_echo_n "(cached) " >&6
32159 else
32160   cat >conftest.$ac_ext <<_ACEOF
32161 /* confdefs.h.  */
32162 _ACEOF
32163 cat confdefs.h >>conftest.$ac_ext
32164 cat >>conftest.$ac_ext <<_ACEOF
32165 /* end confdefs.h.  */
32166 #include <unistd.h>
32167 /* Some systems declare various items in the wrong headers.  */
32168 #ifndef __GLIBC__
32169 # include <fcntl.h>
32170 # include <stdio.h>
32171 # include <stdlib.h>
32172 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
32173 #  include <io.h>
32174 # endif
32175 #endif
32176
32177 int
32178 main ()
32179 {
32180 #undef $gl_func
32181   (void) $gl_func;
32182   ;
32183   return 0;
32184 }
32185 _ACEOF
32186 rm -f conftest.$ac_objext
32187 if { (ac_try="$ac_compile"
32188 case "(($ac_try" in
32189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190   *) ac_try_echo=$ac_try;;
32191 esac
32192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32193 $as_echo "$ac_try_echo") >&5
32194   (eval "$ac_compile") 2>conftest.er1
32195   ac_status=$?
32196   grep -v '^ *+' conftest.er1 >conftest.err
32197   rm -f conftest.er1
32198   cat conftest.err >&5
32199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200   (exit $ac_status); } && {
32201          test -z "$ac_c_werror_flag" ||
32202          test ! -s conftest.err
32203        } && test -s conftest.$ac_objext; then
32204   eval "$as_gl_Symbol=yes"
32205 else
32206   $as_echo "$as_me: failed program was:" >&5
32207 sed 's/^/| /' conftest.$ac_ext >&5
32208
32209         eval "$as_gl_Symbol=no"
32210 fi
32211
32212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 fi
32214 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32215                  $as_echo "$as_val"'`
32216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32217 $as_echo "$ac_res" >&6; }
32218      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32219                  $as_echo "$as_val"'`
32220    if test "x$as_val" = x""yes; then
32221   cat >>confdefs.h <<_ACEOF
32222 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32223 _ACEOF
32224
32225                      eval ac_cv_have_decl_$gl_func=yes
32226 fi
32227
32228       done
32229
32230
32231   # Code from module vasnprintf:
32232
32233
32234   :
32235
32236
32237
32238
32239
32240   if test $ac_cv_func_vasnprintf = no; then
32241
32242
32243   :
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
32288
32289   if test $ac_cv_func_vasnprintf = yes; then
32290
32291 cat >>confdefs.h <<\_ACEOF
32292 #define REPLACE_VASNPRINTF 1
32293 _ACEOF
32294
32295   fi
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32307 $as_echo_n "checking for ptrdiff_t... " >&6; }
32308 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32309   $as_echo_n "(cached) " >&6
32310 else
32311   ac_cv_type_ptrdiff_t=no
32312 cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h.  */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h.  */
32318 $ac_includes_default
32319 int
32320 main ()
32321 {
32322 if (sizeof (ptrdiff_t))
32323        return 0;
32324   ;
32325   return 0;
32326 }
32327 _ACEOF
32328 rm -f conftest.$ac_objext
32329 if { (ac_try="$ac_compile"
32330 case "(($ac_try" in
32331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32332   *) ac_try_echo=$ac_try;;
32333 esac
32334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32335 $as_echo "$ac_try_echo") >&5
32336   (eval "$ac_compile") 2>conftest.er1
32337   ac_status=$?
32338   grep -v '^ *+' conftest.er1 >conftest.err
32339   rm -f conftest.er1
32340   cat conftest.err >&5
32341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342   (exit $ac_status); } && {
32343          test -z "$ac_c_werror_flag" ||
32344          test ! -s conftest.err
32345        } && test -s conftest.$ac_objext; then
32346   cat >conftest.$ac_ext <<_ACEOF
32347 /* confdefs.h.  */
32348 _ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h.  */
32352 $ac_includes_default
32353 int
32354 main ()
32355 {
32356 if (sizeof ((ptrdiff_t)))
32357           return 0;
32358   ;
32359   return 0;
32360 }
32361 _ACEOF
32362 rm -f conftest.$ac_objext
32363 if { (ac_try="$ac_compile"
32364 case "(($ac_try" in
32365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366   *) ac_try_echo=$ac_try;;
32367 esac
32368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32369 $as_echo "$ac_try_echo") >&5
32370   (eval "$ac_compile") 2>conftest.er1
32371   ac_status=$?
32372   grep -v '^ *+' conftest.er1 >conftest.err
32373   rm -f conftest.er1
32374   cat conftest.err >&5
32375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376   (exit $ac_status); } && {
32377          test -z "$ac_c_werror_flag" ||
32378          test ! -s conftest.err
32379        } && test -s conftest.$ac_objext; then
32380   :
32381 else
32382   $as_echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32384
32385         ac_cv_type_ptrdiff_t=yes
32386 fi
32387
32388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32389 else
32390   $as_echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32392
32393
32394 fi
32395
32396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32397 fi
32398 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32399 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
32400 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
32401   :
32402 else
32403
32404 cat >>confdefs.h <<\_ACEOF
32405 #define ptrdiff_t long
32406 _ACEOF
32407
32408
32409 fi
32410
32411
32412
32413
32414
32415
32416
32417   fi
32418
32419   # Code from module verify:
32420   # Code from module warn-on-use:
32421   # Code from module wchar:
32422
32423
32424
32425
32426   :
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436   :
32437
32438
32439
32440
32441
32442
32443
32444      if test $gl_cv_have_include_next = yes; then
32445        gl_cv_next_wchar_h='<'wchar.h'>'
32446      else
32447        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32448 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
32449 if test "${gl_cv_next_wchar_h+set}" = set; then
32450   $as_echo_n "(cached) " >&6
32451 else
32452
32453           if test $ac_cv_header_wchar_h = yes; then
32454             cat >conftest.$ac_ext <<_ACEOF
32455 /* confdefs.h.  */
32456 _ACEOF
32457 cat confdefs.h >>conftest.$ac_ext
32458 cat >>conftest.$ac_ext <<_ACEOF
32459 /* end confdefs.h.  */
32460 #include <wchar.h>
32461
32462 _ACEOF
32463                                                                                                 case "$host_os" in
32464               aix*) gl_absname_cpp="$ac_cpp -C" ;;
32465               *)    gl_absname_cpp="$ac_cpp" ;;
32466             esac
32467                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32468                sed -n '\#/wchar.h#{
32469                  s#.*"\(.*/wchar.h\)".*#\1#
32470                  s#^/[^/]#//&#
32471                  p
32472                  q
32473                }'`'"'
32474           else
32475             gl_cv_next_wchar_h='<'wchar.h'>'
32476           fi
32477
32478 fi
32479 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
32480 $as_echo "$gl_cv_next_wchar_h" >&6; }
32481      fi
32482      NEXT_WCHAR_H=$gl_cv_next_wchar_h
32483
32484      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32485        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32486        gl_next_as_first_directive='<'wchar.h'>'
32487      else
32488        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32489        gl_next_as_first_directive=$gl_cv_next_wchar_h
32490      fi
32491      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
32492
32493
32494
32495   if test $ac_cv_header_wchar_h = yes; then
32496     HAVE_WCHAR_H=1
32497   else
32498     HAVE_WCHAR_H=0
32499   fi
32500
32501
32502
32503   if test $gt_cv_c_wint_t = yes; then
32504     HAVE_WINT_T=1
32505   else
32506     HAVE_WINT_T=0
32507   fi
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522   for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
32523     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32524     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32525 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32526 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32527   $as_echo_n "(cached) " >&6
32528 else
32529   cat >conftest.$ac_ext <<_ACEOF
32530 /* confdefs.h.  */
32531 _ACEOF
32532 cat confdefs.h >>conftest.$ac_ext
32533 cat >>conftest.$ac_ext <<_ACEOF
32534 /* end confdefs.h.  */
32535
32536 /* Some systems require additional headers.  */
32537 #ifndef __GLIBC__
32538 # include <stddef.h>
32539 # include <stdio.h>
32540 # include <time.h>
32541 #endif
32542 #include <wchar.h>
32543
32544 int
32545 main ()
32546 {
32547 #undef $gl_func
32548   (void) $gl_func;
32549   ;
32550   return 0;
32551 }
32552 _ACEOF
32553 rm -f conftest.$ac_objext
32554 if { (ac_try="$ac_compile"
32555 case "(($ac_try" in
32556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557   *) ac_try_echo=$ac_try;;
32558 esac
32559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32560 $as_echo "$ac_try_echo") >&5
32561   (eval "$ac_compile") 2>conftest.er1
32562   ac_status=$?
32563   grep -v '^ *+' conftest.er1 >conftest.err
32564   rm -f conftest.er1
32565   cat conftest.err >&5
32566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567   (exit $ac_status); } && {
32568          test -z "$ac_c_werror_flag" ||
32569          test ! -s conftest.err
32570        } && test -s conftest.$ac_objext; then
32571   eval "$as_gl_Symbol=yes"
32572 else
32573   $as_echo "$as_me: failed program was:" >&5
32574 sed 's/^/| /' conftest.$ac_ext >&5
32575
32576         eval "$as_gl_Symbol=no"
32577 fi
32578
32579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32580 fi
32581 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32582                  $as_echo "$as_val"'`
32583                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32584 $as_echo "$ac_res" >&6; }
32585      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32586                  $as_echo "$as_val"'`
32587    if test "x$as_val" = x""yes; then
32588   cat >>confdefs.h <<_ACEOF
32589 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32590 _ACEOF
32591
32592                      eval ac_cv_have_decl_$gl_func=yes
32593 fi
32594
32595       done
32596
32597
32598   # Code from module wcrtomb:
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608   :
32609
32610
32611
32612
32613
32614
32615   :
32616
32617
32618
32619
32620
32621   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32622
32623
32624
32625      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
32626 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32627 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
32628   $as_echo_n "(cached) " >&6
32629 else
32630
32631                   case "$host_os" in
32632                      # Guess no on AIX and OSF/1.
32633         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32634                      # Guess yes otherwise.
32635         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32636       esac
32637       if test $LOCALE_JA != none; then
32638         if test "$cross_compiling" = yes; then
32639   :
32640 else
32641   cat >conftest.$ac_ext <<_ACEOF
32642 /* confdefs.h.  */
32643 _ACEOF
32644 cat confdefs.h >>conftest.$ac_ext
32645 cat >>conftest.$ac_ext <<_ACEOF
32646 /* end confdefs.h.  */
32647
32648 #include <locale.h>
32649 #include <string.h>
32650 #include <wchar.h>
32651 int main ()
32652 {
32653   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32654     {
32655       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32656       mbstate_t state;
32657       wchar_t wc;
32658
32659       memset (&state, '\0', sizeof (mbstate_t));
32660       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32661         if (mbsinit (&state))
32662           return 1;
32663     }
32664   return 0;
32665 }
32666 _ACEOF
32667 rm -f conftest$ac_exeext
32668 if { (ac_try="$ac_link"
32669 case "(($ac_try" in
32670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671   *) ac_try_echo=$ac_try;;
32672 esac
32673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32674 $as_echo "$ac_try_echo") >&5
32675   (eval "$ac_link") 2>&5
32676   ac_status=$?
32677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32679   { (case "(($ac_try" in
32680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681   *) ac_try_echo=$ac_try;;
32682 esac
32683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32684 $as_echo "$ac_try_echo") >&5
32685   (eval "$ac_try") 2>&5
32686   ac_status=$?
32687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); }; }; then
32689   gl_cv_func_mbrtowc_incomplete_state=yes
32690 else
32691   $as_echo "$as_me: program exited with status $ac_status" >&5
32692 $as_echo "$as_me: failed program was:" >&5
32693 sed 's/^/| /' conftest.$ac_ext >&5
32694
32695 ( exit $ac_status )
32696 gl_cv_func_mbrtowc_incomplete_state=no
32697 fi
32698 rm -rf conftest.dSYM
32699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32700 fi
32701
32702
32703       fi
32704
32705 fi
32706 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32707 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32708
32709
32710
32711
32712      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32713 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32714 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32715   $as_echo_n "(cached) " >&6
32716 else
32717
32718                   case "$host_os" in
32719                     # Guess no on Solaris 8.
32720         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32721                     # Guess yes otherwise.
32722         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32723       esac
32724       if test $LOCALE_ZH_CN != none; then
32725         if test "$cross_compiling" = yes; then
32726   :
32727 else
32728   cat >conftest.$ac_ext <<_ACEOF
32729 /* confdefs.h.  */
32730 _ACEOF
32731 cat confdefs.h >>conftest.$ac_ext
32732 cat >>conftest.$ac_ext <<_ACEOF
32733 /* end confdefs.h.  */
32734
32735 #include <locale.h>
32736 #include <stdlib.h>
32737 #include <string.h>
32738 #include <wchar.h>
32739 int main ()
32740 {
32741   /* This fails on Solaris 8:
32742      mbrtowc returns 2, and sets wc to 0x00F0.
32743      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
32744   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32745     {
32746       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32747       mbstate_t state;
32748       wchar_t wc;
32749
32750       memset (&state, '\0', sizeof (mbstate_t));
32751       if (mbrtowc (&wc, input + 3, 6, &state) != 4
32752           && mbtowc (&wc, input + 3, 6) == 4)
32753         return 1;
32754     }
32755   return 0;
32756 }
32757 _ACEOF
32758 rm -f conftest$ac_exeext
32759 if { (ac_try="$ac_link"
32760 case "(($ac_try" in
32761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762   *) ac_try_echo=$ac_try;;
32763 esac
32764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32765 $as_echo "$ac_try_echo") >&5
32766   (eval "$ac_link") 2>&5
32767   ac_status=$?
32768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32770   { (case "(($ac_try" in
32771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772   *) ac_try_echo=$ac_try;;
32773 esac
32774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32775 $as_echo "$ac_try_echo") >&5
32776   (eval "$ac_try") 2>&5
32777   ac_status=$?
32778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); }; }; then
32780   gl_cv_func_mbrtowc_sanitycheck=yes
32781 else
32782   $as_echo "$as_me: program exited with status $ac_status" >&5
32783 $as_echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786 ( exit $ac_status )
32787 gl_cv_func_mbrtowc_sanitycheck=no
32788 fi
32789 rm -rf conftest.dSYM
32790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32791 fi
32792
32793
32794       fi
32795
32796 fi
32797 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32798 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32799
32800     REPLACE_MBSTATE_T=0
32801     case "$gl_cv_func_mbrtowc_incomplete_state" in
32802       *yes) ;;
32803       *) REPLACE_MBSTATE_T=1 ;;
32804     esac
32805     case "$gl_cv_func_mbrtowc_sanitycheck" in
32806       *yes) ;;
32807       *) REPLACE_MBSTATE_T=1 ;;
32808     esac
32809   else
32810     REPLACE_MBSTATE_T=1
32811   fi
32812   if test $REPLACE_MBSTATE_T = 1; then
32813
32814     :
32815
32816   fi
32817
32818
32819
32820   :
32821
32822
32823
32824
32825
32826   if test $ac_cv_func_wcrtomb = no; then
32827     HAVE_WCRTOMB=0
32828   else
32829     if test $REPLACE_MBSTATE_T = 1; then
32830       REPLACE_WCRTOMB=1
32831     else
32832
32833
32834
32835
32836
32837              { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
32838 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
32839 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
32840   $as_echo_n "(cached) " >&6
32841 else
32842
32843                               case "$host_os" in
32844                                      # Guess no on AIX 4, OSF/1 and Solaris.
32845             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
32846                                      # Guess yes otherwise.
32847             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
32848           esac
32849           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
32850             if test "$cross_compiling" = yes; then
32851   :
32852 else
32853   cat >conftest.$ac_ext <<_ACEOF
32854 /* confdefs.h.  */
32855 _ACEOF
32856 cat confdefs.h >>conftest.$ac_ext
32857 cat >>conftest.$ac_ext <<_ACEOF
32858 /* end confdefs.h.  */
32859
32860 #include <locale.h>
32861 #include <stdio.h>
32862 #include <string.h>
32863 #include <wchar.h>
32864 int main ()
32865 {
32866   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
32867     {
32868       if (wcrtomb (NULL, 0, NULL) != 1)
32869         return 1;
32870     }
32871   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
32872     {
32873       if (wcrtomb (NULL, 0, NULL) != 1)
32874         return 1;
32875     }
32876   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32877     {
32878       if (wcrtomb (NULL, 0, NULL) != 1)
32879         return 1;
32880     }
32881   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32882     {
32883       if (wcrtomb (NULL, 0, NULL) != 1)
32884         return 1;
32885     }
32886   return 0;
32887 }
32888 _ACEOF
32889 rm -f conftest$ac_exeext
32890 if { (ac_try="$ac_link"
32891 case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32896 $as_echo "$ac_try_echo") >&5
32897   (eval "$ac_link") 2>&5
32898   ac_status=$?
32899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32901   { (case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32906 $as_echo "$ac_try_echo") >&5
32907   (eval "$ac_try") 2>&5
32908   ac_status=$?
32909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910   (exit $ac_status); }; }; then
32911   gl_cv_func_wcrtomb_retval=yes
32912 else
32913   $as_echo "$as_me: program exited with status $ac_status" >&5
32914 $as_echo "$as_me: failed program was:" >&5
32915 sed 's/^/| /' conftest.$ac_ext >&5
32916
32917 ( exit $ac_status )
32918 gl_cv_func_wcrtomb_retval=no
32919 fi
32920 rm -rf conftest.dSYM
32921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32922 fi
32923
32924
32925           fi
32926
32927 fi
32928 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
32929 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
32930       case "$gl_cv_func_wcrtomb_retval" in
32931         *yes) ;;
32932         *) REPLACE_WCRTOMB=1 ;;
32933       esac
32934     fi
32935   fi
32936   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
32937
32938     :
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
32949
32950
32951   :
32952
32953   fi
32954
32955
32956
32957
32958   GNULIB_WCRTOMB=1
32959
32960
32961
32962 cat >>confdefs.h <<\_ACEOF
32963 #define GNULIB_TEST_WCRTOMB 1
32964 _ACEOF
32965
32966
32967
32968   # Code from module wctype:
32969
32970
32971
32972
32973   :
32974
32975
32976
32977
32978
32979   if test $ac_cv_func_iswcntrl = yes; then
32980     HAVE_ISWCNTRL=1
32981   else
32982     HAVE_ISWCNTRL=0
32983   fi
32984
32985
32986   :
32987
32988
32989
32990
32991
32992
32993   :
32994
32995
32996
32997
32998
32999   if test $ac_cv_func_iswblank = yes; then
33000     HAVE_ISWBLANK=1
33001     REPLACE_ISWBLANK=0
33002   else
33003     HAVE_ISWBLANK=0
33004     if test $ac_cv_have_decl_iswblank = yes; then
33005       REPLACE_ISWBLANK=1
33006     else
33007       REPLACE_ISWBLANK=0
33008     fi
33009   fi
33010
33011
33012
33013
33014   :
33015
33016
33017
33018
33019
33020
33021
33022
33023   if test $gt_cv_c_wint_t = yes; then
33024     HAVE_WINT_T=1
33025   else
33026     HAVE_WINT_T=0
33027   fi
33028
33029
33030   if test $ac_cv_header_wctype_h = yes; then
33031     if test $ac_cv_func_iswcntrl = yes; then
33032                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
33033 $as_echo_n "checking whether iswcntrl works... " >&6; }
33034 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
33035   $as_echo_n "(cached) " >&6
33036 else
33037
33038           if test "$cross_compiling" = yes; then
33039   cat >conftest.$ac_ext <<_ACEOF
33040 /* confdefs.h.  */
33041 _ACEOF
33042 cat confdefs.h >>conftest.$ac_ext
33043 cat >>conftest.$ac_ext <<_ACEOF
33044 /* end confdefs.h.  */
33045 #include <stdlib.h>
33046                           #if __GNU_LIBRARY__ == 1
33047                           Linux libc5 i18n is broken.
33048                           #endif
33049 int
33050 main ()
33051 {
33052
33053   ;
33054   return 0;
33055 }
33056 _ACEOF
33057 rm -f conftest.$ac_objext
33058 if { (ac_try="$ac_compile"
33059 case "(($ac_try" in
33060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061   *) ac_try_echo=$ac_try;;
33062 esac
33063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33064 $as_echo "$ac_try_echo") >&5
33065   (eval "$ac_compile") 2>conftest.er1
33066   ac_status=$?
33067   grep -v '^ *+' conftest.er1 >conftest.err
33068   rm -f conftest.er1
33069   cat conftest.err >&5
33070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071   (exit $ac_status); } && {
33072          test -z "$ac_c_werror_flag" ||
33073          test ! -s conftest.err
33074        } && test -s conftest.$ac_objext; then
33075   gl_cv_func_iswcntrl_works=yes
33076 else
33077   $as_echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33079
33080         gl_cv_func_iswcntrl_works=no
33081 fi
33082
33083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33084
33085 else
33086   cat >conftest.$ac_ext <<_ACEOF
33087 /* confdefs.h.  */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h.  */
33092
33093                             #include <stddef.h>
33094                             #include <stdio.h>
33095                             #include <time.h>
33096                             #include <wchar.h>
33097                             #include <wctype.h>
33098                             int main () { return iswprint ('x') == 0; }
33099 _ACEOF
33100 rm -f conftest$ac_exeext
33101 if { (ac_try="$ac_link"
33102 case "(($ac_try" in
33103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33104   *) ac_try_echo=$ac_try;;
33105 esac
33106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33107 $as_echo "$ac_try_echo") >&5
33108   (eval "$ac_link") 2>&5
33109   ac_status=$?
33110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33112   { (case "(($ac_try" in
33113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114   *) ac_try_echo=$ac_try;;
33115 esac
33116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33117 $as_echo "$ac_try_echo") >&5
33118   (eval "$ac_try") 2>&5
33119   ac_status=$?
33120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); }; }; then
33122   gl_cv_func_iswcntrl_works=yes
33123 else
33124   $as_echo "$as_me: program exited with status $ac_status" >&5
33125 $as_echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.$ac_ext >&5
33127
33128 ( exit $ac_status )
33129 gl_cv_func_iswcntrl_works=no
33130 fi
33131 rm -rf conftest.dSYM
33132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33133 fi
33134
33135
33136
33137 fi
33138 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
33139 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
33140     fi
33141
33142
33143
33144
33145   :
33146
33147
33148
33149
33150
33151
33152
33153      if test $gl_cv_have_include_next = yes; then
33154        gl_cv_next_wctype_h='<'wctype.h'>'
33155      else
33156        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
33157 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
33158 if test "${gl_cv_next_wctype_h+set}" = set; then
33159   $as_echo_n "(cached) " >&6
33160 else
33161
33162           if test $ac_cv_header_wctype_h = yes; then
33163             cat >conftest.$ac_ext <<_ACEOF
33164 /* confdefs.h.  */
33165 _ACEOF
33166 cat confdefs.h >>conftest.$ac_ext
33167 cat >>conftest.$ac_ext <<_ACEOF
33168 /* end confdefs.h.  */
33169 #include <wctype.h>
33170
33171 _ACEOF
33172                                                                                                 case "$host_os" in
33173               aix*) gl_absname_cpp="$ac_cpp -C" ;;
33174               *)    gl_absname_cpp="$ac_cpp" ;;
33175             esac
33176                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33177                sed -n '\#/wctype.h#{
33178                  s#.*"\(.*/wctype.h\)".*#\1#
33179                  s#^/[^/]#//&#
33180                  p
33181                  q
33182                }'`'"'
33183           else
33184             gl_cv_next_wctype_h='<'wctype.h'>'
33185           fi
33186
33187 fi
33188 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
33189 $as_echo "$gl_cv_next_wctype_h" >&6; }
33190      fi
33191      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
33192
33193      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33194        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33195        gl_next_as_first_directive='<'wctype.h'>'
33196      else
33197        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33198        gl_next_as_first_directive=$gl_cv_next_wctype_h
33199      fi
33200      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
33201
33202
33203
33204     HAVE_WCTYPE_H=1
33205   else
33206     HAVE_WCTYPE_H=0
33207   fi
33208
33209
33210   if test "$gl_cv_func_iswcntrl_works" = no; then
33211     REPLACE_ISWCNTRL=1
33212   else
33213     REPLACE_ISWCNTRL=0
33214   fi
33215
33216
33217   # Code from module write:
33218
33219
33220
33221
33222
33223
33224
33225   GNULIB_WRITE=1
33226
33227
33228
33229 cat >>confdefs.h <<\_ACEOF
33230 #define GNULIB_TEST_WRITE 1
33231 _ACEOF
33232
33233
33234
33235   # Code from module xsize:
33236
33237
33238
33239
33240 for ac_header in stdint.h
33241 do
33242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33244   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33245 $as_echo_n "checking for $ac_header... " >&6; }
33246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33247   $as_echo_n "(cached) " >&6
33248 fi
33249 ac_res=`eval 'as_val=${'$as_ac_Header'}
33250                  $as_echo "$as_val"'`
33251                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33252 $as_echo "$ac_res" >&6; }
33253 else
33254   # Is the header compilable?
33255 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33256 $as_echo_n "checking $ac_header usability... " >&6; }
33257 cat >conftest.$ac_ext <<_ACEOF
33258 /* confdefs.h.  */
33259 _ACEOF
33260 cat confdefs.h >>conftest.$ac_ext
33261 cat >>conftest.$ac_ext <<_ACEOF
33262 /* end confdefs.h.  */
33263 $ac_includes_default
33264 #include <$ac_header>
33265 _ACEOF
33266 rm -f conftest.$ac_objext
33267 if { (ac_try="$ac_compile"
33268 case "(($ac_try" in
33269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33270   *) ac_try_echo=$ac_try;;
33271 esac
33272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33273 $as_echo "$ac_try_echo") >&5
33274   (eval "$ac_compile") 2>conftest.er1
33275   ac_status=$?
33276   grep -v '^ *+' conftest.er1 >conftest.err
33277   rm -f conftest.er1
33278   cat conftest.err >&5
33279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); } && {
33281          test -z "$ac_c_werror_flag" ||
33282          test ! -s conftest.err
33283        } && test -s conftest.$ac_objext; then
33284   ac_header_compiler=yes
33285 else
33286   $as_echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33288
33289         ac_header_compiler=no
33290 fi
33291
33292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33294 $as_echo "$ac_header_compiler" >&6; }
33295
33296 # Is the header present?
33297 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33298 $as_echo_n "checking $ac_header presence... " >&6; }
33299 cat >conftest.$ac_ext <<_ACEOF
33300 /* confdefs.h.  */
33301 _ACEOF
33302 cat confdefs.h >>conftest.$ac_ext
33303 cat >>conftest.$ac_ext <<_ACEOF
33304 /* end confdefs.h.  */
33305 #include <$ac_header>
33306 _ACEOF
33307 if { (ac_try="$ac_cpp conftest.$ac_ext"
33308 case "(($ac_try" in
33309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310   *) ac_try_echo=$ac_try;;
33311 esac
33312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33313 $as_echo "$ac_try_echo") >&5
33314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33315   ac_status=$?
33316   grep -v '^ *+' conftest.er1 >conftest.err
33317   rm -f conftest.er1
33318   cat conftest.err >&5
33319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320   (exit $ac_status); } >/dev/null && {
33321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33322          test ! -s conftest.err
33323        }; then
33324   ac_header_preproc=yes
33325 else
33326   $as_echo "$as_me: failed program was:" >&5
33327 sed 's/^/| /' conftest.$ac_ext >&5
33328
33329   ac_header_preproc=no
33330 fi
33331
33332 rm -f conftest.err conftest.$ac_ext
33333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33334 $as_echo "$ac_header_preproc" >&6; }
33335
33336 # So?  What about this header?
33337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33338   yes:no: )
33339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33340 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33343     ac_header_preproc=yes
33344     ;;
33345   no:yes:* )
33346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33347 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33349 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33351 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33353 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33354     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33355 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33357 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33358
33359     ;;
33360 esac
33361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33362 $as_echo_n "checking for $ac_header... " >&6; }
33363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33364   $as_echo_n "(cached) " >&6
33365 else
33366   eval "$as_ac_Header=\$ac_header_preproc"
33367 fi
33368 ac_res=`eval 'as_val=${'$as_ac_Header'}
33369                  $as_echo "$as_val"'`
33370                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33371 $as_echo "$ac_res" >&6; }
33372
33373 fi
33374 as_val=`eval 'as_val=${'$as_ac_Header'}
33375                  $as_echo "$as_val"'`
33376    if test "x$as_val" = x""yes; then
33377   cat >>confdefs.h <<_ACEOF
33378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33379 _ACEOF
33380
33381 fi
33382
33383 done
33384
33385
33386   # End of code from modules
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396   gltests_libdeps=
33397   gltests_ltlibdeps=
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407   gl_source_base='tests'
33408   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
33409
33410   gl_module_indicator_condition=$gltests_WITNESS
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424     # support deprecated ./configure flags to set various compiler flags
33425
33426
33427 # Check whether --with-cflags was given.
33428 if test "${with_cflags+set}" = set; then
33429   withval=$with_cflags;
33430             case "$withval" in
33431             "" | y | ye | yes | n | no)
33432                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
33433 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
33434    { (exit 1); exit 1; }; }
33435                 ;;
33436             esac
33437
33438             CFLAGS="$withval"
33439
33440 fi
33441
33442
33443
33444 # Check whether --with-includes was given.
33445 if test "${with_includes+set}" = set; then
33446   withval=$with_includes;
33447             case "$withval" in
33448             "" | y | ye | yes | n | no)
33449                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
33450 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
33451    { (exit 1); exit 1; }; }
33452               ;;
33453             esac
33454
33455             for dir in $withval; do
33456                 if test -d "$dir"; then
33457                     CPPFLAGS="$CPPFLAGS -I$dir"
33458                 else
33459
33460     { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
33461 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
33462
33463
33464     cat <<AAW_EOF >>config.warnings
33465 Include directory $dir does not exist.
33466 AAW_EOF
33467
33468
33469                 fi
33470             done
33471
33472 fi
33473
33474
33475
33476 # Check whether --with-libraries was given.
33477 if test "${with_libraries+set}" = set; then
33478   withval=$with_libraries;
33479             case "$withval" in
33480             "" | y | ye | yes | n | no)
33481                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
33482 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
33483    { (exit 1); exit 1; }; }
33484               ;;
33485             esac
33486
33487             for dir in $withval; do
33488                 if test -d "$dir"; then
33489                     case "$host" in
33490                       *-solaris2*,*-netbsd*)
33491                             LDFLAGS="$LDFLAGS -R$dir"
33492                             ;;
33493                     esac
33494                     LDFLAGS="$LDFLAGS -L$dir"
33495                 else
33496
33497     { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
33498 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
33499
33500
33501     cat <<AAW_EOF >>config.warnings
33502 Library directory $dir does not exist.
33503 AAW_EOF
33504
33505
33506                 fi
33507             done
33508
33509 fi
33510
33511
33512     # Disable strict-aliasing optimizations
33513
33514     # test for -W'feature', then add the 'no-' version.
33515
33516
33517
33518     { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
33519 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
33520     if test "x$GCC" = "xyes"; then
33521                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33522            $CC -v --help 2>&1) |
33523          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
33524                 if test $? -eq 0; then
33525             found_warning=yes
33526             { $as_echo "$as_me:$LINENO: result: yes" >&5
33527 $as_echo "yes" >&6; }
33528         else
33529             found_warning=no
33530             { $as_echo "$as_me:$LINENO: result: no" >&5
33531 $as_echo "no" >&6; }
33532         fi
33533     else
33534         found_warning=no
33535         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33536 $as_echo "no (not using gcc)" >&6; }
33537     fi
33538
33539     if test x"$found_warning" = x"yes"; then
33540         CFLAGS="$CFLAGS -fno-strict-aliasing"
33541
33542         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
33543
33544
33545     else
33546         :
33547     fi
33548
33549
33550
33551     # Warn for just about everything
33552
33553
33554
33555
33556     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
33557 $as_echo_n "checking for gcc flag -Wall... " >&6; }
33558     if test "x$GCC" = "xyes"; then
33559                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33560            $CC -v --help 2>&1) |
33561          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
33562                 if test $? -eq 0; then
33563             found_warning=yes
33564             { $as_echo "$as_me:$LINENO: result: yes" >&5
33565 $as_echo "yes" >&6; }
33566         else
33567             found_warning=no
33568             { $as_echo "$as_me:$LINENO: result: no" >&5
33569 $as_echo "no" >&6; }
33570         fi
33571     else
33572         found_warning=no
33573         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33574 $as_echo "no (not using gcc)" >&6; }
33575     fi
33576
33577     if test x"$found_warning" = x"yes"; then
33578         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
33579
33580
33581     else
33582         :
33583     fi
33584
33585
33586
33587     # And add any extra warnings too
33588
33589
33590
33591     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
33592 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
33593     if test "x$GCC" = "xyes"; then
33594                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33595            $CC -v --help 2>&1) |
33596          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
33597                 if test $? -eq 0; then
33598             found_warning=yes
33599             { $as_echo "$as_me:$LINENO: result: yes" >&5
33600 $as_echo "yes" >&6; }
33601         else
33602             found_warning=no
33603             { $as_echo "$as_me:$LINENO: result: no" >&5
33604 $as_echo "no" >&6; }
33605         fi
33606     else
33607         found_warning=no
33608         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33609 $as_echo "no (not using gcc)" >&6; }
33610     fi
33611
33612     if test x"$found_warning" = x"yes"; then
33613         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
33614
33615
33616     else
33617
33618
33619
33620     { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
33621 $as_echo_n "checking for gcc flag -W... " >&6; }
33622     if test "x$GCC" = "xyes"; then
33623                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33624            $CC -v --help 2>&1) |
33625          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
33626                 if test $? -eq 0; then
33627             found_warning=yes
33628             { $as_echo "$as_me:$LINENO: result: yes" >&5
33629 $as_echo "yes" >&6; }
33630         else
33631             found_warning=no
33632             { $as_echo "$as_me:$LINENO: result: no" >&5
33633 $as_echo "no" >&6; }
33634         fi
33635     else
33636         found_warning=no
33637         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33638 $as_echo "no (not using gcc)" >&6; }
33639     fi
33640
33641     if test x"$found_warning" = x"yes"; then
33642         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
33643
33644
33645     else
33646         :
33647     fi
33648
33649
33650     fi
33651
33652
33653
33654 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
33655
33656
33657
33658 #
33659 # Configuration flags (--with-xxx and --enable-xxx)
33660 #
33661
33662
33663
33664 # Check whether --with-user was given.
33665 if test "${with_user+set}" = set; then
33666   withval=$with_user;
33667             case "$withval" in
33668                 "" | y | ye | yes | n | no)
33669                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
33670 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
33671    { (exit 1); exit 1; }; }
33672                   ;;
33673                 *)
33674                     CLIENT_LOGIN="$withval"
33675                   ;;
33676             esac
33677
33678 else
33679
33680
33681     { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
33682 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
33683
33684
33685     cat <<AAW_EOF >>config.warnings
33686 no user specified (--with-user) -- using 'amanda'
33687 AAW_EOF
33688
33689
33690             CLIENT_LOGIN=amanda
33691
33692
33693 fi
33694
33695
33696
33697 cat >>confdefs.h <<_ACEOF
33698 #define CLIENT_LOGIN "$CLIENT_LOGIN"
33699 _ACEOF
33700
33701
33702
33703
33704
33705 # Check whether --with-group was given.
33706 if test "${with_group+set}" = set; then
33707   withval=$with_group;
33708             case "$withval" in
33709                 "" | y | ye | yes | n | no)
33710                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
33711 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
33712    { (exit 1); exit 1; }; }
33713                   ;;
33714                 *) SETUID_GROUP="$withval"
33715                   ;;
33716             esac
33717
33718 else
33719
33720
33721     { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
33722 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
33723
33724
33725     cat <<AAW_EOF >>config.warnings
33726 no group specified (--with-group) -- using 'backup'
33727 AAW_EOF
33728
33729
33730             SETUID_GROUP=backup
33731
33732
33733 fi
33734
33735
33736
33737
33738
33739 # Check whether --with-dumperdir was given.
33740 if test "${with_dumperdir+set}" = set; then
33741   withval=$with_dumperdir;
33742
33743     { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
33744 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
33745
33746
33747     cat <<AAW_EOF >>config.warnings
33748 --with-dumperdir is no longer used.
33749 AAW_EOF
33750
33751
33752
33753
33754 fi
33755
33756
33757
33758
33759 # Check whether --with-configdir was given.
33760 if test "${with_configdir+set}" = set; then
33761   withval=$with_configdir;
33762             case "$withval" in
33763             "" | y | ye | yes | n | no)
33764                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
33765 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
33766    { (exit 1); exit 1; }; }
33767               ;;
33768             *) CONFIG_DIR="$withval"
33769               ;;
33770             esac
33771
33772 else
33773
33774             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
33775
33776
33777 fi
33778
33779
33780   prefix_NONE=
33781   exec_prefix_NONE=
33782   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33783   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33784   eval ac_define_dir="\"$CONFIG_DIR\""
33785   eval ac_define_dir="\"$ac_define_dir\""
33786   CONFIG_DIR="$ac_define_dir"
33787
33788
33789 cat >>confdefs.h <<_ACEOF
33790 #define CONFIG_DIR "$ac_define_dir"
33791 _ACEOF
33792
33793   test "$prefix_NONE" && prefix=NONE
33794   test "$exec_prefix_NONE" && exec_prefix=NONE
33795
33796
33797
33798
33799 # Check whether --with-indexdir was given.
33800 if test "${with_indexdir+set}" = set; then
33801   withval=$with_indexdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
33802 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
33803    { (exit 1); exit 1; }; }
33804
33805 fi
33806
33807
33808
33809
33810 # Check whether --with-dbdir was given.
33811 if test "${with_dbdir+set}" = set; then
33812   withval=$with_dbdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
33813 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
33814    { (exit 1); exit 1; }; }
33815
33816 fi
33817
33818
33819
33820
33821 # Check whether --with-logdir was given.
33822 if test "${with_logdir+set}" = set; then
33823   withval=$with_logdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
33824 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
33825    { (exit 1); exit 1; }; }
33826
33827 fi
33828
33829
33830
33831
33832 # Check whether --with-suffixes was given.
33833 if test "${with_suffixes+set}" = set; then
33834   withval=$with_suffixes;
33835
33836     { $as_echo "$as_me:$LINENO: WARNING: ** --with-suffixes is deprecated" >&5
33837 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
33838
33839
33840     cat <<AAW_EOF >>config.warnings
33841 ** --with-suffixes is deprecated
33842 AAW_EOF
33843
33844
33845
33846 fi
33847
33848
33849
33850
33851 # Check whether --with-gnutar-listdir was given.
33852 if test "${with_gnutar_listdir+set}" = set; then
33853   withval=$with_gnutar_listdir;
33854             case "$withval" in
33855                 n | no) GNUTAR_LISTDIR= ;;
33856                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
33857                 *) GNUTAR_LISTDIR="$withval" ;;
33858             esac
33859
33860 else
33861
33862             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
33863
33864
33865 fi
33866
33867
33868     # substitute $prefix, etc. if necessary
33869
33870   prefix_NONE=
33871   exec_prefix_NONE=
33872   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33873   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33874   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
33875   eval ac_define_dir="\"$ac_define_dir\""
33876   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
33877
33878
33879 cat >>confdefs.h <<_ACEOF
33880 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
33881 _ACEOF
33882
33883   test "$prefix_NONE" && prefix=NONE
33884   test "$exec_prefix_NONE" && exec_prefix=NONE
33885
33886
33887     # handle deprecated option
33888
33889 # Check whether --with-gnutar-listed-incremental was given.
33890 if test "${with_gnutar_listed_incremental+set}" = set; then
33891   withval=$with_gnutar_listed_incremental;
33892             { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
33893 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
33894    { (exit 1); exit 1; }; }
33895
33896
33897 fi
33898
33899
33900
33901
33902 # Check whether --with-tmpdir was given.
33903 if test "${with_tmpdir+set}" = set; then
33904   withval=$with_tmpdir;
33905             tmpdir="$withval"
33906
33907 else
33908
33909             tmpdir=yes
33910
33911
33912 fi
33913
33914
33915     case "$tmpdir" in
33916         n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
33917 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
33918    { (exit 1); exit 1; }; };;
33919         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
33920         *) AMANDA_TMPDIR="$tmpdir";;
33921     esac
33922
33923
33924   prefix_NONE=
33925   exec_prefix_NONE=
33926   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33927   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33928   eval ac_define_dir="\"$AMANDA_TMPDIR\""
33929   eval ac_define_dir="\"$ac_define_dir\""
33930   AMANDA_TMPDIR="$ac_define_dir"
33931
33932
33933 cat >>confdefs.h <<_ACEOF
33934 #define AMANDA_TMPDIR "$ac_define_dir"
33935 _ACEOF
33936
33937   test "$prefix_NONE" && prefix=NONE
33938   test "$exec_prefix_NONE" && exec_prefix=NONE
33939
33940
33941
33942
33943 # Check whether --with-force-uid was given.
33944 if test "${with_force_uid+set}" = set; then
33945   withval=$with_force_uid; CHECK_USERID="$withval"
33946 else
33947   : ${CHECK_USERID=yes}
33948
33949 fi
33950
33951     case "$CHECK_USERID" in
33952         y | ye | yes)
33953             CHECK_USERID=1
33954
33955 cat >>confdefs.h <<\_ACEOF
33956 #define CHECK_USERID 1
33957 _ACEOF
33958
33959           ;;
33960         n | no) :
33961             CHECK_USERID=
33962           ;;
33963         *)
33964             { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
33965 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
33966    { (exit 1); exit 1; }; }
33967     esac
33968
33969      if test x"$CHECK_USERID" = x"1"; then
33970   CHECK_USERID_TRUE=
33971   CHECK_USERID_FALSE='#'
33972 else
33973   CHECK_USERID_TRUE='#'
33974   CHECK_USERID_FALSE=
33975 fi
33976
33977
33978
33979
33980
33981 # Check whether --with-owner was given.
33982 if test "${with_owner+set}" = set; then
33983   withval=$with_owner;
33984             case "$withval" in
33985             "" | y | ye | yes | n | no)
33986                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
33987 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
33988    { (exit 1); exit 1; }; }
33989               ;;
33990             *) BINARY_OWNER="$withval"
33991               ;;
33992             esac
33993
33994 else
33995
33996             BINARY_OWNER="$CLIENT_LOGIN"
33997
33998
33999 fi
34000
34001
34002 cat >>confdefs.h <<_ACEOF
34003 #define BINARY_OWNER "$BINARY_OWNER"
34004 _ACEOF
34005
34006
34007
34008
34009
34010 # Check whether --with-fqdn was given.
34011 if test "${with_fqdn+set}" = set; then
34012   withval=$with_fqdn;  USE_FQDN=$withval
34013 else
34014    USE_FQDN=no
34015 fi
34016
34017
34018     case "$USE_FQDN" in
34019     n | no) : ;;
34020     y |  ye | yes)
34021
34022 cat >>confdefs.h <<\_ACEOF
34023 #define USE_FQDN 1
34024 _ACEOF
34025
34026       ;;
34027     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
34028 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
34029    { (exit 1); exit 1; }; }
34030       ;;
34031     esac
34032
34033
34034
34035 # Check whether --with-reuseports was given.
34036 if test "${with_reuseports+set}" = set; then
34037   withval=$with_reuseports;  case "$withval" in
34038             y | ye | yes) USE_REUSEADDR=no;;
34039             n | no) USE_REUSEADDR=yes;;
34040             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
34041 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
34042    { (exit 1); exit 1; }; };;
34043           esac
34044
34045 else
34046    USE_REUSEADDR=yes;
34047 fi
34048
34049     if test x"$USE_REUSEADDR" = x"yes"; then
34050
34051 cat >>confdefs.h <<\_ACEOF
34052 #define USE_REUSEADDR 1
34053 _ACEOF
34054
34055     fi
34056
34057
34058
34059 # Check whether --with-low-tcpportrange was given.
34060 if test "${with_low_tcpportrange+set}" = set; then
34061   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
34062 else
34063    LOW_TCPPORTRANGE=unlimited
34064 fi
34065
34066
34067     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
34068         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34069             { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
34070 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
34071    { (exit 1); exit 1; }; }
34072         fi
34073         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
34074         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
34075         if test $min_low_tcp_port -gt $max_low_tcp_port; then
34076             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
34077 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
34078    { (exit 1); exit 1; }; }
34079         fi
34080         if test $min_low_tcp_port -lt 512; then
34081
34082     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
34083 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
34084
34085
34086     cat <<AAW_EOF >>config.warnings
34087 the low TCP port range should be 512 or greater in --with-low-tcpportrange
34088 AAW_EOF
34089
34090
34091         fi
34092         if test $max_low_tcp_port -ge 1024; then
34093
34094     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
34095 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
34096
34097
34098     cat <<AAW_EOF >>config.warnings
34099 the low TCP port range should be less than 1024 in --with-low-tcpportrange
34100 AAW_EOF
34101
34102
34103         fi
34104
34105 cat >>confdefs.h <<_ACEOF
34106 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
34107 _ACEOF
34108
34109     fi
34110
34111
34112 # Check whether --with-tcpportrange was given.
34113 if test "${with_tcpportrange+set}" = set; then
34114   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
34115 else
34116    TCPPORTRANGE="unlimited"
34117 fi
34118
34119
34120     if test x"$TCPPORTRANGE" != x"unlimited"; then
34121         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34122             { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
34123 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
34124    { (exit 1); exit 1; }; }
34125         fi
34126         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
34127         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
34128         if test $min_tcp_port -gt $max_tcp_port; then
34129             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
34130 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
34131    { (exit 1); exit 1; }; }
34132         fi
34133         if test $min_tcp_port -lt 1024; then
34134
34135     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
34136 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
34137
34138
34139     cat <<AAW_EOF >>config.warnings
34140 the TCP port range should be 1024 or greater in --with-tcpportrange
34141 AAW_EOF
34142
34143
34144         fi
34145         if test $max_tcp_port -ge 65536; then
34146
34147     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
34148 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
34149
34150
34151     cat <<AAW_EOF >>config.warnings
34152 the TCP port range should be less than 65536 in --with-tcpportrange
34153 AAW_EOF
34154
34155
34156         fi
34157
34158 cat >>confdefs.h <<_ACEOF
34159 #define TCPPORTRANGE $TCPPORTRANGE
34160 _ACEOF
34161
34162     fi
34163
34164
34165 # Check whether --with-udpportrange was given.
34166 if test "${with_udpportrange+set}" = set; then
34167   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
34168 else
34169    UDPPORTRANGE="unlimited"
34170 fi
34171
34172     if test x"$UDPPORTRANGE" != x"unlimited"; then
34173         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34174             { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
34175 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
34176    { (exit 1); exit 1; }; }
34177         fi
34178         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
34179         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
34180         if test $min_udp_port -gt $max_udp_port; then
34181             { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
34182 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
34183    { (exit 1); exit 1; }; }
34184         fi
34185         if test $max_udp_port -ge 1024; then
34186
34187     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
34188 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
34189
34190
34191     cat <<AAW_EOF >>config.warnings
34192 the UDP port range should be less than 1025 in --with-udpportrange
34193 AAW_EOF
34194
34195
34196         fi
34197         if test $min_udp_port -le 0; then
34198
34199     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
34200 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
34201
34202
34203     cat <<AAW_EOF >>config.warnings
34204 the UDP port range should be greater than 0 in --with-udpportrange
34205 AAW_EOF
34206
34207
34208         fi
34209
34210 cat >>confdefs.h <<_ACEOF
34211 #define UDPPORTRANGE $UDPPORTRANGE
34212 _ACEOF
34213
34214     fi
34215
34216
34217
34218
34219
34220
34221 # Check whether --with-buffered-dump was given.
34222 if test "${with_buffered_dump+set}" = set; then
34223   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
34224 else
34225    DUMPER_SOCKET_BUFFERING=no
34226 fi
34227
34228     case "$DUMPER_SOCKET_BUFFERING" in
34229     n | no) ;;
34230     y | ye | yes)
34231
34232 cat >>confdefs.h <<\_ACEOF
34233 #define DUMPER_SOCKET_BUFFERING 1
34234 _ACEOF
34235
34236       ;;
34237     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
34238 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
34239    { (exit 1); exit 1; }; } ;;
34240     esac
34241
34242
34243
34244 # Check whether --with-maxtapeblocksize was given.
34245 if test "${with_maxtapeblocksize+set}" = set; then
34246   withval=$with_maxtapeblocksize;
34247     { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
34248 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
34249
34250
34251     cat <<AAW_EOF >>config.warnings
34252 --with-maxtapeblocksize is no longer needed
34253 AAW_EOF
34254
34255
34256
34257 fi
34258
34259
34260
34261     ASSERTIONS=
34262
34263 # Check whether --with-assertions was given.
34264 if test "${with_assertions+set}" = set; then
34265   withval=$with_assertions;
34266             case "$withval" in
34267                 n | no) : ;;
34268                 y |  ye | yes)
34269                     ASSERTIONS=1
34270
34271 cat >>confdefs.h <<\_ACEOF
34272 #define ASSERTIONS 1
34273 _ACEOF
34274
34275                   ;;
34276                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
34277 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
34278    { (exit 1); exit 1; }; }
34279                   ;;
34280             esac
34281
34282
34283 fi
34284
34285
34286
34287
34288
34289
34290 # Check whether --with-debugging was given.
34291 if test "${with_debugging+set}" = set; then
34292   withval=$with_debugging;  debugging="$withval"
34293 else
34294    debugging="yes"
34295
34296 fi
34297
34298
34299     case "$debugging" in
34300         n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
34301 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
34302    { (exit 1); exit 1; }; };;
34303         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
34304         *) AMANDA_DBGDIR="$debugging";;
34305     esac
34306
34307     # evaluate any extra variables in the directory
34308
34309   prefix_NONE=
34310   exec_prefix_NONE=
34311   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34312   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34313   eval ac_define_dir="\"$AMANDA_DBGDIR\""
34314   eval ac_define_dir="\"$ac_define_dir\""
34315   AMANDA_DBGDIR="$ac_define_dir"
34316
34317
34318 cat >>confdefs.h <<_ACEOF
34319 #define AMANDA_DBGDIR "$ac_define_dir"
34320 _ACEOF
34321
34322   test "$prefix_NONE" && prefix=NONE
34323   test "$exec_prefix_NONE" && exec_prefix=NONE
34324
34325
34326
34327
34328 # Check whether --with-debug_days was given.
34329 if test "${with_debug_days+set}" = set; then
34330   withval=$with_debug_days;
34331             debug_days="$withval"
34332
34333 else
34334
34335             debug_days="yes"
34336
34337
34338 fi
34339
34340     case "$debug_days" in
34341         n | no)
34342             AMANDA_DEBUG_DAYS=0 ;;
34343         y |  ye | yes)
34344             AMANDA_DEBUG_DAYS=4 ;;
34345         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
34346             AMANDA_DEBUG_DAYS="$debug_days" ;;
34347         *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
34348 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
34349    { (exit 1); exit 1; }; }
34350           ;;
34351     esac
34352
34353 cat >>confdefs.h <<_ACEOF
34354 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
34355 _ACEOF
34356
34357
34358
34359
34360
34361 # Check whether --with-testing was given.
34362 if test "${with_testing+set}" = set; then
34363   withval=$with_testing;
34364             TESTING="$withval"
34365
34366 else
34367
34368             TESTING="no"
34369
34370
34371 fi
34372
34373     case "$TESTING" in
34374         n | no) SERVICE_SUFFIX="";;
34375         y |  ye | yes) SERVICE_SUFFIX="-test";;
34376         *) SERVICE_SUFFIX="-$TESTING";;
34377     esac
34378
34379     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
34380     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
34381
34382
34383
34384 cat >>confdefs.h <<_ACEOF
34385 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
34386 _ACEOF
34387
34388
34389 cat >>confdefs.h <<_ACEOF
34390 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
34391 _ACEOF
34392
34393
34394 cat >>confdefs.h <<_ACEOF
34395 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
34396 _ACEOF
34397
34398
34399
34400     SINGLE_USERID=${SINGLE_USERID:-no}
34401     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
34402
34403
34404 # Check whether --with-single-userid was given.
34405 if test "${with_single_userid+set}" = set; then
34406   withval=$with_single_userid;    SINGLE_USERID=$withval
34407 fi
34408
34409
34410     case "$host" in
34411         *-pc-cygwin)
34412             WANT_SETUID_CLIENT=false
34413             SINGLE_USERID=yes
34414             ;;
34415     esac
34416
34417     if test x"$WANT_SETUID_CLIENT" = x"true"; then
34418
34419 cat >>confdefs.h <<\_ACEOF
34420 #define WANT_SETUID_CLIENT 1
34421 _ACEOF
34422
34423     fi
34424      if test x"$WANT_SETUID_CLIENT" = x"true"; then
34425   WANT_SETUID_CLIENT_TRUE=
34426   WANT_SETUID_CLIENT_FALSE='#'
34427 else
34428   WANT_SETUID_CLIENT_TRUE='#'
34429   WANT_SETUID_CLIENT_FALSE=
34430 fi
34431
34432
34433     if test x"$SINGLE_USERID" = x"yes"; then
34434
34435 cat >>confdefs.h <<\_ACEOF
34436 #define SINGLE_USERID 1
34437 _ACEOF
34438
34439     fi
34440
34441
34442     WANT_INSTALLPERMS=yes
34443     # Check whether --enable-installperms was given.
34444 if test "${enable_installperms+set}" = set; then
34445   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
34446 else
34447    WANT_INSTALLPERMS="yes"
34448
34449 fi
34450
34451      if test x"$WANT_INSTALLPERMS" = x"yes"; then
34452   WANT_INSTALLPERMS_TRUE=
34453   WANT_INSTALLPERMS_FALSE='#'
34454 else
34455   WANT_INSTALLPERMS_TRUE='#'
34456   WANT_INSTALLPERMS_FALSE=
34457 fi
34458
34459
34460
34461     # Check whether --enable-syntax-checks was given.
34462 if test "${enable_syntax_checks+set}" = set; then
34463   enableval=$enable_syntax_checks;
34464             case "$enableval" in
34465                 no) SYNTAX_CHECKS=false;;
34466                 *)
34467                     SYNTAX_CHECKS=true
34468
34469     { $as_echo "$as_me:$LINENO: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
34470 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
34471
34472
34473     cat <<AAW_EOF >>config.warnings
34474 --enable-syntax-checks can cause build failures and should only be used by developers
34475 AAW_EOF
34476
34477
34478                     ;;
34479             esac
34480
34481 else
34482
34483             SYNTAX_CHECKS=false
34484
34485 fi
34486
34487
34488      if $SYNTAX_CHECKS; then
34489   SYNTAX_CHECKS_TRUE=
34490   SYNTAX_CHECKS_FALSE='#'
34491 else
34492   SYNTAX_CHECKS_TRUE='#'
34493   SYNTAX_CHECKS_FALSE=
34494 fi
34495
34496
34497
34498
34499 #
34500 # Set up for Amanda components and modules
34501 #
34502
34503     WANT_SERVER=true
34504
34505 # Check whether --with-server was given.
34506 if test "${with_server+set}" = set; then
34507   withval=$with_server;
34508             case "$withval" in
34509             y | ye | yes) WANT_SERVER=true;;
34510             n | no) WANT_SERVER=false;;
34511             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
34512 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
34513    { (exit 1); exit 1; }; } ;;
34514             esac
34515
34516 fi
34517
34518
34519
34520     WANT_CLIENT=true
34521
34522 # Check whether --with-client was given.
34523 if test "${with_client+set}" = set; then
34524   withval=$with_client;
34525             case "$withval" in
34526             y | ye | yes) WANT_CLIENT=true;;
34527             n | no) WANT_CLIENT=false;;
34528             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
34529 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
34530    { (exit 1); exit 1; }; } ;;
34531             esac
34532
34533 fi
34534
34535
34536
34537
34538     WANT_RESTORE=${WANT_SERVER-true}
34539
34540 # Check whether --with-restore was given.
34541 if test "${with_restore+set}" = set; then
34542   withval=$with_restore;
34543             case "$withval" in
34544             y | ye | yes) WANT_RESTORE=true;;
34545             n | no) WANT_RESTORE=false;;
34546             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
34547 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
34548    { (exit 1); exit 1; }; } ;;
34549             esac
34550
34551 fi
34552
34553
34554
34555
34556     WANT_RECOVER=${WANT_CLIENT-true}
34557
34558 # Check whether --with-amrecover was given.
34559 if test "${with_amrecover+set}" = set; then
34560   withval=$with_amrecover;
34561             case "$withval" in
34562             y | ye | yes) WANT_RECOVER=true;;
34563             n | no) WANT_RECOVER=false;;
34564             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
34565 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
34566    { (exit 1); exit 1; }; } ;;
34567             esac
34568
34569 fi
34570
34571
34572
34573
34574 # Check whether --with-client-only was given.
34575 if test "${with_client_only+set}" = set; then
34576   withval=$with_client_only;    { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
34577 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
34578    { (exit 1); exit 1; }; }
34579
34580 fi
34581
34582
34583
34584
34585 # Check whether --with-server-only was given.
34586 if test "${with_server_only+set}" = set; then
34587   withval=$with_server_only;    { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
34588 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
34589    { (exit 1); exit 1; }; }
34590
34591 fi
34592
34593
34594
34595     WANT_NDMP=${WANT_NDMP-true}
34596
34597 # Check whether --with-ndmp was given.
34598 if test "${with_ndmp+set}" = set; then
34599   withval=$with_ndmp;
34600             case "$withval" in
34601             y | ye | yes) WANT_NDMP=true;;
34602             n | no) WANT_NDMP=false;;
34603             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-ndmp option." >&5
34604 $as_echo "$as_me: error: You must not supply an argument to --with-ndmp option." >&2;}
34605    { (exit 1); exit 1; }; } ;;
34606             esac
34607
34608 fi
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618     # detect invalid combinations of components
34619     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
34620         { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
34621 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
34622    { (exit 1); exit 1; }; }
34623     fi
34624     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
34625         { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
34626 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
34627    { (exit 1); exit 1; }; }
34628     fi
34629
34630      if $WANT_CLIENT; then
34631   WANT_CLIENT_TRUE=
34632   WANT_CLIENT_FALSE='#'
34633 else
34634   WANT_CLIENT_TRUE='#'
34635   WANT_CLIENT_FALSE=
34636 fi
34637
34638      if $WANT_RESTORE; then
34639   WANT_RESTORE_TRUE=
34640   WANT_RESTORE_FALSE='#'
34641 else
34642   WANT_RESTORE_TRUE='#'
34643   WANT_RESTORE_FALSE=
34644 fi
34645
34646      if $WANT_SERVER; then
34647   WANT_SERVER_TRUE=
34648   WANT_SERVER_FALSE='#'
34649 else
34650   WANT_SERVER_TRUE='#'
34651   WANT_SERVER_FALSE=
34652 fi
34653
34654      if $WANT_RECOVER; then
34655   WANT_RECOVER_TRUE=
34656   WANT_RECOVER_FALSE='#'
34657 else
34658   WANT_RECOVER_TRUE='#'
34659   WANT_RECOVER_FALSE=
34660 fi
34661
34662      if $WANT_NDMP; then
34663   WANT_NDMP_TRUE=
34664   WANT_NDMP_FALSE='#'
34665 else
34666   WANT_NDMP_TRUE='#'
34667   WANT_NDMP_FALSE=
34668 fi
34669
34670
34671      if $WANT_SERVER || $WANT_RESTORE; then
34672   WANT_TAPE_TRUE=
34673   WANT_TAPE_FALSE='#'
34674 else
34675   WANT_TAPE_TRUE='#'
34676   WANT_TAPE_FALSE=
34677 fi
34678
34679
34680     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
34681     # summary, below
34682     AMANDA_COMPONENTS=''
34683     missing_components=''
34684
34685     if $WANT_SERVER; then
34686         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
34687     else
34688         missing_components="$missing_components (no server)";
34689     fi
34690     if $WANT_RESTORE; then
34691         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
34692     else
34693         missing_components="$missing_components (no restore)";
34694     fi
34695     if $WANT_CLIENT; then
34696         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
34697     else
34698         missing_components="$missing_components (no client)";
34699     fi
34700     if $WANT_RECOVER; then
34701         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
34702     else
34703         missing_components="$missing_components (no amrecover)";
34704     fi
34705     if $WANT_NDMP; then
34706         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
34707     else
34708         missing_components="$missing_components (no ndmp)";
34709     fi
34710
34711
34712
34713
34714
34715
34716
34717 # Check whether --with-gnuplot was given.
34718 if test "${with_gnuplot+set}" = set; then
34719   withval=$with_gnuplot;
34720             case "$withval" in
34721                 y | ye | yes) : ;;
34722                 n | no) GNUPLOT=no ;;
34723                 *) GNUPLOT="$withval" ;;
34724             esac
34725
34726 fi
34727
34728     if test "x$GNUPLOT" = "xno"; then
34729         GNUPLOT=
34730     else
34731         # Extract the first word of "gnuplot", so it can be a program name with args.
34732 set dummy gnuplot; ac_word=$2
34733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34734 $as_echo_n "checking for $ac_word... " >&6; }
34735 if test "${ac_cv_path_GNUPLOT+set}" = set; then
34736   $as_echo_n "(cached) " >&6
34737 else
34738   case $GNUPLOT in
34739   [\\/]* | ?:[\\/]*)
34740   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
34741   ;;
34742   *)
34743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34744 for as_dir in $LOCSYSPATH
34745 do
34746   IFS=$as_save_IFS
34747   test -z "$as_dir" && as_dir=.
34748   for ac_exec_ext in '' $ac_executable_extensions; do
34749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34750     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
34751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34752     break 2
34753   fi
34754 done
34755 done
34756 IFS=$as_save_IFS
34757
34758   ;;
34759 esac
34760 fi
34761 GNUPLOT=$ac_cv_path_GNUPLOT
34762 if test -n "$GNUPLOT"; then
34763   { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
34764 $as_echo "$GNUPLOT" >&6; }
34765 else
34766   { $as_echo "$as_me:$LINENO: result: no" >&5
34767 $as_echo "no" >&6; }
34768 fi
34769
34770
34771     fi
34772
34773
34774
34775
34776
34777
34778     # Extract the first word of "pcat", so it can be a program name with args.
34779 set dummy pcat; ac_word=$2
34780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34781 $as_echo_n "checking for $ac_word... " >&6; }
34782 if test "${ac_cv_path_PCAT+set}" = set; then
34783   $as_echo_n "(cached) " >&6
34784 else
34785   case $PCAT in
34786   [\\/]* | ?:[\\/]*)
34787   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
34788   ;;
34789   *)
34790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34791 for as_dir in $LOCSYSPATH
34792 do
34793   IFS=$as_save_IFS
34794   test -z "$as_dir" && as_dir=.
34795   for ac_exec_ext in '' $ac_executable_extensions; do
34796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34797     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
34798     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34799     break 2
34800   fi
34801 done
34802 done
34803 IFS=$as_save_IFS
34804
34805   ;;
34806 esac
34807 fi
34808 PCAT=$ac_cv_path_PCAT
34809 if test -n "$PCAT"; then
34810   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
34811 $as_echo "$PCAT" >&6; }
34812 else
34813   { $as_echo "$as_me:$LINENO: result: no" >&5
34814 $as_echo "no" >&6; }
34815 fi
34816
34817
34818
34819
34820
34821     # Extract the first word of "compress", so it can be a program name with args.
34822 set dummy compress; ac_word=$2
34823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34824 $as_echo_n "checking for $ac_word... " >&6; }
34825 if test "${ac_cv_path_COMPRESS+set}" = set; then
34826   $as_echo_n "(cached) " >&6
34827 else
34828   case $COMPRESS in
34829   [\\/]* | ?:[\\/]*)
34830   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
34831   ;;
34832   *)
34833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34834 for as_dir in $LOCSYSPATH
34835 do
34836   IFS=$as_save_IFS
34837   test -z "$as_dir" && as_dir=.
34838   for ac_exec_ext in '' $ac_executable_extensions; do
34839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34840     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
34841     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34842     break 2
34843   fi
34844 done
34845 done
34846 IFS=$as_save_IFS
34847
34848   ;;
34849 esac
34850 fi
34851 COMPRESS=$ac_cv_path_COMPRESS
34852 if test -n "$COMPRESS"; then
34853   { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
34854 $as_echo "$COMPRESS" >&6; }
34855 else
34856   { $as_echo "$as_me:$LINENO: result: no" >&5
34857 $as_echo "no" >&6; }
34858 fi
34859
34860
34861
34862
34863
34864     # Extract the first word of "gzip", so it can be a program name with args.
34865 set dummy gzip; ac_word=$2
34866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34867 $as_echo_n "checking for $ac_word... " >&6; }
34868 if test "${ac_cv_path_GZIP+set}" = set; then
34869   $as_echo_n "(cached) " >&6
34870 else
34871   case $GZIP in
34872   [\\/]* | ?:[\\/]*)
34873   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
34874   ;;
34875   *)
34876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34877 for as_dir in $LOCSYSPATH
34878 do
34879   IFS=$as_save_IFS
34880   test -z "$as_dir" && as_dir=.
34881   for ac_exec_ext in '' $ac_executable_extensions; do
34882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34883     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
34884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34885     break 2
34886   fi
34887 done
34888 done
34889 IFS=$as_save_IFS
34890
34891   ;;
34892 esac
34893 fi
34894 GZIP=$ac_cv_path_GZIP
34895 if test -n "$GZIP"; then
34896   { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
34897 $as_echo "$GZIP" >&6; }
34898 else
34899   { $as_echo "$as_me:$LINENO: result: no" >&5
34900 $as_echo "no" >&6; }
34901 fi
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912     if test "x$GNUPLOT" != "x"; then
34913         WANT_AMPLOT=true
34914
34915         # variable substitutions for amcat.awk
34916         if test "$PCAT"; then
34917             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
34918         else
34919             AMPLOT_CAT_PACK=
34920         fi
34921         if test "$COMPRESS"; then
34922             AMPLOT_COMPRESS=$COMPRESS
34923             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
34924         else
34925             AMPLOT_CAT_COMPRESS=
34926         fi
34927         if test "$GZIP"; then
34928             AMPLOT_COMPRESS=$GZIP
34929             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
34930         else
34931             AMPLOT_CAT_GZIP=
34932         fi
34933
34934
34935
34936
34937
34938     else
34939         WANT_AMPLOT=false
34940
34941     { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
34942 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
34943
34944
34945     cat <<AAW_EOF >>config.warnings
34946 Not building 'amplot', because gnuplot was not found
34947 AAW_EOF
34948
34949
34950     fi
34951
34952      if test x"$WANT_AMPLOT" = x"true"; then
34953   WANT_AMPLOT_TRUE=
34954   WANT_AMPLOT_FALSE='#'
34955 else
34956   WANT_AMPLOT_TRUE='#'
34957   WANT_AMPLOT_FALSE=
34958 fi
34959
34960
34961
34962     # Check whether --enable-manpage-build was given.
34963 if test "${enable_manpage_build+set}" = set; then
34964   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
34965 else
34966    ENABLE_MANPAGE_BUILD=no
34967 fi
34968
34969
34970     # and ensure that everything docbook-related is OK if we'll be using it
34971     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
34972         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
34973
34974
34975 XSLTPROC_FLAGS="--nonet"
34976
34977
34978 # The (lack of) whitespace and overquoting here are all necessary for
34979 # proper formatting.
34980
34981 # Check whether --with-xsltproc was given.
34982 if test "${with_xsltproc+set}" = set; then
34983   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
34984 else
34985    ac_with_xsltproc=maybe;
34986 fi
34987
34988
34989
34990 # Check whether --with-xsltproc-flags was given.
34991 if test "${with_xsltproc_flags+set}" = set; then
34992   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
34993         XSLTPROC_FLAGS=''
34994     else
34995         if test "x$withval" != "xyes"; then
34996             XSLTPROC_FLAGS="$withval"
34997         fi
34998     fi
34999
35000 fi
35001
35002
35003 # search for xsltproc if it wasn't specified
35004 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
35005     for ac_prog in xsltproc
35006 do
35007   # Extract the first word of "$ac_prog", so it can be a program name with args.
35008 set dummy $ac_prog; ac_word=$2
35009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35010 $as_echo_n "checking for $ac_word... " >&6; }
35011 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35012   $as_echo_n "(cached) " >&6
35013 else
35014   case $XSLTPROC in
35015   [\\/]* | ?:[\\/]*)
35016   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35017   ;;
35018   *)
35019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35020 for as_dir in $LOCSYSPATH
35021 do
35022   IFS=$as_save_IFS
35023   test -z "$as_dir" && as_dir=.
35024   for ac_exec_ext in '' $ac_executable_extensions; do
35025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35026     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35027     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35028     break 2
35029   fi
35030 done
35031 done
35032 IFS=$as_save_IFS
35033
35034   ;;
35035 esac
35036 fi
35037 XSLTPROC=$ac_cv_path_XSLTPROC
35038 if test -n "$XSLTPROC"; then
35039   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35040 $as_echo "$XSLTPROC" >&6; }
35041 else
35042   { $as_echo "$as_me:$LINENO: result: no" >&5
35043 $as_echo "no" >&6; }
35044 fi
35045
35046
35047   test -n "$XSLTPROC" && break
35048 done
35049
35050 else
35051     if test "$ac_with_xsltproc" != "no"; then
35052         if test -x "$ac_with_xsltproc"; then
35053             XSLTPROC="$ac_with_xsltproc";
35054         else
35055
35056     { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
35057 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
35058
35059
35060     cat <<AAW_EOF >>config.warnings
35061 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
35062 AAW_EOF
35063
35064
35065             for ac_prog in xsltproc
35066 do
35067   # Extract the first word of "$ac_prog", so it can be a program name with args.
35068 set dummy $ac_prog; ac_word=$2
35069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35070 $as_echo_n "checking for $ac_word... " >&6; }
35071 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35072   $as_echo_n "(cached) " >&6
35073 else
35074   case $XSLTPROC in
35075   [\\/]* | ?:[\\/]*)
35076   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35077   ;;
35078   *)
35079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35080 for as_dir in $LOCSYSPATH
35081 do
35082   IFS=$as_save_IFS
35083   test -z "$as_dir" && as_dir=.
35084   for ac_exec_ext in '' $ac_executable_extensions; do
35085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35086     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35087     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35088     break 2
35089   fi
35090 done
35091 done
35092 IFS=$as_save_IFS
35093
35094   ;;
35095 esac
35096 fi
35097 XSLTPROC=$ac_cv_path_XSLTPROC
35098 if test -n "$XSLTPROC"; then
35099   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35100 $as_echo "$XSLTPROC" >&6; }
35101 else
35102   { $as_echo "$as_me:$LINENO: result: no" >&5
35103 $as_echo "no" >&6; }
35104 fi
35105
35106
35107   test -n "$XSLTPROC" && break
35108 done
35109
35110         fi
35111     fi
35112 fi
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123     { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
35124 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
35125 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
35126   $as_echo_n "(cached) " >&6
35127 else
35128
35129         ac_cv_docbook_xslt_1_72_0=no
35130         if test -n "$XSLTPROC"; then
35131             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
35132             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
35133
35134             if test "$?" = 0; then
35135                 ac_cv_docbook_xslt_1_72_0=yes
35136             fi
35137         fi
35138
35139 fi
35140 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
35141 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
35142
35143     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
35144     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
35145
35146
35147
35148
35149
35150
35151
35152
35153     { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
35154 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
35155 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
35156   $as_echo_n "(cached) " >&6
35157 else
35158
35159         ac_cv_docbook_xslt_current_version=no
35160
35161         if test -n "$XSLTPROC"; then
35162             cat >conftest.xsl <<EOF
35163                 <xsl:stylesheet
35164                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
35165                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
35166                     version="1.0">
35167                     <xsl:output method="text"/>
35168                     <xsl:template match="fm:project/fm:Version">
35169                         <xsl:value-of select="." />
35170                     </xsl:template>
35171                     <!-- do nothing with any other text -->
35172                     <xsl:template match="text()"/>
35173                 </xsl:stylesheet>
35174 EOF
35175             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
35176             echo "====" >&5
35177             cat conftest.xsl >&5
35178             echo "====" >&5
35179
35180             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
35181
35182             if test "$?" != 0; then
35183                 ac_cv_docbook_xslt_current_version='no'
35184             fi
35185
35186             rm conftest.xsl
35187         fi
35188
35189 fi
35190 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
35191 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
35192
35193     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
35194     { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
35195 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
35196
35197     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35198         { $as_echo "$as_me:$LINENO: result: no" >&5
35199 $as_echo "no" >&6; }
35200     else
35201
35202   # Used to indicate true or false condition
35203   ax_compare_version=false
35204
35205   # Convert the two version strings to be compared into a format that
35206   # allows a simple string comparison.  The end result is that a version
35207   # string of the form 1.12.5-r617 will be converted to the form
35208   # 0001001200050617.  In other words, each number is zero padded to four
35209   # digits, and non digits are removed.
35210
35211   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35212                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35213                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35214                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35215                      -e 's/[^0-9]//g'`
35216
35217
35218   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35219                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35220                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35221                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35222                      -e 's/[^0-9]//g'`
35223
35224
35225     ax_compare_version=`echo "x$ax_compare_version_A
35226 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"`
35227
35228
35229
35230     if test "$ax_compare_version" = "true" ; then
35231
35232             # version is less than required, so mark it as "no"
35233             DOCBOOK_XSLT_CURRENT_VERSION=no
35234
35235       fi
35236
35237
35238         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35239             { $as_echo "$as_me:$LINENO: result: no" >&5
35240 $as_echo "no" >&6; }
35241         else
35242             { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
35243 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
35244         fi
35245     fi
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
35257 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
35258 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
35259   $as_echo_n "(cached) " >&6
35260 else
35261
35262         ac_cv_docbook_dtd_4_1_2=no
35263         if test -n "$XSLTPROC"; then
35264             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35265             cat <<EOF >conftest.xml
35266 <?xml version="1.0" encoding='ISO-8859-1'?>
35267 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
35268 <book id="empty">
35269 </book>
35270 EOF
35271             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35272             echo "conftest.xml:" >&5
35273             echo "====" >&5
35274             cat conftest.xml >&5
35275             echo "====" >&5
35276
35277             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35278             if test "$?" = 0 -o "$?" = 5; then
35279                 # failing to load the DTD is just a warning, so check for it in the output.
35280                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35281                     : # no good..
35282                 else
35283                     ac_cv_docbook_dtd_4_1_2=yes
35284                 fi
35285             fi
35286             cat conftest.out >&5
35287
35288             rm -f conftest.xml conftest.out
35289         fi
35290
35291 fi
35292 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
35293 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
35294
35295     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
35296     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
35312 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
35313 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
35314   $as_echo_n "(cached) " >&6
35315 else
35316
35317         ac_cv_docbook_dtd_4_2=no
35318         if test -n "$XSLTPROC"; then
35319             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35320             cat <<EOF >conftest.xml
35321 <?xml version="1.0" encoding='ISO-8859-1'?>
35322 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
35323 <book id="empty">
35324 </book>
35325 EOF
35326             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35327             echo "conftest.xml:" >&5
35328             echo "====" >&5
35329             cat conftest.xml >&5
35330             echo "====" >&5
35331
35332             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35333             if test "$?" = 0 -o "$?" = 5; then
35334                 # failing to load the DTD is just a warning, so check for it in the output.
35335                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35336                     : # no good..
35337                 else
35338                     ac_cv_docbook_dtd_4_2=yes
35339                 fi
35340             fi
35341             cat conftest.out >&5
35342
35343             rm -f conftest.xml conftest.out
35344         fi
35345
35346 fi
35347 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
35348 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
35349
35350     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
35351     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
35352
35353
35354
35355
35356
35357
35358         if test -z "$XSLTPROC"; then
35359             { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
35360 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
35361    { (exit 1); exit 1; }; }
35362         fi
35363
35364         # if the 'current' Docbook revision is good enough, use that; otherwise,
35365         # if 1.72.0 is available, use that.
35366         XSLREL=current
35367         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
35368             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
35369                 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
35370 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
35371    { (exit 1); exit 1; }; }
35372             else
35373                 XSLREL=1.72.0
35374             fi
35375         fi
35376
35377         # disable validation if the correct DTDs are not available
35378         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
35379
35380     { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
35381 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
35382
35383
35384     cat <<AAW_EOF >>config.warnings
35385 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
35386 AAW_EOF
35387
35388
35389             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
35390         fi
35391     fi
35392
35393      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
35394   ENABLE_MANPAGE_BUILD_TRUE=
35395   ENABLE_MANPAGE_BUILD_FALSE='#'
35396 else
35397   ENABLE_MANPAGE_BUILD_TRUE='#'
35398   ENABLE_MANPAGE_BUILD_FALSE=
35399 fi
35400
35401
35402
35403
35404
35405     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
35406     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
35407
35408
35409
35410 # Check whether --with-index-server was given.
35411 if test "${with_index_server+set}" = set; then
35412   withval=$with_index_server;
35413             case "$withval" in
35414             "" | y | ye | yes | n | no)
35415                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
35416 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
35417    { (exit 1); exit 1; }; }
35418               ;;
35419             *) DEFAULT_SERVER="$withval"
35420               ;;
35421             esac
35422
35423 else
35424   : ${DEFAULT_SERVER=`uname -n`}
35425
35426 fi
35427
35428
35429 cat >>confdefs.h <<_ACEOF
35430 #define DEFAULT_SERVER "$DEFAULT_SERVER"
35431 _ACEOF
35432
35433
35434
35435
35436 # Check whether --with-config was given.
35437 if test "${with_config+set}" = set; then
35438   withval=$with_config;
35439             case "$withval" in
35440             "" | y | ye | yes | n | no)
35441                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
35442 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
35443    { (exit 1); exit 1; }; }
35444               ;;
35445             *) DEFAULT_CONFIG="$withval"
35446               ;;
35447             esac
35448
35449 else
35450   : ${DEFAULT_CONFIG=DailySet1}
35451
35452 fi
35453
35454
35455 cat >>confdefs.h <<_ACEOF
35456 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
35457 _ACEOF
35458
35459
35460
35461
35462 # Check whether --with-tape-server was given.
35463 if test "${with_tape_server+set}" = set; then
35464   withval=$with_tape_server;
35465             case "$withval" in
35466             "" | y | ye | yes | n | no)
35467                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
35468 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
35469    { (exit 1); exit 1; }; }
35470               ;;
35471             *) DEFAULT_TAPE_SERVER="$withval"
35472               ;;
35473             esac
35474
35475 else
35476   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
35477
35478 fi
35479
35480
35481 cat >>confdefs.h <<_ACEOF
35482 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
35483 _ACEOF
35484
35485
35486
35487
35488 # Check whether --with-tape-device was given.
35489 if test "${with_tape_device+set}" = set; then
35490   withval=$with_tape_device;
35491             case "$withval" in
35492             "" | y | ye | yes | n | no)
35493                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
35494 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
35495    { (exit 1); exit 1; }; }
35496               ;;
35497             *) DEFAULT_TAPE_DEVICE="$withval"
35498               ;;
35499             esac
35500
35501
35502 fi
35503
35504
35505
35506 cat >>confdefs.h <<_ACEOF
35507 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
35508 _ACEOF
35509
35510
35511
35512     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
35513         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
35514     else
35515         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
35516     fi
35517
35518
35519
35520 # Check whether --with-changer-device was given.
35521 if test "${with_changer_device+set}" = set; then
35522   withval=$with_changer_device;
35523
35524     { $as_echo "$as_me:$LINENO: WARNING: --with-changer-device is no longer used." >&5
35525 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
35526
35527
35528     cat <<AAW_EOF >>config.warnings
35529 --with-changer-device is no longer used.
35530 AAW_EOF
35531
35532
35533
35534
35535 fi
35536
35537
35538
35539 # Check whether --with-amandates was given.
35540 if test "${with_amandates+set}" = set; then
35541   withval=$with_amandates;
35542             case "$withval" in
35543                 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
35544 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
35545    { (exit 1); exit 1; }; };;
35546                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
35547                 *) amandates="$withval";;
35548             esac
35549
35550 else
35551   amandates='$localstatedir/amanda/amandates'
35552
35553 fi
35554
35555
35556
35557   prefix_NONE=
35558   exec_prefix_NONE=
35559   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35560   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35561   eval ac_define_dir="\"$amandates\""
35562   eval ac_define_dir="\"$ac_define_dir\""
35563   DEFAULT_AMANDATES_FILE="$ac_define_dir"
35564
35565
35566 cat >>confdefs.h <<_ACEOF
35567 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
35568 _ACEOF
35569
35570   test "$prefix_NONE" && prefix=NONE
35571   test "$exec_prefix_NONE" && exec_prefix=NONE
35572
35573
35574     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
35575     case "$host" in
35576         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
35577                     ;;
35578     esac
35579
35580 cat >>confdefs.h <<_ACEOF
35581 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
35582 _ACEOF
35583
35584
35585
35586
35587     # Extract the first word of "getconf", so it can be a program name with args.
35588 set dummy getconf; ac_word=$2
35589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35590 $as_echo_n "checking for $ac_word... " >&6; }
35591 if test "${ac_cv_path_GETCONF+set}" = set; then
35592   $as_echo_n "(cached) " >&6
35593 else
35594   case $GETCONF in
35595   [\\/]* | ?:[\\/]*)
35596   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
35597   ;;
35598   *)
35599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35600 for as_dir in $SYSPATH
35601 do
35602   IFS=$as_save_IFS
35603   test -z "$as_dir" && as_dir=.
35604   for ac_exec_ext in '' $ac_executable_extensions; do
35605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35606     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
35607     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35608     break 2
35609   fi
35610 done
35611 done
35612 IFS=$as_save_IFS
35613
35614   ;;
35615 esac
35616 fi
35617 GETCONF=$ac_cv_path_GETCONF
35618 if test -n "$GETCONF"; then
35619   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
35620 $as_echo "$GETCONF" >&6; }
35621 else
35622   { $as_echo "$as_me:$LINENO: result: no" >&5
35623 $as_echo "no" >&6; }
35624 fi
35625
35626
35627
35628
35629
35630
35631
35632     # we use 'getconf', if it exists, to get the relevant
35633     # compiler flags.
35634     GETCONF_LFS="LFS"
35635     case "$host" in
35636         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35637         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35638     esac
35639
35640     # Checks for compilers, typedefs, structures, and compiler characteristics.
35641     # Check for large file compilation environment.
35642     NEED_RESETOFS=yes
35643     { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
35644 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
35645 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
35646   $as_echo_n "(cached) " >&6
35647 else
35648
35649         amanda_cv_LFS_CFLAGS=
35650         if test "$GETCONF"; then
35651             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
35652                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
35653                 NEED_RESETOFS=no
35654             fi
35655         fi
35656
35657
35658 fi
35659 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
35660 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
35661     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
35662
35663
35664     { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
35665 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
35666 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
35667   $as_echo_n "(cached) " >&6
35668 else
35669
35670         amanda_cv_LFS_LDFLAGS=
35671         if test "$GETCONF"; then
35672             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
35673                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
35674                 NEED_RESETOFS=no
35675             fi
35676         fi
35677
35678
35679 fi
35680 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
35681 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
35682     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
35683
35684
35685     { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
35686 $as_echo_n "checking for large file compilation LIBS... " >&6; }
35687 if test "${amanda_cv_LFS_LIBS+set}" = set; then
35688   $as_echo_n "(cached) " >&6
35689 else
35690
35691         amanda_cv_LFS_LIBS=
35692         if test "$GETCONF"; then
35693             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
35694                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
35695                 NEED_RESETOFS=no
35696             fi
35697         fi
35698
35699
35700 fi
35701 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
35702 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
35703     LIBS="$amanda_cv_LFS_LIBS $LIBS"
35704
35705
35706     if test x"$NEED_RESETOFS" = x"yes"; then
35707
35708 cat >>confdefs.h <<\_ACEOF
35709 #define NEED_RESETOFS 1
35710 _ACEOF
35711
35712     fi
35713
35714
35715
35716
35717
35718
35719 for ac_header in fstab.h \
35720         mntent.h \
35721         mnttab.h \
35722         sys/vfstab.h \
35723
35724 do
35725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35727   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35728 $as_echo_n "checking for $ac_header... " >&6; }
35729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35730   $as_echo_n "(cached) " >&6
35731 fi
35732 ac_res=`eval 'as_val=${'$as_ac_Header'}
35733                  $as_echo "$as_val"'`
35734                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35735 $as_echo "$ac_res" >&6; }
35736 else
35737   # Is the header compilable?
35738 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35739 $as_echo_n "checking $ac_header usability... " >&6; }
35740 cat >conftest.$ac_ext <<_ACEOF
35741 /* confdefs.h.  */
35742 _ACEOF
35743 cat confdefs.h >>conftest.$ac_ext
35744 cat >>conftest.$ac_ext <<_ACEOF
35745 /* end confdefs.h.  */
35746 $ac_includes_default
35747 #include <$ac_header>
35748 _ACEOF
35749 rm -f conftest.$ac_objext
35750 if { (ac_try="$ac_compile"
35751 case "(($ac_try" in
35752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35753   *) ac_try_echo=$ac_try;;
35754 esac
35755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35756 $as_echo "$ac_try_echo") >&5
35757   (eval "$ac_compile") 2>conftest.er1
35758   ac_status=$?
35759   grep -v '^ *+' conftest.er1 >conftest.err
35760   rm -f conftest.er1
35761   cat conftest.err >&5
35762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); } && {
35764          test -z "$ac_c_werror_flag" ||
35765          test ! -s conftest.err
35766        } && test -s conftest.$ac_objext; then
35767   ac_header_compiler=yes
35768 else
35769   $as_echo "$as_me: failed program was:" >&5
35770 sed 's/^/| /' conftest.$ac_ext >&5
35771
35772         ac_header_compiler=no
35773 fi
35774
35775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35777 $as_echo "$ac_header_compiler" >&6; }
35778
35779 # Is the header present?
35780 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35781 $as_echo_n "checking $ac_header presence... " >&6; }
35782 cat >conftest.$ac_ext <<_ACEOF
35783 /* confdefs.h.  */
35784 _ACEOF
35785 cat confdefs.h >>conftest.$ac_ext
35786 cat >>conftest.$ac_ext <<_ACEOF
35787 /* end confdefs.h.  */
35788 #include <$ac_header>
35789 _ACEOF
35790 if { (ac_try="$ac_cpp conftest.$ac_ext"
35791 case "(($ac_try" in
35792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35793   *) ac_try_echo=$ac_try;;
35794 esac
35795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35796 $as_echo "$ac_try_echo") >&5
35797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35798   ac_status=$?
35799   grep -v '^ *+' conftest.er1 >conftest.err
35800   rm -f conftest.er1
35801   cat conftest.err >&5
35802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); } >/dev/null && {
35804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35805          test ! -s conftest.err
35806        }; then
35807   ac_header_preproc=yes
35808 else
35809   $as_echo "$as_me: failed program was:" >&5
35810 sed 's/^/| /' conftest.$ac_ext >&5
35811
35812   ac_header_preproc=no
35813 fi
35814
35815 rm -f conftest.err conftest.$ac_ext
35816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35817 $as_echo "$ac_header_preproc" >&6; }
35818
35819 # So?  What about this header?
35820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35821   yes:no: )
35822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35823 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35826     ac_header_preproc=yes
35827     ;;
35828   no:yes:* )
35829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35830 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35832 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35834 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35836 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35840 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35841
35842     ;;
35843 esac
35844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35845 $as_echo_n "checking for $ac_header... " >&6; }
35846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35847   $as_echo_n "(cached) " >&6
35848 else
35849   eval "$as_ac_Header=\$ac_header_preproc"
35850 fi
35851 ac_res=`eval 'as_val=${'$as_ac_Header'}
35852                  $as_echo "$as_val"'`
35853                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35854 $as_echo "$ac_res" >&6; }
35855
35856 fi
35857 as_val=`eval 'as_val=${'$as_ac_Header'}
35858                  $as_echo "$as_val"'`
35859    if test "x$as_val" = x""yes; then
35860   cat >>confdefs.h <<_ACEOF
35861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35862 _ACEOF
35863
35864 fi
35865
35866 done
35867
35868
35869
35870 for ac_func in endmntent
35871 do
35872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35873 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35874 $as_echo_n "checking for $ac_func... " >&6; }
35875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35876   $as_echo_n "(cached) " >&6
35877 else
35878   cat >conftest.$ac_ext <<_ACEOF
35879 /* confdefs.h.  */
35880 _ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h.  */
35884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35886 #define $ac_func innocuous_$ac_func
35887
35888 /* System header to define __stub macros and hopefully few prototypes,
35889     which can conflict with char $ac_func (); below.
35890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35891     <limits.h> exists even on freestanding compilers.  */
35892
35893 #ifdef __STDC__
35894 # include <limits.h>
35895 #else
35896 # include <assert.h>
35897 #endif
35898
35899 #undef $ac_func
35900
35901 /* Override any GCC internal prototype to avoid an error.
35902    Use char because int might match the return type of a GCC
35903    builtin and then its argument prototype would still apply.  */
35904 #ifdef __cplusplus
35905 extern "C"
35906 #endif
35907 char $ac_func ();
35908 /* The GNU C library defines this for functions which it implements
35909     to always fail with ENOSYS.  Some functions are actually named
35910     something starting with __ and the normal name is an alias.  */
35911 #if defined __stub_$ac_func || defined __stub___$ac_func
35912 choke me
35913 #endif
35914
35915 int
35916 main ()
35917 {
35918 return $ac_func ();
35919   ;
35920   return 0;
35921 }
35922 _ACEOF
35923 rm -f conftest.$ac_objext conftest$ac_exeext
35924 if { (ac_try="$ac_link"
35925 case "(($ac_try" in
35926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35927   *) ac_try_echo=$ac_try;;
35928 esac
35929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35930 $as_echo "$ac_try_echo") >&5
35931   (eval "$ac_link") 2>conftest.er1
35932   ac_status=$?
35933   grep -v '^ *+' conftest.er1 >conftest.err
35934   rm -f conftest.er1
35935   cat conftest.err >&5
35936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937   (exit $ac_status); } && {
35938          test -z "$ac_c_werror_flag" ||
35939          test ! -s conftest.err
35940        } && test -s conftest$ac_exeext && {
35941          test "$cross_compiling" = yes ||
35942          $as_test_x conftest$ac_exeext
35943        }; then
35944   eval "$as_ac_var=yes"
35945 else
35946   $as_echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35948
35949         eval "$as_ac_var=no"
35950 fi
35951
35952 rm -rf conftest.dSYM
35953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35954       conftest$ac_exeext conftest.$ac_ext
35955 fi
35956 ac_res=`eval 'as_val=${'$as_ac_var'}
35957                  $as_echo "$as_val"'`
35958                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35959 $as_echo "$ac_res" >&6; }
35960 as_val=`eval 'as_val=${'$as_ac_var'}
35961                  $as_echo "$as_val"'`
35962    if test "x$as_val" = x""yes; then
35963   cat >>confdefs.h <<_ACEOF
35964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35965 _ACEOF
35966
35967 fi
35968 done
35969
35970
35971 for ac_func in setmntent
35972 do
35973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35974 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35975 $as_echo_n "checking for $ac_func... " >&6; }
35976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35977   $as_echo_n "(cached) " >&6
35978 else
35979   cat >conftest.$ac_ext <<_ACEOF
35980 /* confdefs.h.  */
35981 _ACEOF
35982 cat confdefs.h >>conftest.$ac_ext
35983 cat >>conftest.$ac_ext <<_ACEOF
35984 /* end confdefs.h.  */
35985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35987 #define $ac_func innocuous_$ac_func
35988
35989 /* System header to define __stub macros and hopefully few prototypes,
35990     which can conflict with char $ac_func (); below.
35991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35992     <limits.h> exists even on freestanding compilers.  */
35993
35994 #ifdef __STDC__
35995 # include <limits.h>
35996 #else
35997 # include <assert.h>
35998 #endif
35999
36000 #undef $ac_func
36001
36002 /* Override any GCC internal prototype to avoid an error.
36003    Use char because int might match the return type of a GCC
36004    builtin and then its argument prototype would still apply.  */
36005 #ifdef __cplusplus
36006 extern "C"
36007 #endif
36008 char $ac_func ();
36009 /* The GNU C library defines this for functions which it implements
36010     to always fail with ENOSYS.  Some functions are actually named
36011     something starting with __ and the normal name is an alias.  */
36012 #if defined __stub_$ac_func || defined __stub___$ac_func
36013 choke me
36014 #endif
36015
36016 int
36017 main ()
36018 {
36019 return $ac_func ();
36020   ;
36021   return 0;
36022 }
36023 _ACEOF
36024 rm -f conftest.$ac_objext conftest$ac_exeext
36025 if { (ac_try="$ac_link"
36026 case "(($ac_try" in
36027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36028   *) ac_try_echo=$ac_try;;
36029 esac
36030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36031 $as_echo "$ac_try_echo") >&5
36032   (eval "$ac_link") 2>conftest.er1
36033   ac_status=$?
36034   grep -v '^ *+' conftest.er1 >conftest.err
36035   rm -f conftest.er1
36036   cat conftest.err >&5
36037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038   (exit $ac_status); } && {
36039          test -z "$ac_c_werror_flag" ||
36040          test ! -s conftest.err
36041        } && test -s conftest$ac_exeext && {
36042          test "$cross_compiling" = yes ||
36043          $as_test_x conftest$ac_exeext
36044        }; then
36045   eval "$as_ac_var=yes"
36046 else
36047   $as_echo "$as_me: failed program was:" >&5
36048 sed 's/^/| /' conftest.$ac_ext >&5
36049
36050         eval "$as_ac_var=no"
36051 fi
36052
36053 rm -rf conftest.dSYM
36054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36055       conftest$ac_exeext conftest.$ac_ext
36056 fi
36057 ac_res=`eval 'as_val=${'$as_ac_var'}
36058                  $as_echo "$as_val"'`
36059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36060 $as_echo "$ac_res" >&6; }
36061 as_val=`eval 'as_val=${'$as_ac_var'}
36062                  $as_echo "$as_val"'`
36063    if test "x$as_val" = x""yes; then
36064   cat >>confdefs.h <<_ACEOF
36065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36066 _ACEOF
36067
36068 fi
36069 done
36070
36071
36072
36073
36074
36075
36076
36077
36078 for ac_header in fcntl.h \
36079         sys/fcntl.h \
36080         sys/types.h \
36081         sys/file.h \
36082         unistd.h \
36083
36084 do
36085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36087   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36088 $as_echo_n "checking for $ac_header... " >&6; }
36089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36090   $as_echo_n "(cached) " >&6
36091 fi
36092 ac_res=`eval 'as_val=${'$as_ac_Header'}
36093                  $as_echo "$as_val"'`
36094                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36095 $as_echo "$ac_res" >&6; }
36096 else
36097   # Is the header compilable?
36098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36099 $as_echo_n "checking $ac_header usability... " >&6; }
36100 cat >conftest.$ac_ext <<_ACEOF
36101 /* confdefs.h.  */
36102 _ACEOF
36103 cat confdefs.h >>conftest.$ac_ext
36104 cat >>conftest.$ac_ext <<_ACEOF
36105 /* end confdefs.h.  */
36106 $ac_includes_default
36107 #include <$ac_header>
36108 _ACEOF
36109 rm -f conftest.$ac_objext
36110 if { (ac_try="$ac_compile"
36111 case "(($ac_try" in
36112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36113   *) ac_try_echo=$ac_try;;
36114 esac
36115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36116 $as_echo "$ac_try_echo") >&5
36117   (eval "$ac_compile") 2>conftest.er1
36118   ac_status=$?
36119   grep -v '^ *+' conftest.er1 >conftest.err
36120   rm -f conftest.er1
36121   cat conftest.err >&5
36122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123   (exit $ac_status); } && {
36124          test -z "$ac_c_werror_flag" ||
36125          test ! -s conftest.err
36126        } && test -s conftest.$ac_objext; then
36127   ac_header_compiler=yes
36128 else
36129   $as_echo "$as_me: failed program was:" >&5
36130 sed 's/^/| /' conftest.$ac_ext >&5
36131
36132         ac_header_compiler=no
36133 fi
36134
36135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36137 $as_echo "$ac_header_compiler" >&6; }
36138
36139 # Is the header present?
36140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36141 $as_echo_n "checking $ac_header presence... " >&6; }
36142 cat >conftest.$ac_ext <<_ACEOF
36143 /* confdefs.h.  */
36144 _ACEOF
36145 cat confdefs.h >>conftest.$ac_ext
36146 cat >>conftest.$ac_ext <<_ACEOF
36147 /* end confdefs.h.  */
36148 #include <$ac_header>
36149 _ACEOF
36150 if { (ac_try="$ac_cpp conftest.$ac_ext"
36151 case "(($ac_try" in
36152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153   *) ac_try_echo=$ac_try;;
36154 esac
36155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36156 $as_echo "$ac_try_echo") >&5
36157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36158   ac_status=$?
36159   grep -v '^ *+' conftest.er1 >conftest.err
36160   rm -f conftest.er1
36161   cat conftest.err >&5
36162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163   (exit $ac_status); } >/dev/null && {
36164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36165          test ! -s conftest.err
36166        }; then
36167   ac_header_preproc=yes
36168 else
36169   $as_echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36171
36172   ac_header_preproc=no
36173 fi
36174
36175 rm -f conftest.err conftest.$ac_ext
36176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36177 $as_echo "$ac_header_preproc" >&6; }
36178
36179 # So?  What about this header?
36180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36181   yes:no: )
36182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36186     ac_header_preproc=yes
36187     ;;
36188   no:yes:* )
36189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36192 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36196 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36201
36202     ;;
36203 esac
36204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36205 $as_echo_n "checking for $ac_header... " >&6; }
36206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36207   $as_echo_n "(cached) " >&6
36208 else
36209   eval "$as_ac_Header=\$ac_header_preproc"
36210 fi
36211 ac_res=`eval 'as_val=${'$as_ac_Header'}
36212                  $as_echo "$as_val"'`
36213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36214 $as_echo "$ac_res" >&6; }
36215
36216 fi
36217 as_val=`eval 'as_val=${'$as_ac_Header'}
36218                  $as_echo "$as_val"'`
36219    if test "x$as_val" = x""yes; then
36220   cat >>confdefs.h <<_ACEOF
36221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36222 _ACEOF
36223
36224 fi
36225
36226 done
36227
36228
36229     # find a working file-locking mechanism.
36230     # Note: these all use AC_TRY_LINK to make sure that we can compile
36231     # and link each variant.  They do not try to test the variants --
36232     # that is left to runtime.
36233     LOCKING="no"
36234
36235     # check POSIX locking
36236     { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
36237 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
36238 if test "${amanda_cv_posix_filelocking+set}" = set; then
36239   $as_echo_n "(cached) " >&6
36240 else
36241
36242             cat >conftest.$ac_ext <<_ACEOF
36243 /* confdefs.h.  */
36244 _ACEOF
36245 cat confdefs.h >>conftest.$ac_ext
36246 cat >>conftest.$ac_ext <<_ACEOF
36247 /* end confdefs.h.  */
36248
36249 #if HAVE_SYS_TYPES_H
36250 # include <sys/types.h>
36251 #endif
36252 #if HAVE_UNISTD_H
36253 # include <unistd.h>
36254 #endif
36255 #if HAVE_FCNTL_H
36256 # include <fcntl.h>
36257 #endif
36258
36259 int
36260 main ()
36261 {
36262
36263             struct flock lock;
36264
36265             lock.l_type = F_RDLCK;
36266             lock.l_start = 0;
36267             lock.l_whence = SEEK_CUR;
36268             lock.l_len = 0;
36269             return fcntl(1, F_SETLK, &lock);
36270
36271   ;
36272   return 0;
36273 }
36274 _ACEOF
36275 rm -f conftest.$ac_objext conftest$ac_exeext
36276 if { (ac_try="$ac_link"
36277 case "(($ac_try" in
36278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279   *) ac_try_echo=$ac_try;;
36280 esac
36281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36282 $as_echo "$ac_try_echo") >&5
36283   (eval "$ac_link") 2>conftest.er1
36284   ac_status=$?
36285   grep -v '^ *+' conftest.er1 >conftest.err
36286   rm -f conftest.er1
36287   cat conftest.err >&5
36288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); } && {
36290          test -z "$ac_c_werror_flag" ||
36291          test ! -s conftest.err
36292        } && test -s conftest$ac_exeext && {
36293          test "$cross_compiling" = yes ||
36294          $as_test_x conftest$ac_exeext
36295        }; then
36296
36297         amanda_cv_posix_filelocking="yes"
36298
36299 else
36300   $as_echo "$as_me: failed program was:" >&5
36301 sed 's/^/| /' conftest.$ac_ext >&5
36302
36303
36304         amanda_cv_posix_filelocking="no"
36305
36306 fi
36307
36308 rm -rf conftest.dSYM
36309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36310       conftest$ac_exeext conftest.$ac_ext
36311
36312 fi
36313 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
36314 $as_echo "$amanda_cv_posix_filelocking" >&6; }
36315     if test "x$amanda_cv_posix_filelocking" = xyes; then
36316
36317 cat >>confdefs.h <<\_ACEOF
36318 #define WANT_AMFLOCK_POSIX 1
36319 _ACEOF
36320
36321         WANT_AMFLOCK_POSIX="yes"
36322         LOCKING="POSIX_FCNTL"
36323     fi
36324      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
36325   WANT_AMFLOCK_POSIX_TRUE=
36326   WANT_AMFLOCK_POSIX_FALSE='#'
36327 else
36328   WANT_AMFLOCK_POSIX_TRUE='#'
36329   WANT_AMFLOCK_POSIX_FALSE=
36330 fi
36331
36332
36333     # check flock-based (BSD) locking
36334     { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
36335 $as_echo_n "checking whether flock locking is available... " >&6; }
36336 if test "${amanda_cv_flock_filelocking+set}" = set; then
36337   $as_echo_n "(cached) " >&6
36338 else
36339
36340             cat >conftest.$ac_ext <<_ACEOF
36341 /* confdefs.h.  */
36342 _ACEOF
36343 cat confdefs.h >>conftest.$ac_ext
36344 cat >>conftest.$ac_ext <<_ACEOF
36345 /* end confdefs.h.  */
36346
36347 #if HAVE_SYS_FILE_H
36348 # include <sys/file.h>
36349 #endif
36350
36351 int
36352 main ()
36353 {
36354
36355             return flock(1, LOCK_SH);
36356
36357   ;
36358   return 0;
36359 }
36360 _ACEOF
36361 rm -f conftest.$ac_objext conftest$ac_exeext
36362 if { (ac_try="$ac_link"
36363 case "(($ac_try" in
36364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365   *) ac_try_echo=$ac_try;;
36366 esac
36367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36368 $as_echo "$ac_try_echo") >&5
36369   (eval "$ac_link") 2>conftest.er1
36370   ac_status=$?
36371   grep -v '^ *+' conftest.er1 >conftest.err
36372   rm -f conftest.er1
36373   cat conftest.err >&5
36374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375   (exit $ac_status); } && {
36376          test -z "$ac_c_werror_flag" ||
36377          test ! -s conftest.err
36378        } && test -s conftest$ac_exeext && {
36379          test "$cross_compiling" = yes ||
36380          $as_test_x conftest$ac_exeext
36381        }; then
36382
36383         amanda_cv_flock_filelocking="yes"
36384
36385 else
36386   $as_echo "$as_me: failed program was:" >&5
36387 sed 's/^/| /' conftest.$ac_ext >&5
36388
36389
36390         amanda_cv_flock_filelocking="no"
36391
36392 fi
36393
36394 rm -rf conftest.dSYM
36395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36396       conftest$ac_exeext conftest.$ac_ext
36397
36398 fi
36399 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
36400 $as_echo "$amanda_cv_flock_filelocking" >&6; }
36401     if test "x$amanda_cv_flock_filelocking" = xyes; then
36402
36403 cat >>confdefs.h <<\_ACEOF
36404 #define WANT_AMFLOCK_FLOCK 1
36405 _ACEOF
36406
36407         WANT_AMFLOCK_FLOCK="yes"
36408         LOCKING="FLOCK"
36409     fi
36410      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
36411   WANT_AMFLOCK_FLOCK_TRUE=
36412   WANT_AMFLOCK_FLOCK_FALSE='#'
36413 else
36414   WANT_AMFLOCK_FLOCK_TRUE='#'
36415   WANT_AMFLOCK_FLOCK_FALSE=
36416 fi
36417
36418
36419     # check lockf-based (SVR2, SVR3, SVR4) locking
36420     { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
36421 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
36422 if test "${amanda_cv_lockf_filelocking+set}" = set; then
36423   $as_echo_n "(cached) " >&6
36424 else
36425
36426             cat >conftest.$ac_ext <<_ACEOF
36427 /* confdefs.h.  */
36428 _ACEOF
36429 cat confdefs.h >>conftest.$ac_ext
36430 cat >>conftest.$ac_ext <<_ACEOF
36431 /* end confdefs.h.  */
36432
36433 #if HAVE_UNISTD_H
36434 # include <unistd.h>
36435 #endif
36436
36437 int
36438 main ()
36439 {
36440
36441             return lockf(1, F_LOCK, 0);
36442
36443   ;
36444   return 0;
36445 }
36446 _ACEOF
36447 rm -f conftest.$ac_objext conftest$ac_exeext
36448 if { (ac_try="$ac_link"
36449 case "(($ac_try" in
36450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36451   *) ac_try_echo=$ac_try;;
36452 esac
36453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36454 $as_echo "$ac_try_echo") >&5
36455   (eval "$ac_link") 2>conftest.er1
36456   ac_status=$?
36457   grep -v '^ *+' conftest.er1 >conftest.err
36458   rm -f conftest.er1
36459   cat conftest.err >&5
36460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461   (exit $ac_status); } && {
36462          test -z "$ac_c_werror_flag" ||
36463          test ! -s conftest.err
36464        } && test -s conftest$ac_exeext && {
36465          test "$cross_compiling" = yes ||
36466          $as_test_x conftest$ac_exeext
36467        }; then
36468
36469         amanda_cv_lockf_filelocking="yes"
36470
36471 else
36472   $as_echo "$as_me: failed program was:" >&5
36473 sed 's/^/| /' conftest.$ac_ext >&5
36474
36475
36476         amanda_cv_lockf_filelocking="no"
36477
36478 fi
36479
36480 rm -rf conftest.dSYM
36481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36482       conftest$ac_exeext conftest.$ac_ext
36483
36484 fi
36485 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
36486 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
36487     if test "x$amanda_cv_lockf_filelocking" = xyes; then
36488
36489 cat >>confdefs.h <<\_ACEOF
36490 #define WANT_AMFLOCK_LOCKF 1
36491 _ACEOF
36492
36493         WANT_AMFLOCK_LOCKF="yes"
36494         LOCKING="LOCKF"
36495     fi
36496      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
36497   WANT_AMFLOCK_LOCKF_TRUE=
36498   WANT_AMFLOCK_LOCKF_FALSE='#'
36499 else
36500   WANT_AMFLOCK_LOCKF_TRUE='#'
36501   WANT_AMFLOCK_LOCKF_FALSE=
36502 fi
36503
36504
36505     # check our homebrew hardlink-based locking (requires hardlinks)
36506     { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
36507 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
36508 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
36509   $as_echo_n "(cached) " >&6
36510 else
36511
36512             cat >conftest.$ac_ext <<_ACEOF
36513 /* confdefs.h.  */
36514 _ACEOF
36515 cat confdefs.h >>conftest.$ac_ext
36516 cat >>conftest.$ac_ext <<_ACEOF
36517 /* end confdefs.h.  */
36518
36519 #if HAVE_UNISTD_H
36520 # include <unistd.h>
36521 #endif
36522
36523 int
36524 main ()
36525 {
36526
36527             return link("/tmp/foo", "/tmp/bar");
36528
36529   ;
36530   return 0;
36531 }
36532 _ACEOF
36533 rm -f conftest.$ac_objext conftest$ac_exeext
36534 if { (ac_try="$ac_link"
36535 case "(($ac_try" in
36536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36537   *) ac_try_echo=$ac_try;;
36538 esac
36539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36540 $as_echo "$ac_try_echo") >&5
36541   (eval "$ac_link") 2>conftest.er1
36542   ac_status=$?
36543   grep -v '^ *+' conftest.er1 >conftest.err
36544   rm -f conftest.er1
36545   cat conftest.err >&5
36546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); } && {
36548          test -z "$ac_c_werror_flag" ||
36549          test ! -s conftest.err
36550        } && test -s conftest$ac_exeext && {
36551          test "$cross_compiling" = yes ||
36552          $as_test_x conftest$ac_exeext
36553        }; then
36554
36555         amanda_cv_lnlock_filelocking="yes"
36556
36557 else
36558   $as_echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36560
36561
36562         amanda_cv_lnlock_filelocking="no"
36563
36564 fi
36565
36566 rm -rf conftest.dSYM
36567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36568       conftest$ac_exeext conftest.$ac_ext
36569
36570 fi
36571 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
36572 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
36573     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
36574
36575 cat >>confdefs.h <<\_ACEOF
36576 #define WANT_AMFLOCK_LNLOCK 1
36577 _ACEOF
36578
36579         WANT_AMFLOCK_LNLOCK="yes"
36580         LOCKING="LNLOCK"
36581     fi
36582      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
36583   WANT_AMFLOCK_LNLOCK_TRUE=
36584   WANT_AMFLOCK_LNLOCK_FALSE='#'
36585 else
36586   WANT_AMFLOCK_LNLOCK_TRUE='#'
36587   WANT_AMFLOCK_LNLOCK_FALSE=
36588 fi
36589
36590
36591     if test x"$LOCKING" = "no"; then
36592         # this shouldn't happen, and is *bad* if it does
36593         { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
36594 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
36595    { (exit 1); exit 1; }; }
36596     fi
36597
36598
36599
36600
36601
36602     for ac_prog in swig
36603 do
36604   # Extract the first word of "$ac_prog", so it can be a program name with args.
36605 set dummy $ac_prog; ac_word=$2
36606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36607 $as_echo_n "checking for $ac_word... " >&6; }
36608 if test "${ac_cv_path_SWIG+set}" = set; then
36609   $as_echo_n "(cached) " >&6
36610 else
36611   case $SWIG in
36612   [\\/]* | ?:[\\/]*)
36613   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36614   ;;
36615   *)
36616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36617 for as_dir in $LOCSYSPATH
36618 do
36619   IFS=$as_save_IFS
36620   test -z "$as_dir" && as_dir=.
36621   for ac_exec_ext in '' $ac_executable_extensions; do
36622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36623     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36624     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36625     break 2
36626   fi
36627 done
36628 done
36629 IFS=$as_save_IFS
36630
36631   ;;
36632 esac
36633 fi
36634 SWIG=$ac_cv_path_SWIG
36635 if test -n "$SWIG"; then
36636   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36637 $as_echo "$SWIG" >&6; }
36638 else
36639   { $as_echo "$as_me:$LINENO: result: no" >&5
36640 $as_echo "no" >&6; }
36641 fi
36642
36643
36644   test -n "$SWIG" && break
36645 done
36646
36647
36648     # 1.3.32 introduces a change in the way empty strings are handled (old versions
36649     # returned undef in Perl, while new versions return an empty Perl string)
36650     # 1.3.39 is required for the %begin block
36651
36652         # Extract the first word of "swig", so it can be a program name with args.
36653 set dummy swig; ac_word=$2
36654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36655 $as_echo_n "checking for $ac_word... " >&6; }
36656 if test "${ac_cv_path_SWIG+set}" = set; then
36657   $as_echo_n "(cached) " >&6
36658 else
36659   case $SWIG in
36660   [\\/]* | ?:[\\/]*)
36661   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36662   ;;
36663   *)
36664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36665 for as_dir in $PATH
36666 do
36667   IFS=$as_save_IFS
36668   test -z "$as_dir" && as_dir=.
36669   for ac_exec_ext in '' $ac_executable_extensions; do
36670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36671     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36672     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36673     break 2
36674   fi
36675 done
36676 done
36677 IFS=$as_save_IFS
36678
36679   ;;
36680 esac
36681 fi
36682 SWIG=$ac_cv_path_SWIG
36683 if test -n "$SWIG"; then
36684   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36685 $as_echo "$SWIG" >&6; }
36686 else
36687   { $as_echo "$as_me:$LINENO: result: no" >&5
36688 $as_echo "no" >&6; }
36689 fi
36690
36691
36692         if test -z "$SWIG" ; then
36693                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
36694         elif test -n "1.3.39" ; then
36695                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
36696 $as_echo_n "checking for SWIG version... " >&6; }
36697                 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'`
36698                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
36699 $as_echo "$swig_version" >&6; }
36700                 if test -n "$swig_version" ; then
36701
36702   # Used to indicate true or false condition
36703   ax_compare_version=false
36704
36705   # Convert the two version strings to be compared into a format that
36706   # allows a simple string comparison.  The end result is that a version
36707   # string of the form 1.12.5-r617 will be converted to the form
36708   # 0001001200050617.  In other words, each number is zero padded to four
36709   # digits, and non digits are removed.
36710
36711   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36712                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36713                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36714                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36715                      -e 's/[^0-9]//g'`
36716
36717
36718   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36719                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36720                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36721                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36722                      -e 's/[^0-9]//g'`
36723
36724
36725     ax_compare_version=`echo "x$ax_compare_version_A
36726 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"`
36727
36728
36729
36730     if test "$ax_compare_version" = "true" ; then
36731
36732                                                     SWIG_LIB=`$SWIG -swiglib`
36733
36734     else
36735                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
36736
36737   fi
36738
36739                 else
36740                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
36741                 fi
36742         fi
36743
36744
36745
36746
36747
36748     for ac_prog in perl5 perl
36749 do
36750   # Extract the first word of "$ac_prog", so it can be a program name with args.
36751 set dummy $ac_prog; ac_word=$2
36752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36753 $as_echo_n "checking for $ac_word... " >&6; }
36754 if test "${ac_cv_path_PERL+set}" = set; then
36755   $as_echo_n "(cached) " >&6
36756 else
36757   case $PERL in
36758   [\\/]* | ?:[\\/]*)
36759   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36760   ;;
36761   *)
36762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36763 for as_dir in $LOCSYSPATH
36764 do
36765   IFS=$as_save_IFS
36766   test -z "$as_dir" && as_dir=.
36767   for ac_exec_ext in '' $ac_executable_extensions; do
36768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36769     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36770     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36771     break 2
36772   fi
36773 done
36774 done
36775 IFS=$as_save_IFS
36776
36777   ;;
36778 esac
36779 fi
36780 PERL=$ac_cv_path_PERL
36781 if test -n "$PERL"; then
36782   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36783 $as_echo "$PERL" >&6; }
36784 else
36785   { $as_echo "$as_me:$LINENO: result: no" >&5
36786 $as_echo "no" >&6; }
36787 fi
36788
36789
36790   test -n "$PERL" && break
36791 done
36792
36793
36794     # Make sure we have perl
36795 if test -z "$PERL"; then
36796 # Extract the first word of "perl", so it can be a program name with args.
36797 set dummy perl; ac_word=$2
36798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36799 $as_echo_n "checking for $ac_word... " >&6; }
36800 if test "${ac_cv_prog_PERL+set}" = set; then
36801   $as_echo_n "(cached) " >&6
36802 else
36803   if test -n "$PERL"; then
36804   ac_cv_prog_PERL="$PERL" # Let the user override the test.
36805 else
36806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36807 for as_dir in $PATH
36808 do
36809   IFS=$as_save_IFS
36810   test -z "$as_dir" && as_dir=.
36811   for ac_exec_ext in '' $ac_executable_extensions; do
36812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36813     ac_cv_prog_PERL="perl"
36814     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36815     break 2
36816   fi
36817 done
36818 done
36819 IFS=$as_save_IFS
36820
36821 fi
36822 fi
36823 PERL=$ac_cv_prog_PERL
36824 if test -n "$PERL"; then
36825   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36826 $as_echo "$PERL" >&6; }
36827 else
36828   { $as_echo "$as_me:$LINENO: result: no" >&5
36829 $as_echo "no" >&6; }
36830 fi
36831
36832
36833 fi
36834
36835 # Check if version of Perl is sufficient
36836 ac_perl_version="5.6.0"
36837
36838 if test "x$PERL" != "x"; then
36839   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
36840 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
36841   # NB: It would be nice to log the error if there is one, but we cannot rely
36842   # on autoconf internals
36843   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
36844   if test $? -ne 0; then
36845     { $as_echo "$as_me:$LINENO: result: no" >&5
36846 $as_echo "no" >&6; };
36847
36848         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
36849 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
36850    { (exit 1); exit 1; }; }
36851
36852   else
36853     { $as_echo "$as_me:$LINENO: result: ok" >&5
36854 $as_echo "ok" >&6; };
36855
36856   fi
36857 else
36858   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
36859 $as_echo "$as_me: WARNING: could not find perl" >&2;}
36860 fi
36861
36862
36863
36864
36865
36866
36867     WANT_CYGWIN_COPY_PERL_DLL=false
36868     WANT_MANDATORY_THREAD_CHECK=false
36869
36870     # test for ExtUtils::Embed
36871     ac_perl_list_modules="ExtUtils::Embed 0.0"
36872 # Make sure we have perl
36873 if test -z "$PERL"; then
36874 # Extract the first word of "perl", so it can be a program name with args.
36875 set dummy perl; ac_word=$2
36876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36877 $as_echo_n "checking for $ac_word... " >&6; }
36878 if test "${ac_cv_prog_PERL+set}" = set; then
36879   $as_echo_n "(cached) " >&6
36880 else
36881   if test -n "$PERL"; then
36882   ac_cv_prog_PERL="$PERL" # Let the user override the test.
36883 else
36884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36885 for as_dir in $PATH
36886 do
36887   IFS=$as_save_IFS
36888   test -z "$as_dir" && as_dir=.
36889   for ac_exec_ext in '' $ac_executable_extensions; do
36890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36891     ac_cv_prog_PERL="perl"
36892     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36893     break 2
36894   fi
36895 done
36896 done
36897 IFS=$as_save_IFS
36898
36899 fi
36900 fi
36901 PERL=$ac_cv_prog_PERL
36902 if test -n "$PERL"; then
36903   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36904 $as_echo "$PERL" >&6; }
36905 else
36906   { $as_echo "$as_me:$LINENO: result: no" >&5
36907 $as_echo "no" >&6; }
36908 fi
36909
36910
36911 fi
36912
36913 # Check the number of arguments
36914 args_num=`echo $ac_perl_list_modules | wc -w`
36915 let "ckeck_args = $args_num % 2"
36916 if test "$check_args" = "1" ; then
36917   { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
36918 $as_echo "$as_me: error: syntax error" >&2;}
36919    { (exit 1); exit 1; }; }
36920 else
36921   eval
36922 fi
36923
36924 if test "x$PERL" != x; then
36925   ac_failed=0
36926   while test ${#ac_perl_list_modules} -gt 2 ; do
36927         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
36928         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
36929         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
36930         { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
36931 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
36932
36933         $PERL "-M$module_name" -e exit > /dev/null 2>&1
36934         if test $? -ne 0; then
36935           { $as_echo "$as_me:$LINENO: result: no" >&5
36936 $as_echo "no" >&6; };
36937           ac_failed=1
36938           ac_perl_list_modules=""
36939         else
36940           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
36941           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
36942           if test $? -eq 0 -o $? -eq 1 ; then
36943             { $as_echo "$as_me:$LINENO: result: ok" >&5
36944 $as_echo "ok" >&6; };
36945           else
36946             { $as_echo "$as_me:$LINENO: result: no" >&5
36947 $as_echo "no" >&6; }
36948             ac_failed=1
36949             ac_perl_list_modules=""
36950           fi
36951         fi;
36952   done
36953
36954   if test "$ac_failed" = 0; then
36955     :
36956
36957   else
36958     :
36959
36960         { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
36961 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
36962    { (exit 1); exit 1; }; }
36963
36964   fi
36965 else
36966   { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
36967 $as_echo "$as_me: error: could not find perl" >&2;}
36968    { (exit 1); exit 1; }; }
36969 fi
36970
36971     # get the include path for building perl extensions
36972     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
36973
36974
36975     if test x"$enable_shared" = x"no"; then
36976         { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
36977 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
36978    { (exit 1); exit 1; }; }
36979     fi
36980
36981     case "$host" in
36982         *freebsd[123456].*) # up to and including FreeBSD 6.*
36983             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
36984             # libgthread to automatically pull in the desired threading library.
36985             # Instead, they assume that any application linking against
36986             # libgthread will pull in the threading library.  This is fine for
36987             # Amanda C applications, but for Perl applications this assumption
36988             # means that the perl binary would pull in the threading library.
36989             # But perl is compiled without threading by default.
36990             #
36991             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
36992             # decision is made in gcc's spec files, which were changed in
36993             # gcc-4.0.  For a more in-depth discussion, see
36994             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
36995             #
36996             # The easiest solution for the "default" case is to link all perl
36997             # extension libraries against the threading library, so it is loaded
36998             # when perl loads the extension library.  The default threading
36999             # library in FreeBSD is libpthread.  The below default will work on
37000             # such a FreeBSD system, but ports maintainers and those with
37001             # different configurations may need to override this value with
37002             # --with-perlextlibs.
37003             #
37004             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
37005             # combination with -shared.  See
37006             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
37007
37008             PERLEXTLIBS="-lpthread"
37009             WANT_MANDATORY_THREAD_CHECK=true
37010             ;;
37011
37012         *freebsd*) # all FreeBSD not matched above
37013             # for all FreeBSD (including 1.0-6.0, above), we want to run the
37014             # thread-check rule in perl/Makefile.am to double-check that a Perl
37015             # script can call a C extension that uses threads.
37016             WANT_MANDATORY_THREAD_CHECK=true
37017             ;;
37018
37019         *-pc-cygwin)
37020             # When need -lperl and the '-L' where it is located,
37021             # we don't want the DynaLoader.a
37022             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
37023             # we want cygwin to copy ddl to modules directory.
37024             WANT_CYGWIN_COPY_PERL_DLL="true";
37025             ;;
37026     esac
37027      if $WANT_CYGWIN_COPY_PERL_DLL; then
37028   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
37029   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
37030 else
37031   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
37032   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
37033 fi
37034
37035      if $WANT_MANDATORY_THREAD_CHECK; then
37036   WANT_MANDATORY_THREAD_CHECK_TRUE=
37037   WANT_MANDATORY_THREAD_CHECK_FALSE='#'
37038 else
37039   WANT_MANDATORY_THREAD_CHECK_TRUE='#'
37040   WANT_MANDATORY_THREAD_CHECK_FALSE=
37041 fi
37042
37043
37044
37045 # Check whether --with-perlextlibs was given.
37046 if test "${with_perlextlibs+set}" = set; then
37047   withval=$with_perlextlibs;
37048             case "$withval" in
37049                 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
37050 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
37051    { (exit 1); exit 1; }; };;
37052                 n|no) PERLEXTLIBS='';;
37053                 *) PERLEXTLIBS="$withval" ;;
37054             esac
37055
37056 fi
37057
37058
37059
37060
37061
37062     # Extract the first word of "cat", so it can be a program name with args.
37063 set dummy cat; ac_word=$2
37064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37065 $as_echo_n "checking for $ac_word... " >&6; }
37066 if test "${ac_cv_path_CAT+set}" = set; then
37067   $as_echo_n "(cached) " >&6
37068 else
37069   case $CAT in
37070   [\\/]* | ?:[\\/]*)
37071   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
37072   ;;
37073   *)
37074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37075 for as_dir in $LOCSYSPATH
37076 do
37077   IFS=$as_save_IFS
37078   test -z "$as_dir" && as_dir=.
37079   for ac_exec_ext in '' $ac_executable_extensions; do
37080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37081     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
37082     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37083     break 2
37084   fi
37085 done
37086 done
37087 IFS=$as_save_IFS
37088
37089   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
37090   ;;
37091 esac
37092 fi
37093 CAT=$ac_cv_path_CAT
37094 if test -n "$CAT"; then
37095   { $as_echo "$as_me:$LINENO: result: $CAT" >&5
37096 $as_echo "$CAT" >&6; }
37097 else
37098   { $as_echo "$as_me:$LINENO: result: no" >&5
37099 $as_echo "no" >&6; }
37100 fi
37101
37102
37103
37104
37105
37106
37107
37108
37109     HAVE_GZIP=
37110     if test "$GZIP"; then
37111
37112 cat >>confdefs.h <<\_ACEOF
37113 #define HAVE_GZIP 1
37114 _ACEOF
37115
37116         HAVE_GZIP=1
37117         COMPRESS_PATH="$GZIP"
37118         COMPRESS_SUFFIX=".gz"
37119         COMPRESS_FAST_OPT="--fast"
37120         COMPRESS_BEST_OPT="--best"
37121         UNCOMPRESS_PATH="$GZIP"
37122         UNCOMPRESS_OPT="-dc"
37123     else
37124         if test "$COMPRESS"; then
37125             COMPRESS_PATH="$COMPRESS"
37126             COMPRESS_SUFFIX=".Z"
37127             COMPRESS_FAST_OPT="-f"
37128             COMPRESS_BEST_OPT="-f"
37129             UNCOMPRESS_PATH="$COMPRESS"
37130             UNCOMPRESS_OPT="-dc"
37131         else
37132             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
37133             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
37134             # look for a file by the name of "".
37135             # XXX is the above true? --dustin
37136
37137
37138     { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
37139 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
37140
37141
37142     cat <<AAW_EOF >>config.warnings
37143 Cannot find either gzip or compress.  Using cat.
37144 AAW_EOF
37145
37146
37147             COMPRESS_PATH="$CAT"
37148             COMPRESS_SUFFIX=""
37149             COMPRESS_FAST_OPT=""
37150             COMPRESS_BEST_OPT=""
37151             UNCOMPRESS_PATH="$CAT"
37152             UNCOMPRESS_OPT=""
37153         fi
37154     fi
37155
37156
37157 cat >>confdefs.h <<_ACEOF
37158 #define COMPRESS_PATH "$COMPRESS_PATH"
37159 _ACEOF
37160
37161
37162 cat >>confdefs.h <<_ACEOF
37163 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
37164 _ACEOF
37165
37166
37167 cat >>confdefs.h <<_ACEOF
37168 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
37169 _ACEOF
37170
37171
37172 cat >>confdefs.h <<_ACEOF
37173 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
37174 _ACEOF
37175
37176
37177 cat >>confdefs.h <<_ACEOF
37178 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
37179 _ACEOF
37180
37181
37182 cat >>confdefs.h <<_ACEOF
37183 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
37184 _ACEOF
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195     # Empty GZIP so that make dist works.
37196     GZIP=
37197
37198
37199     { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
37200 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
37201 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
37202   $as_echo_n "(cached) " >&6
37203 else
37204
37205         cat >conftest.$ac_ext <<_ACEOF
37206 /* confdefs.h.  */
37207 _ACEOF
37208 cat confdefs.h >>conftest.$ac_ext
37209 cat >>conftest.$ac_ext <<_ACEOF
37210 /* end confdefs.h.  */
37211
37212 #       include <sys/types.h>
37213 #       include <sys/socket.h>
37214 int
37215 main ()
37216 {
37217 u_int i = sizeof (struct sockaddr_storage)
37218   ;
37219   return 0;
37220 }
37221 _ACEOF
37222 rm -f conftest.$ac_objext
37223 if { (ac_try="$ac_compile"
37224 case "(($ac_try" in
37225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37226   *) ac_try_echo=$ac_try;;
37227 esac
37228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37229 $as_echo "$ac_try_echo") >&5
37230   (eval "$ac_compile") 2>conftest.er1
37231   ac_status=$?
37232   grep -v '^ *+' conftest.er1 >conftest.err
37233   rm -f conftest.er1
37234   cat conftest.err >&5
37235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236   (exit $ac_status); } && {
37237          test -z "$ac_c_werror_flag" ||
37238          test ! -s conftest.err
37239        } && test -s conftest.$ac_objext; then
37240   ac_cv_has_sockaddr_storage=yes
37241 else
37242   $as_echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37244
37245         ac_cv_has_sockaddr_storage=no
37246 fi
37247
37248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37249
37250 fi
37251 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
37252 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
37253
37254     if test $ac_cv_has_sockaddr_storage = yes ; then
37255
37256 cat >>confdefs.h <<\_ACEOF
37257 #define HAVE_SOCKADDR_STORAGE 1
37258 _ACEOF
37259
37260     fi
37261
37262
37263
37264
37265     WORKING_IPV6=no
37266
37267 # Check whether --with-ipv6 was given.
37268 if test "${with_ipv6+set}" = set; then
37269   withval=$with_ipv6;
37270             case "$withval" in
37271             y | ye | yes) amanda_with_ipv6=yes;;
37272             n | no) amanda_with_ipv6=no;;
37273             *)
37274                 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
37275 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
37276    { (exit 1); exit 1; }; }
37277               ;;
37278             esac
37279
37280 else
37281
37282             amanda_with_ipv6=maybe
37283
37284
37285 fi
37286
37287
37288     if test x"$amanda_with_ipv6" = x"yes" ||
37289        test x"$amanda_with_ipv6" = x"maybe" ; then
37290         { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
37291 $as_echo_n "checking for working IPv6... " >&6; }
37292 if test "${amanda_cv_working_ipv6+set}" = set; then
37293   $as_echo_n "(cached) " >&6
37294 else
37295
37296             case "$host" in
37297                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
37298                 *)
37299                     if test "$cross_compiling" = yes; then
37300    amanda_cv_working_ipv6=yes
37301
37302 else
37303   cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h.  */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h.  */
37309
37310 #include <sys/types.h>
37311 #ifdef HAVE_SYS_SOCKET_H
37312 #include <sys/socket.h>
37313 #endif
37314 #ifdef HAVE_NETINET_IN_H
37315 #include <netinet/in.h>
37316 #endif
37317 #ifdef HAVE_WINSOCK2_H
37318 #include <winsock2.h>
37319 #endif
37320 #include <sys/socket.h>
37321 #include <errno.h>
37322
37323 main()
37324 {
37325    int aa;
37326    aa = socket(AF_INET6, SOCK_STREAM, 0);
37327    if (aa > 0) return 0;
37328    return aa;
37329 }
37330 _ACEOF
37331 rm -f conftest$ac_exeext
37332 if { (ac_try="$ac_link"
37333 case "(($ac_try" in
37334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37335   *) ac_try_echo=$ac_try;;
37336 esac
37337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37338 $as_echo "$ac_try_echo") >&5
37339   (eval "$ac_link") 2>&5
37340   ac_status=$?
37341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37343   { (case "(($ac_try" in
37344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37345   *) ac_try_echo=$ac_try;;
37346 esac
37347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37348 $as_echo "$ac_try_echo") >&5
37349   (eval "$ac_try") 2>&5
37350   ac_status=$?
37351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352   (exit $ac_status); }; }; then
37353    amanda_cv_working_ipv6=yes
37354 else
37355   $as_echo "$as_me: program exited with status $ac_status" >&5
37356 $as_echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37358
37359 ( exit $ac_status )
37360  amanda_cv_working_ipv6=no
37361 fi
37362 rm -rf conftest.dSYM
37363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37364 fi
37365
37366
37367             esac
37368
37369 fi
37370 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
37371 $as_echo "$amanda_cv_working_ipv6" >&6; }
37372
37373         if test "$amanda_cv_working_ipv6" = yes; then
37374             WORKING_IPV6=yes
37375
37376 cat >>confdefs.h <<\_ACEOF
37377 #define WORKING_IPV6 1
37378 _ACEOF
37379
37380         else
37381             # error out only if the user specifically requested support
37382             if test x"$amanda_with_ipv6" = x"yes"; then
37383                 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but opening an IPv6 socket failed" >&5
37384 $as_echo "$as_me: error: IPv6 support was requested, but opening an IPv6 socket failed" >&2;}
37385    { (exit 1); exit 1; }; }
37386             fi
37387         fi
37388     fi
37389
37390
37391
37392
37393
37394
37395
37396 ac_header_dirent=no
37397 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
37398   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
37399 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
37400 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
37401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37402   $as_echo_n "(cached) " >&6
37403 else
37404   cat >conftest.$ac_ext <<_ACEOF
37405 /* confdefs.h.  */
37406 _ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h.  */
37410 #include <sys/types.h>
37411 #include <$ac_hdr>
37412
37413 int
37414 main ()
37415 {
37416 if ((DIR *) 0)
37417 return 0;
37418   ;
37419   return 0;
37420 }
37421 _ACEOF
37422 rm -f conftest.$ac_objext
37423 if { (ac_try="$ac_compile"
37424 case "(($ac_try" in
37425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37426   *) ac_try_echo=$ac_try;;
37427 esac
37428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37429 $as_echo "$ac_try_echo") >&5
37430   (eval "$ac_compile") 2>conftest.er1
37431   ac_status=$?
37432   grep -v '^ *+' conftest.er1 >conftest.err
37433   rm -f conftest.er1
37434   cat conftest.err >&5
37435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436   (exit $ac_status); } && {
37437          test -z "$ac_c_werror_flag" ||
37438          test ! -s conftest.err
37439        } && test -s conftest.$ac_objext; then
37440   eval "$as_ac_Header=yes"
37441 else
37442   $as_echo "$as_me: failed program was:" >&5
37443 sed 's/^/| /' conftest.$ac_ext >&5
37444
37445         eval "$as_ac_Header=no"
37446 fi
37447
37448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37449 fi
37450 ac_res=`eval 'as_val=${'$as_ac_Header'}
37451                  $as_echo "$as_val"'`
37452                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37453 $as_echo "$ac_res" >&6; }
37454 as_val=`eval 'as_val=${'$as_ac_Header'}
37455                  $as_echo "$as_val"'`
37456    if test "x$as_val" = x""yes; then
37457   cat >>confdefs.h <<_ACEOF
37458 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
37459 _ACEOF
37460
37461 ac_header_dirent=$ac_hdr; break
37462 fi
37463
37464 done
37465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
37466 if test $ac_header_dirent = dirent.h; then
37467   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37468 $as_echo_n "checking for library containing opendir... " >&6; }
37469 if test "${ac_cv_search_opendir+set}" = set; then
37470   $as_echo_n "(cached) " >&6
37471 else
37472   ac_func_search_save_LIBS=$LIBS
37473 cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h.  */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h.  */
37479
37480 /* Override any GCC internal prototype to avoid an error.
37481    Use char because int might match the return type of a GCC
37482    builtin and then its argument prototype would still apply.  */
37483 #ifdef __cplusplus
37484 extern "C"
37485 #endif
37486 char opendir ();
37487 int
37488 main ()
37489 {
37490 return opendir ();
37491   ;
37492   return 0;
37493 }
37494 _ACEOF
37495 for ac_lib in '' dir; do
37496   if test -z "$ac_lib"; then
37497     ac_res="none required"
37498   else
37499     ac_res=-l$ac_lib
37500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37501   fi
37502   rm -f conftest.$ac_objext conftest$ac_exeext
37503 if { (ac_try="$ac_link"
37504 case "(($ac_try" in
37505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37506   *) ac_try_echo=$ac_try;;
37507 esac
37508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37509 $as_echo "$ac_try_echo") >&5
37510   (eval "$ac_link") 2>conftest.er1
37511   ac_status=$?
37512   grep -v '^ *+' conftest.er1 >conftest.err
37513   rm -f conftest.er1
37514   cat conftest.err >&5
37515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516   (exit $ac_status); } && {
37517          test -z "$ac_c_werror_flag" ||
37518          test ! -s conftest.err
37519        } && test -s conftest$ac_exeext && {
37520          test "$cross_compiling" = yes ||
37521          $as_test_x conftest$ac_exeext
37522        }; then
37523   ac_cv_search_opendir=$ac_res
37524 else
37525   $as_echo "$as_me: failed program was:" >&5
37526 sed 's/^/| /' conftest.$ac_ext >&5
37527
37528
37529 fi
37530
37531 rm -rf conftest.dSYM
37532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37533       conftest$ac_exeext
37534   if test "${ac_cv_search_opendir+set}" = set; then
37535   break
37536 fi
37537 done
37538 if test "${ac_cv_search_opendir+set}" = set; then
37539   :
37540 else
37541   ac_cv_search_opendir=no
37542 fi
37543 rm conftest.$ac_ext
37544 LIBS=$ac_func_search_save_LIBS
37545 fi
37546 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37547 $as_echo "$ac_cv_search_opendir" >&6; }
37548 ac_res=$ac_cv_search_opendir
37549 if test "$ac_res" != no; then
37550   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37551
37552 fi
37553
37554 else
37555   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37556 $as_echo_n "checking for library containing opendir... " >&6; }
37557 if test "${ac_cv_search_opendir+set}" = set; then
37558   $as_echo_n "(cached) " >&6
37559 else
37560   ac_func_search_save_LIBS=$LIBS
37561 cat >conftest.$ac_ext <<_ACEOF
37562 /* confdefs.h.  */
37563 _ACEOF
37564 cat confdefs.h >>conftest.$ac_ext
37565 cat >>conftest.$ac_ext <<_ACEOF
37566 /* end confdefs.h.  */
37567
37568 /* Override any GCC internal prototype to avoid an error.
37569    Use char because int might match the return type of a GCC
37570    builtin and then its argument prototype would still apply.  */
37571 #ifdef __cplusplus
37572 extern "C"
37573 #endif
37574 char opendir ();
37575 int
37576 main ()
37577 {
37578 return opendir ();
37579   ;
37580   return 0;
37581 }
37582 _ACEOF
37583 for ac_lib in '' x; do
37584   if test -z "$ac_lib"; then
37585     ac_res="none required"
37586   else
37587     ac_res=-l$ac_lib
37588     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37589   fi
37590   rm -f conftest.$ac_objext conftest$ac_exeext
37591 if { (ac_try="$ac_link"
37592 case "(($ac_try" in
37593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37594   *) ac_try_echo=$ac_try;;
37595 esac
37596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37597 $as_echo "$ac_try_echo") >&5
37598   (eval "$ac_link") 2>conftest.er1
37599   ac_status=$?
37600   grep -v '^ *+' conftest.er1 >conftest.err
37601   rm -f conftest.er1
37602   cat conftest.err >&5
37603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604   (exit $ac_status); } && {
37605          test -z "$ac_c_werror_flag" ||
37606          test ! -s conftest.err
37607        } && test -s conftest$ac_exeext && {
37608          test "$cross_compiling" = yes ||
37609          $as_test_x conftest$ac_exeext
37610        }; then
37611   ac_cv_search_opendir=$ac_res
37612 else
37613   $as_echo "$as_me: failed program was:" >&5
37614 sed 's/^/| /' conftest.$ac_ext >&5
37615
37616
37617 fi
37618
37619 rm -rf conftest.dSYM
37620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37621       conftest$ac_exeext
37622   if test "${ac_cv_search_opendir+set}" = set; then
37623   break
37624 fi
37625 done
37626 if test "${ac_cv_search_opendir+set}" = set; then
37627   :
37628 else
37629   ac_cv_search_opendir=no
37630 fi
37631 rm conftest.$ac_ext
37632 LIBS=$ac_func_search_save_LIBS
37633 fi
37634 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37635 $as_echo "$ac_cv_search_opendir" >&6; }
37636 ac_res=$ac_cv_search_opendir
37637 if test "$ac_res" != no; then
37638   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37639
37640 fi
37641
37642 fi
37643
37644
37645     # include the dirent headers as described in the autoconf documentation.
37646     { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
37647 $as_echo_n "checking whether readdir is declared... " >&6; }
37648 if test "${ac_cv_have_decl_readdir+set}" = set; then
37649   $as_echo_n "(cached) " >&6
37650 else
37651   cat >conftest.$ac_ext <<_ACEOF
37652 /* confdefs.h.  */
37653 _ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h.  */
37657
37658 #if HAVE_DIRENT_H
37659 # include <dirent.h>
37660 # define NAMLEN(dirent) strlen((dirent)->d_name)
37661 #else
37662 # define dirent direct
37663 # define NAMLEN(dirent) (dirent)->d_namlen
37664 # if HAVE_SYS_NDIR_H
37665 #  include <sys/ndir.h>
37666 # endif
37667 # if HAVE_SYS_DIR_H
37668 #  include <sys/dir.h>
37669 # endif
37670 # if HAVE_NDIR_H
37671 #  include <ndir.h>
37672 # endif
37673 #endif
37674
37675
37676 int
37677 main ()
37678 {
37679 #ifndef readdir
37680   (void) readdir;
37681 #endif
37682
37683   ;
37684   return 0;
37685 }
37686 _ACEOF
37687 rm -f conftest.$ac_objext
37688 if { (ac_try="$ac_compile"
37689 case "(($ac_try" in
37690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37691   *) ac_try_echo=$ac_try;;
37692 esac
37693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37694 $as_echo "$ac_try_echo") >&5
37695   (eval "$ac_compile") 2>conftest.er1
37696   ac_status=$?
37697   grep -v '^ *+' conftest.er1 >conftest.err
37698   rm -f conftest.er1
37699   cat conftest.err >&5
37700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701   (exit $ac_status); } && {
37702          test -z "$ac_c_werror_flag" ||
37703          test ! -s conftest.err
37704        } && test -s conftest.$ac_objext; then
37705   ac_cv_have_decl_readdir=yes
37706 else
37707   $as_echo "$as_me: failed program was:" >&5
37708 sed 's/^/| /' conftest.$ac_ext >&5
37709
37710         ac_cv_have_decl_readdir=no
37711 fi
37712
37713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37714 fi
37715 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
37716 $as_echo "$ac_cv_have_decl_readdir" >&6; }
37717 if test "x$ac_cv_have_decl_readdir" = x""yes; then
37718
37719 cat >>confdefs.h <<_ACEOF
37720 #define HAVE_DECL_READDIR 1
37721 _ACEOF
37722
37723
37724 else
37725   cat >>confdefs.h <<_ACEOF
37726 #define HAVE_DECL_READDIR 0
37727 _ACEOF
37728
37729
37730 fi
37731 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
37732 $as_echo_n "checking whether readdir_r is declared... " >&6; }
37733 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
37734   $as_echo_n "(cached) " >&6
37735 else
37736   cat >conftest.$ac_ext <<_ACEOF
37737 /* confdefs.h.  */
37738 _ACEOF
37739 cat confdefs.h >>conftest.$ac_ext
37740 cat >>conftest.$ac_ext <<_ACEOF
37741 /* end confdefs.h.  */
37742
37743 #if HAVE_DIRENT_H
37744 # include <dirent.h>
37745 # define NAMLEN(dirent) strlen((dirent)->d_name)
37746 #else
37747 # define dirent direct
37748 # define NAMLEN(dirent) (dirent)->d_namlen
37749 # if HAVE_SYS_NDIR_H
37750 #  include <sys/ndir.h>
37751 # endif
37752 # if HAVE_SYS_DIR_H
37753 #  include <sys/dir.h>
37754 # endif
37755 # if HAVE_NDIR_H
37756 #  include <ndir.h>
37757 # endif
37758 #endif
37759
37760
37761 int
37762 main ()
37763 {
37764 #ifndef readdir_r
37765   (void) readdir_r;
37766 #endif
37767
37768   ;
37769   return 0;
37770 }
37771 _ACEOF
37772 rm -f conftest.$ac_objext
37773 if { (ac_try="$ac_compile"
37774 case "(($ac_try" in
37775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776   *) ac_try_echo=$ac_try;;
37777 esac
37778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37779 $as_echo "$ac_try_echo") >&5
37780   (eval "$ac_compile") 2>conftest.er1
37781   ac_status=$?
37782   grep -v '^ *+' conftest.er1 >conftest.err
37783   rm -f conftest.er1
37784   cat conftest.err >&5
37785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786   (exit $ac_status); } && {
37787          test -z "$ac_c_werror_flag" ||
37788          test ! -s conftest.err
37789        } && test -s conftest.$ac_objext; then
37790   ac_cv_have_decl_readdir_r=yes
37791 else
37792   $as_echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37794
37795         ac_cv_have_decl_readdir_r=no
37796 fi
37797
37798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37799 fi
37800 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
37801 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
37802 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
37803
37804 cat >>confdefs.h <<_ACEOF
37805 #define HAVE_DECL_READDIR_R 1
37806 _ACEOF
37807
37808
37809 else
37810   cat >>confdefs.h <<_ACEOF
37811 #define HAVE_DECL_READDIR_R 0
37812 _ACEOF
37813
37814
37815 fi
37816 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
37817 $as_echo_n "checking whether readdir64 is declared... " >&6; }
37818 if test "${ac_cv_have_decl_readdir64+set}" = set; then
37819   $as_echo_n "(cached) " >&6
37820 else
37821   cat >conftest.$ac_ext <<_ACEOF
37822 /* confdefs.h.  */
37823 _ACEOF
37824 cat confdefs.h >>conftest.$ac_ext
37825 cat >>conftest.$ac_ext <<_ACEOF
37826 /* end confdefs.h.  */
37827
37828 #if HAVE_DIRENT_H
37829 # include <dirent.h>
37830 # define NAMLEN(dirent) strlen((dirent)->d_name)
37831 #else
37832 # define dirent direct
37833 # define NAMLEN(dirent) (dirent)->d_namlen
37834 # if HAVE_SYS_NDIR_H
37835 #  include <sys/ndir.h>
37836 # endif
37837 # if HAVE_SYS_DIR_H
37838 #  include <sys/dir.h>
37839 # endif
37840 # if HAVE_NDIR_H
37841 #  include <ndir.h>
37842 # endif
37843 #endif
37844
37845
37846 int
37847 main ()
37848 {
37849 #ifndef readdir64
37850   (void) readdir64;
37851 #endif
37852
37853   ;
37854   return 0;
37855 }
37856 _ACEOF
37857 rm -f conftest.$ac_objext
37858 if { (ac_try="$ac_compile"
37859 case "(($ac_try" in
37860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37861   *) ac_try_echo=$ac_try;;
37862 esac
37863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37864 $as_echo "$ac_try_echo") >&5
37865   (eval "$ac_compile") 2>conftest.er1
37866   ac_status=$?
37867   grep -v '^ *+' conftest.er1 >conftest.err
37868   rm -f conftest.er1
37869   cat conftest.err >&5
37870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871   (exit $ac_status); } && {
37872          test -z "$ac_c_werror_flag" ||
37873          test ! -s conftest.err
37874        } && test -s conftest.$ac_objext; then
37875   ac_cv_have_decl_readdir64=yes
37876 else
37877   $as_echo "$as_me: failed program was:" >&5
37878 sed 's/^/| /' conftest.$ac_ext >&5
37879
37880         ac_cv_have_decl_readdir64=no
37881 fi
37882
37883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37884 fi
37885 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
37886 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
37887 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
37888
37889 cat >>confdefs.h <<_ACEOF
37890 #define HAVE_DECL_READDIR64 1
37891 _ACEOF
37892
37893
37894 else
37895   cat >>confdefs.h <<_ACEOF
37896 #define HAVE_DECL_READDIR64 0
37897 _ACEOF
37898
37899
37900 fi
37901 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
37902 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
37903 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
37904   $as_echo_n "(cached) " >&6
37905 else
37906   cat >conftest.$ac_ext <<_ACEOF
37907 /* confdefs.h.  */
37908 _ACEOF
37909 cat confdefs.h >>conftest.$ac_ext
37910 cat >>conftest.$ac_ext <<_ACEOF
37911 /* end confdefs.h.  */
37912
37913 #if HAVE_DIRENT_H
37914 # include <dirent.h>
37915 # define NAMLEN(dirent) strlen((dirent)->d_name)
37916 #else
37917 # define dirent direct
37918 # define NAMLEN(dirent) (dirent)->d_namlen
37919 # if HAVE_SYS_NDIR_H
37920 #  include <sys/ndir.h>
37921 # endif
37922 # if HAVE_SYS_DIR_H
37923 #  include <sys/dir.h>
37924 # endif
37925 # if HAVE_NDIR_H
37926 #  include <ndir.h>
37927 # endif
37928 #endif
37929
37930
37931 int
37932 main ()
37933 {
37934 #ifndef readdir64_r
37935   (void) readdir64_r;
37936 #endif
37937
37938   ;
37939   return 0;
37940 }
37941 _ACEOF
37942 rm -f conftest.$ac_objext
37943 if { (ac_try="$ac_compile"
37944 case "(($ac_try" in
37945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37946   *) ac_try_echo=$ac_try;;
37947 esac
37948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37949 $as_echo "$ac_try_echo") >&5
37950   (eval "$ac_compile") 2>conftest.er1
37951   ac_status=$?
37952   grep -v '^ *+' conftest.er1 >conftest.err
37953   rm -f conftest.er1
37954   cat conftest.err >&5
37955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956   (exit $ac_status); } && {
37957          test -z "$ac_c_werror_flag" ||
37958          test ! -s conftest.err
37959        } && test -s conftest.$ac_objext; then
37960   ac_cv_have_decl_readdir64_r=yes
37961 else
37962   $as_echo "$as_me: failed program was:" >&5
37963 sed 's/^/| /' conftest.$ac_ext >&5
37964
37965         ac_cv_have_decl_readdir64_r=no
37966 fi
37967
37968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37969 fi
37970 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
37971 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
37972 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
37973
37974 cat >>confdefs.h <<_ACEOF
37975 #define HAVE_DECL_READDIR64_R 1
37976 _ACEOF
37977
37978
37979 else
37980   cat >>confdefs.h <<_ACEOF
37981 #define HAVE_DECL_READDIR64_R 0
37982 _ACEOF
37983
37984
37985 fi
37986
37987
37988
37989
37990     # disk device prefixes
37991     { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
37992 $as_echo_n "checking disk device prefixes... " >&6; }
37993
37994     # Use df to find the mount point for the root filesystem.  Use
37995     # the positional parameters to find the particular line from df
37996     # that contains the root paritition.  We put it in a subshell so
37997     # that the original positional parameters are not messed with.
37998     dfline=`(
37999         df / | while read line; do
38000             set -- $line
38001                     while test $# -gt 0; do
38002                 if test "x$1" = "x/"; then
38003                     echo $line
38004                     break 2
38005                 fi
38006                 shift
38007             done
38008         done
38009     ) | sed 's/(//' | sed 's/)//' `
38010
38011     # Search for the mount point by using expr to find the parameter
38012     # with dev in it.
38013     mount=`(
38014         set -- $dfline
38015                 while test $# -gt 0; do
38016             if expr "$1" : '.*dev' >/dev/null 2>&1; then
38017                 echo $1
38018                 break
38019             fi
38020             shift
38021         done
38022     )`
38023
38024     # get any system-specific configuration information
38025     case "$host" in
38026         *-hp-*)
38027             CLIENT_SCRIPTS_OPT=amhpfixdevs
38028             case $mount in
38029                 /dev/vg*)
38030
38031     { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
38032 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
38033
38034
38035     cat <<AAW_EOF >>config.warnings
38036 Run amhpfixdevs on HP-UX systems using /dev/vg??.
38037 AAW_EOF
38038
38039
38040                     ;;
38041             esac
38042             ;;
38043         *-sni-sysv4)
38044             DEV_PREFIX=/dev/dsk/
38045             RDEV_PREFIX=/dev/rdsk/
38046             CLIENT_SCRIPTS_OPT=amsinixfixdevs
38047             if ! test -d /dev/dsk; then
38048
38049     { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
38050 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
38051
38052
38053     cat <<AAW_EOF >>config.warnings
38054 Run amsinixfixdevs on Sinix systems using VxFS.
38055 AAW_EOF
38056
38057
38058             fi
38059             ;;
38060         *-sco3.2v4*)
38061             DEV_PREFIX=/dev/
38062             RDEV_PREFIX=/dev/
38063             ;;
38064         *)
38065             CLIENT_SCRIPTS_OPT=
38066             ;;
38067     esac
38068
38069     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
38070         { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
38071 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
38072     else
38073         if test -d /dev/dsk; then
38074             DEV_PREFIX=/dev/dsk/
38075             if test -d /dev/rdsk; then
38076                 RDEV_PREFIX=/dev/rdsk/
38077             else
38078                 RDEV_PREFIX=/dev/dsk/
38079             fi
38080         elif test -d /dev; then
38081             DEV_PREFIX=/dev/
38082
38083             # Some systems, notably Linux, do not have raw disk devices
38084             # names.  Check this by trying to see if a raw disk device name
38085             # exists using the normal raw device path prepended to the
38086             # mount point of the root filesystem.
38087             if test "$mount"; then
38088                 dev_name="/dev/r`basename $mount`"
38089                 if test -b $dev_name -o -c $dev_name; then
38090                     RDEV_PREFIX=/dev/r
38091                 else
38092                     RDEV_PREFIX=/dev/
38093                 fi
38094             else
38095                 RDEV_PREFIX=/dev/r
38096             fi
38097         else
38098             # just fake it..
38099             DEV_PREFIX=/
38100             RDEV_PREFIX=/
38101         fi
38102         { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
38103 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
38104     fi
38105
38106
38107 cat >>confdefs.h <<_ACEOF
38108 #define DEV_PREFIX "${DEV_PREFIX}"
38109 _ACEOF
38110
38111
38112 cat >>confdefs.h <<_ACEOF
38113 #define RDEV_PREFIX "${RDEV_PREFIX}"
38114 _ACEOF
38115
38116
38117
38118
38119     case "$host" in
38120         *-dec-osf*)
38121                     ;;
38122         *-dg-*)
38123                     ;;
38124         *-netbsd*)
38125                     ;;
38126         *-freebsd*)
38127                     ;;
38128         *-openbsd*)
38129                     ;;
38130         *-hp-*)
38131                     case "$CC" in
38132                         *gcc*)
38133                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
38134
38135                             ;;
38136                         *cc*)
38137                             CFLAGS="$CFLAGS -Ae"
38138
38139                             ;;
38140                     esac
38141                     ;;
38142         *-ibm-aix*)
38143                     ;;
38144         m88k-motorola-sysv4)
38145                     ;;
38146         *-nextstep3)
38147                     ;;
38148         *-pc-bsdi*)
38149                     ;;
38150         *-pc-linux-*)
38151                     ;;
38152         *-redhat-linux-*)
38153                     ;;
38154         *-suse-linux-*)
38155                     ;;
38156         x86_64-*-linux-*)
38157                     ;;
38158         alpha*-*-linux-*)
38159                     ;;
38160         sparc*-*-linux-*)
38161                     ;;
38162         powerpc-*-linux-*)
38163                     ;;
38164         *-sgi-irix3*)
38165                     # The old cc won't work!
38166                     if test "x$GCC" != "xyes"; then
38167                         { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
38168 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
38169    { (exit 1); exit 1; }; }
38170                     fi
38171                     ;;
38172         *-sgi-irix4*)
38173                     ;;
38174         *-sgi-irix5*)
38175                     ;;
38176         *-sgi-irix6*)
38177                     ;;
38178         *-solaris2*)
38179                     ;;
38180         *-sun-sunos4.1*)
38181                     ;;
38182         *-ultrix*)
38183                     ;;
38184         *-sysv4.2uw2*)
38185                     ;;
38186         *-sco3.2v5*)
38187                     ;;
38188         i386-pc-isc4*)
38189                     ;;
38190         *-sni-sysv4)
38191                     ;;
38192         *-pc-cygwin)
38193
38194 cat >>confdefs.h <<\_ACEOF
38195 #define IGNORE_TAR_ERRORS 1
38196 _ACEOF
38197
38198                     # Cygwin needs PATH to find cygwin1.dll
38199
38200 cat >>confdefs.h <<\_ACEOF
38201 #define NEED_PATH_ENV 1
38202 _ACEOF
38203
38204
38205 cat >>confdefs.h <<\_ACEOF
38206 #define IGNORE_FSTAB 1
38207 _ACEOF
38208
38209                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
38210
38211                     ;;
38212         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
38213                     ;;
38214         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
38215                     ;;
38216         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
38217                     ;;
38218         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
38219                     ;;
38220       *)
38221
38222
38223     cat <<AAW_EOF >>config.warnings
38224 *****
38225 This machine, target type $host, is not known to be fully supported
38226 by this configure script.  If the installation of Amanda on this system
38227 succeeds or needed any patches, please email amanda-hackers@amanda.org
38228 with the patches or an indication of the sucess or failure of the
38229 Amanda installation on your system.
38230 *****
38231 AAW_EOF
38232
38233                     ;;
38234     esac
38235
38236
38237
38238
38239
38240   prefix_NONE=
38241   exec_prefix_NONE=
38242   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38243   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38244   eval ac_define_dir="\"$bindir\""
38245   eval ac_define_dir="\"$ac_define_dir\""
38246   bindir="$ac_define_dir"
38247
38248
38249 cat >>confdefs.h <<_ACEOF
38250 #define bindir "$ac_define_dir"
38251 _ACEOF
38252
38253   test "$prefix_NONE" && prefix=NONE
38254   test "$exec_prefix_NONE" && exec_prefix=NONE
38255
38256
38257
38258   prefix_NONE=
38259   exec_prefix_NONE=
38260   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38261   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38262   eval ac_define_dir="\"$sbindir\""
38263   eval ac_define_dir="\"$ac_define_dir\""
38264   sbindir="$ac_define_dir"
38265
38266
38267 cat >>confdefs.h <<_ACEOF
38268 #define sbindir "$ac_define_dir"
38269 _ACEOF
38270
38271   test "$prefix_NONE" && prefix=NONE
38272   test "$exec_prefix_NONE" && exec_prefix=NONE
38273
38274
38275
38276   prefix_NONE=
38277   exec_prefix_NONE=
38278   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38279   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38280   eval ac_define_dir="\"$libexecdir\""
38281   eval ac_define_dir="\"$ac_define_dir\""
38282   libexecdir="$ac_define_dir"
38283
38284
38285 cat >>confdefs.h <<_ACEOF
38286 #define libexecdir "$ac_define_dir"
38287 _ACEOF
38288
38289   test "$prefix_NONE" && prefix=NONE
38290   test "$exec_prefix_NONE" && exec_prefix=NONE
38291
38292
38293
38294   prefix_NONE=
38295   exec_prefix_NONE=
38296   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38297   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38298   eval ac_define_dir="\"$mandir\""
38299   eval ac_define_dir="\"$ac_define_dir\""
38300   mandir="$ac_define_dir"
38301
38302
38303 cat >>confdefs.h <<_ACEOF
38304 #define mandir "$ac_define_dir"
38305 _ACEOF
38306
38307   test "$prefix_NONE" && prefix=NONE
38308   test "$exec_prefix_NONE" && exec_prefix=NONE
38309
38310
38311
38312     # amanda-specific directories
38313     AMLIBDIR=$libdir/amanda
38314
38315 # Check whether --with-amlibdir was given.
38316 if test "${with_amlibdir+set}" = set; then
38317   withval=$with_amlibdir;
38318             case "$withval" in
38319                 n | no) AMLIBDIR=$libdir ;;
38320                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
38321                 *) AMLIBDIR=$withval ;;
38322             esac
38323
38324
38325 fi
38326
38327
38328   prefix_NONE=
38329   exec_prefix_NONE=
38330   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38331   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38332   eval ac_define_dir="\"$AMLIBDIR\""
38333   eval ac_define_dir="\"$ac_define_dir\""
38334   amlibdir="$ac_define_dir"
38335
38336
38337 cat >>confdefs.h <<_ACEOF
38338 #define amlibdir "$ac_define_dir"
38339 _ACEOF
38340
38341   test "$prefix_NONE" && prefix=NONE
38342   test "$exec_prefix_NONE" && exec_prefix=NONE
38343
38344
38345     AMLIBEXECDIR=$libexecdir/amanda
38346
38347 # Check whether --with-amlibexecdir was given.
38348 if test "${with_amlibexecdir+set}" = set; then
38349   withval=$with_amlibexecdir;
38350             case "$withval" in
38351                 n | no) AMLIBEXECDIR=$libexecdir ;;
38352                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
38353                 *) AMLIBEXECDIR=$withval ;;
38354             esac
38355
38356
38357 fi
38358
38359
38360   prefix_NONE=
38361   exec_prefix_NONE=
38362   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38363   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38364   eval ac_define_dir="\"$AMLIBEXECDIR\""
38365   eval ac_define_dir="\"$ac_define_dir\""
38366   amlibexecdir="$ac_define_dir"
38367
38368
38369 cat >>confdefs.h <<_ACEOF
38370 #define amlibexecdir "$ac_define_dir"
38371 _ACEOF
38372
38373   test "$prefix_NONE" && prefix=NONE
38374   test "$exec_prefix_NONE" && exec_prefix=NONE
38375
38376
38377     amincludedir="${includedir}/amanda"
38378
38379   prefix_NONE=
38380   exec_prefix_NONE=
38381   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38382   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38383   eval ac_define_dir="\"$amincludedir\""
38384   eval ac_define_dir="\"$ac_define_dir\""
38385   amincludedir="$ac_define_dir"
38386
38387
38388 cat >>confdefs.h <<_ACEOF
38389 #define amincludedir "$ac_define_dir"
38390 _ACEOF
38391
38392   test "$prefix_NONE" && prefix=NONE
38393   test "$exec_prefix_NONE" && exec_prefix=NONE
38394
38395
38396
38397 # Check whether --with-amperldir was given.
38398 if test "${with_amperldir+set}" = set; then
38399   withval=$with_amperldir;
38400             case "$withval" in
38401                 y | ye | yes) AMPERLLIB=DEFAULT ;;
38402                 n | no) AMPERLLIB=$amlibdir/perl ;;
38403                 *) AMPERLLIB=$withval ;;
38404             esac
38405
38406 else
38407
38408             AMPERLLIB=DEFAULT
38409
38410
38411 fi
38412
38413     # apply the default if no value was given.
38414     if test x"$AMPERLLIB" = x"DEFAULT"; then
38415         eval `$PERL -V:installsitelib`
38416         AMPERLLIB=$installsitelib
38417     fi
38418
38419   prefix_NONE=
38420   exec_prefix_NONE=
38421   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38422   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38423   eval ac_define_dir="\"$AMPERLLIB\""
38424   eval ac_define_dir="\"$ac_define_dir\""
38425   amperldir="$ac_define_dir"
38426
38427
38428 cat >>confdefs.h <<_ACEOF
38429 #define amperldir "$ac_define_dir"
38430 _ACEOF
38431
38432   test "$prefix_NONE" && prefix=NONE
38433   test "$exec_prefix_NONE" && exec_prefix=NONE
38434
38435
38436     APPLICATION_DIR='${amlibexecdir}/application'
38437
38438   prefix_NONE=
38439   exec_prefix_NONE=
38440   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38441   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38442   eval ac_define_dir="\"$APPLICATION_DIR\""
38443   eval ac_define_dir="\"$ac_define_dir\""
38444   APPLICATION_DIR="$ac_define_dir"
38445
38446
38447 cat >>confdefs.h <<_ACEOF
38448 #define APPLICATION_DIR "$ac_define_dir"
38449 _ACEOF
38450
38451   test "$prefix_NONE" && prefix=NONE
38452   test "$exec_prefix_NONE" && exec_prefix=NONE
38453
38454
38455
38456 # Check whether --with-amdatadir was given.
38457 if test "${with_amdatadir+set}" = set; then
38458   withval=$with_amdatadir;
38459             AMDATADIR=$withval
38460
38461 else
38462
38463             AMDATADIR=$datadir/amanda
38464
38465
38466 fi
38467
38468
38469   prefix_NONE=
38470   exec_prefix_NONE=
38471   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38472   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38473   eval ac_define_dir="\"$AMDATADIR\""
38474   eval ac_define_dir="\"$ac_define_dir\""
38475   amdatadir="$ac_define_dir"
38476
38477
38478 cat >>confdefs.h <<_ACEOF
38479 #define amdatadir "$ac_define_dir"
38480 _ACEOF
38481
38482   test "$prefix_NONE" && prefix=NONE
38483   test "$exec_prefix_NONE" && exec_prefix=NONE
38484
38485
38486
38487 #
38488 # Internationalization
38489 #
38490
38491     # FreeBSD needs to link libxpg4
38492
38493 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
38494 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
38495 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
38496   $as_echo_n "(cached) " >&6
38497 else
38498   ac_check_lib_save_LIBS=$LIBS
38499 LIBS="-lxpg4  $LIBS"
38500 cat >conftest.$ac_ext <<_ACEOF
38501 /* confdefs.h.  */
38502 _ACEOF
38503 cat confdefs.h >>conftest.$ac_ext
38504 cat >>conftest.$ac_ext <<_ACEOF
38505 /* end confdefs.h.  */
38506
38507 /* Override any GCC internal prototype to avoid an error.
38508    Use char because int might match the return type of a GCC
38509    builtin and then its argument prototype would still apply.  */
38510 #ifdef __cplusplus
38511 extern "C"
38512 #endif
38513 char setlocale ();
38514 int
38515 main ()
38516 {
38517 return setlocale ();
38518   ;
38519   return 0;
38520 }
38521 _ACEOF
38522 rm -f conftest.$ac_objext conftest$ac_exeext
38523 if { (ac_try="$ac_link"
38524 case "(($ac_try" in
38525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38526   *) ac_try_echo=$ac_try;;
38527 esac
38528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38529 $as_echo "$ac_try_echo") >&5
38530   (eval "$ac_link") 2>conftest.er1
38531   ac_status=$?
38532   grep -v '^ *+' conftest.er1 >conftest.err
38533   rm -f conftest.er1
38534   cat conftest.err >&5
38535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536   (exit $ac_status); } && {
38537          test -z "$ac_c_werror_flag" ||
38538          test ! -s conftest.err
38539        } && test -s conftest$ac_exeext && {
38540          test "$cross_compiling" = yes ||
38541          $as_test_x conftest$ac_exeext
38542        }; then
38543   ac_cv_lib_xpg4_setlocale=yes
38544 else
38545   $as_echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38547
38548         ac_cv_lib_xpg4_setlocale=no
38549 fi
38550
38551 rm -rf conftest.dSYM
38552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38553       conftest$ac_exeext conftest.$ac_ext
38554 LIBS=$ac_check_lib_save_LIBS
38555 fi
38556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
38557 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
38558 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
38559   cat >>confdefs.h <<_ACEOF
38560 #define HAVE_LIBXPG4 1
38561 _ACEOF
38562
38563   LIBS="-lxpg4 $LIBS"
38564
38565 fi
38566
38567
38568     # ------------------------------------------------------------------
38569     # All list of languages for which a translation exist. Each
38570     #  language is separated by a space.
38571     # ------------------------------------------------------------------
38572     ALL_LINGUAS=""
38573
38574
38575     # Extract the first word of "msgfmt", so it can be a program name with args.
38576 set dummy msgfmt; ac_word=$2
38577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38578 $as_echo_n "checking for $ac_word... " >&6; }
38579 if test "${ac_cv_path_MSGFMT+set}" = set; then
38580   $as_echo_n "(cached) " >&6
38581 else
38582   case $MSGFMT in
38583   [\\/]* | ?:[\\/]*)
38584   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38585   ;;
38586   *)
38587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38588 for as_dir in $LOCSYSPATH
38589 do
38590   IFS=$as_save_IFS
38591   test -z "$as_dir" && as_dir=.
38592   for ac_exec_ext in '' $ac_executable_extensions; do
38593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38594     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
38595     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38596     break 2
38597   fi
38598 done
38599 done
38600 IFS=$as_save_IFS
38601
38602   ;;
38603 esac
38604 fi
38605 MSGFMT=$ac_cv_path_MSGFMT
38606 if test -n "$MSGFMT"; then
38607   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38608 $as_echo "$MSGFMT" >&6; }
38609 else
38610   { $as_echo "$as_me:$LINENO: result: no" >&5
38611 $as_echo "no" >&6; }
38612 fi
38613
38614
38615     # Extract the first word of "gettext", so it can be a program name with args.
38616 set dummy gettext; ac_word=$2
38617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38618 $as_echo_n "checking for $ac_word... " >&6; }
38619 if test "${ac_cv_path_GETTEXT+set}" = set; then
38620   $as_echo_n "(cached) " >&6
38621 else
38622   case $GETTEXT in
38623   [\\/]* | ?:[\\/]*)
38624   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
38625   ;;
38626   *)
38627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38628 for as_dir in $LOCSYSPATH
38629 do
38630   IFS=$as_save_IFS
38631   test -z "$as_dir" && as_dir=.
38632   for ac_exec_ext in '' $ac_executable_extensions; do
38633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38634     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
38635     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38636     break 2
38637   fi
38638 done
38639 done
38640 IFS=$as_save_IFS
38641
38642   ;;
38643 esac
38644 fi
38645 GETTEXT=$ac_cv_path_GETTEXT
38646 if test -n "$GETTEXT"; then
38647   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
38648 $as_echo "$GETTEXT" >&6; }
38649 else
38650   { $as_echo "$as_me:$LINENO: result: no" >&5
38651 $as_echo "no" >&6; }
38652 fi
38653
38654
38655
38656
38657
38658   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38659 $as_echo_n "checking whether NLS is requested... " >&6; }
38660     # Check whether --enable-nls was given.
38661 if test "${enable_nls+set}" = set; then
38662   enableval=$enable_nls; USE_NLS=$enableval
38663 else
38664   USE_NLS=yes
38665 fi
38666
38667   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
38668 $as_echo "$USE_NLS" >&6; }
38669
38670
38671
38672
38673
38674
38675 # Prepare PATH_SEPARATOR.
38676 # The user is always right.
38677 if test "${PATH_SEPARATOR+set}" != set; then
38678   echo "#! /bin/sh" >conf$$.sh
38679   echo  "exit 0"   >>conf$$.sh
38680   chmod +x conf$$.sh
38681   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38682     PATH_SEPARATOR=';'
38683   else
38684     PATH_SEPARATOR=:
38685   fi
38686   rm -f conf$$.sh
38687 fi
38688
38689 # Find out how to test for executable files. Don't use a zero-byte file,
38690 # as systems may use methods other than mode bits to determine executability.
38691 cat >conf$$.file <<_ASEOF
38692 #! /bin/sh
38693 exit 0
38694 _ASEOF
38695 chmod +x conf$$.file
38696 if test -x conf$$.file >/dev/null 2>&1; then
38697   ac_executable_p="test -x"
38698 else
38699   ac_executable_p="test -f"
38700 fi
38701 rm -f conf$$.file
38702
38703 # Extract the first word of "msgfmt", so it can be a program name with args.
38704 set dummy msgfmt; ac_word=$2
38705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38706 $as_echo_n "checking for $ac_word... " >&6; }
38707 if test "${ac_cv_path_MSGFMT+set}" = set; then
38708   $as_echo_n "(cached) " >&6
38709 else
38710   case "$MSGFMT" in
38711   [\\/]* | ?:[\\/]*)
38712     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38713     ;;
38714   *)
38715     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38716     for ac_dir in $PATH; do
38717       IFS="$ac_save_IFS"
38718       test -z "$ac_dir" && ac_dir=.
38719       for ac_exec_ext in '' $ac_executable_extensions; do
38720         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38721           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38722           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
38723      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38724             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
38725             break 2
38726           fi
38727         fi
38728       done
38729     done
38730     IFS="$ac_save_IFS"
38731   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38732     ;;
38733 esac
38734 fi
38735 MSGFMT="$ac_cv_path_MSGFMT"
38736 if test "$MSGFMT" != ":"; then
38737   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38738 $as_echo "$MSGFMT" >&6; }
38739 else
38740   { $as_echo "$as_me:$LINENO: result: no" >&5
38741 $as_echo "no" >&6; }
38742 fi
38743
38744   # Extract the first word of "gmsgfmt", so it can be a program name with args.
38745 set dummy gmsgfmt; ac_word=$2
38746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38747 $as_echo_n "checking for $ac_word... " >&6; }
38748 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38749   $as_echo_n "(cached) " >&6
38750 else
38751   case $GMSGFMT in
38752   [\\/]* | ?:[\\/]*)
38753   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38754   ;;
38755   *)
38756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38757 for as_dir in $PATH
38758 do
38759   IFS=$as_save_IFS
38760   test -z "$as_dir" && as_dir=.
38761   for ac_exec_ext in '' $ac_executable_extensions; do
38762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38763     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38764     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38765     break 2
38766   fi
38767 done
38768 done
38769 IFS=$as_save_IFS
38770
38771   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38772   ;;
38773 esac
38774 fi
38775 GMSGFMT=$ac_cv_path_GMSGFMT
38776 if test -n "$GMSGFMT"; then
38777   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38778 $as_echo "$GMSGFMT" >&6; }
38779 else
38780   { $as_echo "$as_me:$LINENO: result: no" >&5
38781 $as_echo "no" >&6; }
38782 fi
38783
38784
38785
38786     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38787     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
38788     *) MSGFMT_015=$MSGFMT ;;
38789   esac
38790
38791   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38792     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
38793     *) GMSGFMT_015=$GMSGFMT ;;
38794   esac
38795
38796
38797
38798 # Prepare PATH_SEPARATOR.
38799 # The user is always right.
38800 if test "${PATH_SEPARATOR+set}" != set; then
38801   echo "#! /bin/sh" >conf$$.sh
38802   echo  "exit 0"   >>conf$$.sh
38803   chmod +x conf$$.sh
38804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38805     PATH_SEPARATOR=';'
38806   else
38807     PATH_SEPARATOR=:
38808   fi
38809   rm -f conf$$.sh
38810 fi
38811
38812 # Find out how to test for executable files. Don't use a zero-byte file,
38813 # as systems may use methods other than mode bits to determine executability.
38814 cat >conf$$.file <<_ASEOF
38815 #! /bin/sh
38816 exit 0
38817 _ASEOF
38818 chmod +x conf$$.file
38819 if test -x conf$$.file >/dev/null 2>&1; then
38820   ac_executable_p="test -x"
38821 else
38822   ac_executable_p="test -f"
38823 fi
38824 rm -f conf$$.file
38825
38826 # Extract the first word of "xgettext", so it can be a program name with args.
38827 set dummy xgettext; ac_word=$2
38828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38829 $as_echo_n "checking for $ac_word... " >&6; }
38830 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38831   $as_echo_n "(cached) " >&6
38832 else
38833   case "$XGETTEXT" in
38834   [\\/]* | ?:[\\/]*)
38835     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38836     ;;
38837   *)
38838     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38839     for ac_dir in $PATH; do
38840       IFS="$ac_save_IFS"
38841       test -z "$ac_dir" && ac_dir=.
38842       for ac_exec_ext in '' $ac_executable_extensions; do
38843         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38844           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38845           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
38846      (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
38847             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
38848             break 2
38849           fi
38850         fi
38851       done
38852     done
38853     IFS="$ac_save_IFS"
38854   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38855     ;;
38856 esac
38857 fi
38858 XGETTEXT="$ac_cv_path_XGETTEXT"
38859 if test "$XGETTEXT" != ":"; then
38860   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38861 $as_echo "$XGETTEXT" >&6; }
38862 else
38863   { $as_echo "$as_me:$LINENO: result: no" >&5
38864 $as_echo "no" >&6; }
38865 fi
38866
38867     rm -f messages.po
38868
38869     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38870     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
38871     *) XGETTEXT_015=$XGETTEXT ;;
38872   esac
38873
38874
38875
38876 # Prepare PATH_SEPARATOR.
38877 # The user is always right.
38878 if test "${PATH_SEPARATOR+set}" != set; then
38879   echo "#! /bin/sh" >conf$$.sh
38880   echo  "exit 0"   >>conf$$.sh
38881   chmod +x conf$$.sh
38882   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38883     PATH_SEPARATOR=';'
38884   else
38885     PATH_SEPARATOR=:
38886   fi
38887   rm -f conf$$.sh
38888 fi
38889
38890 # Find out how to test for executable files. Don't use a zero-byte file,
38891 # as systems may use methods other than mode bits to determine executability.
38892 cat >conf$$.file <<_ASEOF
38893 #! /bin/sh
38894 exit 0
38895 _ASEOF
38896 chmod +x conf$$.file
38897 if test -x conf$$.file >/dev/null 2>&1; then
38898   ac_executable_p="test -x"
38899 else
38900   ac_executable_p="test -f"
38901 fi
38902 rm -f conf$$.file
38903
38904 # Extract the first word of "msgmerge", so it can be a program name with args.
38905 set dummy msgmerge; ac_word=$2
38906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38907 $as_echo_n "checking for $ac_word... " >&6; }
38908 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38909   $as_echo_n "(cached) " >&6
38910 else
38911   case "$MSGMERGE" in
38912   [\\/]* | ?:[\\/]*)
38913     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38914     ;;
38915   *)
38916     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38917     for ac_dir in $PATH; do
38918       IFS="$ac_save_IFS"
38919       test -z "$ac_dir" && ac_dir=.
38920       for ac_exec_ext in '' $ac_executable_extensions; do
38921         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38922           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38923           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
38924             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
38925             break 2
38926           fi
38927         fi
38928       done
38929     done
38930     IFS="$ac_save_IFS"
38931   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38932     ;;
38933 esac
38934 fi
38935 MSGMERGE="$ac_cv_path_MSGMERGE"
38936 if test "$MSGMERGE" != ":"; then
38937   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38938 $as_echo "$MSGMERGE" >&6; }
38939 else
38940   { $as_echo "$as_me:$LINENO: result: no" >&5
38941 $as_echo "no" >&6; }
38942 fi
38943
38944
38945         test -n "$localedir" || localedir='${datadir}/locale'
38946
38947
38948   ac_config_commands="$ac_config_commands po-directories"
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958     use_additional=yes
38959
38960   acl_save_prefix="$prefix"
38961   prefix="$acl_final_prefix"
38962   acl_save_exec_prefix="$exec_prefix"
38963   exec_prefix="$acl_final_exec_prefix"
38964
38965     eval additional_includedir=\"$includedir\"
38966     eval additional_libdir=\"$libdir\"
38967
38968   exec_prefix="$acl_save_exec_prefix"
38969   prefix="$acl_save_prefix"
38970
38971
38972 # Check whether --with-libiconv-prefix was given.
38973 if test "${with_libiconv_prefix+set}" = set; then
38974   withval=$with_libiconv_prefix;
38975     if test "X$withval" = "Xno"; then
38976       use_additional=no
38977     else
38978       if test "X$withval" = "X"; then
38979
38980   acl_save_prefix="$prefix"
38981   prefix="$acl_final_prefix"
38982   acl_save_exec_prefix="$exec_prefix"
38983   exec_prefix="$acl_final_exec_prefix"
38984
38985           eval additional_includedir=\"$includedir\"
38986           eval additional_libdir=\"$libdir\"
38987
38988   exec_prefix="$acl_save_exec_prefix"
38989   prefix="$acl_save_prefix"
38990
38991       else
38992         additional_includedir="$withval/include"
38993         additional_libdir="$withval/$acl_libdirstem"
38994       fi
38995     fi
38996
38997 fi
38998
38999       LIBICONV=
39000   LTLIBICONV=
39001   INCICONV=
39002   rpathdirs=
39003   ltrpathdirs=
39004   names_already_handled=
39005   names_next_round='iconv '
39006   while test -n "$names_next_round"; do
39007     names_this_round="$names_next_round"
39008     names_next_round=
39009     for name in $names_this_round; do
39010       already_handled=
39011       for n in $names_already_handled; do
39012         if test "$n" = "$name"; then
39013           already_handled=yes
39014           break
39015         fi
39016       done
39017       if test -z "$already_handled"; then
39018         names_already_handled="$names_already_handled $name"
39019                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39020         eval value=\"\$HAVE_LIB$uppername\"
39021         if test -n "$value"; then
39022           if test "$value" = yes; then
39023             eval value=\"\$LIB$uppername\"
39024             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
39025             eval value=\"\$LTLIB$uppername\"
39026             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
39027           else
39028                                     :
39029           fi
39030         else
39031                               found_dir=
39032           found_la=
39033           found_so=
39034           found_a=
39035           if test $use_additional = yes; then
39036             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39037               found_dir="$additional_libdir"
39038               found_so="$additional_libdir/lib$name.$shlibext"
39039               if test -f "$additional_libdir/lib$name.la"; then
39040                 found_la="$additional_libdir/lib$name.la"
39041               fi
39042             else
39043               if test -f "$additional_libdir/lib$name.$libext"; then
39044                 found_dir="$additional_libdir"
39045                 found_a="$additional_libdir/lib$name.$libext"
39046                 if test -f "$additional_libdir/lib$name.la"; then
39047                   found_la="$additional_libdir/lib$name.la"
39048                 fi
39049               fi
39050             fi
39051           fi
39052           if test "X$found_dir" = "X"; then
39053             for x in $LDFLAGS $LTLIBICONV; do
39054
39055   acl_save_prefix="$prefix"
39056   prefix="$acl_final_prefix"
39057   acl_save_exec_prefix="$exec_prefix"
39058   exec_prefix="$acl_final_exec_prefix"
39059   eval x=\"$x\"
39060   exec_prefix="$acl_save_exec_prefix"
39061   prefix="$acl_save_prefix"
39062
39063               case "$x" in
39064                 -L*)
39065                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39066                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39067                     found_dir="$dir"
39068                     found_so="$dir/lib$name.$shlibext"
39069                     if test -f "$dir/lib$name.la"; then
39070                       found_la="$dir/lib$name.la"
39071                     fi
39072                   else
39073                     if test -f "$dir/lib$name.$libext"; then
39074                       found_dir="$dir"
39075                       found_a="$dir/lib$name.$libext"
39076                       if test -f "$dir/lib$name.la"; then
39077                         found_la="$dir/lib$name.la"
39078                       fi
39079                     fi
39080                   fi
39081                   ;;
39082               esac
39083               if test "X$found_dir" != "X"; then
39084                 break
39085               fi
39086             done
39087           fi
39088           if test "X$found_dir" != "X"; then
39089                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
39090             if test "X$found_so" != "X"; then
39091                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39092                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39093               else
39094                                                                                 haveit=
39095                 for x in $ltrpathdirs; do
39096                   if test "X$x" = "X$found_dir"; then
39097                     haveit=yes
39098                     break
39099                   fi
39100                 done
39101                 if test -z "$haveit"; then
39102                   ltrpathdirs="$ltrpathdirs $found_dir"
39103                 fi
39104                                 if test "$hardcode_direct" = yes; then
39105                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39106                 else
39107                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39108                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39109                                                             haveit=
39110                     for x in $rpathdirs; do
39111                       if test "X$x" = "X$found_dir"; then
39112                         haveit=yes
39113                         break
39114                       fi
39115                     done
39116                     if test -z "$haveit"; then
39117                       rpathdirs="$rpathdirs $found_dir"
39118                     fi
39119                   else
39120                                                                                 haveit=
39121                     for x in $LDFLAGS $LIBICONV; do
39122
39123   acl_save_prefix="$prefix"
39124   prefix="$acl_final_prefix"
39125   acl_save_exec_prefix="$exec_prefix"
39126   exec_prefix="$acl_final_exec_prefix"
39127   eval x=\"$x\"
39128   exec_prefix="$acl_save_exec_prefix"
39129   prefix="$acl_save_prefix"
39130
39131                       if test "X$x" = "X-L$found_dir"; then
39132                         haveit=yes
39133                         break
39134                       fi
39135                     done
39136                     if test -z "$haveit"; then
39137                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
39138                     fi
39139                     if test "$hardcode_minus_L" != no; then
39140                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39141                     else
39142                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39143                     fi
39144                   fi
39145                 fi
39146               fi
39147             else
39148               if test "X$found_a" != "X"; then
39149                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
39150               else
39151                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
39152               fi
39153             fi
39154                         additional_includedir=
39155             case "$found_dir" in
39156               */$acl_libdirstem | */$acl_libdirstem/)
39157                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39158                 additional_includedir="$basedir/include"
39159                 ;;
39160             esac
39161             if test "X$additional_includedir" != "X"; then
39162                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39163                 haveit=
39164                 if test "X$additional_includedir" = "X/usr/local/include"; then
39165                   if test -n "$GCC"; then
39166                     case $host_os in
39167                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39168                     esac
39169                   fi
39170                 fi
39171                 if test -z "$haveit"; then
39172                   for x in $CPPFLAGS $INCICONV; do
39173
39174   acl_save_prefix="$prefix"
39175   prefix="$acl_final_prefix"
39176   acl_save_exec_prefix="$exec_prefix"
39177   exec_prefix="$acl_final_exec_prefix"
39178   eval x=\"$x\"
39179   exec_prefix="$acl_save_exec_prefix"
39180   prefix="$acl_save_prefix"
39181
39182                     if test "X$x" = "X-I$additional_includedir"; then
39183                       haveit=yes
39184                       break
39185                     fi
39186                   done
39187                   if test -z "$haveit"; then
39188                     if test -d "$additional_includedir"; then
39189                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
39190                     fi
39191                   fi
39192                 fi
39193               fi
39194             fi
39195                         if test -n "$found_la"; then
39196                                                         save_libdir="$libdir"
39197               case "$found_la" in
39198                 */* | *\\*) . "$found_la" ;;
39199                 *) . "./$found_la" ;;
39200               esac
39201               libdir="$save_libdir"
39202                             for dep in $dependency_libs; do
39203                 case "$dep" in
39204                   -L*)
39205                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39206                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39207                       haveit=
39208                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39209                         if test -n "$GCC"; then
39210                           case $host_os in
39211                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39212                           esac
39213                         fi
39214                       fi
39215                       if test -z "$haveit"; then
39216                         haveit=
39217                         for x in $LDFLAGS $LIBICONV; do
39218
39219   acl_save_prefix="$prefix"
39220   prefix="$acl_final_prefix"
39221   acl_save_exec_prefix="$exec_prefix"
39222   exec_prefix="$acl_final_exec_prefix"
39223   eval x=\"$x\"
39224   exec_prefix="$acl_save_exec_prefix"
39225   prefix="$acl_save_prefix"
39226
39227                           if test "X$x" = "X-L$additional_libdir"; then
39228                             haveit=yes
39229                             break
39230                           fi
39231                         done
39232                         if test -z "$haveit"; then
39233                           if test -d "$additional_libdir"; then
39234                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
39235                           fi
39236                         fi
39237                         haveit=
39238                         for x in $LDFLAGS $LTLIBICONV; do
39239
39240   acl_save_prefix="$prefix"
39241   prefix="$acl_final_prefix"
39242   acl_save_exec_prefix="$exec_prefix"
39243   exec_prefix="$acl_final_exec_prefix"
39244   eval x=\"$x\"
39245   exec_prefix="$acl_save_exec_prefix"
39246   prefix="$acl_save_prefix"
39247
39248                           if test "X$x" = "X-L$additional_libdir"; then
39249                             haveit=yes
39250                             break
39251                           fi
39252                         done
39253                         if test -z "$haveit"; then
39254                           if test -d "$additional_libdir"; then
39255                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
39256                           fi
39257                         fi
39258                       fi
39259                     fi
39260                     ;;
39261                   -R*)
39262                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
39263                     if test "$enable_rpath" != no; then
39264                                                                   haveit=
39265                       for x in $rpathdirs; do
39266                         if test "X$x" = "X$dir"; then
39267                           haveit=yes
39268                           break
39269                         fi
39270                       done
39271                       if test -z "$haveit"; then
39272                         rpathdirs="$rpathdirs $dir"
39273                       fi
39274                                                                   haveit=
39275                       for x in $ltrpathdirs; do
39276                         if test "X$x" = "X$dir"; then
39277                           haveit=yes
39278                           break
39279                         fi
39280                       done
39281                       if test -z "$haveit"; then
39282                         ltrpathdirs="$ltrpathdirs $dir"
39283                       fi
39284                     fi
39285                     ;;
39286                   -l*)
39287                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39288                     ;;
39289                   *.la)
39290                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39291                     ;;
39292                   *)
39293                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
39294                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
39295                     ;;
39296                 esac
39297               done
39298             fi
39299           else
39300                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39301             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
39302           fi
39303         fi
39304       fi
39305     done
39306   done
39307   if test "X$rpathdirs" != "X"; then
39308     if test -n "$hardcode_libdir_separator"; then
39309                         alldirs=
39310       for found_dir in $rpathdirs; do
39311         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39312       done
39313             acl_save_libdir="$libdir"
39314       libdir="$alldirs"
39315       eval flag=\"$hardcode_libdir_flag_spec\"
39316       libdir="$acl_save_libdir"
39317       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39318     else
39319             for found_dir in $rpathdirs; do
39320         acl_save_libdir="$libdir"
39321         libdir="$found_dir"
39322         eval flag=\"$hardcode_libdir_flag_spec\"
39323         libdir="$acl_save_libdir"
39324         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39325       done
39326     fi
39327   fi
39328   if test "X$ltrpathdirs" != "X"; then
39329             for found_dir in $ltrpathdirs; do
39330       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
39331     done
39332   fi
39333
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
39352 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
39353 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
39354   $as_echo_n "(cached) " >&6
39355 else
39356   gt_save_LIBS="$LIBS"
39357      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39358      cat >conftest.$ac_ext <<_ACEOF
39359 /* confdefs.h.  */
39360 _ACEOF
39361 cat confdefs.h >>conftest.$ac_ext
39362 cat >>conftest.$ac_ext <<_ACEOF
39363 /* end confdefs.h.  */
39364 #include <CoreFoundation/CFPreferences.h>
39365 int
39366 main ()
39367 {
39368 CFPreferencesCopyAppValue(NULL, NULL)
39369   ;
39370   return 0;
39371 }
39372 _ACEOF
39373 rm -f conftest.$ac_objext conftest$ac_exeext
39374 if { (ac_try="$ac_link"
39375 case "(($ac_try" in
39376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39377   *) ac_try_echo=$ac_try;;
39378 esac
39379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39380 $as_echo "$ac_try_echo") >&5
39381   (eval "$ac_link") 2>conftest.er1
39382   ac_status=$?
39383   grep -v '^ *+' conftest.er1 >conftest.err
39384   rm -f conftest.er1
39385   cat conftest.err >&5
39386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387   (exit $ac_status); } && {
39388          test -z "$ac_c_werror_flag" ||
39389          test ! -s conftest.err
39390        } && test -s conftest$ac_exeext && {
39391          test "$cross_compiling" = yes ||
39392          $as_test_x conftest$ac_exeext
39393        }; then
39394   gt_cv_func_CFPreferencesCopyAppValue=yes
39395 else
39396   $as_echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39398
39399         gt_cv_func_CFPreferencesCopyAppValue=no
39400 fi
39401
39402 rm -rf conftest.dSYM
39403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39404       conftest$ac_exeext conftest.$ac_ext
39405      LIBS="$gt_save_LIBS"
39406 fi
39407 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
39408 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
39409   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
39410
39411 cat >>confdefs.h <<\_ACEOF
39412 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
39413 _ACEOF
39414
39415   fi
39416     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
39417 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
39418 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
39419   $as_echo_n "(cached) " >&6
39420 else
39421   gt_save_LIBS="$LIBS"
39422      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39423      cat >conftest.$ac_ext <<_ACEOF
39424 /* confdefs.h.  */
39425 _ACEOF
39426 cat confdefs.h >>conftest.$ac_ext
39427 cat >>conftest.$ac_ext <<_ACEOF
39428 /* end confdefs.h.  */
39429 #include <CoreFoundation/CFLocale.h>
39430 int
39431 main ()
39432 {
39433 CFLocaleCopyCurrent();
39434   ;
39435   return 0;
39436 }
39437 _ACEOF
39438 rm -f conftest.$ac_objext conftest$ac_exeext
39439 if { (ac_try="$ac_link"
39440 case "(($ac_try" in
39441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39442   *) ac_try_echo=$ac_try;;
39443 esac
39444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39445 $as_echo "$ac_try_echo") >&5
39446   (eval "$ac_link") 2>conftest.er1
39447   ac_status=$?
39448   grep -v '^ *+' conftest.er1 >conftest.err
39449   rm -f conftest.er1
39450   cat conftest.err >&5
39451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452   (exit $ac_status); } && {
39453          test -z "$ac_c_werror_flag" ||
39454          test ! -s conftest.err
39455        } && test -s conftest$ac_exeext && {
39456          test "$cross_compiling" = yes ||
39457          $as_test_x conftest$ac_exeext
39458        }; then
39459   gt_cv_func_CFLocaleCopyCurrent=yes
39460 else
39461   $as_echo "$as_me: failed program was:" >&5
39462 sed 's/^/| /' conftest.$ac_ext >&5
39463
39464         gt_cv_func_CFLocaleCopyCurrent=no
39465 fi
39466
39467 rm -rf conftest.dSYM
39468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39469       conftest$ac_exeext conftest.$ac_ext
39470      LIBS="$gt_save_LIBS"
39471 fi
39472 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
39473 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
39474   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39475
39476 cat >>confdefs.h <<\_ACEOF
39477 #define HAVE_CFLOCALECOPYCURRENT 1
39478 _ACEOF
39479
39480   fi
39481   INTL_MACOSX_LIBS=
39482   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39483     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
39484   fi
39485
39486
39487
39488
39489
39490
39491   LIBINTL=
39492   LTLIBINTL=
39493   POSUB=
39494
39495     if test "$USE_NLS" = "yes"; then
39496     gt_use_preinstalled_gnugettext=no
39497
39498
39499
39500
39501
39502
39503         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
39504 $as_echo_n "checking for GNU gettext in libc... " >&6; }
39505 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
39506   $as_echo_n "(cached) " >&6
39507 else
39508   cat >conftest.$ac_ext <<_ACEOF
39509 /* confdefs.h.  */
39510 _ACEOF
39511 cat confdefs.h >>conftest.$ac_ext
39512 cat >>conftest.$ac_ext <<_ACEOF
39513 /* end confdefs.h.  */
39514 #include <libintl.h>
39515 extern int _nl_msg_cat_cntr;
39516 extern int *_nl_domain_bindings;
39517 int
39518 main ()
39519 {
39520 bindtextdomain ("", "");
39521 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
39522   ;
39523   return 0;
39524 }
39525 _ACEOF
39526 rm -f conftest.$ac_objext conftest$ac_exeext
39527 if { (ac_try="$ac_link"
39528 case "(($ac_try" in
39529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39530   *) ac_try_echo=$ac_try;;
39531 esac
39532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39533 $as_echo "$ac_try_echo") >&5
39534   (eval "$ac_link") 2>conftest.er1
39535   ac_status=$?
39536   grep -v '^ *+' conftest.er1 >conftest.err
39537   rm -f conftest.er1
39538   cat conftest.err >&5
39539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540   (exit $ac_status); } && {
39541          test -z "$ac_c_werror_flag" ||
39542          test ! -s conftest.err
39543        } && test -s conftest$ac_exeext && {
39544          test "$cross_compiling" = yes ||
39545          $as_test_x conftest$ac_exeext
39546        }; then
39547   gt_cv_func_gnugettext1_libc=yes
39548 else
39549   $as_echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39551
39552         gt_cv_func_gnugettext1_libc=no
39553 fi
39554
39555 rm -rf conftest.dSYM
39556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39557       conftest$ac_exeext conftest.$ac_ext
39558 fi
39559 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
39560 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
39561
39562         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
39563
39564
39565
39566
39567
39568           am_save_CPPFLAGS="$CPPFLAGS"
39569
39570   for element in $INCICONV; do
39571     haveit=
39572     for x in $CPPFLAGS; do
39573
39574   acl_save_prefix="$prefix"
39575   prefix="$acl_final_prefix"
39576   acl_save_exec_prefix="$exec_prefix"
39577   exec_prefix="$acl_final_exec_prefix"
39578   eval x=\"$x\"
39579   exec_prefix="$acl_save_exec_prefix"
39580   prefix="$acl_save_prefix"
39581
39582       if test "X$x" = "X$element"; then
39583         haveit=yes
39584         break
39585       fi
39586     done
39587     if test -z "$haveit"; then
39588       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39589     fi
39590   done
39591
39592
39593   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
39594 $as_echo_n "checking for iconv... " >&6; }
39595 if test "${am_cv_func_iconv+set}" = set; then
39596   $as_echo_n "(cached) " >&6
39597 else
39598
39599     am_cv_func_iconv="no, consider installing GNU libiconv"
39600     am_cv_lib_iconv=no
39601     cat >conftest.$ac_ext <<_ACEOF
39602 /* confdefs.h.  */
39603 _ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h.  */
39607 #include <stdlib.h>
39608 #include <iconv.h>
39609 int
39610 main ()
39611 {
39612 iconv_t cd = iconv_open("","");
39613        iconv(cd,NULL,NULL,NULL,NULL);
39614        iconv_close(cd);
39615   ;
39616   return 0;
39617 }
39618 _ACEOF
39619 rm -f conftest.$ac_objext conftest$ac_exeext
39620 if { (ac_try="$ac_link"
39621 case "(($ac_try" in
39622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39623   *) ac_try_echo=$ac_try;;
39624 esac
39625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39626 $as_echo "$ac_try_echo") >&5
39627   (eval "$ac_link") 2>conftest.er1
39628   ac_status=$?
39629   grep -v '^ *+' conftest.er1 >conftest.err
39630   rm -f conftest.er1
39631   cat conftest.err >&5
39632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633   (exit $ac_status); } && {
39634          test -z "$ac_c_werror_flag" ||
39635          test ! -s conftest.err
39636        } && test -s conftest$ac_exeext && {
39637          test "$cross_compiling" = yes ||
39638          $as_test_x conftest$ac_exeext
39639        }; then
39640   am_cv_func_iconv=yes
39641 else
39642   $as_echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39644
39645
39646 fi
39647
39648 rm -rf conftest.dSYM
39649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39650       conftest$ac_exeext conftest.$ac_ext
39651     if test "$am_cv_func_iconv" != yes; then
39652       am_save_LIBS="$LIBS"
39653       LIBS="$LIBS $LIBICONV"
39654       cat >conftest.$ac_ext <<_ACEOF
39655 /* confdefs.h.  */
39656 _ACEOF
39657 cat confdefs.h >>conftest.$ac_ext
39658 cat >>conftest.$ac_ext <<_ACEOF
39659 /* end confdefs.h.  */
39660 #include <stdlib.h>
39661 #include <iconv.h>
39662 int
39663 main ()
39664 {
39665 iconv_t cd = iconv_open("","");
39666          iconv(cd,NULL,NULL,NULL,NULL);
39667          iconv_close(cd);
39668   ;
39669   return 0;
39670 }
39671 _ACEOF
39672 rm -f conftest.$ac_objext conftest$ac_exeext
39673 if { (ac_try="$ac_link"
39674 case "(($ac_try" in
39675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39676   *) ac_try_echo=$ac_try;;
39677 esac
39678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39679 $as_echo "$ac_try_echo") >&5
39680   (eval "$ac_link") 2>conftest.er1
39681   ac_status=$?
39682   grep -v '^ *+' conftest.er1 >conftest.err
39683   rm -f conftest.er1
39684   cat conftest.err >&5
39685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686   (exit $ac_status); } && {
39687          test -z "$ac_c_werror_flag" ||
39688          test ! -s conftest.err
39689        } && test -s conftest$ac_exeext && {
39690          test "$cross_compiling" = yes ||
39691          $as_test_x conftest$ac_exeext
39692        }; then
39693   am_cv_lib_iconv=yes
39694         am_cv_func_iconv=yes
39695 else
39696   $as_echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39698
39699
39700 fi
39701
39702 rm -rf conftest.dSYM
39703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39704       conftest$ac_exeext conftest.$ac_ext
39705       LIBS="$am_save_LIBS"
39706     fi
39707
39708 fi
39709 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39710 $as_echo "$am_cv_func_iconv" >&6; }
39711   if test "$am_cv_func_iconv" = yes; then
39712
39713 cat >>confdefs.h <<\_ACEOF
39714 #define HAVE_ICONV 1
39715 _ACEOF
39716
39717   fi
39718   if test "$am_cv_lib_iconv" = yes; then
39719     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
39720 $as_echo_n "checking how to link with libiconv... " >&6; }
39721     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
39722 $as_echo "$LIBICONV" >&6; }
39723   else
39724             CPPFLAGS="$am_save_CPPFLAGS"
39725     LIBICONV=
39726     LTLIBICONV=
39727   fi
39728
39729
39730
39731
39732
39733
39734
39735     use_additional=yes
39736
39737   acl_save_prefix="$prefix"
39738   prefix="$acl_final_prefix"
39739   acl_save_exec_prefix="$exec_prefix"
39740   exec_prefix="$acl_final_exec_prefix"
39741
39742     eval additional_includedir=\"$includedir\"
39743     eval additional_libdir=\"$libdir\"
39744
39745   exec_prefix="$acl_save_exec_prefix"
39746   prefix="$acl_save_prefix"
39747
39748
39749 # Check whether --with-libintl-prefix was given.
39750 if test "${with_libintl_prefix+set}" = set; then
39751   withval=$with_libintl_prefix;
39752     if test "X$withval" = "Xno"; then
39753       use_additional=no
39754     else
39755       if test "X$withval" = "X"; then
39756
39757   acl_save_prefix="$prefix"
39758   prefix="$acl_final_prefix"
39759   acl_save_exec_prefix="$exec_prefix"
39760   exec_prefix="$acl_final_exec_prefix"
39761
39762           eval additional_includedir=\"$includedir\"
39763           eval additional_libdir=\"$libdir\"
39764
39765   exec_prefix="$acl_save_exec_prefix"
39766   prefix="$acl_save_prefix"
39767
39768       else
39769         additional_includedir="$withval/include"
39770         additional_libdir="$withval/$acl_libdirstem"
39771       fi
39772     fi
39773
39774 fi
39775
39776       LIBINTL=
39777   LTLIBINTL=
39778   INCINTL=
39779   rpathdirs=
39780   ltrpathdirs=
39781   names_already_handled=
39782   names_next_round='intl '
39783   while test -n "$names_next_round"; do
39784     names_this_round="$names_next_round"
39785     names_next_round=
39786     for name in $names_this_round; do
39787       already_handled=
39788       for n in $names_already_handled; do
39789         if test "$n" = "$name"; then
39790           already_handled=yes
39791           break
39792         fi
39793       done
39794       if test -z "$already_handled"; then
39795         names_already_handled="$names_already_handled $name"
39796                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39797         eval value=\"\$HAVE_LIB$uppername\"
39798         if test -n "$value"; then
39799           if test "$value" = yes; then
39800             eval value=\"\$LIB$uppername\"
39801             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
39802             eval value=\"\$LTLIB$uppername\"
39803             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
39804           else
39805                                     :
39806           fi
39807         else
39808                               found_dir=
39809           found_la=
39810           found_so=
39811           found_a=
39812           if test $use_additional = yes; then
39813             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39814               found_dir="$additional_libdir"
39815               found_so="$additional_libdir/lib$name.$shlibext"
39816               if test -f "$additional_libdir/lib$name.la"; then
39817                 found_la="$additional_libdir/lib$name.la"
39818               fi
39819             else
39820               if test -f "$additional_libdir/lib$name.$libext"; then
39821                 found_dir="$additional_libdir"
39822                 found_a="$additional_libdir/lib$name.$libext"
39823                 if test -f "$additional_libdir/lib$name.la"; then
39824                   found_la="$additional_libdir/lib$name.la"
39825                 fi
39826               fi
39827             fi
39828           fi
39829           if test "X$found_dir" = "X"; then
39830             for x in $LDFLAGS $LTLIBINTL; do
39831
39832   acl_save_prefix="$prefix"
39833   prefix="$acl_final_prefix"
39834   acl_save_exec_prefix="$exec_prefix"
39835   exec_prefix="$acl_final_exec_prefix"
39836   eval x=\"$x\"
39837   exec_prefix="$acl_save_exec_prefix"
39838   prefix="$acl_save_prefix"
39839
39840               case "$x" in
39841                 -L*)
39842                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39843                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39844                     found_dir="$dir"
39845                     found_so="$dir/lib$name.$shlibext"
39846                     if test -f "$dir/lib$name.la"; then
39847                       found_la="$dir/lib$name.la"
39848                     fi
39849                   else
39850                     if test -f "$dir/lib$name.$libext"; then
39851                       found_dir="$dir"
39852                       found_a="$dir/lib$name.$libext"
39853                       if test -f "$dir/lib$name.la"; then
39854                         found_la="$dir/lib$name.la"
39855                       fi
39856                     fi
39857                   fi
39858                   ;;
39859               esac
39860               if test "X$found_dir" != "X"; then
39861                 break
39862               fi
39863             done
39864           fi
39865           if test "X$found_dir" != "X"; then
39866                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
39867             if test "X$found_so" != "X"; then
39868                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39869                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39870               else
39871                                                                                 haveit=
39872                 for x in $ltrpathdirs; do
39873                   if test "X$x" = "X$found_dir"; then
39874                     haveit=yes
39875                     break
39876                   fi
39877                 done
39878                 if test -z "$haveit"; then
39879                   ltrpathdirs="$ltrpathdirs $found_dir"
39880                 fi
39881                                 if test "$hardcode_direct" = yes; then
39882                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39883                 else
39884                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39885                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39886                                                             haveit=
39887                     for x in $rpathdirs; do
39888                       if test "X$x" = "X$found_dir"; then
39889                         haveit=yes
39890                         break
39891                       fi
39892                     done
39893                     if test -z "$haveit"; then
39894                       rpathdirs="$rpathdirs $found_dir"
39895                     fi
39896                   else
39897                                                                                 haveit=
39898                     for x in $LDFLAGS $LIBINTL; do
39899
39900   acl_save_prefix="$prefix"
39901   prefix="$acl_final_prefix"
39902   acl_save_exec_prefix="$exec_prefix"
39903   exec_prefix="$acl_final_exec_prefix"
39904   eval x=\"$x\"
39905   exec_prefix="$acl_save_exec_prefix"
39906   prefix="$acl_save_prefix"
39907
39908                       if test "X$x" = "X-L$found_dir"; then
39909                         haveit=yes
39910                         break
39911                       fi
39912                     done
39913                     if test -z "$haveit"; then
39914                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39915                     fi
39916                     if test "$hardcode_minus_L" != no; then
39917                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39918                     else
39919                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39920                     fi
39921                   fi
39922                 fi
39923               fi
39924             else
39925               if test "X$found_a" != "X"; then
39926                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39927               else
39928                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39929               fi
39930             fi
39931                         additional_includedir=
39932             case "$found_dir" in
39933               */$acl_libdirstem | */$acl_libdirstem/)
39934                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39935                 additional_includedir="$basedir/include"
39936                 ;;
39937             esac
39938             if test "X$additional_includedir" != "X"; then
39939                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39940                 haveit=
39941                 if test "X$additional_includedir" = "X/usr/local/include"; then
39942                   if test -n "$GCC"; then
39943                     case $host_os in
39944                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39945                     esac
39946                   fi
39947                 fi
39948                 if test -z "$haveit"; then
39949                   for x in $CPPFLAGS $INCINTL; do
39950
39951   acl_save_prefix="$prefix"
39952   prefix="$acl_final_prefix"
39953   acl_save_exec_prefix="$exec_prefix"
39954   exec_prefix="$acl_final_exec_prefix"
39955   eval x=\"$x\"
39956   exec_prefix="$acl_save_exec_prefix"
39957   prefix="$acl_save_prefix"
39958
39959                     if test "X$x" = "X-I$additional_includedir"; then
39960                       haveit=yes
39961                       break
39962                     fi
39963                   done
39964                   if test -z "$haveit"; then
39965                     if test -d "$additional_includedir"; then
39966                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39967                     fi
39968                   fi
39969                 fi
39970               fi
39971             fi
39972                         if test -n "$found_la"; then
39973                                                         save_libdir="$libdir"
39974               case "$found_la" in
39975                 */* | *\\*) . "$found_la" ;;
39976                 *) . "./$found_la" ;;
39977               esac
39978               libdir="$save_libdir"
39979                             for dep in $dependency_libs; do
39980                 case "$dep" in
39981                   -L*)
39982                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39983                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39984                       haveit=
39985                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39986                         if test -n "$GCC"; then
39987                           case $host_os in
39988                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39989                           esac
39990                         fi
39991                       fi
39992                       if test -z "$haveit"; then
39993                         haveit=
39994                         for x in $LDFLAGS $LIBINTL; do
39995
39996   acl_save_prefix="$prefix"
39997   prefix="$acl_final_prefix"
39998   acl_save_exec_prefix="$exec_prefix"
39999   exec_prefix="$acl_final_exec_prefix"
40000   eval x=\"$x\"
40001   exec_prefix="$acl_save_exec_prefix"
40002   prefix="$acl_save_prefix"
40003
40004                           if test "X$x" = "X-L$additional_libdir"; then
40005                             haveit=yes
40006                             break
40007                           fi
40008                         done
40009                         if test -z "$haveit"; then
40010                           if test -d "$additional_libdir"; then
40011                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40012                           fi
40013                         fi
40014                         haveit=
40015                         for x in $LDFLAGS $LTLIBINTL; do
40016
40017   acl_save_prefix="$prefix"
40018   prefix="$acl_final_prefix"
40019   acl_save_exec_prefix="$exec_prefix"
40020   exec_prefix="$acl_final_exec_prefix"
40021   eval x=\"$x\"
40022   exec_prefix="$acl_save_exec_prefix"
40023   prefix="$acl_save_prefix"
40024
40025                           if test "X$x" = "X-L$additional_libdir"; then
40026                             haveit=yes
40027                             break
40028                           fi
40029                         done
40030                         if test -z "$haveit"; then
40031                           if test -d "$additional_libdir"; then
40032                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40033                           fi
40034                         fi
40035                       fi
40036                     fi
40037                     ;;
40038                   -R*)
40039                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
40040                     if test "$enable_rpath" != no; then
40041                                                                   haveit=
40042                       for x in $rpathdirs; do
40043                         if test "X$x" = "X$dir"; then
40044                           haveit=yes
40045                           break
40046                         fi
40047                       done
40048                       if test -z "$haveit"; then
40049                         rpathdirs="$rpathdirs $dir"
40050                       fi
40051                                                                   haveit=
40052                       for x in $ltrpathdirs; do
40053                         if test "X$x" = "X$dir"; then
40054                           haveit=yes
40055                           break
40056                         fi
40057                       done
40058                       if test -z "$haveit"; then
40059                         ltrpathdirs="$ltrpathdirs $dir"
40060                       fi
40061                     fi
40062                     ;;
40063                   -l*)
40064                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40065                     ;;
40066                   *.la)
40067                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40068                     ;;
40069                   *)
40070                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40071                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40072                     ;;
40073                 esac
40074               done
40075             fi
40076           else
40077                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40078             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40079           fi
40080         fi
40081       fi
40082     done
40083   done
40084   if test "X$rpathdirs" != "X"; then
40085     if test -n "$hardcode_libdir_separator"; then
40086                         alldirs=
40087       for found_dir in $rpathdirs; do
40088         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40089       done
40090             acl_save_libdir="$libdir"
40091       libdir="$alldirs"
40092       eval flag=\"$hardcode_libdir_flag_spec\"
40093       libdir="$acl_save_libdir"
40094       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40095     else
40096             for found_dir in $rpathdirs; do
40097         acl_save_libdir="$libdir"
40098         libdir="$found_dir"
40099         eval flag=\"$hardcode_libdir_flag_spec\"
40100         libdir="$acl_save_libdir"
40101         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40102       done
40103     fi
40104   fi
40105   if test "X$ltrpathdirs" != "X"; then
40106             for found_dir in $ltrpathdirs; do
40107       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40108     done
40109   fi
40110
40111           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40112 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
40113 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
40114   $as_echo_n "(cached) " >&6
40115 else
40116   gt_save_CPPFLAGS="$CPPFLAGS"
40117             CPPFLAGS="$CPPFLAGS $INCINTL"
40118             gt_save_LIBS="$LIBS"
40119             LIBS="$LIBS $LIBINTL"
40120                         cat >conftest.$ac_ext <<_ACEOF
40121 /* confdefs.h.  */
40122 _ACEOF
40123 cat confdefs.h >>conftest.$ac_ext
40124 cat >>conftest.$ac_ext <<_ACEOF
40125 /* end confdefs.h.  */
40126 #include <libintl.h>
40127 extern int _nl_msg_cat_cntr;
40128 extern
40129 #ifdef __cplusplus
40130 "C"
40131 #endif
40132 const char *_nl_expand_alias (const char *);
40133 int
40134 main ()
40135 {
40136 bindtextdomain ("", "");
40137 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40138   ;
40139   return 0;
40140 }
40141 _ACEOF
40142 rm -f conftest.$ac_objext conftest$ac_exeext
40143 if { (ac_try="$ac_link"
40144 case "(($ac_try" in
40145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40146   *) ac_try_echo=$ac_try;;
40147 esac
40148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40149 $as_echo "$ac_try_echo") >&5
40150   (eval "$ac_link") 2>conftest.er1
40151   ac_status=$?
40152   grep -v '^ *+' conftest.er1 >conftest.err
40153   rm -f conftest.er1
40154   cat conftest.err >&5
40155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156   (exit $ac_status); } && {
40157          test -z "$ac_c_werror_flag" ||
40158          test ! -s conftest.err
40159        } && test -s conftest$ac_exeext && {
40160          test "$cross_compiling" = yes ||
40161          $as_test_x conftest$ac_exeext
40162        }; then
40163   gt_cv_func_gnugettext1_libintl=yes
40164 else
40165   $as_echo "$as_me: failed program was:" >&5
40166 sed 's/^/| /' conftest.$ac_ext >&5
40167
40168         gt_cv_func_gnugettext1_libintl=no
40169 fi
40170
40171 rm -rf conftest.dSYM
40172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40173       conftest$ac_exeext conftest.$ac_ext
40174                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
40175               LIBS="$LIBS $LIBICONV"
40176               cat >conftest.$ac_ext <<_ACEOF
40177 /* confdefs.h.  */
40178 _ACEOF
40179 cat confdefs.h >>conftest.$ac_ext
40180 cat >>conftest.$ac_ext <<_ACEOF
40181 /* end confdefs.h.  */
40182 #include <libintl.h>
40183 extern int _nl_msg_cat_cntr;
40184 extern
40185 #ifdef __cplusplus
40186 "C"
40187 #endif
40188 const char *_nl_expand_alias (const char *);
40189 int
40190 main ()
40191 {
40192 bindtextdomain ("", "");
40193 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40194   ;
40195   return 0;
40196 }
40197 _ACEOF
40198 rm -f conftest.$ac_objext conftest$ac_exeext
40199 if { (ac_try="$ac_link"
40200 case "(($ac_try" in
40201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40202   *) ac_try_echo=$ac_try;;
40203 esac
40204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40205 $as_echo "$ac_try_echo") >&5
40206   (eval "$ac_link") 2>conftest.er1
40207   ac_status=$?
40208   grep -v '^ *+' conftest.er1 >conftest.err
40209   rm -f conftest.er1
40210   cat conftest.err >&5
40211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40212   (exit $ac_status); } && {
40213          test -z "$ac_c_werror_flag" ||
40214          test ! -s conftest.err
40215        } && test -s conftest$ac_exeext && {
40216          test "$cross_compiling" = yes ||
40217          $as_test_x conftest$ac_exeext
40218        }; then
40219   LIBINTL="$LIBINTL $LIBICONV"
40220                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40221                 gt_cv_func_gnugettext1_libintl=yes
40222
40223 else
40224   $as_echo "$as_me: failed program was:" >&5
40225 sed 's/^/| /' conftest.$ac_ext >&5
40226
40227
40228 fi
40229
40230 rm -rf conftest.dSYM
40231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40232       conftest$ac_exeext conftest.$ac_ext
40233             fi
40234             CPPFLAGS="$gt_save_CPPFLAGS"
40235             LIBS="$gt_save_LIBS"
40236 fi
40237 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
40238 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
40239         fi
40240
40241                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
40242            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
40243                 && test "$PACKAGE" != gettext-runtime \
40244                 && test "$PACKAGE" != gettext-tools; }; then
40245           gt_use_preinstalled_gnugettext=yes
40246         else
40247                     LIBINTL=
40248           LTLIBINTL=
40249           INCINTL=
40250         fi
40251
40252
40253
40254     if test -n "$INTL_MACOSX_LIBS"; then
40255       if test "$gt_use_preinstalled_gnugettext" = "yes" \
40256          || test "$nls_cv_use_gnu_gettext" = "yes"; then
40257                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
40258         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
40259       fi
40260     fi
40261
40262     if test "$gt_use_preinstalled_gnugettext" = "yes" \
40263        || test "$nls_cv_use_gnu_gettext" = "yes"; then
40264
40265 cat >>confdefs.h <<\_ACEOF
40266 #define ENABLE_NLS 1
40267 _ACEOF
40268
40269     else
40270       USE_NLS=no
40271     fi
40272   fi
40273
40274   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
40275 $as_echo_n "checking whether to use NLS... " >&6; }
40276   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
40277 $as_echo "$USE_NLS" >&6; }
40278   if test "$USE_NLS" = "yes"; then
40279     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
40280 $as_echo_n "checking where the gettext function comes from... " >&6; }
40281     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40282       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40283         gt_source="external libintl"
40284       else
40285         gt_source="libc"
40286       fi
40287     else
40288       gt_source="included intl directory"
40289     fi
40290     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
40291 $as_echo "$gt_source" >&6; }
40292   fi
40293
40294   if test "$USE_NLS" = "yes"; then
40295
40296     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40297       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40298         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
40299 $as_echo_n "checking how to link with libintl... " >&6; }
40300         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
40301 $as_echo "$LIBINTL" >&6; }
40302
40303   for element in $INCINTL; do
40304     haveit=
40305     for x in $CPPFLAGS; do
40306
40307   acl_save_prefix="$prefix"
40308   prefix="$acl_final_prefix"
40309   acl_save_exec_prefix="$exec_prefix"
40310   exec_prefix="$acl_final_exec_prefix"
40311   eval x=\"$x\"
40312   exec_prefix="$acl_save_exec_prefix"
40313   prefix="$acl_save_prefix"
40314
40315       if test "X$x" = "X$element"; then
40316         haveit=yes
40317         break
40318       fi
40319     done
40320     if test -z "$haveit"; then
40321       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40322     fi
40323   done
40324
40325       fi
40326
40327
40328 cat >>confdefs.h <<\_ACEOF
40329 #define HAVE_GETTEXT 1
40330 _ACEOF
40331
40332
40333 cat >>confdefs.h <<\_ACEOF
40334 #define HAVE_DCGETTEXT 1
40335 _ACEOF
40336
40337     fi
40338
40339         POSUB=po
40340   fi
40341
40342
40343
40344     INTLLIBS="$LIBINTL"
40345
40346
40347
40348
40349
40350
40351
40352 #
40353 # Devices
40354 #
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394 # Check whether --with-libcurl was given.
40395 if test "${with_libcurl+set}" = set; then
40396   withval=$with_libcurl; _libcurl_with=$withval
40397 else
40398   _libcurl_with=yes
40399 fi
40400
40401
40402   if test "$_libcurl_with" != "no" ; then
40403
40404      for ac_prog in gawk mawk nawk awk
40405 do
40406   # Extract the first word of "$ac_prog", so it can be a program name with args.
40407 set dummy $ac_prog; ac_word=$2
40408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40409 $as_echo_n "checking for $ac_word... " >&6; }
40410 if test "${ac_cv_prog_AWK+set}" = set; then
40411   $as_echo_n "(cached) " >&6
40412 else
40413   if test -n "$AWK"; then
40414   ac_cv_prog_AWK="$AWK" # Let the user override the test.
40415 else
40416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40417 for as_dir in $PATH
40418 do
40419   IFS=$as_save_IFS
40420   test -z "$as_dir" && as_dir=.
40421   for ac_exec_ext in '' $ac_executable_extensions; do
40422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40423     ac_cv_prog_AWK="$ac_prog"
40424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40425     break 2
40426   fi
40427 done
40428 done
40429 IFS=$as_save_IFS
40430
40431 fi
40432 fi
40433 AWK=$ac_cv_prog_AWK
40434 if test -n "$AWK"; then
40435   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
40436 $as_echo "$AWK" >&6; }
40437 else
40438   { $as_echo "$as_me:$LINENO: result: no" >&5
40439 $as_echo "no" >&6; }
40440 fi
40441
40442
40443   test -n "$AWK" && break
40444 done
40445
40446
40447      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
40448
40449      _libcurl_try_link=yes
40450
40451      if test -d "$_libcurl_with" ; then
40452         LIBCURL_CPPFLAGS="-I$withval/include"
40453         _libcurl_ldflags="-L$withval/lib"
40454         # Extract the first word of "curl-config", so it can be a program name with args.
40455 set dummy curl-config; ac_word=$2
40456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40457 $as_echo_n "checking for $ac_word... " >&6; }
40458 if test "${ac_cv_path__libcurl_config+set}" = set; then
40459   $as_echo_n "(cached) " >&6
40460 else
40461   case $_libcurl_config in
40462   [\\/]* | ?:[\\/]*)
40463   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
40464   ;;
40465   *)
40466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40467 for as_dir in "$withval/bin"
40468 do
40469   IFS=$as_save_IFS
40470   test -z "$as_dir" && as_dir=.
40471   for ac_exec_ext in '' $ac_executable_extensions; do
40472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40473     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
40474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40475     break 2
40476   fi
40477 done
40478 done
40479 IFS=$as_save_IFS
40480
40481   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
40482   ;;
40483 esac
40484 fi
40485 _libcurl_config=$ac_cv_path__libcurl_config
40486 if test -n "$_libcurl_config"; then
40487   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
40488 $as_echo "$_libcurl_config" >&6; }
40489 else
40490   { $as_echo "$as_me:$LINENO: result: no" >&5
40491 $as_echo "no" >&6; }
40492 fi
40493
40494
40495      else
40496         # Extract the first word of "curl-config", so it can be a program name with args.
40497 set dummy curl-config; ac_word=$2
40498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40499 $as_echo_n "checking for $ac_word... " >&6; }
40500 if test "${ac_cv_path__libcurl_config+set}" = set; then
40501   $as_echo_n "(cached) " >&6
40502 else
40503   case $_libcurl_config in
40504   [\\/]* | ?:[\\/]*)
40505   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
40506   ;;
40507   *)
40508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40509 for as_dir in $PATH
40510 do
40511   IFS=$as_save_IFS
40512   test -z "$as_dir" && as_dir=.
40513   for ac_exec_ext in '' $ac_executable_extensions; do
40514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40515     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
40516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40517     break 2
40518   fi
40519 done
40520 done
40521 IFS=$as_save_IFS
40522
40523   ;;
40524 esac
40525 fi
40526 _libcurl_config=$ac_cv_path__libcurl_config
40527 if test -n "$_libcurl_config"; then
40528   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
40529 $as_echo "$_libcurl_config" >&6; }
40530 else
40531   { $as_echo "$as_me:$LINENO: result: no" >&5
40532 $as_echo "no" >&6; }
40533 fi
40534
40535
40536      fi
40537
40538      if test x$_libcurl_config != "x" ; then
40539         { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
40540 $as_echo_n "checking for the version of libcurl... " >&6; }
40541 if test "${libcurl_cv_lib_curl_version+set}" = set; then
40542   $as_echo_n "(cached) " >&6
40543 else
40544   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
40545 fi
40546 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
40547 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
40548
40549         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
40550         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
40551
40552         if test $_libcurl_wanted -gt 0 ; then
40553            { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
40554 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
40555 if test "${libcurl_cv_lib_version_ok+set}" = set; then
40556   $as_echo_n "(cached) " >&6
40557 else
40558
40559               if test $_libcurl_version -ge $_libcurl_wanted ; then
40560                  libcurl_cv_lib_version_ok=yes
40561               else
40562                  libcurl_cv_lib_version_ok=no
40563               fi
40564
40565 fi
40566 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
40567 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
40568         fi
40569
40570         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
40571            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
40572               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
40573            fi
40574            if test x"$LIBCURL" = "x" ; then
40575               LIBCURL=`$_libcurl_config --libs`
40576
40577               # This is so silly, but Apple actually has a bug in their
40578               # curl-config script.  Fixed in Tiger, but there are still
40579               # lots of Panther installs around.
40580               case "${host}" in
40581                  powerpc-apple-darwin7*)
40582                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
40583                  ;;
40584               esac
40585            fi
40586
40587            # All curl-config scripts support --feature
40588            _libcurl_features=`$_libcurl_config --feature`
40589
40590            # Is it modern enough to have --protocols? (7.12.4)
40591            if test $_libcurl_version -ge 461828 ; then
40592               _libcurl_protocols=`$_libcurl_config --protocols`
40593            fi
40594         else
40595            _libcurl_try_link=no
40596         fi
40597
40598         unset _libcurl_wanted
40599      fi
40600
40601      if test $_libcurl_try_link = yes ; then
40602
40603         # we didn't find curl-config, so let's see if the user-supplied
40604         # link line (or failing that, "-lcurl") is enough.
40605         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
40606
40607         { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
40608 $as_echo_n "checking whether libcurl is usable... " >&6; }
40609 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
40610   $as_echo_n "(cached) " >&6
40611 else
40612
40613            _libcurl_save_cppflags=$CPPFLAGS
40614            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
40615            _libcurl_save_libs=$LIBS
40616            LIBS="$LIBCURL $LIBS"
40617
40618            cat >conftest.$ac_ext <<_ACEOF
40619 /* confdefs.h.  */
40620 _ACEOF
40621 cat confdefs.h >>conftest.$ac_ext
40622 cat >>conftest.$ac_ext <<_ACEOF
40623 /* end confdefs.h.  */
40624 #include <curl/curl.h>
40625 int
40626 main ()
40627 {
40628
40629 /* Try and use a few common options to force a failure if we are
40630    missing symbols or can't link. */
40631 int x;
40632 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
40633 x=CURL_ERROR_SIZE;
40634 x=CURLOPT_WRITEFUNCTION;
40635 x=CURLOPT_FILE;
40636 x=CURLOPT_ERRORBUFFER;
40637 x=CURLOPT_STDERR;
40638 x=CURLOPT_VERBOSE;
40639
40640   ;
40641   return 0;
40642 }
40643 _ACEOF
40644 rm -f conftest.$ac_objext conftest$ac_exeext
40645 if { (ac_try="$ac_link"
40646 case "(($ac_try" in
40647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648   *) ac_try_echo=$ac_try;;
40649 esac
40650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40651 $as_echo "$ac_try_echo") >&5
40652   (eval "$ac_link") 2>conftest.er1
40653   ac_status=$?
40654   grep -v '^ *+' conftest.er1 >conftest.err
40655   rm -f conftest.er1
40656   cat conftest.err >&5
40657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658   (exit $ac_status); } && {
40659          test -z "$ac_c_werror_flag" ||
40660          test ! -s conftest.err
40661        } && test -s conftest$ac_exeext && {
40662          test "$cross_compiling" = yes ||
40663          $as_test_x conftest$ac_exeext
40664        }; then
40665   libcurl_cv_lib_curl_usable=yes
40666 else
40667   $as_echo "$as_me: failed program was:" >&5
40668 sed 's/^/| /' conftest.$ac_ext >&5
40669
40670         libcurl_cv_lib_curl_usable=no
40671 fi
40672
40673 rm -rf conftest.dSYM
40674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40675       conftest$ac_exeext conftest.$ac_ext
40676
40677            CPPFLAGS=$_libcurl_save_cppflags
40678            LIBS=$_libcurl_save_libs
40679            unset _libcurl_save_cppflags
40680            unset _libcurl_save_libs
40681
40682 fi
40683 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
40684 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
40685
40686         if test $libcurl_cv_lib_curl_usable = yes ; then
40687
40688            # Does curl_free() exist in this version of libcurl?
40689            # If not, fake it with free()
40690
40691            _libcurl_save_cppflags=$CPPFLAGS
40692            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
40693            _libcurl_save_libs=$LIBS
40694            LIBS="$LIBS $LIBCURL"
40695
40696            { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
40697 $as_echo_n "checking for curl_free... " >&6; }
40698 if test "${ac_cv_func_curl_free+set}" = set; then
40699   $as_echo_n "(cached) " >&6
40700 else
40701   cat >conftest.$ac_ext <<_ACEOF
40702 /* confdefs.h.  */
40703 _ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h.  */
40707 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
40708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40709 #define curl_free innocuous_curl_free
40710
40711 /* System header to define __stub macros and hopefully few prototypes,
40712     which can conflict with char curl_free (); below.
40713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40714     <limits.h> exists even on freestanding compilers.  */
40715
40716 #ifdef __STDC__
40717 # include <limits.h>
40718 #else
40719 # include <assert.h>
40720 #endif
40721
40722 #undef curl_free
40723
40724 /* Override any GCC internal prototype to avoid an error.
40725    Use char because int might match the return type of a GCC
40726    builtin and then its argument prototype would still apply.  */
40727 #ifdef __cplusplus
40728 extern "C"
40729 #endif
40730 char curl_free ();
40731 /* The GNU C library defines this for functions which it implements
40732     to always fail with ENOSYS.  Some functions are actually named
40733     something starting with __ and the normal name is an alias.  */
40734 #if defined __stub_curl_free || defined __stub___curl_free
40735 choke me
40736 #endif
40737
40738 int
40739 main ()
40740 {
40741 return curl_free ();
40742   ;
40743   return 0;
40744 }
40745 _ACEOF
40746 rm -f conftest.$ac_objext conftest$ac_exeext
40747 if { (ac_try="$ac_link"
40748 case "(($ac_try" in
40749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40750   *) ac_try_echo=$ac_try;;
40751 esac
40752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40753 $as_echo "$ac_try_echo") >&5
40754   (eval "$ac_link") 2>conftest.er1
40755   ac_status=$?
40756   grep -v '^ *+' conftest.er1 >conftest.err
40757   rm -f conftest.er1
40758   cat conftest.err >&5
40759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760   (exit $ac_status); } && {
40761          test -z "$ac_c_werror_flag" ||
40762          test ! -s conftest.err
40763        } && test -s conftest$ac_exeext && {
40764          test "$cross_compiling" = yes ||
40765          $as_test_x conftest$ac_exeext
40766        }; then
40767   ac_cv_func_curl_free=yes
40768 else
40769   $as_echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40771
40772         ac_cv_func_curl_free=no
40773 fi
40774
40775 rm -rf conftest.dSYM
40776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40777       conftest$ac_exeext conftest.$ac_ext
40778 fi
40779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
40780 $as_echo "$ac_cv_func_curl_free" >&6; }
40781 if test "x$ac_cv_func_curl_free" = x""yes; then
40782   :
40783 else
40784
40785 cat >>confdefs.h <<\_ACEOF
40786 #define curl_free free
40787 _ACEOF
40788
40789 fi
40790
40791
40792            CPPFLAGS=$_libcurl_save_cppflags
40793            LIBS=$_libcurl_save_libs
40794            unset _libcurl_save_cppflags
40795            unset _libcurl_save_libs
40796
40797
40798 cat >>confdefs.h <<\_ACEOF
40799 #define HAVE_LIBCURL 1
40800 _ACEOF
40801
40802
40803
40804
40805            for _libcurl_feature in $_libcurl_features ; do
40806               cat >>confdefs.h <<_ACEOF
40807 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
40808 _ACEOF
40809
40810               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
40811            done
40812
40813            if test "x$_libcurl_protocols" = "x" ; then
40814
40815               # We don't have --protocols, so just assume that all
40816               # protocols are available
40817               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
40818
40819               if test x$libcurl_feature_SSL = xyes ; then
40820                  _libcurl_protocols="$_libcurl_protocols HTTPS"
40821
40822                  # FTPS wasn't standards-compliant until version
40823                  # 7.11.0
40824                  if test $_libcurl_version -ge 461568; then
40825                     _libcurl_protocols="$_libcurl_protocols FTPS"
40826                  fi
40827               fi
40828            fi
40829
40830            for _libcurl_protocol in $_libcurl_protocols ; do
40831               cat >>confdefs.h <<_ACEOF
40832 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
40833 _ACEOF
40834
40835               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
40836            done
40837         else
40838            unset LIBCURL
40839            unset LIBCURL_CPPFLAGS
40840         fi
40841      fi
40842
40843      unset _libcurl_try_link
40844      unset _libcurl_version_parse
40845      unset _libcurl_config
40846      unset _libcurl_feature
40847      unset _libcurl_features
40848      unset _libcurl_protocol
40849      unset _libcurl_protocols
40850      unset _libcurl_version
40851      unset _libcurl_ldflags
40852   fi
40853
40854   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
40855      # This is the IF-NO path
40856      HAVE_CURL=no
40857   else
40858      # This is the IF-YES path
40859      HAVE_CURL=yes
40860   fi
40861
40862   unset _libcurl_with
40863
40864     if test x"$HAVE_CURL" = x"yes"; then
40865         LIBS="$LIBCURL $LIBS"
40866
40867         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
40868
40869
40870
40871
40872     { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
40873 $as_echo_n "checking for curl_off_t... " >&6; }
40874 if test "${ac_cv_type_curl_off_t+set}" = set; then
40875   $as_echo_n "(cached) " >&6
40876 else
40877   ac_cv_type_curl_off_t=no
40878 cat >conftest.$ac_ext <<_ACEOF
40879 /* confdefs.h.  */
40880 _ACEOF
40881 cat confdefs.h >>conftest.$ac_ext
40882 cat >>conftest.$ac_ext <<_ACEOF
40883 /* end confdefs.h.  */
40884
40885 #ifdef HAVE_SYS_TYPES_H
40886 #include <sys/types.h>
40887 #endif
40888 #ifdef STDC_HEADERS
40889 #include <stdlib.h>
40890 #include <stddef.h>
40891 #endif
40892 #include <curl/curl.h>
40893
40894
40895
40896 int
40897 main ()
40898 {
40899 if (sizeof (curl_off_t))
40900        return 0;
40901   ;
40902   return 0;
40903 }
40904 _ACEOF
40905 rm -f conftest.$ac_objext
40906 if { (ac_try="$ac_compile"
40907 case "(($ac_try" in
40908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40909   *) ac_try_echo=$ac_try;;
40910 esac
40911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40912 $as_echo "$ac_try_echo") >&5
40913   (eval "$ac_compile") 2>conftest.er1
40914   ac_status=$?
40915   grep -v '^ *+' conftest.er1 >conftest.err
40916   rm -f conftest.er1
40917   cat conftest.err >&5
40918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919   (exit $ac_status); } && {
40920          test -z "$ac_c_werror_flag" ||
40921          test ! -s conftest.err
40922        } && test -s conftest.$ac_objext; then
40923   cat >conftest.$ac_ext <<_ACEOF
40924 /* confdefs.h.  */
40925 _ACEOF
40926 cat confdefs.h >>conftest.$ac_ext
40927 cat >>conftest.$ac_ext <<_ACEOF
40928 /* end confdefs.h.  */
40929
40930 #ifdef HAVE_SYS_TYPES_H
40931 #include <sys/types.h>
40932 #endif
40933 #ifdef STDC_HEADERS
40934 #include <stdlib.h>
40935 #include <stddef.h>
40936 #endif
40937 #include <curl/curl.h>
40938
40939
40940
40941 int
40942 main ()
40943 {
40944 if (sizeof ((curl_off_t)))
40945           return 0;
40946   ;
40947   return 0;
40948 }
40949 _ACEOF
40950 rm -f conftest.$ac_objext
40951 if { (ac_try="$ac_compile"
40952 case "(($ac_try" in
40953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40954   *) ac_try_echo=$ac_try;;
40955 esac
40956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40957 $as_echo "$ac_try_echo") >&5
40958   (eval "$ac_compile") 2>conftest.er1
40959   ac_status=$?
40960   grep -v '^ *+' conftest.er1 >conftest.err
40961   rm -f conftest.er1
40962   cat conftest.err >&5
40963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964   (exit $ac_status); } && {
40965          test -z "$ac_c_werror_flag" ||
40966          test ! -s conftest.err
40967        } && test -s conftest.$ac_objext; then
40968   :
40969 else
40970   $as_echo "$as_me: failed program was:" >&5
40971 sed 's/^/| /' conftest.$ac_ext >&5
40972
40973         ac_cv_type_curl_off_t=yes
40974 fi
40975
40976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40977 else
40978   $as_echo "$as_me: failed program was:" >&5
40979 sed 's/^/| /' conftest.$ac_ext >&5
40980
40981
40982 fi
40983
40984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40985 fi
40986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
40987 $as_echo "$ac_cv_type_curl_off_t" >&6; }
40988 if test "x$ac_cv_type_curl_off_t" = x""yes; then
40989   :
40990 else
40991
40992
40993 cat >>confdefs.h <<\_ACEOF
40994 #define curl_off_t off_t
40995 _ACEOF
40996
40997
40998 fi
40999
41000
41001         case "$host" in
41002             *sun-solaris2*) # Solaris, all versions.
41003             # we extract the -L flags and translate them to -R flags, as required
41004             # by the runtime linker.
41005             if test -n "$_libcurl_config"; then
41006                 curlflags=`$_libcurl_config --libs 2>/dev/null`
41007                 for flag in curlflags; do
41008                     case $flag in
41009                         -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
41010                     esac
41011                 done
41012             fi
41013             ;;
41014         esac
41015     fi
41016
41017
41018
41019     HAVE_HMAC=yes
41020
41021 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
41022 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
41023 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
41024   $as_echo_n "(cached) " >&6
41025 else
41026   ac_check_lib_save_LIBS=$LIBS
41027 LIBS="-lcrypto  $LIBS"
41028 cat >conftest.$ac_ext <<_ACEOF
41029 /* confdefs.h.  */
41030 _ACEOF
41031 cat confdefs.h >>conftest.$ac_ext
41032 cat >>conftest.$ac_ext <<_ACEOF
41033 /* end confdefs.h.  */
41034
41035 /* Override any GCC internal prototype to avoid an error.
41036    Use char because int might match the return type of a GCC
41037    builtin and then its argument prototype would still apply.  */
41038 #ifdef __cplusplus
41039 extern "C"
41040 #endif
41041 char HMAC_CTX_init ();
41042 int
41043 main ()
41044 {
41045 return HMAC_CTX_init ();
41046   ;
41047   return 0;
41048 }
41049 _ACEOF
41050 rm -f conftest.$ac_objext conftest$ac_exeext
41051 if { (ac_try="$ac_link"
41052 case "(($ac_try" in
41053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41054   *) ac_try_echo=$ac_try;;
41055 esac
41056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41057 $as_echo "$ac_try_echo") >&5
41058   (eval "$ac_link") 2>conftest.er1
41059   ac_status=$?
41060   grep -v '^ *+' conftest.er1 >conftest.err
41061   rm -f conftest.er1
41062   cat conftest.err >&5
41063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064   (exit $ac_status); } && {
41065          test -z "$ac_c_werror_flag" ||
41066          test ! -s conftest.err
41067        } && test -s conftest$ac_exeext && {
41068          test "$cross_compiling" = yes ||
41069          $as_test_x conftest$ac_exeext
41070        }; then
41071   ac_cv_lib_crypto_HMAC_CTX_init=yes
41072 else
41073   $as_echo "$as_me: failed program was:" >&5
41074 sed 's/^/| /' conftest.$ac_ext >&5
41075
41076         ac_cv_lib_crypto_HMAC_CTX_init=no
41077 fi
41078
41079 rm -rf conftest.dSYM
41080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41081       conftest$ac_exeext conftest.$ac_ext
41082 LIBS=$ac_check_lib_save_LIBS
41083 fi
41084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
41085 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
41086 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
41087   cat >>confdefs.h <<_ACEOF
41088 #define HAVE_LIBCRYPTO 1
41089 _ACEOF
41090
41091   LIBS="-lcrypto $LIBS"
41092
41093 else
41094   HAVE_HMAC=no
41095 fi
41096
41097
41098     found_hmac_h=no
41099
41100
41101
41102 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
41103 do
41104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41106   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41107 $as_echo_n "checking for $ac_header... " >&6; }
41108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41109   $as_echo_n "(cached) " >&6
41110 fi
41111 ac_res=`eval 'as_val=${'$as_ac_Header'}
41112                  $as_echo "$as_val"'`
41113                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41114 $as_echo "$ac_res" >&6; }
41115 else
41116   # Is the header compilable?
41117 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41118 $as_echo_n "checking $ac_header usability... " >&6; }
41119 cat >conftest.$ac_ext <<_ACEOF
41120 /* confdefs.h.  */
41121 _ACEOF
41122 cat confdefs.h >>conftest.$ac_ext
41123 cat >>conftest.$ac_ext <<_ACEOF
41124 /* end confdefs.h.  */
41125 $ac_includes_default
41126 #include <$ac_header>
41127 _ACEOF
41128 rm -f conftest.$ac_objext
41129 if { (ac_try="$ac_compile"
41130 case "(($ac_try" in
41131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41132   *) ac_try_echo=$ac_try;;
41133 esac
41134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41135 $as_echo "$ac_try_echo") >&5
41136   (eval "$ac_compile") 2>conftest.er1
41137   ac_status=$?
41138   grep -v '^ *+' conftest.er1 >conftest.err
41139   rm -f conftest.er1
41140   cat conftest.err >&5
41141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142   (exit $ac_status); } && {
41143          test -z "$ac_c_werror_flag" ||
41144          test ! -s conftest.err
41145        } && test -s conftest.$ac_objext; then
41146   ac_header_compiler=yes
41147 else
41148   $as_echo "$as_me: failed program was:" >&5
41149 sed 's/^/| /' conftest.$ac_ext >&5
41150
41151         ac_header_compiler=no
41152 fi
41153
41154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41155 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41156 $as_echo "$ac_header_compiler" >&6; }
41157
41158 # Is the header present?
41159 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41160 $as_echo_n "checking $ac_header presence... " >&6; }
41161 cat >conftest.$ac_ext <<_ACEOF
41162 /* confdefs.h.  */
41163 _ACEOF
41164 cat confdefs.h >>conftest.$ac_ext
41165 cat >>conftest.$ac_ext <<_ACEOF
41166 /* end confdefs.h.  */
41167 #include <$ac_header>
41168 _ACEOF
41169 if { (ac_try="$ac_cpp conftest.$ac_ext"
41170 case "(($ac_try" in
41171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41172   *) ac_try_echo=$ac_try;;
41173 esac
41174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41175 $as_echo "$ac_try_echo") >&5
41176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41177   ac_status=$?
41178   grep -v '^ *+' conftest.er1 >conftest.err
41179   rm -f conftest.er1
41180   cat conftest.err >&5
41181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182   (exit $ac_status); } >/dev/null && {
41183          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41184          test ! -s conftest.err
41185        }; then
41186   ac_header_preproc=yes
41187 else
41188   $as_echo "$as_me: failed program was:" >&5
41189 sed 's/^/| /' conftest.$ac_ext >&5
41190
41191   ac_header_preproc=no
41192 fi
41193
41194 rm -f conftest.err conftest.$ac_ext
41195 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41196 $as_echo "$ac_header_preproc" >&6; }
41197
41198 # So?  What about this header?
41199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41200   yes:no: )
41201     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41202 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41205     ac_header_preproc=yes
41206     ;;
41207   no:yes:* )
41208     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41209 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41211 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41213 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41215 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41219 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41220
41221     ;;
41222 esac
41223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41224 $as_echo_n "checking for $ac_header... " >&6; }
41225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41226   $as_echo_n "(cached) " >&6
41227 else
41228   eval "$as_ac_Header=\$ac_header_preproc"
41229 fi
41230 ac_res=`eval 'as_val=${'$as_ac_Header'}
41231                  $as_echo "$as_val"'`
41232                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41233 $as_echo "$ac_res" >&6; }
41234
41235 fi
41236 as_val=`eval 'as_val=${'$as_ac_Header'}
41237                  $as_echo "$as_val"'`
41238    if test "x$as_val" = x""yes; then
41239   cat >>confdefs.h <<_ACEOF
41240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41241 _ACEOF
41242  found_hmac_h=yes; break
41243 fi
41244
41245 done
41246
41247     if test x"$found_hmac_h" != x"yes"; then
41248         HAVE_HMAC=no
41249     fi
41250
41251
41252
41253
41254
41255     # Check whether --enable-s3-device was given.
41256 if test "${enable_s3_device+set}" = set; then
41257   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
41258 else
41259    WANT_S3_DEVICE=maybe
41260 fi
41261
41262
41263     { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
41264 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
41265     # if the user didn't specify 'no', then check for support
41266     if test x"$WANT_S3_DEVICE" != x"no"; then
41267         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
41268             WANT_S3_DEVICE=yes
41269         else
41270             # no support -- if the user explicitly enabled the device,
41271             # then this is an error
41272             if test x"$WANT_S3_DEVICE" = x"yes"; then
41273                 { $as_echo "$as_me:$LINENO: result: no" >&5
41274 $as_echo "no" >&6; }
41275                 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
41276 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
41277    { (exit 1); exit 1; }; }
41278             else
41279                 WANT_S3_DEVICE=no
41280             fi
41281         fi
41282     fi
41283     { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
41284 $as_echo "$WANT_S3_DEVICE" >&6; }
41285
41286      if test x"$WANT_S3_DEVICE" = x"yes"; then
41287   WANT_S3_DEVICE_TRUE=
41288   WANT_S3_DEVICE_FALSE='#'
41289 else
41290   WANT_S3_DEVICE_TRUE='#'
41291   WANT_S3_DEVICE_FALSE=
41292 fi
41293
41294
41295     # Now handle any setup for S3, if we want it.
41296     if test x"$WANT_S3_DEVICE" = x"yes"; then
41297
41298 cat >>confdefs.h <<\_ACEOF
41299 #define WANT_S3_DEVICE /**/
41300 _ACEOF
41301
41302     fi
41303
41304
41305
41306
41307
41308 for ac_header in \
41309         linux/zftape.h \
41310         sys/tape.h \
41311         sys/mtio.h \
41312
41313 do
41314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41316   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41317 $as_echo_n "checking for $ac_header... " >&6; }
41318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41319   $as_echo_n "(cached) " >&6
41320 fi
41321 ac_res=`eval 'as_val=${'$as_ac_Header'}
41322                  $as_echo "$as_val"'`
41323                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41324 $as_echo "$ac_res" >&6; }
41325 else
41326   # Is the header compilable?
41327 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41328 $as_echo_n "checking $ac_header usability... " >&6; }
41329 cat >conftest.$ac_ext <<_ACEOF
41330 /* confdefs.h.  */
41331 _ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h.  */
41335 $ac_includes_default
41336 #include <$ac_header>
41337 _ACEOF
41338 rm -f conftest.$ac_objext
41339 if { (ac_try="$ac_compile"
41340 case "(($ac_try" in
41341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41342   *) ac_try_echo=$ac_try;;
41343 esac
41344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41345 $as_echo "$ac_try_echo") >&5
41346   (eval "$ac_compile") 2>conftest.er1
41347   ac_status=$?
41348   grep -v '^ *+' conftest.er1 >conftest.err
41349   rm -f conftest.er1
41350   cat conftest.err >&5
41351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352   (exit $ac_status); } && {
41353          test -z "$ac_c_werror_flag" ||
41354          test ! -s conftest.err
41355        } && test -s conftest.$ac_objext; then
41356   ac_header_compiler=yes
41357 else
41358   $as_echo "$as_me: failed program was:" >&5
41359 sed 's/^/| /' conftest.$ac_ext >&5
41360
41361         ac_header_compiler=no
41362 fi
41363
41364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41365 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41366 $as_echo "$ac_header_compiler" >&6; }
41367
41368 # Is the header present?
41369 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41370 $as_echo_n "checking $ac_header presence... " >&6; }
41371 cat >conftest.$ac_ext <<_ACEOF
41372 /* confdefs.h.  */
41373 _ACEOF
41374 cat confdefs.h >>conftest.$ac_ext
41375 cat >>conftest.$ac_ext <<_ACEOF
41376 /* end confdefs.h.  */
41377 #include <$ac_header>
41378 _ACEOF
41379 if { (ac_try="$ac_cpp conftest.$ac_ext"
41380 case "(($ac_try" in
41381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41382   *) ac_try_echo=$ac_try;;
41383 esac
41384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41385 $as_echo "$ac_try_echo") >&5
41386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41387   ac_status=$?
41388   grep -v '^ *+' conftest.er1 >conftest.err
41389   rm -f conftest.er1
41390   cat conftest.err >&5
41391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392   (exit $ac_status); } >/dev/null && {
41393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41394          test ! -s conftest.err
41395        }; then
41396   ac_header_preproc=yes
41397 else
41398   $as_echo "$as_me: failed program was:" >&5
41399 sed 's/^/| /' conftest.$ac_ext >&5
41400
41401   ac_header_preproc=no
41402 fi
41403
41404 rm -f conftest.err conftest.$ac_ext
41405 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41406 $as_echo "$ac_header_preproc" >&6; }
41407
41408 # So?  What about this header?
41409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41410   yes:no: )
41411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41412 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41415     ac_header_preproc=yes
41416     ;;
41417   no:yes:* )
41418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41419 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41421 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41423 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41425 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41427 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41429 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41430
41431     ;;
41432 esac
41433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41434 $as_echo_n "checking for $ac_header... " >&6; }
41435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41436   $as_echo_n "(cached) " >&6
41437 else
41438   eval "$as_ac_Header=\$ac_header_preproc"
41439 fi
41440 ac_res=`eval 'as_val=${'$as_ac_Header'}
41441                  $as_echo "$as_val"'`
41442                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41443 $as_echo "$ac_res" >&6; }
41444
41445 fi
41446 as_val=`eval 'as_val=${'$as_ac_Header'}
41447                  $as_echo "$as_val"'`
41448    if test "x$as_val" = x""yes; then
41449   cat >>confdefs.h <<_ACEOF
41450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41451 _ACEOF
41452
41453 fi
41454
41455 done
41456
41457
41458     # check for MTIOCTOP, an indicator of POSIX tape support
41459     { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
41460 $as_echo_n "checking for MTIOCTOP... " >&6; }
41461 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
41462   $as_echo_n "(cached) " >&6
41463 else
41464
41465         cat >conftest.$ac_ext <<_ACEOF
41466 /* confdefs.h.  */
41467 _ACEOF
41468 cat confdefs.h >>conftest.$ac_ext
41469 cat >>conftest.$ac_ext <<_ACEOF
41470 /* end confdefs.h.  */
41471
41472 #ifdef HAVE_SYS_TAPE_H
41473 # include <sys/tape.h>
41474 #endif
41475 #ifdef HAVE_SYS_MTIO_H
41476 # include <sys/mtio.h>
41477 #endif
41478 #ifndef MTIOCTOP
41479 #error MTIOCTOP not defined
41480 #endif
41481
41482 int
41483 main ()
41484 {
41485  int dummy = 0;
41486   ;
41487   return 0;
41488 }
41489 _ACEOF
41490 rm -f conftest.$ac_objext
41491 if { (ac_try="$ac_compile"
41492 case "(($ac_try" in
41493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41494   *) ac_try_echo=$ac_try;;
41495 esac
41496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41497 $as_echo "$ac_try_echo") >&5
41498   (eval "$ac_compile") 2>conftest.er1
41499   ac_status=$?
41500   grep -v '^ *+' conftest.er1 >conftest.err
41501   rm -f conftest.er1
41502   cat conftest.err >&5
41503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); } && {
41505          test -z "$ac_c_werror_flag" ||
41506          test ! -s conftest.err
41507        } && test -s conftest.$ac_objext; then
41508   amanda_cv_HAVE_MTIOCTOP=yes
41509 else
41510   $as_echo "$as_me: failed program was:" >&5
41511 sed 's/^/| /' conftest.$ac_ext >&5
41512
41513         amanda_cv_HAVE_MTIOCTOP=no
41514 fi
41515
41516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41517
41518         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
41519
41520 fi
41521 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
41522 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
41523
41524     # maybe we have no tape device at all (e.g., Mac OS X)?
41525     if test x"$HAVE_MTIOCTOP" = x"yes"; then
41526         want_tape_device=yes
41527
41528 cat >>confdefs.h <<\_ACEOF
41529 #define WANT_TAPE_DEVICE 1
41530 _ACEOF
41531
41532     fi
41533      if test -n "$want_tape_device"; then
41534   WANT_TAPE_DEVICE_TRUE=
41535   WANT_TAPE_DEVICE_FALSE='#'
41536 else
41537   WANT_TAPE_DEVICE_TRUE='#'
41538   WANT_TAPE_DEVICE_FALSE=
41539 fi
41540
41541
41542     #
41543     # Check for various "mt status" related structure elements.
41544     #
41545     { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
41546 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
41547     cat >conftest.$ac_ext <<_ACEOF
41548 /* confdefs.h.  */
41549 _ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h.  */
41553
41554 #include <stdio.h>
41555 #include <sys/types.h>
41556 #include <sys/mtio.h>
41557
41558 int
41559 main ()
41560 {
41561
41562             struct mtget buf;
41563             long ds;
41564
41565             ds = buf.mt_flags;
41566
41567   ;
41568   return 0;
41569 }
41570 _ACEOF
41571 rm -f conftest.$ac_objext
41572 if { (ac_try="$ac_compile"
41573 case "(($ac_try" in
41574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41575   *) ac_try_echo=$ac_try;;
41576 esac
41577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41578 $as_echo "$ac_try_echo") >&5
41579   (eval "$ac_compile") 2>conftest.er1
41580   ac_status=$?
41581   grep -v '^ *+' conftest.er1 >conftest.err
41582   rm -f conftest.er1
41583   cat conftest.err >&5
41584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585   (exit $ac_status); } && {
41586          test -z "$ac_c_werror_flag" ||
41587          test ! -s conftest.err
41588        } && test -s conftest.$ac_objext; then
41589
41590             { $as_echo "$as_me:$LINENO: result: yes" >&5
41591 $as_echo "yes" >&6; }
41592
41593 cat >>confdefs.h <<\_ACEOF
41594 #define HAVE_MT_FLAGS 1
41595 _ACEOF
41596
41597
41598 else
41599   $as_echo "$as_me: failed program was:" >&5
41600 sed 's/^/| /' conftest.$ac_ext >&5
41601
41602
41603             { $as_echo "$as_me:$LINENO: result: no" >&5
41604 $as_echo "no" >&6; }
41605
41606 fi
41607
41608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41609
41610     { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
41611 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
41612     mt_fileno_result="found"
41613     cat >conftest.$ac_ext <<_ACEOF
41614 /* confdefs.h.  */
41615 _ACEOF
41616 cat confdefs.h >>conftest.$ac_ext
41617 cat >>conftest.$ac_ext <<_ACEOF
41618 /* end confdefs.h.  */
41619
41620 #include <stdio.h>
41621 #include <sys/types.h>
41622 #include <sys/mtio.h>
41623
41624 int
41625 main ()
41626 {
41627
41628             struct mtget buf;
41629             long ds;
41630
41631             ds = buf.mt_fileno;
41632
41633   ;
41634   return 0;
41635 }
41636 _ACEOF
41637 rm -f conftest.$ac_objext
41638 if { (ac_try="$ac_compile"
41639 case "(($ac_try" in
41640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41641   *) ac_try_echo=$ac_try;;
41642 esac
41643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41644 $as_echo "$ac_try_echo") >&5
41645   (eval "$ac_compile") 2>conftest.er1
41646   ac_status=$?
41647   grep -v '^ *+' conftest.er1 >conftest.err
41648   rm -f conftest.er1
41649   cat conftest.err >&5
41650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651   (exit $ac_status); } && {
41652          test -z "$ac_c_werror_flag" ||
41653          test ! -s conftest.err
41654        } && test -s conftest.$ac_objext; then
41655
41656             { $as_echo "$as_me:$LINENO: result: yes" >&5
41657 $as_echo "yes" >&6; }
41658
41659 cat >>confdefs.h <<\_ACEOF
41660 #define HAVE_MT_FILENO 1
41661 _ACEOF
41662
41663
41664 else
41665   $as_echo "$as_me: failed program was:" >&5
41666 sed 's/^/| /' conftest.$ac_ext >&5
41667
41668
41669             { $as_echo "$as_me:$LINENO: result: no" >&5
41670 $as_echo "no" >&6; }
41671
41672 fi
41673
41674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41675
41676     { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
41677 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
41678     cat >conftest.$ac_ext <<_ACEOF
41679 /* confdefs.h.  */
41680 _ACEOF
41681 cat confdefs.h >>conftest.$ac_ext
41682 cat >>conftest.$ac_ext <<_ACEOF
41683 /* end confdefs.h.  */
41684
41685 #include <stdio.h>
41686 #include <sys/types.h>
41687 #include <sys/mtio.h>
41688
41689 int
41690 main ()
41691 {
41692
41693             struct mtget buf;
41694             long ds;
41695
41696             ds = buf.mt_blkno;
41697
41698   ;
41699   return 0;
41700 }
41701 _ACEOF
41702 rm -f conftest.$ac_objext
41703 if { (ac_try="$ac_compile"
41704 case "(($ac_try" in
41705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41706   *) ac_try_echo=$ac_try;;
41707 esac
41708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41709 $as_echo "$ac_try_echo") >&5
41710   (eval "$ac_compile") 2>conftest.er1
41711   ac_status=$?
41712   grep -v '^ *+' conftest.er1 >conftest.err
41713   rm -f conftest.er1
41714   cat conftest.err >&5
41715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716   (exit $ac_status); } && {
41717          test -z "$ac_c_werror_flag" ||
41718          test ! -s conftest.err
41719        } && test -s conftest.$ac_objext; then
41720
41721             { $as_echo "$as_me:$LINENO: result: yes" >&5
41722 $as_echo "yes" >&6; }
41723
41724 cat >>confdefs.h <<\_ACEOF
41725 #define HAVE_MT_BLKNO 1
41726 _ACEOF
41727
41728
41729 else
41730   $as_echo "$as_me: failed program was:" >&5
41731 sed 's/^/| /' conftest.$ac_ext >&5
41732
41733
41734             { $as_echo "$as_me:$LINENO: result: no" >&5
41735 $as_echo "no" >&6; }
41736
41737 fi
41738
41739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41740
41741     { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
41742 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
41743     cat >conftest.$ac_ext <<_ACEOF
41744 /* confdefs.h.  */
41745 _ACEOF
41746 cat confdefs.h >>conftest.$ac_ext
41747 cat >>conftest.$ac_ext <<_ACEOF
41748 /* end confdefs.h.  */
41749
41750 #include <stdio.h>
41751 #include <sys/types.h>
41752 #include <sys/mtio.h>
41753
41754 int
41755 main ()
41756 {
41757
41758             struct mtget buf;
41759             long ds;
41760
41761             ds = buf.mt_dsreg;
41762
41763   ;
41764   return 0;
41765 }
41766 _ACEOF
41767 rm -f conftest.$ac_objext
41768 if { (ac_try="$ac_compile"
41769 case "(($ac_try" in
41770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41771   *) ac_try_echo=$ac_try;;
41772 esac
41773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41774 $as_echo "$ac_try_echo") >&5
41775   (eval "$ac_compile") 2>conftest.er1
41776   ac_status=$?
41777   grep -v '^ *+' conftest.er1 >conftest.err
41778   rm -f conftest.er1
41779   cat conftest.err >&5
41780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781   (exit $ac_status); } && {
41782          test -z "$ac_c_werror_flag" ||
41783          test ! -s conftest.err
41784        } && test -s conftest.$ac_objext; then
41785
41786             { $as_echo "$as_me:$LINENO: result: yes" >&5
41787 $as_echo "yes" >&6; }
41788
41789 cat >>confdefs.h <<\_ACEOF
41790 #define HAVE_MT_DSREG 1
41791 _ACEOF
41792
41793
41794 else
41795   $as_echo "$as_me: failed program was:" >&5
41796 sed 's/^/| /' conftest.$ac_ext >&5
41797
41798
41799             { $as_echo "$as_me:$LINENO: result: no" >&5
41800 $as_echo "no" >&6; }
41801
41802 fi
41803
41804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41805
41806     { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
41807 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
41808     cat >conftest.$ac_ext <<_ACEOF
41809 /* confdefs.h.  */
41810 _ACEOF
41811 cat confdefs.h >>conftest.$ac_ext
41812 cat >>conftest.$ac_ext <<_ACEOF
41813 /* end confdefs.h.  */
41814
41815 #include <stdio.h>
41816 #include <sys/types.h>
41817 #include <sys/mtio.h>
41818
41819 int
41820 main ()
41821 {
41822
41823             struct mtget buf;
41824             long ds;
41825
41826             ds = buf.mt_erreg;
41827
41828   ;
41829   return 0;
41830 }
41831 _ACEOF
41832 rm -f conftest.$ac_objext
41833 if { (ac_try="$ac_compile"
41834 case "(($ac_try" in
41835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41836   *) ac_try_echo=$ac_try;;
41837 esac
41838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41839 $as_echo "$ac_try_echo") >&5
41840   (eval "$ac_compile") 2>conftest.er1
41841   ac_status=$?
41842   grep -v '^ *+' conftest.er1 >conftest.err
41843   rm -f conftest.er1
41844   cat conftest.err >&5
41845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846   (exit $ac_status); } && {
41847          test -z "$ac_c_werror_flag" ||
41848          test ! -s conftest.err
41849        } && test -s conftest.$ac_objext; then
41850
41851             { $as_echo "$as_me:$LINENO: result: yes" >&5
41852 $as_echo "yes" >&6; }
41853
41854 cat >>confdefs.h <<\_ACEOF
41855 #define HAVE_MT_ERREG 1
41856 _ACEOF
41857
41858
41859 else
41860   $as_echo "$as_me: failed program was:" >&5
41861 sed 's/^/| /' conftest.$ac_ext >&5
41862
41863
41864             { $as_echo "$as_me:$LINENO: result: no" >&5
41865 $as_echo "no" >&6; }
41866
41867 fi
41868
41869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41870
41871     case "$host" in
41872         *linux*)
41873 cat >>confdefs.h <<\_ACEOF
41874 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
41875 _ACEOF
41876 ;;
41877     esac
41878
41879
41880         # Check whether --enable-dvdrw-device was given.
41881 if test "${enable_dvdrw_device+set}" = set; then
41882   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
41883 else
41884    WANT_DVDRW_DEVICE=yes
41885 fi
41886
41887
41888         { $as_echo "$as_me:$LINENO: checking whether to include the DVD-RW device" >&5
41889 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
41890         { $as_echo "$as_me:$LINENO: result: $WANT_DVDRW_DEVICE" >&5
41891 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
41892
41893          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
41894   WANT_DVDRW_DEVICE_TRUE=
41895   WANT_DVDRW_DEVICE_FALSE='#'
41896 else
41897   WANT_DVDRW_DEVICE_TRUE='#'
41898   WANT_DVDRW_DEVICE_FALSE=
41899 fi
41900
41901
41902         # Now handle any setup for DVDRW, if we want it.
41903         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
41904
41905 cat >>confdefs.h <<\_ACEOF
41906 #define WANT_DVDRW_DEVICE /**/
41907 _ACEOF
41908
41909         fi
41910
41911
41912
41913
41914     # Check whether --enable-ndmp-device was given.
41915 if test "${enable_ndmp_device+set}" = set; then
41916   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
41917 else
41918    WANT_NDMP_DEVICE=$WANT_NDMP
41919 fi
41920
41921
41922     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
41923         { { $as_echo "$as_me:$LINENO: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&5
41924 $as_echo "$as_me: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&2;}
41925    { (exit 1); exit 1; }; }
41926     fi
41927
41928     if test x"$WANT_NDMP_DEVICE" = x"true"; then
41929
41930 cat >>confdefs.h <<\_ACEOF
41931 #define WANT_NDMP_DEVICE 1
41932 _ACEOF
41933
41934     fi
41935
41936      if test x"$WANT_NDMP_DEVICE" = x"true"; then
41937   WANT_NDMP_DEVICE_TRUE=
41938   WANT_NDMP_DEVICE_FALSE='#'
41939 else
41940   WANT_NDMP_DEVICE_TRUE='#'
41941   WANT_NDMP_DEVICE_FALSE=
41942 fi
41943
41944
41945
41946 #
41947 # Security (authentication) mechansims
41948 #
41949
41950     BSD_SECURITY="yes"
41951
41952 # Check whether --with-bsd-security was given.
41953 if test "${with_bsd_security+set}" = set; then
41954   withval=$with_bsd_security;
41955             case "$withval" in
41956                 n | no) BSD_SECURITY=no ;;
41957                 y |  ye | yes) BSD_SECURITY=yes ;;
41958                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
41959 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
41960    { (exit 1); exit 1; }; }
41961                     ;;
41962             esac
41963
41964 fi
41965
41966
41967     USE_AMANDAHOSTS=yes
41968
41969 # Check whether --with-amandahosts was given.
41970 if test "${with_amandahosts+set}" = set; then
41971   withval=$with_amandahosts;
41972             case "$withval" in
41973                 n | no ) USE_AMANDAHOSTS=no ;;
41974                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
41975                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
41976 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
41977    { (exit 1); exit 1; }; }
41978                   ;;
41979             esac
41980
41981
41982 fi
41983
41984
41985     if test "x$BSD_SECURITY" = "xyes"; then
41986
41987 cat >>confdefs.h <<\_ACEOF
41988 #define BSD_SECURITY 1
41989 _ACEOF
41990
41991         if test "x$USE_AMANDAHOSTS" = "xyes"; then
41992
41993 cat >>confdefs.h <<\_ACEOF
41994 #define USE_AMANDAHOSTS 1
41995 _ACEOF
41996
41997         fi
41998     fi
41999
42000      if test x"$BSD_SECURITY" = x"yes"; then
42001   WANT_BSD_SECURITY_TRUE=
42002   WANT_BSD_SECURITY_FALSE='#'
42003 else
42004   WANT_BSD_SECURITY_TRUE='#'
42005   WANT_BSD_SECURITY_FALSE=
42006 fi
42007
42008
42009
42010
42011
42012     BSDTCP_SECURITY="yes"
42013
42014 # Check whether --with-bsdtcp-security was given.
42015 if test "${with_bsdtcp_security+set}" = set; then
42016   withval=$with_bsdtcp_security;
42017             case "$withval" in
42018                 n | no) BSDTCP_SECURITY=no ;;
42019                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
42020                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
42021 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
42022    { (exit 1); exit 1; }; }
42023               ;;
42024             esac
42025
42026 fi
42027
42028
42029     if test "x$BSDTCP_SECURITY" = "xyes"; then
42030
42031 cat >>confdefs.h <<\_ACEOF
42032 #define BSDTCP_SECURITY 1
42033 _ACEOF
42034
42035     fi
42036
42037      if test x"$BSDTCP_SECURITY" = x"yes"; then
42038   WANT_BSDTCP_SECURITY_TRUE=
42039   WANT_BSDTCP_SECURITY_FALSE='#'
42040 else
42041   WANT_BSDTCP_SECURITY_TRUE='#'
42042   WANT_BSDTCP_SECURITY_FALSE=
42043 fi
42044
42045
42046
42047
42048     BSDUDP_SECURITY="no"
42049
42050 # Check whether --with-bsdudp-security was given.
42051 if test "${with_bsdudp_security+set}" = set; then
42052   withval=$with_bsdudp_security;
42053             case "$withval" in
42054                 n | no) : ;;
42055                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
42056                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
42057 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
42058    { (exit 1); exit 1; }; }
42059               ;;
42060             esac
42061
42062 fi
42063
42064
42065     if test "x$BSDUDP_SECURITY" = "xyes"; then
42066
42067 cat >>confdefs.h <<\_ACEOF
42068 #define BSDUDP_SECURITY 1
42069 _ACEOF
42070
42071     fi
42072
42073      if test x"$BSDUDP_SECURITY" = x"yes"; then
42074   WANT_BSDUDP_SECURITY_TRUE=
42075   WANT_BSDUDP_SECURITY_FALSE='#'
42076 else
42077   WANT_BSDUDP_SECURITY_TRUE='#'
42078   WANT_BSDUDP_SECURITY_FALSE=
42079 fi
42080
42081
42082
42083
42084     RSH_SECURITY=no
42085
42086 # Check whether --with-rsh-security was given.
42087 if test "${with_rsh_security+set}" = set; then
42088   withval=$with_rsh_security;
42089             case "$withval" in
42090                 n | no) : ;;
42091                 y |  ye | yes) RSH_SECURITY=yes ;;
42092                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
42093 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
42094    { (exit 1); exit 1; }; }
42095               ;;
42096             esac
42097
42098 fi
42099
42100
42101     if test "x$RSH_SECURITY" = "xyes"; then
42102
42103 cat >>confdefs.h <<\_ACEOF
42104 #define RSH_SECURITY 1
42105 _ACEOF
42106
42107     fi
42108      if test x"$RSH_SECURITY" = x"yes"; then
42109   WANT_RSH_SECURITY_TRUE=
42110   WANT_RSH_SECURITY_FALSE='#'
42111 else
42112   WANT_RSH_SECURITY_TRUE='#'
42113   WANT_RSH_SECURITY_FALSE=
42114 fi
42115
42116
42117
42118
42119     SSH_SECURITY=yes
42120
42121 # Check whether --with-ssh-security was given.
42122 if test "${with_ssh_security+set}" = set; then
42123   withval=$with_ssh_security;
42124             case "$withval" in
42125                 n | no) SSH_SECURITY=no ;;
42126                 y |  ye | yes) SSH_SECURITY=yes ;;
42127                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
42128 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
42129    { (exit 1); exit 1; }; }
42130               ;;
42131             esac
42132
42133 fi
42134
42135
42136     if test "x$SSH_SECURITY" = "xyes"; then
42137         # find the SSH binary
42138         for ac_prog in ssh
42139 do
42140   # Extract the first word of "$ac_prog", so it can be a program name with args.
42141 set dummy $ac_prog; ac_word=$2
42142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42143 $as_echo_n "checking for $ac_word... " >&6; }
42144 if test "${ac_cv_path_SSH+set}" = set; then
42145   $as_echo_n "(cached) " >&6
42146 else
42147   case $SSH in
42148   [\\/]* | ?:[\\/]*)
42149   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
42150   ;;
42151   *)
42152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42153 for as_dir in $LOCSYSPATH
42154 do
42155   IFS=$as_save_IFS
42156   test -z "$as_dir" && as_dir=.
42157   for ac_exec_ext in '' $ac_executable_extensions; do
42158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42159     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
42160     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42161     break 2
42162   fi
42163 done
42164 done
42165 IFS=$as_save_IFS
42166
42167   ;;
42168 esac
42169 fi
42170 SSH=$ac_cv_path_SSH
42171 if test -n "$SSH"; then
42172   { $as_echo "$as_me:$LINENO: result: $SSH" >&5
42173 $as_echo "$SSH" >&6; }
42174 else
42175   { $as_echo "$as_me:$LINENO: result: no" >&5
42176 $as_echo "no" >&6; }
42177 fi
42178
42179
42180   test -n "$SSH" && break
42181 done
42182
42183
42184         # see what options we should use
42185
42186 # Check whether --with-ssh-options was given.
42187 if test "${with_ssh_options+set}" = set; then
42188   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
42189 else
42190    SSH_OPTIONS=''
42191
42192 fi
42193
42194
42195         case "$SSH_OPTIONS" in
42196             y | ye | yes | n | no)
42197                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
42198 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
42199    { (exit 1); exit 1; }; };;
42200             *) : ;;
42201         esac
42202
42203         { $as_echo "$as_me:$LINENO: checking SSH options" >&5
42204 $as_echo_n "checking SSH options... " >&6; }
42205         # if we didn't get SSH options from the user, figure them out for ourselves
42206         if test -z "$SSH_OPTIONS"; then
42207             case `$SSH -V 2>&1` in
42208                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
42209                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
42210             esac
42211         fi
42212
42213         # now convert that to a comma-separated list of C strings
42214         eval "set dummy ${SSH_OPTIONS}"; shift
42215         SSH_OPTIONS=''
42216         for i in "${@}"; do
42217             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
42218             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
42219         done
42220         { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
42221 $as_echo "$SSH_OPTIONS" >&6; }
42222
42223         # finally, make the various outputs for all of this
42224
42225 cat >>confdefs.h <<\_ACEOF
42226 #define SSH_SECURITY 1
42227 _ACEOF
42228
42229
42230 cat >>confdefs.h <<_ACEOF
42231 #define SSH "$SSH"
42232 _ACEOF
42233
42234
42235 cat >>confdefs.h <<_ACEOF
42236 #define SSH_OPTIONS $SSH_OPTIONS
42237 _ACEOF
42238
42239     fi
42240      if test x"$SSH_SECURITY" = x"yes"; then
42241   WANT_SSH_SECURITY_TRUE=
42242   WANT_SSH_SECURITY_FALSE='#'
42243 else
42244   WANT_SSH_SECURITY_TRUE='#'
42245   WANT_SSH_SECURITY_FALSE=
42246 fi
42247
42248
42249
42250     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
42251
42252
42253     # Specify --with-krb5-security if Kerberos software is in somewhere
42254     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
42255     # if the right files are there.
42256
42257     KRB5_SECURITY="no"
42258     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
42259
42260
42261 # Check whether --with-krb5-security was given.
42262 if test "${with_krb5_security+set}" = set; then
42263   withval=$with_krb5_security;
42264             case "$withval" in
42265                 n | no) KRB5_SECURITY=no ;;
42266                 y | ye | yes) KRB5_SECURITY=yes ;;
42267                 *) KRB5_SPOTS="$KRB5_SECURITY"
42268                    KRB5_SECURITY=yes
42269                    ;;
42270             esac
42271
42272
42273 fi
42274
42275
42276     if test "x$KRB5_SECURITY" = "xyes"; then
42277         # if found, force the static versions of these libs (.a) by linking directly
42278         # with the .a files.  I don't know how to get -R dependancies checked
42279         # in autoconf at this time. -kashmir
42280         { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
42281 $as_echo_n "checking for Kerberos V libraries... " >&6; }
42282         KRB5_DIR_FOUND=""
42283         for dir in $KRB5_SPOTS; do
42284           for lib in lib lib64; do
42285             k5libdir=${dir}/${lib}
42286             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
42287                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
42288                     K5CRYPTO=-lk5crypto
42289                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
42290                     K5CRYPTO=-lcrypto
42291                 else
42292                     K5CRYPTO=""
42293                 fi
42294                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
42295                     K5SUPPORT=-lkrb5support
42296                 else
42297                     K5SUPPORT=""
42298                 fi
42299                 KRB5_DIR_FOUND=$dir
42300                 KRB5_LIBDIR_FOUND=$k5libdir
42301                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
42302
42303                 break
42304             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
42305                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
42306
42307                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
42308
42309                 break
42310             fi
42311           done
42312         done
42313
42314         if test "$KRB5_DIR_FOUND"; then
42315             { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
42316 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
42317             #
42318             # some OS's, such as NetBSD, stick krb5 includes out of the way...
42319             # should probably just use autoconf to look for various include
42320             # options and set them, but don't quite want to do that until I've
42321             # dug into it a bit more.
42322             #
42323             if test -d "$KRB5_DIR_FOUND/krb5" ; then
42324                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
42325
42326             else
42327                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
42328
42329             fi
42330
42331 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
42332 $as_echo_n "checking for main in -lkrb5support... " >&6; }
42333 if test "${ac_cv_lib_krb5support_main+set}" = set; then
42334   $as_echo_n "(cached) " >&6
42335 else
42336   ac_check_lib_save_LIBS=$LIBS
42337 LIBS="-lkrb5support  $LIBS"
42338 cat >conftest.$ac_ext <<_ACEOF
42339 /* confdefs.h.  */
42340 _ACEOF
42341 cat confdefs.h >>conftest.$ac_ext
42342 cat >>conftest.$ac_ext <<_ACEOF
42343 /* end confdefs.h.  */
42344
42345
42346 int
42347 main ()
42348 {
42349 return main ();
42350   ;
42351   return 0;
42352 }
42353 _ACEOF
42354 rm -f conftest.$ac_objext conftest$ac_exeext
42355 if { (ac_try="$ac_link"
42356 case "(($ac_try" in
42357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42358   *) ac_try_echo=$ac_try;;
42359 esac
42360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42361 $as_echo "$ac_try_echo") >&5
42362   (eval "$ac_link") 2>conftest.er1
42363   ac_status=$?
42364   grep -v '^ *+' conftest.er1 >conftest.err
42365   rm -f conftest.er1
42366   cat conftest.err >&5
42367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368   (exit $ac_status); } && {
42369          test -z "$ac_c_werror_flag" ||
42370          test ! -s conftest.err
42371        } && test -s conftest$ac_exeext && {
42372          test "$cross_compiling" = yes ||
42373          $as_test_x conftest$ac_exeext
42374        }; then
42375   ac_cv_lib_krb5support_main=yes
42376 else
42377   $as_echo "$as_me: failed program was:" >&5
42378 sed 's/^/| /' conftest.$ac_ext >&5
42379
42380         ac_cv_lib_krb5support_main=no
42381 fi
42382
42383 rm -rf conftest.dSYM
42384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42385       conftest$ac_exeext conftest.$ac_ext
42386 LIBS=$ac_check_lib_save_LIBS
42387 fi
42388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
42389 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
42390 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
42391   cat >>confdefs.h <<_ACEOF
42392 #define HAVE_LIBKRB5SUPPORT 1
42393 _ACEOF
42394
42395   LIBS="-lkrb5support $LIBS"
42396
42397 fi
42398
42399             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
42400
42401
42402
42403 cat >>confdefs.h <<\_ACEOF
42404 #define KRB5_SECURITY 1
42405 _ACEOF
42406
42407         else
42408             { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
42409 $as_echo "no krb5 system libraries found" >&6; }
42410             { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
42411 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
42412    { (exit 1); exit 1; }; }
42413             KRB5_SECURITY="no"
42414         fi
42415     fi
42416
42417      if test x"$KRB5_SECURITY" = x"yes"; then
42418   WANT_KRB5_SECURITY_TRUE=
42419   WANT_KRB5_SECURITY_FALSE='#'
42420 else
42421   WANT_KRB5_SECURITY_TRUE='#'
42422   WANT_KRB5_SECURITY_FALSE=
42423 fi
42424
42425
42426
42427
42428 #
42429 # Dumpers
42430 #
42431
42432
42433
42434     for ac_prog in xfsdump
42435 do
42436   # Extract the first word of "$ac_prog", so it can be a program name with args.
42437 set dummy $ac_prog; ac_word=$2
42438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42439 $as_echo_n "checking for $ac_word... " >&6; }
42440 if test "${ac_cv_path_XFSDUMP+set}" = set; then
42441   $as_echo_n "(cached) " >&6
42442 else
42443   case $XFSDUMP in
42444   [\\/]* | ?:[\\/]*)
42445   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
42446   ;;
42447   *)
42448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42449 for as_dir in $SYSLOCPATH
42450 do
42451   IFS=$as_save_IFS
42452   test -z "$as_dir" && as_dir=.
42453   for ac_exec_ext in '' $ac_executable_extensions; do
42454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42455     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
42456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42457     break 2
42458   fi
42459 done
42460 done
42461 IFS=$as_save_IFS
42462
42463   ;;
42464 esac
42465 fi
42466 XFSDUMP=$ac_cv_path_XFSDUMP
42467 if test -n "$XFSDUMP"; then
42468   { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
42469 $as_echo "$XFSDUMP" >&6; }
42470 else
42471   { $as_echo "$as_me:$LINENO: result: no" >&5
42472 $as_echo "no" >&6; }
42473 fi
42474
42475
42476   test -n "$XFSDUMP" && break
42477 done
42478
42479     for ac_prog in xfsrestore
42480 do
42481   # Extract the first word of "$ac_prog", so it can be a program name with args.
42482 set dummy $ac_prog; ac_word=$2
42483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42484 $as_echo_n "checking for $ac_word... " >&6; }
42485 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
42486   $as_echo_n "(cached) " >&6
42487 else
42488   case $XFSRESTORE in
42489   [\\/]* | ?:[\\/]*)
42490   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
42491   ;;
42492   *)
42493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42494 for as_dir in $SYSLOCPATH
42495 do
42496   IFS=$as_save_IFS
42497   test -z "$as_dir" && as_dir=.
42498   for ac_exec_ext in '' $ac_executable_extensions; do
42499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42500     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
42501     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42502     break 2
42503   fi
42504 done
42505 done
42506 IFS=$as_save_IFS
42507
42508   ;;
42509 esac
42510 fi
42511 XFSRESTORE=$ac_cv_path_XFSRESTORE
42512 if test -n "$XFSRESTORE"; then
42513   { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
42514 $as_echo "$XFSRESTORE" >&6; }
42515 else
42516   { $as_echo "$as_me:$LINENO: result: no" >&5
42517 $as_echo "no" >&6; }
42518 fi
42519
42520
42521   test -n "$XFSRESTORE" && break
42522 done
42523
42524     if test "$XFSDUMP" -a "$XFSRESTORE"; then
42525
42526 cat >>confdefs.h <<_ACEOF
42527 #define XFSDUMP "$XFSDUMP"
42528 _ACEOF
42529
42530
42531 cat >>confdefs.h <<_ACEOF
42532 #define XFSRESTORE "$XFSRESTORE"
42533 _ACEOF
42534
42535
42536     { $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
42537 $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;}
42538
42539
42540     cat <<AAW_EOF >>config.warnings
42541 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
42542 AAW_EOF
42543
42544
42545     fi
42546
42547
42548
42549
42550     # Extract the first word of "vxdump", so it can be a program name with args.
42551 set dummy vxdump; ac_word=$2
42552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42553 $as_echo_n "checking for $ac_word... " >&6; }
42554 if test "${ac_cv_path_VXDUMP+set}" = set; then
42555   $as_echo_n "(cached) " >&6
42556 else
42557   case $VXDUMP in
42558   [\\/]* | ?:[\\/]*)
42559   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
42560   ;;
42561   *)
42562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42563 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
42564 for as_dir in $as_dummy
42565 do
42566   IFS=$as_save_IFS
42567   test -z "$as_dir" && as_dir=.
42568   for ac_exec_ext in '' $ac_executable_extensions; do
42569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42570     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
42571     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42572     break 2
42573   fi
42574 done
42575 done
42576 IFS=$as_save_IFS
42577
42578   ;;
42579 esac
42580 fi
42581 VXDUMP=$ac_cv_path_VXDUMP
42582 if test -n "$VXDUMP"; then
42583   { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
42584 $as_echo "$VXDUMP" >&6; }
42585 else
42586   { $as_echo "$as_me:$LINENO: result: no" >&5
42587 $as_echo "no" >&6; }
42588 fi
42589
42590
42591     # Extract the first word of "vxrestore", so it can be a program name with args.
42592 set dummy vxrestore; ac_word=$2
42593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42594 $as_echo_n "checking for $ac_word... " >&6; }
42595 if test "${ac_cv_path_VXRESTORE+set}" = set; then
42596   $as_echo_n "(cached) " >&6
42597 else
42598   case $VXRESTORE in
42599   [\\/]* | ?:[\\/]*)
42600   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
42601   ;;
42602   *)
42603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42604 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
42605 for as_dir in $as_dummy
42606 do
42607   IFS=$as_save_IFS
42608   test -z "$as_dir" && as_dir=.
42609   for ac_exec_ext in '' $ac_executable_extensions; do
42610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42611     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
42612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42613     break 2
42614   fi
42615 done
42616 done
42617 IFS=$as_save_IFS
42618
42619   ;;
42620 esac
42621 fi
42622 VXRESTORE=$ac_cv_path_VXRESTORE
42623 if test -n "$VXRESTORE"; then
42624   { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
42625 $as_echo "$VXRESTORE" >&6; }
42626 else
42627   { $as_echo "$as_me:$LINENO: result: no" >&5
42628 $as_echo "no" >&6; }
42629 fi
42630
42631
42632     if test "$VXDUMP" -a "$VXRESTORE"; then
42633
42634 cat >>confdefs.h <<_ACEOF
42635 #define VXDUMP "$VXDUMP"
42636 _ACEOF
42637
42638
42639 cat >>confdefs.h <<_ACEOF
42640 #define VXRESTORE "$VXRESTORE"
42641 _ACEOF
42642
42643     fi
42644
42645
42646
42647
42648     # Extract the first word of "vdump", so it can be a program name with args.
42649 set dummy vdump; ac_word=$2
42650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42651 $as_echo_n "checking for $ac_word... " >&6; }
42652 if test "${ac_cv_path_VDUMP+set}" = set; then
42653   $as_echo_n "(cached) " >&6
42654 else
42655   case $VDUMP in
42656   [\\/]* | ?:[\\/]*)
42657   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
42658   ;;
42659   *)
42660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42661 for as_dir in $SYSLOCPATH
42662 do
42663   IFS=$as_save_IFS
42664   test -z "$as_dir" && as_dir=.
42665   for ac_exec_ext in '' $ac_executable_extensions; do
42666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42667     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
42668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42669     break 2
42670   fi
42671 done
42672 done
42673 IFS=$as_save_IFS
42674
42675   ;;
42676 esac
42677 fi
42678 VDUMP=$ac_cv_path_VDUMP
42679 if test -n "$VDUMP"; then
42680   { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
42681 $as_echo "$VDUMP" >&6; }
42682 else
42683   { $as_echo "$as_me:$LINENO: result: no" >&5
42684 $as_echo "no" >&6; }
42685 fi
42686
42687
42688     # Extract the first word of "vrestore", so it can be a program name with args.
42689 set dummy vrestore; ac_word=$2
42690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42691 $as_echo_n "checking for $ac_word... " >&6; }
42692 if test "${ac_cv_path_VRESTORE+set}" = set; then
42693   $as_echo_n "(cached) " >&6
42694 else
42695   case $VRESTORE in
42696   [\\/]* | ?:[\\/]*)
42697   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
42698   ;;
42699   *)
42700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42701 for as_dir in $SYSLOCPATH
42702 do
42703   IFS=$as_save_IFS
42704   test -z "$as_dir" && as_dir=.
42705   for ac_exec_ext in '' $ac_executable_extensions; do
42706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42707     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
42708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42709     break 2
42710   fi
42711 done
42712 done
42713 IFS=$as_save_IFS
42714
42715   ;;
42716 esac
42717 fi
42718 VRESTORE=$ac_cv_path_VRESTORE
42719 if test -n "$VRESTORE"; then
42720   { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
42721 $as_echo "$VRESTORE" >&6; }
42722 else
42723   { $as_echo "$as_me:$LINENO: result: no" >&5
42724 $as_echo "no" >&6; }
42725 fi
42726
42727
42728     if test "$VDUMP" -a "$VRESTORE"; then
42729
42730 cat >>confdefs.h <<_ACEOF
42731 #define VDUMP "$VDUMP"
42732 _ACEOF
42733
42734
42735 cat >>confdefs.h <<_ACEOF
42736 #define VRESTORE "$VRESTORE"
42737 _ACEOF
42738
42739     fi
42740
42741
42742
42743
42744
42745     # Set the order of dump programs to look for.  Finding the proper file
42746     # system dumping program is problematic.  Some systems, notably HP-UX
42747     # and AIX, have both the backup and dump programs.  HP-UX can't use the
42748     # the backup program while AIX systems can't use the dump program.  So
42749     # a variable is set up here to specify the order of dump programs to
42750     # search for on the system.
42751     DUMP_PROGRAMS="ufsdump dump backup"
42752     DUMP_RETURNS_1=
42753     AIX_BACKUP=
42754     case "$host" in
42755         *-dg-*)
42756             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
42757             DUMP_RETURNS_1=1
42758             ;;
42759       *-ibm-aix*)
42760             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
42761             AIX_BACKUP=1
42762
42763 cat >>confdefs.h <<\_ACEOF
42764 #define AIX_BACKUP 1
42765 _ACEOF
42766
42767             ;;
42768       *-ultrix*)
42769             DUMP_RETURNS_1=1
42770             ;;
42771     esac
42772
42773     if test -n "$DUMP_RETURNS_1"; then
42774
42775 cat >>confdefs.h <<\_ACEOF
42776 #define DUMP_RETURNS_1 1
42777 _ACEOF
42778
42779     fi
42780
42781     for ac_prog in $DUMP_PROGRAMS
42782 do
42783   # Extract the first word of "$ac_prog", so it can be a program name with args.
42784 set dummy $ac_prog; ac_word=$2
42785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42786 $as_echo_n "checking for $ac_word... " >&6; }
42787 if test "${ac_cv_path_DUMP+set}" = set; then
42788   $as_echo_n "(cached) " >&6
42789 else
42790   case $DUMP in
42791   [\\/]* | ?:[\\/]*)
42792   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
42793   ;;
42794   *)
42795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42796 for as_dir in $SYSLOCPATH
42797 do
42798   IFS=$as_save_IFS
42799   test -z "$as_dir" && as_dir=.
42800   for ac_exec_ext in '' $ac_executable_extensions; do
42801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42802     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
42803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42804     break 2
42805   fi
42806 done
42807 done
42808 IFS=$as_save_IFS
42809
42810   ;;
42811 esac
42812 fi
42813 DUMP=$ac_cv_path_DUMP
42814 if test -n "$DUMP"; then
42815   { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
42816 $as_echo "$DUMP" >&6; }
42817 else
42818   { $as_echo "$as_me:$LINENO: result: no" >&5
42819 $as_echo "no" >&6; }
42820 fi
42821
42822
42823   test -n "$DUMP" && break
42824 done
42825
42826     for ac_prog in ufsrestore restore
42827 do
42828   # Extract the first word of "$ac_prog", so it can be a program name with args.
42829 set dummy $ac_prog; ac_word=$2
42830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42831 $as_echo_n "checking for $ac_word... " >&6; }
42832 if test "${ac_cv_path_RESTORE+set}" = set; then
42833   $as_echo_n "(cached) " >&6
42834 else
42835   case $RESTORE in
42836   [\\/]* | ?:[\\/]*)
42837   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
42838   ;;
42839   *)
42840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42841 for as_dir in $SYSLOCPATH
42842 do
42843   IFS=$as_save_IFS
42844   test -z "$as_dir" && as_dir=.
42845   for ac_exec_ext in '' $ac_executable_extensions; do
42846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42847     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
42848     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42849     break 2
42850   fi
42851 done
42852 done
42853 IFS=$as_save_IFS
42854
42855   ;;
42856 esac
42857 fi
42858 RESTORE=$ac_cv_path_RESTORE
42859 if test -n "$RESTORE"; then
42860   { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
42861 $as_echo "$RESTORE" >&6; }
42862 else
42863   { $as_echo "$as_me:$LINENO: result: no" >&5
42864 $as_echo "no" >&6; }
42865 fi
42866
42867
42868   test -n "$RESTORE" && break
42869 done
42870
42871
42872     # newer versions of GNU tar include a program named 'backup' which
42873     # does *not* implement the expected 'dump' interface.  Detect that here
42874     # and pretend we never saw it.
42875     if test -n "$DUMP"; then
42876       if test "`basename $DUMP`" = "backup"; then
42877         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
42878         if test $? -eq 0; then
42879           DUMP=
42880         fi
42881       fi
42882     fi
42883
42884     if test "$DUMP" -a "$RESTORE"; then
42885
42886 cat >>confdefs.h <<_ACEOF
42887 #define DUMP "$DUMP"
42888 _ACEOF
42889
42890
42891 cat >>confdefs.h <<_ACEOF
42892 #define RESTORE "$RESTORE"
42893 _ACEOF
42894
42895
42896         # check for an estimate flag
42897         if test -x $DUMP; then
42898             { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
42899 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
42900 if test "${amanda_cv_dump_estimate+set}" = set; then
42901   $as_echo_n "(cached) " >&6
42902 else
42903
42904                     case "$DUMP" in
42905                     *dump)
42906                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
42907                             | $GREP -v Dumping
42908                             | $GREP -v Date
42909                             | $GREP -v Label >conftest.d-E 2>&1'
42910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42911   (eval $ac_try) 2>&5
42912   ac_status=$?
42913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914   (exit $ac_status); }; }
42915                         cat conftest.d-E >&5
42916                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
42917                             | $GREP -v Dumping
42918                             | $GREP -v Date
42919                             | $GREP -v Label >conftest.d-S 2>&1'
42920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42921   (eval $ac_try) 2>&5
42922   ac_status=$?
42923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42924   (exit $ac_status); }; }
42925                         cat conftest.d-S >&5
42926                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
42927                             | $GREP -v Dumping
42928                             | $GREP -v Date
42929                             | $GREP -v Label >conftest.d 2>&1'
42930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42931   (eval $ac_try) 2>&5
42932   ac_status=$?
42933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42934   (exit $ac_status); }; }
42935                         cat conftest.d >&5
42936                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
42937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42938   (eval $ac_try) 2>&5
42939   ac_status=$?
42940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941   (exit $ac_status); }; }; then
42942                             amanda_cv_dump_estimate=E
42943                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
42944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42945   (eval $ac_try) 2>&5
42946   ac_status=$?
42947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42948   (exit $ac_status); }; }; then
42949                             amanda_cv_dump_estimate=S
42950                         else
42951                             amanda_cv_dump_estimate=no
42952                         fi
42953                         rm -f conftest.d conftest.d-E conftest.d-S
42954                       ;;
42955                     *) amanda_cv_dump_estimate=no
42956                       ;;
42957                     esac
42958
42959 fi
42960 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
42961 $as_echo "$amanda_cv_dump_estimate" >&6; }
42962         else
42963
42964     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
42965 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
42966
42967
42968     cat <<AAW_EOF >>config.warnings
42969 $DUMP is not executable, cannot run -E/-S test
42970 AAW_EOF
42971
42972
42973             amanda_cv_dump_estimate=no
42974         fi
42975         if test "x$amanda_cv_dump_estimate" != xno; then
42976
42977 cat >>confdefs.h <<_ACEOF
42978 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
42979 _ACEOF
42980
42981         fi
42982
42983
42984 # Check whether --with-dump-honor-nodump was given.
42985 if test "${with_dump_honor_nodump+set}" = set; then
42986   withval=$with_dump_honor_nodump;
42987             if test -x $DUMP; then
42988                 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
42989 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
42990 if test "${amanda_cv_honor_nodump+set}" = set; then
42991   $as_echo_n "(cached) " >&6
42992 else
42993
42994                     case "$DUMP" in
42995                     *dump)
42996                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
42997                             | $GREP -v Dumping
42998                             | $GREP -v Date
42999                             | $GREP -v Label >conftest.d-h 2>&1'
43000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43001   (eval $ac_try) 2>&5
43002   ac_status=$?
43003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004   (exit $ac_status); }; }
43005                         cat conftest.d-h >&5
43006                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
43007                             | $GREP -v Dumping
43008                             | $GREP -v Date
43009                             | $GREP -v Label >conftest.d 2>&1'
43010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43011   (eval $ac_try) 2>&5
43012   ac_status=$?
43013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014   (exit $ac_status); }; }
43015                         cat conftest.d >&5
43016                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
43017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43018   (eval $ac_try) 2>&5
43019   ac_status=$?
43020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43021   (exit $ac_status); }; }; then
43022                             amanda_cv_honor_nodump=yes
43023                         else
43024                             amanda_cv_honor_nodump=no
43025                         fi
43026                         rm -f conftest.d conftest.d-h
43027                       ;;
43028                     *) amanda_cv_honor_nodump=no
43029                       ;;
43030                     esac
43031
43032 fi
43033 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
43034 $as_echo "$amanda_cv_honor_nodump" >&6; }
43035             else
43036
43037     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
43038 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
43039
43040
43041     cat <<AAW_EOF >>config.warnings
43042 $DUMP is not executable, cannot run -h test
43043 AAW_EOF
43044
43045
43046                 amanda_cv_honor_nodump=no
43047             fi
43048             if test "x$amanda_cv_honor_nodump" = xyes; then
43049
43050 cat >>confdefs.h <<\_ACEOF
43051 #define HAVE_HONOR_NODUMP 1
43052 _ACEOF
43053
43054             fi
43055
43056 fi
43057
43058     fi
43059
43060
43061
43062
43063
43064
43065
43066     # call with
43067
43068 # Check whether --with-gnutar was given.
43069 if test "${with_gnutar+set}" = set; then
43070   withval=$with_gnutar;
43071             # check withval
43072             case "$withval" in
43073                 /*) GNUTAR="$withval";;
43074                 y|ye|yes) :;;
43075                 n|no) GNUTAR=no ;;
43076                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
43077 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
43078    { (exit 1); exit 1; }; };;
43079             esac
43080             # done
43081
43082
43083 fi
43084
43085
43086     if test "x$GNUTAR" = "xno"; then
43087         GNUTAR=
43088     else
43089         OLD_GNUTAR=$GNUTAR
43090         for gnutar_name in gtar gnutar tar; do
43091             for ac_prog in $gnutar_name
43092 do
43093   # Extract the first word of "$ac_prog", so it can be a program name with args.
43094 set dummy $ac_prog; ac_word=$2
43095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43096 $as_echo_n "checking for $ac_word... " >&6; }
43097 if test "${ac_cv_path_GNUTAR+set}" = set; then
43098   $as_echo_n "(cached) " >&6
43099 else
43100   case $GNUTAR in
43101   [\\/]* | ?:[\\/]*)
43102   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
43103   ;;
43104   *)
43105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43106 for as_dir in $LOCSYSPATH
43107 do
43108   IFS=$as_save_IFS
43109   test -z "$as_dir" && as_dir=.
43110   for ac_exec_ext in '' $ac_executable_extensions; do
43111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43112     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
43113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43114     break 2
43115   fi
43116 done
43117 done
43118 IFS=$as_save_IFS
43119
43120   ;;
43121 esac
43122 fi
43123 GNUTAR=$ac_cv_path_GNUTAR
43124 if test -n "$GNUTAR"; then
43125   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
43126 $as_echo "$GNUTAR" >&6; }
43127 else
43128   { $as_echo "$as_me:$LINENO: result: no" >&5
43129 $as_echo "no" >&6; }
43130 fi
43131
43132
43133   test -n "$GNUTAR" && break
43134 done
43135
43136             if test -n "$GNUTAR"; then
43137               case `"$GNUTAR" --version 2>&1` in
43138                *GNU*tar* | *Free*paxutils* )
43139                             # OK, it is GNU tar
43140                             break
43141                             ;;
43142                *)
43143                             if test -n "$OLD_GNUTAR"; then
43144
43145     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
43146 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
43147
43148
43149     cat <<AAW_EOF >>config.warnings
43150 $GNUTAR is not GNU tar, it will be used.
43151 AAW_EOF
43152
43153
43154                             else
43155                                     # warning..
43156
43157     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
43158 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
43159
43160
43161     cat <<AAW_EOF >>config.warnings
43162 $GNUTAR is not GNU tar, so it will not be used.
43163 AAW_EOF
43164
43165
43166                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
43167                                     GNUTAR=''
43168                                     unset ac_cv_path_GNUTAR
43169                             fi
43170                             ;;
43171               esac
43172             fi
43173         done
43174     fi
43175
43176     if test "x$GNUTAR" != "x"; then
43177         # define unquoted
43178
43179 cat >>confdefs.h <<_ACEOF
43180 #define GNUTAR "$GNUTAR"
43181 _ACEOF
43182
43183     fi
43184
43185
43186
43187
43188
43189
43190     # call with
43191
43192 # Check whether --with-star was given.
43193 if test "${with_star+set}" = set; then
43194   withval=$with_star;
43195             # check withval
43196             case "$withval" in
43197                 /*) STAR="$withval";;
43198                 y|ye|yes) :;;
43199                 n|no) STAR=no ;;
43200                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-star" >&5
43201 $as_echo "$as_me: error: *** You must supply a full pathname to --with-star" >&2;}
43202    { (exit 1); exit 1; }; };;
43203             esac
43204             # done
43205
43206
43207 fi
43208
43209
43210     if test "x$STAR" = "xno"; then
43211         STAR=
43212     else
43213         OLD_STAR=$STAR
43214         for ac_prog in star
43215 do
43216   # Extract the first word of "$ac_prog", so it can be a program name with args.
43217 set dummy $ac_prog; ac_word=$2
43218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43219 $as_echo_n "checking for $ac_word... " >&6; }
43220 if test "${ac_cv_path_STAR+set}" = set; then
43221   $as_echo_n "(cached) " >&6
43222 else
43223   case $STAR in
43224   [\\/]* | ?:[\\/]*)
43225   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
43226   ;;
43227   *)
43228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43229 for as_dir in $LOCSYSPATH
43230 do
43231   IFS=$as_save_IFS
43232   test -z "$as_dir" && as_dir=.
43233   for ac_exec_ext in '' $ac_executable_extensions; do
43234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43235     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
43236     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43237     break 2
43238   fi
43239 done
43240 done
43241 IFS=$as_save_IFS
43242
43243   ;;
43244 esac
43245 fi
43246 STAR=$ac_cv_path_STAR
43247 if test -n "$STAR"; then
43248   { $as_echo "$as_me:$LINENO: result: $STAR" >&5
43249 $as_echo "$STAR" >&6; }
43250 else
43251   { $as_echo "$as_me:$LINENO: result: no" >&5
43252 $as_echo "no" >&6; }
43253 fi
43254
43255
43256   test -n "$STAR" && break
43257 done
43258
43259         if test -n "$STAR"; then
43260             case `"$STAR" --version 2>/dev/null` in
43261              *star*)
43262                     # OK, it is star
43263                     break
43264                     ;;
43265              *)
43266                     if test -n "$OLD_STAR"; then
43267
43268     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, it will be used." >&5
43269 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
43270
43271
43272     cat <<AAW_EOF >>config.warnings
43273 $STAR is not star, it will be used.
43274 AAW_EOF
43275
43276
43277                     else
43278                         # warning..
43279
43280     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, so it will not be used." >&5
43281 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
43282
43283
43284     cat <<AAW_EOF >>config.warnings
43285 $STAR is not star, so it will not be used.
43286 AAW_EOF
43287
43288
43289                         # reset the cache for STAR so AC_PATH_PROGS will search again
43290                         STAR=''
43291                         unset ac_cv_path_STAR
43292                     fi
43293                     ;;
43294             esac
43295         fi
43296     fi
43297
43298     if test "x$STAR" != "x"; then
43299         # define unquoted
43300
43301 cat >>confdefs.h <<_ACEOF
43302 #define STAR "$STAR"
43303 _ACEOF
43304
43305     fi
43306
43307
43308
43309
43310
43311
43312
43313 # Check whether --with-smbclient was given.
43314 if test "${with_smbclient+set}" = set; then
43315   withval=$with_smbclient;
43316             case "$withval" in
43317                 /*) SAMBA_CLIENT="$withval";;
43318                 y|ye|yes) :;;
43319                 n|no) SAMBA_CLIENT=no ;;
43320                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
43321 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
43322    { (exit 1); exit 1; }; };;
43323             esac
43324
43325
43326 fi
43327
43328
43329
43330 # Check whether --with-samba-user was given.
43331 if test "${with_samba_user+set}" = set; then
43332   withval=$with_samba_user;  { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
43333 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
43334    { (exit 1); exit 1; }; }
43335
43336 fi
43337
43338
43339     if test "x$SAMBA_CLIENT" != "xno"; then
43340       # Extract the first word of "smbclient", so it can be a program name with args.
43341 set dummy smbclient; ac_word=$2
43342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43343 $as_echo_n "checking for $ac_word... " >&6; }
43344 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
43345   $as_echo_n "(cached) " >&6
43346 else
43347   case $SAMBA_CLIENT in
43348   [\\/]* | ?:[\\/]*)
43349   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
43350   ;;
43351   *)
43352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43353 for as_dir in $LOCSYSPATH
43354 do
43355   IFS=$as_save_IFS
43356   test -z "$as_dir" && as_dir=.
43357   for ac_exec_ext in '' $ac_executable_extensions; do
43358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43359     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
43360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43361     break 2
43362   fi
43363 done
43364 done
43365 IFS=$as_save_IFS
43366
43367   ;;
43368 esac
43369 fi
43370 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
43371 if test -n "$SAMBA_CLIENT"; then
43372   { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
43373 $as_echo "$SAMBA_CLIENT" >&6; }
43374 else
43375   { $as_echo "$as_me:$LINENO: result: no" >&5
43376 $as_echo "no" >&6; }
43377 fi
43378
43379
43380       smbversion=0
43381       if test ! -z "$SAMBA_CLIENT"; then
43382         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
43383         *"Unknown host"*)
43384                       smbversion=1
43385                       ;;
43386         *"Connection to nosuchhost.amanda.org failed"*)
43387                       smbversion=2
43388                       ;;
43389         *)
43390
43391     { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
43392 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
43393
43394
43395     cat <<AAW_EOF >>config.warnings
43396 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
43397 AAW_EOF
43398
43399
43400                       SAMBA_CLIENT=
43401                       ;;
43402         esac
43403         if test -n "$SAMBA_CLIENT"; then
43404
43405 cat >>confdefs.h <<_ACEOF
43406 #define SAMBA_CLIENT "$SAMBA_CLIENT"
43407 _ACEOF
43408
43409
43410 cat >>confdefs.h <<_ACEOF
43411 #define SAMBA_VERSION $smbversion
43412 _ACEOF
43413
43414         fi
43415       fi
43416     fi
43417
43418      if test -n "$SAMBA_CLIENT"; then
43419   WANT_SAMBA_TRUE=
43420   WANT_SAMBA_FALSE='#'
43421 else
43422   WANT_SAMBA_TRUE='#'
43423   WANT_SAMBA_FALSE=
43424 fi
43425
43426
43427
43428     USE_RUNDUMP=no
43429
43430     # some systems require rundump unconditionally
43431     case "$host" in
43432         *-ultrix*) USE_RUNDUMP=yes ;;
43433         *-dg-*) USE_RUNDUMP=yes ;;
43434     esac
43435
43436
43437 # Check whether --with-rundump was given.
43438 if test "${with_rundump+set}" = set; then
43439   withval=$with_rundump;
43440         case "$withval" in
43441             n | no) USE_RUNDUMP=no ;;
43442             y | ye | yes) USE_RUNDUMP=yes ;;
43443             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
43444 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
43445    { (exit 1); exit 1; }; };;
43446         esac
43447
43448 fi
43449
43450
43451     if test x"$USE_RUNDUMP" = x"yes"; then
43452         USE_RUNDUMP=1
43453
43454 cat >>confdefs.h <<\_ACEOF
43455 #define USE_RUNDUMP 1
43456 _ACEOF
43457
43458     else
43459         USE_RUNDUMP=
43460     fi
43461
43462
43463
43464
43465 #
43466 # Look for other programs Amanda will use
43467 #
43468
43469
43470     # Extract the first word of "grep", so it can be a program name with args.
43471 set dummy grep; ac_word=$2
43472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43473 $as_echo_n "checking for $ac_word... " >&6; }
43474 if test "${ac_cv_path_GREP+set}" = set; then
43475   $as_echo_n "(cached) " >&6
43476 else
43477   case $GREP in
43478   [\\/]* | ?:[\\/]*)
43479   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
43480   ;;
43481   *)
43482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43483 for as_dir in $LOCSYSPATH
43484 do
43485   IFS=$as_save_IFS
43486   test -z "$as_dir" && as_dir=.
43487   for ac_exec_ext in '' $ac_executable_extensions; do
43488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43489     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
43490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43491     break 2
43492   fi
43493 done
43494 done
43495 IFS=$as_save_IFS
43496
43497   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
43498   ;;
43499 esac
43500 fi
43501 GREP=$ac_cv_path_GREP
43502 if test -n "$GREP"; then
43503   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
43504 $as_echo "$GREP" >&6; }
43505 else
43506   { $as_echo "$as_me:$LINENO: result: no" >&5
43507 $as_echo "no" >&6; }
43508 fi
43509
43510
43511
43512 cat >>confdefs.h <<_ACEOF
43513 #define GREP "$GREP"
43514 _ACEOF
43515
43516
43517 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
43518 $as_echo_n "checking for egrep... " >&6; }
43519 if test "${ac_cv_path_EGREP+set}" = set; then
43520   $as_echo_n "(cached) " >&6
43521 else
43522   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43523    then ac_cv_path_EGREP="$GREP -E"
43524    else
43525      if test -z "$EGREP"; then
43526   ac_path_EGREP_found=false
43527   # Loop through the user's path and test for each of PROGNAME-LIST
43528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
43530 do
43531   IFS=$as_save_IFS
43532   test -z "$as_dir" && as_dir=.
43533   for ac_prog in egrep; do
43534     for ac_exec_ext in '' $ac_executable_extensions; do
43535       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
43536       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
43537 # Check for GNU ac_path_EGREP and select it if it is found.
43538   # Check for GNU $ac_path_EGREP
43539 case `"$ac_path_EGREP" --version 2>&1` in
43540 *GNU*)
43541   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
43542 *)
43543   ac_count=0
43544   $as_echo_n 0123456789 >"conftest.in"
43545   while :
43546   do
43547     cat "conftest.in" "conftest.in" >"conftest.tmp"
43548     mv "conftest.tmp" "conftest.in"
43549     cp "conftest.in" "conftest.nl"
43550     $as_echo 'EGREP' >> "conftest.nl"
43551     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
43552     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43553     ac_count=`expr $ac_count + 1`
43554     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
43555       # Best one so far, save it but keep looking for a better one
43556       ac_cv_path_EGREP="$ac_path_EGREP"
43557       ac_path_EGREP_max=$ac_count
43558     fi
43559     # 10*(2^10) chars as input seems more than enough
43560     test $ac_count -gt 10 && break
43561   done
43562   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43563 esac
43564
43565       $ac_path_EGREP_found && break 3
43566     done
43567   done
43568 done
43569 IFS=$as_save_IFS
43570   if test -z "$ac_cv_path_EGREP"; then
43571     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
43572 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
43573    { (exit 1); exit 1; }; }
43574   fi
43575 else
43576   ac_cv_path_EGREP=$EGREP
43577 fi
43578
43579    fi
43580 fi
43581 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
43582 $as_echo "$ac_cv_path_EGREP" >&6; }
43583  EGREP="$ac_cv_path_EGREP"
43584
43585
43586
43587
43588
43589
43590     # Extract the first word of "lint", so it can be a program name with args.
43591 set dummy lint; ac_word=$2
43592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43593 $as_echo_n "checking for $ac_word... " >&6; }
43594 if test "${ac_cv_path_AMLINT+set}" = set; then
43595   $as_echo_n "(cached) " >&6
43596 else
43597   case $AMLINT in
43598   [\\/]* | ?:[\\/]*)
43599   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
43600   ;;
43601   *)
43602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43603 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
43604 for as_dir in $as_dummy
43605 do
43606   IFS=$as_save_IFS
43607   test -z "$as_dir" && as_dir=.
43608   for ac_exec_ext in '' $ac_executable_extensions; do
43609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43610     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
43611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43612     break 2
43613   fi
43614 done
43615 done
43616 IFS=$as_save_IFS
43617
43618   ;;
43619 esac
43620 fi
43621 AMLINT=$ac_cv_path_AMLINT
43622 if test -n "$AMLINT"; then
43623   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
43624 $as_echo "$AMLINT" >&6; }
43625 else
43626   { $as_echo "$as_me:$LINENO: result: no" >&5
43627 $as_echo "no" >&6; }
43628 fi
43629
43630
43631     if test ! -z "$AMLINT"; then
43632       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
43633       if test $? -eq 0; then
43634         AMLINTFLAGS="-n -s -u -m -x"
43635         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
43636         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
43637         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
43638         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
43639         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
43640         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
43641         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
43642         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
43643         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
43644         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
43645         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
43646         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
43647         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
43648         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
43649         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
43650         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
43651         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
43652         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
43653         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
43654         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
43655         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
43656         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
43657         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
43658         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
43659         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
43660         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
43661         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
43662         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
43663         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
43664         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
43665         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
43666         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
43667         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
43668         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
43669         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
43670         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
43671         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
43672         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
43673         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
43674         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
43675         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
43676         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
43677         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
43678         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
43679         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
43680         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
43681         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
43682         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
43683         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
43684         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
43685       else
43686         AMLINTFLAGS=""
43687       fi
43688     else
43689       # Extract the first word of "splint", so it can be a program name with args.
43690 set dummy splint; ac_word=$2
43691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43692 $as_echo_n "checking for $ac_word... " >&6; }
43693 if test "${ac_cv_path_AMLINT+set}" = set; then
43694   $as_echo_n "(cached) " >&6
43695 else
43696   case $AMLINT in
43697   [\\/]* | ?:[\\/]*)
43698   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
43699   ;;
43700   *)
43701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43702 for as_dir in $SYSLOCPATH
43703 do
43704   IFS=$as_save_IFS
43705   test -z "$as_dir" && as_dir=.
43706   for ac_exec_ext in '' $ac_executable_extensions; do
43707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43708     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
43709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43710     break 2
43711   fi
43712 done
43713 done
43714 IFS=$as_save_IFS
43715
43716   ;;
43717 esac
43718 fi
43719 AMLINT=$ac_cv_path_AMLINT
43720 if test -n "$AMLINT"; then
43721   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
43722 $as_echo "$AMLINT" >&6; }
43723 else
43724   { $as_echo "$as_me:$LINENO: result: no" >&5
43725 $as_echo "no" >&6; }
43726 fi
43727
43728
43729       if test ! -z "$AMLINT"; then
43730         AMLINT="splint"
43731         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
43732       else
43733         AMLINT='echo "Error: LINT is not installed" ; false'
43734         AMLINTFLAGS=''
43735       fi
43736     fi
43737
43738
43739 for ac_prog in flex lex
43740 do
43741   # Extract the first word of "$ac_prog", so it can be a program name with args.
43742 set dummy $ac_prog; ac_word=$2
43743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43744 $as_echo_n "checking for $ac_word... " >&6; }
43745 if test "${ac_cv_prog_LEX+set}" = set; then
43746   $as_echo_n "(cached) " >&6
43747 else
43748   if test -n "$LEX"; then
43749   ac_cv_prog_LEX="$LEX" # Let the user override the test.
43750 else
43751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43752 for as_dir in $PATH
43753 do
43754   IFS=$as_save_IFS
43755   test -z "$as_dir" && as_dir=.
43756   for ac_exec_ext in '' $ac_executable_extensions; do
43757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43758     ac_cv_prog_LEX="$ac_prog"
43759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43760     break 2
43761   fi
43762 done
43763 done
43764 IFS=$as_save_IFS
43765
43766 fi
43767 fi
43768 LEX=$ac_cv_prog_LEX
43769 if test -n "$LEX"; then
43770   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
43771 $as_echo "$LEX" >&6; }
43772 else
43773   { $as_echo "$as_me:$LINENO: result: no" >&5
43774 $as_echo "no" >&6; }
43775 fi
43776
43777
43778   test -n "$LEX" && break
43779 done
43780 test -n "$LEX" || LEX=":"
43781
43782 if test "x$LEX" != "x:"; then
43783   cat >conftest.l <<_ACEOF
43784 %%
43785 a { ECHO; }
43786 b { REJECT; }
43787 c { yymore (); }
43788 d { yyless (1); }
43789 e { yyless (input () != 0); }
43790 f { unput (yytext[0]); }
43791 . { BEGIN INITIAL; }
43792 %%
43793 #ifdef YYTEXT_POINTER
43794 extern char *yytext;
43795 #endif
43796 int
43797 main (void)
43798 {
43799   return ! yylex () + ! yywrap ();
43800 }
43801 _ACEOF
43802 { (ac_try="$LEX conftest.l"
43803 case "(($ac_try" in
43804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43805   *) ac_try_echo=$ac_try;;
43806 esac
43807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43808 $as_echo "$ac_try_echo") >&5
43809   (eval "$LEX conftest.l") 2>&5
43810   ac_status=$?
43811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812   (exit $ac_status); }
43813 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
43814 $as_echo_n "checking lex output file root... " >&6; }
43815 if test "${ac_cv_prog_lex_root+set}" = set; then
43816   $as_echo_n "(cached) " >&6
43817 else
43818
43819 if test -f lex.yy.c; then
43820   ac_cv_prog_lex_root=lex.yy
43821 elif test -f lexyy.c; then
43822   ac_cv_prog_lex_root=lexyy
43823 else
43824   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
43825 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
43826    { (exit 1); exit 1; }; }
43827 fi
43828 fi
43829 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
43830 $as_echo "$ac_cv_prog_lex_root" >&6; }
43831 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
43832
43833 if test -z "${LEXLIB+set}"; then
43834   { $as_echo "$as_me:$LINENO: checking lex library" >&5
43835 $as_echo_n "checking lex library... " >&6; }
43836 if test "${ac_cv_lib_lex+set}" = set; then
43837   $as_echo_n "(cached) " >&6
43838 else
43839
43840     ac_save_LIBS=$LIBS
43841     ac_cv_lib_lex='none needed'
43842     for ac_lib in '' -lfl -ll; do
43843       LIBS="$ac_lib $ac_save_LIBS"
43844       cat >conftest.$ac_ext <<_ACEOF
43845 `cat $LEX_OUTPUT_ROOT.c`
43846 _ACEOF
43847 rm -f conftest.$ac_objext conftest$ac_exeext
43848 if { (ac_try="$ac_link"
43849 case "(($ac_try" in
43850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43851   *) ac_try_echo=$ac_try;;
43852 esac
43853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43854 $as_echo "$ac_try_echo") >&5
43855   (eval "$ac_link") 2>conftest.er1
43856   ac_status=$?
43857   grep -v '^ *+' conftest.er1 >conftest.err
43858   rm -f conftest.er1
43859   cat conftest.err >&5
43860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43861   (exit $ac_status); } && {
43862          test -z "$ac_c_werror_flag" ||
43863          test ! -s conftest.err
43864        } && test -s conftest$ac_exeext && {
43865          test "$cross_compiling" = yes ||
43866          $as_test_x conftest$ac_exeext
43867        }; then
43868   ac_cv_lib_lex=$ac_lib
43869 else
43870   $as_echo "$as_me: failed program was:" >&5
43871 sed 's/^/| /' conftest.$ac_ext >&5
43872
43873
43874 fi
43875
43876 rm -rf conftest.dSYM
43877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43878       conftest$ac_exeext conftest.$ac_ext
43879       test "$ac_cv_lib_lex" != 'none needed' && break
43880     done
43881     LIBS=$ac_save_LIBS
43882
43883 fi
43884 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
43885 $as_echo "$ac_cv_lib_lex" >&6; }
43886   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
43887 fi
43888
43889
43890 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
43891 $as_echo_n "checking whether yytext is a pointer... " >&6; }
43892 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
43893   $as_echo_n "(cached) " >&6
43894 else
43895   # POSIX says lex can declare yytext either as a pointer or an array; the
43896 # default is implementation-dependent.  Figure out which it is, since
43897 # not all implementations provide the %pointer and %array declarations.
43898 ac_cv_prog_lex_yytext_pointer=no
43899 ac_save_LIBS=$LIBS
43900 LIBS="$LEXLIB $ac_save_LIBS"
43901 cat >conftest.$ac_ext <<_ACEOF
43902 #define YYTEXT_POINTER 1
43903 `cat $LEX_OUTPUT_ROOT.c`
43904 _ACEOF
43905 rm -f conftest.$ac_objext conftest$ac_exeext
43906 if { (ac_try="$ac_link"
43907 case "(($ac_try" in
43908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43909   *) ac_try_echo=$ac_try;;
43910 esac
43911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43912 $as_echo "$ac_try_echo") >&5
43913   (eval "$ac_link") 2>conftest.er1
43914   ac_status=$?
43915   grep -v '^ *+' conftest.er1 >conftest.err
43916   rm -f conftest.er1
43917   cat conftest.err >&5
43918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919   (exit $ac_status); } && {
43920          test -z "$ac_c_werror_flag" ||
43921          test ! -s conftest.err
43922        } && test -s conftest$ac_exeext && {
43923          test "$cross_compiling" = yes ||
43924          $as_test_x conftest$ac_exeext
43925        }; then
43926   ac_cv_prog_lex_yytext_pointer=yes
43927 else
43928   $as_echo "$as_me: failed program was:" >&5
43929 sed 's/^/| /' conftest.$ac_ext >&5
43930
43931
43932 fi
43933
43934 rm -rf conftest.dSYM
43935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43936       conftest$ac_exeext conftest.$ac_ext
43937 LIBS=$ac_save_LIBS
43938
43939 fi
43940 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
43941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
43942 if test $ac_cv_prog_lex_yytext_pointer = yes; then
43943
43944 cat >>confdefs.h <<\_ACEOF
43945 #define YYTEXT_POINTER 1
43946 _ACEOF
43947
43948 fi
43949 rm -f conftest.l $LEX_OUTPUT_ROOT.c
43950
43951 fi
43952 if test "$LEX" = :; then
43953   LEX=${am_missing_run}flex
43954 fi
43955
43956
43957
43958     if test x"$LEX" != x""; then
43959         { $as_echo "$as_me:$LINENO: checking whether lex is broken Solaris (SGU) lex" >&5
43960 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
43961         $LEX -V < /dev/null >/dev/null 2>conftest.out
43962         if grep SGU conftest.out >/dev/null; then
43963             { $as_echo "$as_me:$LINENO: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
43964 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
43965             LEX='echo no lex equivalent available; false'
43966         else
43967             { $as_echo "$as_me:$LINENO: result: no" >&5
43968 $as_echo "no" >&6; }
43969         fi
43970         rm conftest.out
43971     fi
43972
43973
43974
43975     # Extract the first word of "ar", so it can be a program name with args.
43976 set dummy ar; ac_word=$2
43977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43978 $as_echo_n "checking for $ac_word... " >&6; }
43979 if test "${ac_cv_path_AR+set}" = set; then
43980   $as_echo_n "(cached) " >&6
43981 else
43982   case $AR in
43983   [\\/]* | ?:[\\/]*)
43984   ac_cv_path_AR="$AR" # Let the user override the test with a path.
43985   ;;
43986   *)
43987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43988 for as_dir in $LOCSYSPATH
43989 do
43990   IFS=$as_save_IFS
43991   test -z "$as_dir" && as_dir=.
43992   for ac_exec_ext in '' $ac_executable_extensions; do
43993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43994     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
43995     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43996     break 2
43997   fi
43998 done
43999 done
44000 IFS=$as_save_IFS
44001
44002   ;;
44003 esac
44004 fi
44005 AR=$ac_cv_path_AR
44006 if test -n "$AR"; then
44007   { $as_echo "$as_me:$LINENO: result: $AR" >&5
44008 $as_echo "$AR" >&6; }
44009 else
44010   { $as_echo "$as_me:$LINENO: result: no" >&5
44011 $as_echo "no" >&6; }
44012 fi
44013
44014
44015
44016
44017
44018     # Extract the first word of "gettext", so it can be a program name with args.
44019 set dummy gettext; 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_GETTEXT+set}" = set; then
44023   $as_echo_n "(cached) " >&6
44024 else
44025   case $GETTEXT in
44026   [\\/]* | ?:[\\/]*)
44027   ac_cv_path_GETTEXT="$GETTEXT" # 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_GETTEXT="$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 GETTEXT=$ac_cv_path_GETTEXT
44049 if test -n "$GETTEXT"; then
44050   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
44051 $as_echo "$GETTEXT" >&6; }
44052 else
44053   { $as_echo "$as_me:$LINENO: result: no" >&5
44054 $as_echo "no" >&6; }
44055 fi
44056
44057
44058
44059 for ac_prog in gawk mawk nawk awk
44060 do
44061   # Extract the first word of "$ac_prog", so it can be a program name with args.
44062 set dummy $ac_prog; 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_prog_AWK+set}" = set; then
44066   $as_echo_n "(cached) " >&6
44067 else
44068   if test -n "$AWK"; then
44069   ac_cv_prog_AWK="$AWK" # Let the user override the test.
44070 else
44071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44072 for as_dir in $PATH
44073 do
44074   IFS=$as_save_IFS
44075   test -z "$as_dir" && as_dir=.
44076   for ac_exec_ext in '' $ac_executable_extensions; do
44077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44078     ac_cv_prog_AWK="$ac_prog"
44079     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44080     break 2
44081   fi
44082 done
44083 done
44084 IFS=$as_save_IFS
44085
44086 fi
44087 fi
44088 AWK=$ac_cv_prog_AWK
44089 if test -n "$AWK"; then
44090   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
44091 $as_echo "$AWK" >&6; }
44092 else
44093   { $as_echo "$as_me:$LINENO: result: no" >&5
44094 $as_echo "no" >&6; }
44095 fi
44096
44097
44098   test -n "$AWK" && break
44099 done
44100
44101 for ac_prog in 'bison -y' byacc
44102 do
44103   # Extract the first word of "$ac_prog", so it can be a program name with args.
44104 set dummy $ac_prog; ac_word=$2
44105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44106 $as_echo_n "checking for $ac_word... " >&6; }
44107 if test "${ac_cv_prog_YACC+set}" = set; then
44108   $as_echo_n "(cached) " >&6
44109 else
44110   if test -n "$YACC"; then
44111   ac_cv_prog_YACC="$YACC" # Let the user override the test.
44112 else
44113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44114 for as_dir in $PATH
44115 do
44116   IFS=$as_save_IFS
44117   test -z "$as_dir" && as_dir=.
44118   for ac_exec_ext in '' $ac_executable_extensions; do
44119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44120     ac_cv_prog_YACC="$ac_prog"
44121     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44122     break 2
44123   fi
44124 done
44125 done
44126 IFS=$as_save_IFS
44127
44128 fi
44129 fi
44130 YACC=$ac_cv_prog_YACC
44131 if test -n "$YACC"; then
44132   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
44133 $as_echo "$YACC" >&6; }
44134 else
44135   { $as_echo "$as_me:$LINENO: result: no" >&5
44136 $as_echo "no" >&6; }
44137 fi
44138
44139
44140   test -n "$YACC" && break
44141 done
44142 test -n "$YACC" || YACC="yacc"
44143
44144 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
44145 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
44146 if test -z "$MKDIR_P"; then
44147   if test "${ac_cv_path_mkdir+set}" = set; then
44148   $as_echo_n "(cached) " >&6
44149 else
44150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44151 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
44152 do
44153   IFS=$as_save_IFS
44154   test -z "$as_dir" && as_dir=.
44155   for ac_prog in mkdir gmkdir; do
44156          for ac_exec_ext in '' $ac_executable_extensions; do
44157            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
44158            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
44159              'mkdir (GNU coreutils) '* | \
44160              'mkdir (coreutils) '* | \
44161              'mkdir (fileutils) '4.1*)
44162                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
44163                break 3;;
44164            esac
44165          done
44166        done
44167 done
44168 IFS=$as_save_IFS
44169
44170 fi
44171
44172   if test "${ac_cv_path_mkdir+set}" = set; then
44173     MKDIR_P="$ac_cv_path_mkdir -p"
44174   else
44175     # As a last resort, use the slow shell script.  Don't cache a
44176     # value for MKDIR_P within a source directory, because that will
44177     # break other packages using the cache if that directory is
44178     # removed, or if the value is a relative name.
44179     test -d ./--version && rmdir ./--version
44180     MKDIR_P="$ac_install_sh -d"
44181   fi
44182 fi
44183 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
44184 $as_echo "$MKDIR_P" >&6; }
44185
44186
44187
44188
44189     # Extract the first word of "dd", so it can be a program name with args.
44190 set dummy dd; ac_word=$2
44191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44192 $as_echo_n "checking for $ac_word... " >&6; }
44193 if test "${ac_cv_path_DD+set}" = set; then
44194   $as_echo_n "(cached) " >&6
44195 else
44196   case $DD in
44197   [\\/]* | ?:[\\/]*)
44198   ac_cv_path_DD="$DD" # Let the user override the test with a path.
44199   ;;
44200   *)
44201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44202 for as_dir in $LOCSYSPATH
44203 do
44204   IFS=$as_save_IFS
44205   test -z "$as_dir" && as_dir=.
44206   for ac_exec_ext in '' $ac_executable_extensions; do
44207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44208     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
44209     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44210     break 2
44211   fi
44212 done
44213 done
44214 IFS=$as_save_IFS
44215
44216   ;;
44217 esac
44218 fi
44219 DD=$ac_cv_path_DD
44220 if test -n "$DD"; then
44221   { $as_echo "$as_me:$LINENO: result: $DD" >&5
44222 $as_echo "$DD" >&6; }
44223 else
44224   { $as_echo "$as_me:$LINENO: result: no" >&5
44225 $as_echo "no" >&6; }
44226 fi
44227
44228
44229
44230
44231
44232     # Extract the first word of "bash", so it can be a program name with args.
44233 set dummy bash; 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_BASH+set}" = set; then
44237   $as_echo_n "(cached) " >&6
44238 else
44239   case $BASH in
44240   [\\/]* | ?:[\\/]*)
44241   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
44242   ;;
44243   *)
44244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44245 for as_dir in $SYSPATH
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_BASH="$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 BASH=$ac_cv_path_BASH
44263 if test -n "$BASH"; then
44264   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
44265 $as_echo "$BASH" >&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
44276
44277     # Extract the first word of "sort", so it can be a program name with args.
44278 set dummy sort; ac_word=$2
44279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44280 $as_echo_n "checking for $ac_word... " >&6; }
44281 if test "${ac_cv_path_SORT+set}" = set; then
44282   $as_echo_n "(cached) " >&6
44283 else
44284   case $SORT in
44285   [\\/]* | ?:[\\/]*)
44286   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
44287   ;;
44288   *)
44289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44290 for as_dir in $LOCSYSPATH
44291 do
44292   IFS=$as_save_IFS
44293   test -z "$as_dir" && as_dir=.
44294   for ac_exec_ext in '' $ac_executable_extensions; do
44295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44296     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
44297     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44298     break 2
44299   fi
44300 done
44301 done
44302 IFS=$as_save_IFS
44303
44304   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
44305   ;;
44306 esac
44307 fi
44308 SORT=$ac_cv_path_SORT
44309 if test -n "$SORT"; then
44310   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
44311 $as_echo "$SORT" >&6; }
44312 else
44313   { $as_echo "$as_me:$LINENO: result: no" >&5
44314 $as_echo "no" >&6; }
44315 fi
44316
44317
44318
44319     # sort is only needed in the server build
44320     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
44321         { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
44322 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
44323    { (exit 1); exit 1; }; }
44324     fi
44325
44326
44327 cat >>confdefs.h <<_ACEOF
44328 #define SORT_PATH "$SORT"
44329 _ACEOF
44330
44331
44332
44333
44334     for ac_prog in Mail mailx mail
44335 do
44336   # Extract the first word of "$ac_prog", so it can be a program name with args.
44337 set dummy $ac_prog; ac_word=$2
44338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44339 $as_echo_n "checking for $ac_word... " >&6; }
44340 if test "${ac_cv_path_MAILER+set}" = set; then
44341   $as_echo_n "(cached) " >&6
44342 else
44343   case $MAILER in
44344   [\\/]* | ?:[\\/]*)
44345   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
44346   ;;
44347   *)
44348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44349 for as_dir in $PATH
44350 do
44351   IFS=$as_save_IFS
44352   test -z "$as_dir" && as_dir=.
44353   for ac_exec_ext in '' $ac_executable_extensions; do
44354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44355     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
44356     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44357     break 2
44358   fi
44359 done
44360 done
44361 IFS=$as_save_IFS
44362
44363   ;;
44364 esac
44365 fi
44366 MAILER=$ac_cv_path_MAILER
44367 if test -n "$MAILER"; then
44368   { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
44369 $as_echo "$MAILER" >&6; }
44370 else
44371   { $as_echo "$as_me:$LINENO: result: no" >&5
44372 $as_echo "no" >&6; }
44373 fi
44374
44375
44376   test -n "$MAILER" && break
44377 done
44378 test -n "$MAILER" || MAILER="NONE"
44379
44380     if test x"$MAILER" = x"NONE"; then
44381
44382     { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
44383 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
44384
44385
44386     cat <<AAW_EOF >>config.warnings
44387 WARNING: Amanda cannot send mail reports without a mailer.
44388 AAW_EOF
44389
44390
44391         DEFAULT_MAILER=""
44392     else
44393         DEFAULT_MAILER="$MAILER"
44394     fi
44395
44396 cat >>confdefs.h <<_ACEOF
44397 #define DEFAULT_MAILER "$DEFAULT_MAILER"
44398 _ACEOF
44399
44400
44401
44402
44403
44404     # Extract the first word of "mt", so it can be a program name with args.
44405 set dummy mt; ac_word=$2
44406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44407 $as_echo_n "checking for $ac_word... " >&6; }
44408 if test "${ac_cv_path_MT+set}" = set; then
44409   $as_echo_n "(cached) " >&6
44410 else
44411   case $MT in
44412   [\\/]* | ?:[\\/]*)
44413   ac_cv_path_MT="$MT" # Let the user override the test with a path.
44414   ;;
44415   *)
44416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44417 for as_dir in $SYSLOCPATH
44418 do
44419   IFS=$as_save_IFS
44420   test -z "$as_dir" && as_dir=.
44421   for ac_exec_ext in '' $ac_executable_extensions; do
44422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44423     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
44424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44425     break 2
44426   fi
44427 done
44428 done
44429 IFS=$as_save_IFS
44430
44431   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
44432   ;;
44433 esac
44434 fi
44435 MT=$ac_cv_path_MT
44436 if test -n "$MT"; then
44437   { $as_echo "$as_me:$LINENO: result: $MT" >&5
44438 $as_echo "$MT" >&6; }
44439 else
44440   { $as_echo "$as_me:$LINENO: result: no" >&5
44441 $as_echo "no" >&6; }
44442 fi
44443
44444
44445
44446     case "$host" in
44447         *-hp-*) MT_FILE_FLAG="-t" ;;
44448         *) MT_FILE_FLAG="-f" ;;
44449     esac
44450
44451
44452
44453 cat >>confdefs.h <<_ACEOF
44454 #define MT_FILE_FLAG "$MT_FILE_FLAG"
44455 _ACEOF
44456
44457
44458
44459
44460     # Extract the first word of "mtx", so it can be a program name with args.
44461 set dummy mtx; ac_word=$2
44462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44463 $as_echo_n "checking for $ac_word... " >&6; }
44464 if test "${ac_cv_path_MTX+set}" = set; then
44465   $as_echo_n "(cached) " >&6
44466 else
44467   case $MTX in
44468   [\\/]* | ?:[\\/]*)
44469   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
44470   ;;
44471   *)
44472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44473 for as_dir in $LOCSYSPATH
44474 do
44475   IFS=$as_save_IFS
44476   test -z "$as_dir" && as_dir=.
44477   for ac_exec_ext in '' $ac_executable_extensions; do
44478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44479     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
44480     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44481     break 2
44482   fi
44483 done
44484 done
44485 IFS=$as_save_IFS
44486
44487   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
44488   ;;
44489 esac
44490 fi
44491 MTX=$ac_cv_path_MTX
44492 if test -n "$MTX"; then
44493   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
44494 $as_echo "$MTX" >&6; }
44495 else
44496   { $as_echo "$as_me:$LINENO: result: no" >&5
44497 $as_echo "no" >&6; }
44498 fi
44499
44500
44501
44502
44503
44504
44505
44506     for ac_prog in lpr lp
44507 do
44508   # Extract the first word of "$ac_prog", so it can be a program name with args.
44509 set dummy $ac_prog; ac_word=$2
44510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44511 $as_echo_n "checking for $ac_word... " >&6; }
44512 if test "${ac_cv_path_LPR+set}" = set; then
44513   $as_echo_n "(cached) " >&6
44514 else
44515   case $LPR in
44516   [\\/]* | ?:[\\/]*)
44517   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
44518   ;;
44519   *)
44520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44521 for as_dir in $PATH
44522 do
44523   IFS=$as_save_IFS
44524   test -z "$as_dir" && as_dir=.
44525   for ac_exec_ext in '' $ac_executable_extensions; do
44526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44527     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
44528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44529     break 2
44530   fi
44531 done
44532 done
44533 IFS=$as_save_IFS
44534
44535   ;;
44536 esac
44537 fi
44538 LPR=$ac_cv_path_LPR
44539 if test -n "$LPR"; then
44540   { $as_echo "$as_me:$LINENO: result: $LPR" >&5
44541 $as_echo "$LPR" >&6; }
44542 else
44543   { $as_echo "$as_me:$LINENO: result: no" >&5
44544 $as_echo "no" >&6; }
44545 fi
44546
44547
44548   test -n "$LPR" && break
44549 done
44550
44551     if test ! -z "$LPR"; then
44552
44553 cat >>confdefs.h <<\_ACEOF
44554 #define HAVE_LPR_CMD 1
44555 _ACEOF
44556
44557
44558         { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
44559 $as_echo_n "checking which flag to use to select a printer... " >&6; }
44560 if test "${amanda_cv_printer_flag+set}" = set; then
44561   $as_echo_n "(cached) " >&6
44562 else
44563
44564             amanda_cv_printer_flag=$LPRFLAG
44565             case "$LPR" in
44566                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
44567                 lp|*/lp) amanda_cv_printer_flag="-d";;
44568             esac
44569
44570 fi
44571 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
44572 $as_echo "$amanda_cv_printer_flag" >&6; }
44573         if test -z "$amanda_cv_printer_flag"; then
44574
44575     { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
44576 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
44577
44578
44579     cat <<AAW_EOF >>config.warnings
44580 WARNING: amanda will always print to the default printer
44581 AAW_EOF
44582
44583
44584         fi
44585     fi
44586
44587
44588
44589
44590
44591
44592     # Extract the first word of "pcat", so it can be a program name with args.
44593 set dummy pcat; ac_word=$2
44594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44595 $as_echo_n "checking for $ac_word... " >&6; }
44596 if test "${ac_cv_path_PCAT+set}" = set; then
44597   $as_echo_n "(cached) " >&6
44598 else
44599   case $PCAT in
44600   [\\/]* | ?:[\\/]*)
44601   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
44602   ;;
44603   *)
44604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44605 for as_dir in $LOCSYSPATH
44606 do
44607   IFS=$as_save_IFS
44608   test -z "$as_dir" && as_dir=.
44609   for ac_exec_ext in '' $ac_executable_extensions; do
44610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44611     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
44612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44613     break 2
44614   fi
44615 done
44616 done
44617 IFS=$as_save_IFS
44618
44619   ;;
44620 esac
44621 fi
44622 PCAT=$ac_cv_path_PCAT
44623 if test -n "$PCAT"; then
44624   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
44625 $as_echo "$PCAT" >&6; }
44626 else
44627   { $as_echo "$as_me:$LINENO: result: no" >&5
44628 $as_echo "no" >&6; }
44629 fi
44630
44631
44632
44633
44634
44635     for ac_prog in perl5 perl
44636 do
44637   # Extract the first word of "$ac_prog", so it can be a program name with args.
44638 set dummy $ac_prog; ac_word=$2
44639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44640 $as_echo_n "checking for $ac_word... " >&6; }
44641 if test "${ac_cv_path_PERL+set}" = set; then
44642   $as_echo_n "(cached) " >&6
44643 else
44644   case $PERL in
44645   [\\/]* | ?:[\\/]*)
44646   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
44647   ;;
44648   *)
44649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44650 for as_dir in $LOCSYSPATH
44651 do
44652   IFS=$as_save_IFS
44653   test -z "$as_dir" && as_dir=.
44654   for ac_exec_ext in '' $ac_executable_extensions; do
44655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44656     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
44657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44658     break 2
44659   fi
44660 done
44661 done
44662 IFS=$as_save_IFS
44663
44664   ;;
44665 esac
44666 fi
44667 PERL=$ac_cv_path_PERL
44668 if test -n "$PERL"; then
44669   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44670 $as_echo "$PERL" >&6; }
44671 else
44672   { $as_echo "$as_me:$LINENO: result: no" >&5
44673 $as_echo "no" >&6; }
44674 fi
44675
44676
44677   test -n "$PERL" && break
44678 done
44679
44680
44681     # Make sure we have perl
44682 if test -z "$PERL"; then
44683 # Extract the first word of "perl", so it can be a program name with args.
44684 set dummy perl; ac_word=$2
44685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44686 $as_echo_n "checking for $ac_word... " >&6; }
44687 if test "${ac_cv_prog_PERL+set}" = set; then
44688   $as_echo_n "(cached) " >&6
44689 else
44690   if test -n "$PERL"; then
44691   ac_cv_prog_PERL="$PERL" # Let the user override the test.
44692 else
44693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44694 for as_dir in $PATH
44695 do
44696   IFS=$as_save_IFS
44697   test -z "$as_dir" && as_dir=.
44698   for ac_exec_ext in '' $ac_executable_extensions; do
44699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44700     ac_cv_prog_PERL="perl"
44701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44702     break 2
44703   fi
44704 done
44705 done
44706 IFS=$as_save_IFS
44707
44708 fi
44709 fi
44710 PERL=$ac_cv_prog_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 fi
44721
44722 # Check if version of Perl is sufficient
44723 ac_perl_version="5.6.0"
44724
44725 if test "x$PERL" != "x"; then
44726   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
44727 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
44728   # NB: It would be nice to log the error if there is one, but we cannot rely
44729   # on autoconf internals
44730   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
44731   if test $? -ne 0; then
44732     { $as_echo "$as_me:$LINENO: result: no" >&5
44733 $as_echo "no" >&6; };
44734
44735         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
44736 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
44737    { (exit 1); exit 1; }; }
44738
44739   else
44740     { $as_echo "$as_me:$LINENO: result: ok" >&5
44741 $as_echo "ok" >&6; };
44742
44743   fi
44744 else
44745   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
44746 $as_echo "$as_me: WARNING: could not find perl" >&2;}
44747 fi
44748
44749
44750
44751
44752     for ac_prog in swig
44753 do
44754   # Extract the first word of "$ac_prog", so it can be a program name with args.
44755 set dummy $ac_prog; ac_word=$2
44756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44757 $as_echo_n "checking for $ac_word... " >&6; }
44758 if test "${ac_cv_path_SWIG+set}" = set; then
44759   $as_echo_n "(cached) " >&6
44760 else
44761   case $SWIG in
44762   [\\/]* | ?:[\\/]*)
44763   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
44764   ;;
44765   *)
44766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44767 for as_dir in $LOCSYSPATH
44768 do
44769   IFS=$as_save_IFS
44770   test -z "$as_dir" && as_dir=.
44771   for ac_exec_ext in '' $ac_executable_extensions; do
44772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44773     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
44774     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44775     break 2
44776   fi
44777 done
44778 done
44779 IFS=$as_save_IFS
44780
44781   ;;
44782 esac
44783 fi
44784 SWIG=$ac_cv_path_SWIG
44785 if test -n "$SWIG"; then
44786   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
44787 $as_echo "$SWIG" >&6; }
44788 else
44789   { $as_echo "$as_me:$LINENO: result: no" >&5
44790 $as_echo "no" >&6; }
44791 fi
44792
44793
44794   test -n "$SWIG" && break
44795 done
44796
44797
44798     # 1.3.32 introduces a change in the way empty strings are handled (old versions
44799     # returned undef in Perl, while new versions return an empty Perl string)
44800     # 1.3.39 is required for the %begin block
44801
44802         # Extract the first word of "swig", so it can be a program name with args.
44803 set dummy swig; ac_word=$2
44804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44805 $as_echo_n "checking for $ac_word... " >&6; }
44806 if test "${ac_cv_path_SWIG+set}" = set; then
44807   $as_echo_n "(cached) " >&6
44808 else
44809   case $SWIG in
44810   [\\/]* | ?:[\\/]*)
44811   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
44812   ;;
44813   *)
44814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44815 for as_dir in $PATH
44816 do
44817   IFS=$as_save_IFS
44818   test -z "$as_dir" && as_dir=.
44819   for ac_exec_ext in '' $ac_executable_extensions; do
44820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44821     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
44822     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44823     break 2
44824   fi
44825 done
44826 done
44827 IFS=$as_save_IFS
44828
44829   ;;
44830 esac
44831 fi
44832 SWIG=$ac_cv_path_SWIG
44833 if test -n "$SWIG"; then
44834   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
44835 $as_echo "$SWIG" >&6; }
44836 else
44837   { $as_echo "$as_me:$LINENO: result: no" >&5
44838 $as_echo "no" >&6; }
44839 fi
44840
44841
44842         if test -z "$SWIG" ; then
44843                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
44844         elif test -n "1.3.39" ; then
44845                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
44846 $as_echo_n "checking for SWIG version... " >&6; }
44847                 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'`
44848                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
44849 $as_echo "$swig_version" >&6; }
44850                 if test -n "$swig_version" ; then
44851
44852   # Used to indicate true or false condition
44853   ax_compare_version=false
44854
44855   # Convert the two version strings to be compared into a format that
44856   # allows a simple string comparison.  The end result is that a version
44857   # string of the form 1.12.5-r617 will be converted to the form
44858   # 0001001200050617.  In other words, each number is zero padded to four
44859   # digits, and non digits are removed.
44860
44861   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
44862                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
44863                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
44864                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
44865                      -e 's/[^0-9]//g'`
44866
44867
44868   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
44869                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
44870                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
44871                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
44872                      -e 's/[^0-9]//g'`
44873
44874
44875     ax_compare_version=`echo "x$ax_compare_version_A
44876 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"`
44877
44878
44879
44880     if test "$ax_compare_version" = "true" ; then
44881
44882                                                     SWIG_LIB=`$SWIG -swiglib`
44883
44884     else
44885                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
44886
44887   fi
44888
44889                 else
44890                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
44891                 fi
44892         fi
44893
44894
44895
44896
44897     # Extract the first word of "ps", so it can be a program name with args.
44898 set dummy ps; ac_word=$2
44899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44900 $as_echo_n "checking for $ac_word... " >&6; }
44901 if test "${ac_cv_path_PS+set}" = set; then
44902   $as_echo_n "(cached) " >&6
44903 else
44904   case $PS in
44905   [\\/]* | ?:[\\/]*)
44906   ac_cv_path_PS="$PS" # Let the user override the test with a path.
44907   ;;
44908   *)
44909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44910 for as_dir in $PATH
44911 do
44912   IFS=$as_save_IFS
44913   test -z "$as_dir" && as_dir=.
44914   for ac_exec_ext in '' $ac_executable_extensions; do
44915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44916     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
44917     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44918     break 2
44919   fi
44920 done
44921 done
44922 IFS=$as_save_IFS
44923
44924   ;;
44925 esac
44926 fi
44927 PS=$ac_cv_path_PS
44928 if test -n "$PS"; then
44929   { $as_echo "$as_me:$LINENO: result: $PS" >&5
44930 $as_echo "$PS" >&6; }
44931 else
44932   { $as_echo "$as_me:$LINENO: result: no" >&5
44933 $as_echo "no" >&6; }
44934 fi
44935
44936
44937     { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
44938 $as_echo_n "checking ps argument to use... " >&6; }
44939     PS_ARGUMENT=
44940
44941     # ps is *very* non-portable, and across many systems, the same option
44942     # (e.g., -e) can mean different things.  So this macro tries to
44943     # special-case most known systems, and makes an effort to detect unknown
44944     # systems
44945     case "$host" in
44946         *-*-solaris*)
44947             PS_ARGUMENT="-eo pid,ppid,comm"
44948             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
44949             ;;
44950
44951         *-*-linux-*)
44952             PS_ARGUMENT="-eo pid,ppid,command"
44953             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
44954             ;;
44955
44956         *-*-*bsd*)
44957             PS_ARGUMENT="-axo pid,ppid,command"
44958             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
44959             ;;
44960
44961         *-apple-darwin*)
44962             PS_ARGUMENT="-aAco pid,ppid,command"
44963             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
44964             ;;
44965
44966         *-pc-cygwin)
44967             # Cygwin is special-cased in Amanda::Process
44968             PS_ARGUMENT=CYGWIN
44969             PS_ARGUMENT_ARGS="-ef"
44970             ;;
44971
44972         *-*-hpux*)
44973             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
44974             PS="UNIX95=1 $PS"
44975             PS_ARGUMENT="-eo pid,ppid,comm"
44976             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
44977             ;;
44978
44979         *)
44980             for try in \
44981                 "-axo pid,ppid,command" \
44982                 "-aAco pid,ppid,command" \
44983                 "-eo pid,ppid,comm"
44984             do
44985                 ps $try >/dev/null 2>/dev/null
44986                 if test $? -eq 0; then
44987                     PS_ARGUMENT="$try"
44988                     break
44989                 fi
44990             done
44991             for try in \
44992                 "-axo pid,ppid,command" \
44993                 "-aAo pid,ppid,command" \
44994                 "-eo pid,ppid,comm"
44995             do
44996                 ps $try >/dev/null 2>/dev/null
44997                 if test $? -eq 0; then
44998                     PS_ARGUMENT_ARGS="$try"
44999                     break
45000                 fi
45001             done
45002             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
45003                 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
45004 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
45005    { (exit 1); exit 1; }; }
45006             fi
45007             ;;
45008     esac
45009
45010     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
45011 $as_echo "$PS_ARGUMENT" >&6; }
45012
45013     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT_ARGS" >&5
45014 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
45015
45016
45017
45018
45019     # Extract the first word of "rpcgen", so it can be a program name with args.
45020 set dummy rpcgen; ac_word=$2
45021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45022 $as_echo_n "checking for $ac_word... " >&6; }
45023 if test "${ac_cv_path_RPCGEN+set}" = set; then
45024   $as_echo_n "(cached) " >&6
45025 else
45026   case $RPCGEN in
45027   [\\/]* | ?:[\\/]*)
45028   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
45029   ;;
45030   *)
45031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45032 for as_dir in $LOCSYSPATH
45033 do
45034   IFS=$as_save_IFS
45035   test -z "$as_dir" && as_dir=.
45036   for ac_exec_ext in '' $ac_executable_extensions; do
45037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45038     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
45039     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45040     break 2
45041   fi
45042 done
45043 done
45044 IFS=$as_save_IFS
45045
45046   ;;
45047 esac
45048 fi
45049 RPCGEN=$ac_cv_path_RPCGEN
45050 if test -n "$RPCGEN"; then
45051   { $as_echo "$as_me:$LINENO: result: $RPCGEN" >&5
45052 $as_echo "$RPCGEN" >&6; }
45053 else
45054   { $as_echo "$as_me:$LINENO: result: no" >&5
45055 $as_echo "no" >&6; }
45056 fi
45057
45058
45059
45060
45061
45062 #
45063 # Compiler / system characteristics
45064 #
45065
45066 #
45067 # compiler
45068 #
45069 if test $ac_cv_c_compiler_gnu = yes; then
45070     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
45071 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
45072 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
45073   $as_echo_n "(cached) " >&6
45074 else
45075     ac_pattern="Autoconf.*'x'"
45076   cat >conftest.$ac_ext <<_ACEOF
45077 /* confdefs.h.  */
45078 _ACEOF
45079 cat confdefs.h >>conftest.$ac_ext
45080 cat >>conftest.$ac_ext <<_ACEOF
45081 /* end confdefs.h.  */
45082 #include <sgtty.h>
45083 Autoconf TIOCGETP
45084 _ACEOF
45085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45086   $EGREP "$ac_pattern" >/dev/null 2>&1; then
45087   ac_cv_prog_gcc_traditional=yes
45088 else
45089   ac_cv_prog_gcc_traditional=no
45090 fi
45091 rm -f conftest*
45092
45093
45094   if test $ac_cv_prog_gcc_traditional = no; then
45095     cat >conftest.$ac_ext <<_ACEOF
45096 /* confdefs.h.  */
45097 _ACEOF
45098 cat confdefs.h >>conftest.$ac_ext
45099 cat >>conftest.$ac_ext <<_ACEOF
45100 /* end confdefs.h.  */
45101 #include <termio.h>
45102 Autoconf TCGETA
45103 _ACEOF
45104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45105   $EGREP "$ac_pattern" >/dev/null 2>&1; then
45106   ac_cv_prog_gcc_traditional=yes
45107 fi
45108 rm -f conftest*
45109
45110   fi
45111 fi
45112 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
45113 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
45114   if test $ac_cv_prog_gcc_traditional = yes; then
45115     CC="$CC -traditional"
45116   fi
45117 fi
45118
45119 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
45120 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
45121 if test "${ac_cv_c_const+set}" = set; then
45122   $as_echo_n "(cached) " >&6
45123 else
45124   cat >conftest.$ac_ext <<_ACEOF
45125 /* confdefs.h.  */
45126 _ACEOF
45127 cat confdefs.h >>conftest.$ac_ext
45128 cat >>conftest.$ac_ext <<_ACEOF
45129 /* end confdefs.h.  */
45130
45131 int
45132 main ()
45133 {
45134 /* FIXME: Include the comments suggested by Paul. */
45135 #ifndef __cplusplus
45136   /* Ultrix mips cc rejects this.  */
45137   typedef int charset[2];
45138   const charset cs;
45139   /* SunOS 4.1.1 cc rejects this.  */
45140   char const *const *pcpcc;
45141   char **ppc;
45142   /* NEC SVR4.0.2 mips cc rejects this.  */
45143   struct point {int x, y;};
45144   static struct point const zero = {0,0};
45145   /* AIX XL C 1.02.0.0 rejects this.
45146      It does not let you subtract one const X* pointer from another in
45147      an arm of an if-expression whose if-part is not a constant
45148      expression */
45149   const char *g = "string";
45150   pcpcc = &g + (g ? g-g : 0);
45151   /* HPUX 7.0 cc rejects these. */
45152   ++pcpcc;
45153   ppc = (char**) pcpcc;
45154   pcpcc = (char const *const *) ppc;
45155   { /* SCO 3.2v4 cc rejects this.  */
45156     char *t;
45157     char const *s = 0 ? (char *) 0 : (char const *) 0;
45158
45159     *t++ = 0;
45160     if (s) return 0;
45161   }
45162   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
45163     int x[] = {25, 17};
45164     const int *foo = &x[0];
45165     ++foo;
45166   }
45167   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
45168     typedef const int *iptr;
45169     iptr p = 0;
45170     ++p;
45171   }
45172   { /* AIX XL C 1.02.0.0 rejects this saying
45173        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
45174     struct s { int j; const int *ap[3]; };
45175     struct s *b; b->j = 5;
45176   }
45177   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
45178     const int foo = 10;
45179     if (!foo) return 0;
45180   }
45181   return !cs[0] && !zero.x;
45182 #endif
45183
45184   ;
45185   return 0;
45186 }
45187 _ACEOF
45188 rm -f conftest.$ac_objext
45189 if { (ac_try="$ac_compile"
45190 case "(($ac_try" in
45191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45192   *) ac_try_echo=$ac_try;;
45193 esac
45194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45195 $as_echo "$ac_try_echo") >&5
45196   (eval "$ac_compile") 2>conftest.er1
45197   ac_status=$?
45198   grep -v '^ *+' conftest.er1 >conftest.err
45199   rm -f conftest.er1
45200   cat conftest.err >&5
45201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45202   (exit $ac_status); } && {
45203          test -z "$ac_c_werror_flag" ||
45204          test ! -s conftest.err
45205        } && test -s conftest.$ac_objext; then
45206   ac_cv_c_const=yes
45207 else
45208   $as_echo "$as_me: failed program was:" >&5
45209 sed 's/^/| /' conftest.$ac_ext >&5
45210
45211         ac_cv_c_const=no
45212 fi
45213
45214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45215 fi
45216 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
45217 $as_echo "$ac_cv_c_const" >&6; }
45218 if test $ac_cv_c_const = no; then
45219
45220 cat >>confdefs.h <<\_ACEOF
45221 #define const /**/
45222 _ACEOF
45223
45224 fi
45225
45226
45227  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
45228 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
45229 if test "${ac_cv_c_bigendian+set}" = set; then
45230   $as_echo_n "(cached) " >&6
45231 else
45232   ac_cv_c_bigendian=unknown
45233     # See if we're dealing with a universal compiler.
45234     cat >conftest.$ac_ext <<_ACEOF
45235 /* confdefs.h.  */
45236 _ACEOF
45237 cat confdefs.h >>conftest.$ac_ext
45238 cat >>conftest.$ac_ext <<_ACEOF
45239 /* end confdefs.h.  */
45240 #ifndef __APPLE_CC__
45241                not a universal capable compiler
45242              #endif
45243              typedef int dummy;
45244
45245 _ACEOF
45246 rm -f conftest.$ac_objext
45247 if { (ac_try="$ac_compile"
45248 case "(($ac_try" in
45249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45250   *) ac_try_echo=$ac_try;;
45251 esac
45252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45253 $as_echo "$ac_try_echo") >&5
45254   (eval "$ac_compile") 2>conftest.er1
45255   ac_status=$?
45256   grep -v '^ *+' conftest.er1 >conftest.err
45257   rm -f conftest.er1
45258   cat conftest.err >&5
45259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45260   (exit $ac_status); } && {
45261          test -z "$ac_c_werror_flag" ||
45262          test ! -s conftest.err
45263        } && test -s conftest.$ac_objext; then
45264
45265         # Check for potential -arch flags.  It is not universal unless
45266         # there are some -arch flags.  Note that *ppc* also matches
45267         # ppc64.  This check is also rather less than ideal.
45268         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
45269           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
45270         esac
45271 else
45272   $as_echo "$as_me: failed program was:" >&5
45273 sed 's/^/| /' conftest.$ac_ext >&5
45274
45275
45276 fi
45277
45278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45279     if test $ac_cv_c_bigendian = unknown; then
45280       # See if sys/param.h defines the BYTE_ORDER macro.
45281       cat >conftest.$ac_ext <<_ACEOF
45282 /* confdefs.h.  */
45283 _ACEOF
45284 cat confdefs.h >>conftest.$ac_ext
45285 cat >>conftest.$ac_ext <<_ACEOF
45286 /* end confdefs.h.  */
45287 #include <sys/types.h>
45288              #include <sys/param.h>
45289
45290 int
45291 main ()
45292 {
45293 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
45294                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
45295                      && LITTLE_ENDIAN)
45296               bogus endian macros
45297              #endif
45298
45299   ;
45300   return 0;
45301 }
45302 _ACEOF
45303 rm -f conftest.$ac_objext
45304 if { (ac_try="$ac_compile"
45305 case "(($ac_try" in
45306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45307   *) ac_try_echo=$ac_try;;
45308 esac
45309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45310 $as_echo "$ac_try_echo") >&5
45311   (eval "$ac_compile") 2>conftest.er1
45312   ac_status=$?
45313   grep -v '^ *+' conftest.er1 >conftest.err
45314   rm -f conftest.er1
45315   cat conftest.err >&5
45316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45317   (exit $ac_status); } && {
45318          test -z "$ac_c_werror_flag" ||
45319          test ! -s conftest.err
45320        } && test -s conftest.$ac_objext; then
45321   # It does; now see whether it defined to BIG_ENDIAN or not.
45322          cat >conftest.$ac_ext <<_ACEOF
45323 /* confdefs.h.  */
45324 _ACEOF
45325 cat confdefs.h >>conftest.$ac_ext
45326 cat >>conftest.$ac_ext <<_ACEOF
45327 /* end confdefs.h.  */
45328 #include <sys/types.h>
45329                 #include <sys/param.h>
45330
45331 int
45332 main ()
45333 {
45334 #if BYTE_ORDER != BIG_ENDIAN
45335                  not big endian
45336                 #endif
45337
45338   ;
45339   return 0;
45340 }
45341 _ACEOF
45342 rm -f conftest.$ac_objext
45343 if { (ac_try="$ac_compile"
45344 case "(($ac_try" in
45345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45346   *) ac_try_echo=$ac_try;;
45347 esac
45348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45349 $as_echo "$ac_try_echo") >&5
45350   (eval "$ac_compile") 2>conftest.er1
45351   ac_status=$?
45352   grep -v '^ *+' conftest.er1 >conftest.err
45353   rm -f conftest.er1
45354   cat conftest.err >&5
45355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356   (exit $ac_status); } && {
45357          test -z "$ac_c_werror_flag" ||
45358          test ! -s conftest.err
45359        } && test -s conftest.$ac_objext; then
45360   ac_cv_c_bigendian=yes
45361 else
45362   $as_echo "$as_me: failed program was:" >&5
45363 sed 's/^/| /' conftest.$ac_ext >&5
45364
45365         ac_cv_c_bigendian=no
45366 fi
45367
45368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45369 else
45370   $as_echo "$as_me: failed program was:" >&5
45371 sed 's/^/| /' conftest.$ac_ext >&5
45372
45373
45374 fi
45375
45376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45377     fi
45378     if test $ac_cv_c_bigendian = unknown; then
45379       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
45380       cat >conftest.$ac_ext <<_ACEOF
45381 /* confdefs.h.  */
45382 _ACEOF
45383 cat confdefs.h >>conftest.$ac_ext
45384 cat >>conftest.$ac_ext <<_ACEOF
45385 /* end confdefs.h.  */
45386 #include <limits.h>
45387
45388 int
45389 main ()
45390 {
45391 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
45392               bogus endian macros
45393              #endif
45394
45395   ;
45396   return 0;
45397 }
45398 _ACEOF
45399 rm -f conftest.$ac_objext
45400 if { (ac_try="$ac_compile"
45401 case "(($ac_try" in
45402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45403   *) ac_try_echo=$ac_try;;
45404 esac
45405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45406 $as_echo "$ac_try_echo") >&5
45407   (eval "$ac_compile") 2>conftest.er1
45408   ac_status=$?
45409   grep -v '^ *+' conftest.er1 >conftest.err
45410   rm -f conftest.er1
45411   cat conftest.err >&5
45412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413   (exit $ac_status); } && {
45414          test -z "$ac_c_werror_flag" ||
45415          test ! -s conftest.err
45416        } && test -s conftest.$ac_objext; then
45417   # It does; now see whether it defined to _BIG_ENDIAN or not.
45418          cat >conftest.$ac_ext <<_ACEOF
45419 /* confdefs.h.  */
45420 _ACEOF
45421 cat confdefs.h >>conftest.$ac_ext
45422 cat >>conftest.$ac_ext <<_ACEOF
45423 /* end confdefs.h.  */
45424 #include <limits.h>
45425
45426 int
45427 main ()
45428 {
45429 #ifndef _BIG_ENDIAN
45430                  not big endian
45431                 #endif
45432
45433   ;
45434   return 0;
45435 }
45436 _ACEOF
45437 rm -f conftest.$ac_objext
45438 if { (ac_try="$ac_compile"
45439 case "(($ac_try" in
45440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45441   *) ac_try_echo=$ac_try;;
45442 esac
45443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45444 $as_echo "$ac_try_echo") >&5
45445   (eval "$ac_compile") 2>conftest.er1
45446   ac_status=$?
45447   grep -v '^ *+' conftest.er1 >conftest.err
45448   rm -f conftest.er1
45449   cat conftest.err >&5
45450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451   (exit $ac_status); } && {
45452          test -z "$ac_c_werror_flag" ||
45453          test ! -s conftest.err
45454        } && test -s conftest.$ac_objext; then
45455   ac_cv_c_bigendian=yes
45456 else
45457   $as_echo "$as_me: failed program was:" >&5
45458 sed 's/^/| /' conftest.$ac_ext >&5
45459
45460         ac_cv_c_bigendian=no
45461 fi
45462
45463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45464 else
45465   $as_echo "$as_me: failed program was:" >&5
45466 sed 's/^/| /' conftest.$ac_ext >&5
45467
45468
45469 fi
45470
45471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45472     fi
45473     if test $ac_cv_c_bigendian = unknown; then
45474       # Compile a test program.
45475       if test "$cross_compiling" = yes; then
45476   # Try to guess by grepping values from an object file.
45477          cat >conftest.$ac_ext <<_ACEOF
45478 /* confdefs.h.  */
45479 _ACEOF
45480 cat confdefs.h >>conftest.$ac_ext
45481 cat >>conftest.$ac_ext <<_ACEOF
45482 /* end confdefs.h.  */
45483 short int ascii_mm[] =
45484                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
45485                 short int ascii_ii[] =
45486                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
45487                 int use_ascii (int i) {
45488                   return ascii_mm[i] + ascii_ii[i];
45489                 }
45490                 short int ebcdic_ii[] =
45491                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
45492                 short int ebcdic_mm[] =
45493                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
45494                 int use_ebcdic (int i) {
45495                   return ebcdic_mm[i] + ebcdic_ii[i];
45496                 }
45497                 extern int foo;
45498
45499 int
45500 main ()
45501 {
45502 return use_ascii (foo) == use_ebcdic (foo);
45503   ;
45504   return 0;
45505 }
45506 _ACEOF
45507 rm -f conftest.$ac_objext
45508 if { (ac_try="$ac_compile"
45509 case "(($ac_try" in
45510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45511   *) ac_try_echo=$ac_try;;
45512 esac
45513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45514 $as_echo "$ac_try_echo") >&5
45515   (eval "$ac_compile") 2>conftest.er1
45516   ac_status=$?
45517   grep -v '^ *+' conftest.er1 >conftest.err
45518   rm -f conftest.er1
45519   cat conftest.err >&5
45520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45521   (exit $ac_status); } && {
45522          test -z "$ac_c_werror_flag" ||
45523          test ! -s conftest.err
45524        } && test -s conftest.$ac_objext; then
45525   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
45526               ac_cv_c_bigendian=yes
45527             fi
45528             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
45529               if test "$ac_cv_c_bigendian" = unknown; then
45530                 ac_cv_c_bigendian=no
45531               else
45532                 # finding both strings is unlikely to happen, but who knows?
45533                 ac_cv_c_bigendian=unknown
45534               fi
45535             fi
45536 else
45537   $as_echo "$as_me: failed program was:" >&5
45538 sed 's/^/| /' conftest.$ac_ext >&5
45539
45540
45541 fi
45542
45543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45544 else
45545   cat >conftest.$ac_ext <<_ACEOF
45546 /* confdefs.h.  */
45547 _ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h.  */
45551 $ac_includes_default
45552 int
45553 main ()
45554 {
45555
45556              /* Are we little or big endian?  From Harbison&Steele.  */
45557              union
45558              {
45559                long int l;
45560                char c[sizeof (long int)];
45561              } u;
45562              u.l = 1;
45563              return u.c[sizeof (long int) - 1] == 1;
45564
45565   ;
45566   return 0;
45567 }
45568 _ACEOF
45569 rm -f conftest$ac_exeext
45570 if { (ac_try="$ac_link"
45571 case "(($ac_try" in
45572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45573   *) ac_try_echo=$ac_try;;
45574 esac
45575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45576 $as_echo "$ac_try_echo") >&5
45577   (eval "$ac_link") 2>&5
45578   ac_status=$?
45579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45581   { (case "(($ac_try" in
45582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45583   *) ac_try_echo=$ac_try;;
45584 esac
45585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45586 $as_echo "$ac_try_echo") >&5
45587   (eval "$ac_try") 2>&5
45588   ac_status=$?
45589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45590   (exit $ac_status); }; }; then
45591   ac_cv_c_bigendian=no
45592 else
45593   $as_echo "$as_me: program exited with status $ac_status" >&5
45594 $as_echo "$as_me: failed program was:" >&5
45595 sed 's/^/| /' conftest.$ac_ext >&5
45596
45597 ( exit $ac_status )
45598 ac_cv_c_bigendian=yes
45599 fi
45600 rm -rf conftest.dSYM
45601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45602 fi
45603
45604
45605     fi
45606 fi
45607 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
45608 $as_echo "$ac_cv_c_bigendian" >&6; }
45609  case $ac_cv_c_bigendian in #(
45610    yes)
45611      cat >>confdefs.h <<\_ACEOF
45612 #define WORDS_BIGENDIAN 1
45613 _ACEOF
45614 ;; #(
45615    no)
45616       ;; #(
45617    universal)
45618
45619 cat >>confdefs.h <<\_ACEOF
45620 #define AC_APPLE_UNIVERSAL_BUILD 1
45621 _ACEOF
45622
45623      ;; #(
45624    *)
45625      { { $as_echo "$as_me:$LINENO: error: unknown endianness
45626  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
45627 $as_echo "$as_me: error: unknown endianness
45628  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
45629    { (exit 1); exit 1; }; } ;;
45630  esac
45631
45632
45633 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
45634  if test "x$GCC" = "xyes"; then
45635   GCC_COMPILER_TRUE=
45636   GCC_COMPILER_FALSE='#'
45637 else
45638   GCC_COMPILER_TRUE='#'
45639   GCC_COMPILER_FALSE=
45640 fi
45641
45642
45643 #
45644 # Warnings
45645 #
45646
45647
45648
45649
45650     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
45651 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
45652     if test "x$GCC" = "xyes"; then
45653                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45654            $CC -v --help 2>&1) |
45655          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
45656                 if test $? -eq 0; then
45657             found_warning=yes
45658             { $as_echo "$as_me:$LINENO: result: yes" >&5
45659 $as_echo "yes" >&6; }
45660         else
45661             found_warning=no
45662             { $as_echo "$as_me:$LINENO: result: no" >&5
45663 $as_echo "no" >&6; }
45664         fi
45665     else
45666         found_warning=no
45667         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45668 $as_echo "no (not using gcc)" >&6; }
45669     fi
45670
45671     if test x"$found_warning" = x"yes"; then
45672         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
45673
45674
45675     else
45676         :
45677     fi
45678
45679
45680
45681
45682
45683
45684     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
45685 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
45686     if test "x$GCC" = "xyes"; then
45687                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45688            $CC -v --help 2>&1) |
45689          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
45690                 if test $? -eq 0; then
45691             found_warning=yes
45692             { $as_echo "$as_me:$LINENO: result: yes" >&5
45693 $as_echo "yes" >&6; }
45694         else
45695             found_warning=no
45696             { $as_echo "$as_me:$LINENO: result: no" >&5
45697 $as_echo "no" >&6; }
45698         fi
45699     else
45700         found_warning=no
45701         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45702 $as_echo "no (not using gcc)" >&6; }
45703     fi
45704
45705     if test x"$found_warning" = x"yes"; then
45706         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
45707
45708
45709     else
45710         :
45711     fi
45712
45713
45714
45715
45716
45717
45718     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
45719 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
45720     if test "x$GCC" = "xyes"; then
45721                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45722            $CC -v --help 2>&1) |
45723          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
45724                 if test $? -eq 0; then
45725             found_warning=yes
45726             { $as_echo "$as_me:$LINENO: result: yes" >&5
45727 $as_echo "yes" >&6; }
45728         else
45729             found_warning=no
45730             { $as_echo "$as_me:$LINENO: result: no" >&5
45731 $as_echo "no" >&6; }
45732         fi
45733     else
45734         found_warning=no
45735         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45736 $as_echo "no (not using gcc)" >&6; }
45737     fi
45738
45739     if test x"$found_warning" = x"yes"; then
45740         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
45741
45742
45743     else
45744         :
45745     fi
45746
45747
45748
45749
45750
45751
45752     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
45753 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
45754     if test "x$GCC" = "xyes"; then
45755                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45756            $CC -v --help 2>&1) |
45757          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
45758                 if test $? -eq 0; then
45759             found_warning=yes
45760             { $as_echo "$as_me:$LINENO: result: yes" >&5
45761 $as_echo "yes" >&6; }
45762         else
45763             found_warning=no
45764             { $as_echo "$as_me:$LINENO: result: no" >&5
45765 $as_echo "no" >&6; }
45766         fi
45767     else
45768         found_warning=no
45769         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45770 $as_echo "no (not using gcc)" >&6; }
45771     fi
45772
45773     if test x"$found_warning" = x"yes"; then
45774         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
45775
45776
45777     else
45778         :
45779     fi
45780
45781
45782
45783
45784
45785
45786     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
45787 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
45788     if test "x$GCC" = "xyes"; then
45789                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45790            $CC -v --help 2>&1) |
45791          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
45792                 if test $? -eq 0; then
45793             found_warning=yes
45794             { $as_echo "$as_me:$LINENO: result: yes" >&5
45795 $as_echo "yes" >&6; }
45796         else
45797             found_warning=no
45798             { $as_echo "$as_me:$LINENO: result: no" >&5
45799 $as_echo "no" >&6; }
45800         fi
45801     else
45802         found_warning=no
45803         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45804 $as_echo "no (not using gcc)" >&6; }
45805     fi
45806
45807     if test x"$found_warning" = x"yes"; then
45808         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
45809
45810
45811     else
45812         :
45813     fi
45814
45815
45816
45817
45818
45819
45820     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
45821 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
45822     if test "x$GCC" = "xyes"; then
45823                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45824            $CC -v --help 2>&1) |
45825          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
45826                 if test $? -eq 0; then
45827             found_warning=yes
45828             { $as_echo "$as_me:$LINENO: result: yes" >&5
45829 $as_echo "yes" >&6; }
45830         else
45831             found_warning=no
45832             { $as_echo "$as_me:$LINENO: result: no" >&5
45833 $as_echo "no" >&6; }
45834         fi
45835     else
45836         found_warning=no
45837         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45838 $as_echo "no (not using gcc)" >&6; }
45839     fi
45840
45841     if test x"$found_warning" = x"yes"; then
45842         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
45843
45844
45845     else
45846         :
45847     fi
45848
45849
45850
45851
45852
45853
45854     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
45855 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
45856     if test "x$GCC" = "xyes"; then
45857                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45858            $CC -v --help 2>&1) |
45859          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
45860                 if test $? -eq 0; then
45861             found_warning=yes
45862             { $as_echo "$as_me:$LINENO: result: yes" >&5
45863 $as_echo "yes" >&6; }
45864         else
45865             found_warning=no
45866             { $as_echo "$as_me:$LINENO: result: no" >&5
45867 $as_echo "no" >&6; }
45868         fi
45869     else
45870         found_warning=no
45871         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45872 $as_echo "no (not using gcc)" >&6; }
45873     fi
45874
45875     if test x"$found_warning" = x"yes"; then
45876         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
45877
45878
45879     else
45880         :
45881     fi
45882
45883
45884
45885
45886
45887
45888     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
45889 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
45890     if test "x$GCC" = "xyes"; then
45891                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45892            $CC -v --help 2>&1) |
45893          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
45894                 if test $? -eq 0; then
45895             found_warning=yes
45896             { $as_echo "$as_me:$LINENO: result: yes" >&5
45897 $as_echo "yes" >&6; }
45898         else
45899             found_warning=no
45900             { $as_echo "$as_me:$LINENO: result: no" >&5
45901 $as_echo "no" >&6; }
45902         fi
45903     else
45904         found_warning=no
45905         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45906 $as_echo "no (not using gcc)" >&6; }
45907     fi
45908
45909     if test x"$found_warning" = x"yes"; then
45910         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
45911
45912
45913     else
45914         :
45915     fi
45916
45917
45918
45919
45920
45921
45922     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
45923 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
45924     if test "x$GCC" = "xyes"; then
45925                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45926            $CC -v --help 2>&1) |
45927          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
45928                 if test $? -eq 0; then
45929             found_warning=yes
45930             { $as_echo "$as_me:$LINENO: result: yes" >&5
45931 $as_echo "yes" >&6; }
45932         else
45933             found_warning=no
45934             { $as_echo "$as_me:$LINENO: result: no" >&5
45935 $as_echo "no" >&6; }
45936         fi
45937     else
45938         found_warning=no
45939         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45940 $as_echo "no (not using gcc)" >&6; }
45941     fi
45942
45943     if test x"$found_warning" = x"yes"; then
45944         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
45945
45946
45947     else
45948         :
45949     fi
45950
45951
45952
45953
45954
45955
45956     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
45957 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
45958     if test "x$GCC" = "xyes"; then
45959                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45960            $CC -v --help 2>&1) |
45961          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
45962                 if test $? -eq 0; then
45963             found_warning=yes
45964             { $as_echo "$as_me:$LINENO: result: yes" >&5
45965 $as_echo "yes" >&6; }
45966         else
45967             found_warning=no
45968             { $as_echo "$as_me:$LINENO: result: no" >&5
45969 $as_echo "no" >&6; }
45970         fi
45971     else
45972         found_warning=no
45973         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45974 $as_echo "no (not using gcc)" >&6; }
45975     fi
45976
45977     if test x"$found_warning" = x"yes"; then
45978         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
45979
45980
45981     else
45982         :
45983     fi
45984
45985
45986
45987     # test for -W'warning', then add the 'no-' version.
45988
45989
45990
45991     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
45992 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
45993     if test "x$GCC" = "xyes"; then
45994                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45995            $CC -v --help 2>&1) |
45996          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
45997                 if test $? -eq 0; then
45998             found_warning=yes
45999             { $as_echo "$as_me:$LINENO: result: yes" >&5
46000 $as_echo "yes" >&6; }
46001         else
46002             found_warning=no
46003             { $as_echo "$as_me:$LINENO: result: no" >&5
46004 $as_echo "no" >&6; }
46005         fi
46006     else
46007         found_warning=no
46008         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46009 $as_echo "no (not using gcc)" >&6; }
46010     fi
46011
46012     if test x"$found_warning" = x"yes"; then
46013         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
46014
46015
46016     else
46017         :
46018     fi
46019
46020
46021
46022     # test for -W'warning', then add the 'no-' version.
46023
46024
46025
46026     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
46027 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
46028     if test "x$GCC" = "xyes"; then
46029                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46030            $CC -v --help 2>&1) |
46031          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
46032                 if test $? -eq 0; then
46033             found_warning=yes
46034             { $as_echo "$as_me:$LINENO: result: yes" >&5
46035 $as_echo "yes" >&6; }
46036         else
46037             found_warning=no
46038             { $as_echo "$as_me:$LINENO: result: no" >&5
46039 $as_echo "no" >&6; }
46040         fi
46041     else
46042         found_warning=no
46043         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46044 $as_echo "no (not using gcc)" >&6; }
46045     fi
46046
46047     if test x"$found_warning" = x"yes"; then
46048         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
46049
46050
46051     else
46052         :
46053     fi
46054
46055
46056
46057     # Check whether --enable-werror was given.
46058 if test "${enable_werror+set}" = set; then
46059   enableval=$enable_werror;
46060             case "$enableval" in
46061             "" | y | ye | yes)
46062
46063
46064
46065
46066     { $as_echo "$as_me:$LINENO: checking for gcc flag -Werror" >&5
46067 $as_echo_n "checking for gcc flag -Werror... " >&6; }
46068     if test "x$GCC" = "xyes"; then
46069                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46070            $CC -v --help 2>&1) |
46071          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
46072                 if test $? -eq 0; then
46073             found_warning=yes
46074             { $as_echo "$as_me:$LINENO: result: yes" >&5
46075 $as_echo "yes" >&6; }
46076         else
46077             found_warning=no
46078             { $as_echo "$as_me:$LINENO: result: no" >&5
46079 $as_echo "no" >&6; }
46080         fi
46081     else
46082         found_warning=no
46083         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46084 $as_echo "no (not using gcc)" >&6; }
46085     fi
46086
46087     if test x"$found_warning" = x"yes"; then
46088         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
46089
46090
46091     else
46092         :
46093     fi
46094
46095
46096                 ;;
46097             esac
46098
46099 fi
46100
46101
46102
46103     # Check whether --enable-swig-error was given.
46104 if test "${enable_swig_error+set}" = set; then
46105   enableval=$enable_swig_error;
46106             case "$enableval" in
46107             "" | y | ye | yes)
46108                 AMANDA_SWIG_PERL_CFLAGS=-Werror
46109                 ;;
46110             *n | no)
46111                 AMANDA_SWIG_PERL_CFLAGS=
46112                 ;;
46113             esac
46114
46115 fi
46116
46117
46118
46119
46120 #
46121 # Libtool
46122 #
46123 case `pwd` in
46124   *\ * | *\     *)
46125     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
46126 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
46127 esac
46128
46129
46130
46131 macro_version='2.2.4'
46132 macro_revision='1.2976'
46133
46134
46135
46136
46137
46138
46139
46140
46141
46142
46143
46144
46145
46146 ltmain="$ac_aux_dir/ltmain.sh"
46147
46148 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
46149 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
46150 if test "${ac_cv_path_SED+set}" = set; then
46151   $as_echo_n "(cached) " >&6
46152 else
46153             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
46154      for ac_i in 1 2 3 4 5 6 7; do
46155        ac_script="$ac_script$as_nl$ac_script"
46156      done
46157      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
46158      $as_unset ac_script || ac_script=
46159      if test -z "$SED"; then
46160   ac_path_SED_found=false
46161   # Loop through the user's path and test for each of PROGNAME-LIST
46162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46163 for as_dir in $PATH
46164 do
46165   IFS=$as_save_IFS
46166   test -z "$as_dir" && as_dir=.
46167   for ac_prog in sed gsed; do
46168     for ac_exec_ext in '' $ac_executable_extensions; do
46169       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
46170       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
46171 # Check for GNU ac_path_SED and select it if it is found.
46172   # Check for GNU $ac_path_SED
46173 case `"$ac_path_SED" --version 2>&1` in
46174 *GNU*)
46175   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
46176 *)
46177   ac_count=0
46178   $as_echo_n 0123456789 >"conftest.in"
46179   while :
46180   do
46181     cat "conftest.in" "conftest.in" >"conftest.tmp"
46182     mv "conftest.tmp" "conftest.in"
46183     cp "conftest.in" "conftest.nl"
46184     $as_echo '' >> "conftest.nl"
46185     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
46186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46187     ac_count=`expr $ac_count + 1`
46188     if test $ac_count -gt ${ac_path_SED_max-0}; then
46189       # Best one so far, save it but keep looking for a better one
46190       ac_cv_path_SED="$ac_path_SED"
46191       ac_path_SED_max=$ac_count
46192     fi
46193     # 10*(2^10) chars as input seems more than enough
46194     test $ac_count -gt 10 && break
46195   done
46196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46197 esac
46198
46199       $ac_path_SED_found && break 3
46200     done
46201   done
46202 done
46203 IFS=$as_save_IFS
46204   if test -z "$ac_cv_path_SED"; then
46205     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
46206 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
46207    { (exit 1); exit 1; }; }
46208   fi
46209 else
46210   ac_cv_path_SED=$SED
46211 fi
46212
46213 fi
46214 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
46215 $as_echo "$ac_cv_path_SED" >&6; }
46216  SED="$ac_cv_path_SED"
46217   rm -f conftest.sed
46218
46219 test -z "$SED" && SED=sed
46220 Xsed="$SED -e 1s/^X//"
46221
46222
46223
46224
46225
46226
46227
46228
46229
46230
46231
46232 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
46233 $as_echo_n "checking for fgrep... " >&6; }
46234 if test "${ac_cv_path_FGREP+set}" = set; then
46235   $as_echo_n "(cached) " >&6
46236 else
46237   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
46238    then ac_cv_path_FGREP="$GREP -F"
46239    else
46240      if test -z "$FGREP"; then
46241   ac_path_FGREP_found=false
46242   # Loop through the user's path and test for each of PROGNAME-LIST
46243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
46245 do
46246   IFS=$as_save_IFS
46247   test -z "$as_dir" && as_dir=.
46248   for ac_prog in fgrep; do
46249     for ac_exec_ext in '' $ac_executable_extensions; do
46250       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
46251       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
46252 # Check for GNU ac_path_FGREP and select it if it is found.
46253   # Check for GNU $ac_path_FGREP
46254 case `"$ac_path_FGREP" --version 2>&1` in
46255 *GNU*)
46256   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
46257 *)
46258   ac_count=0
46259   $as_echo_n 0123456789 >"conftest.in"
46260   while :
46261   do
46262     cat "conftest.in" "conftest.in" >"conftest.tmp"
46263     mv "conftest.tmp" "conftest.in"
46264     cp "conftest.in" "conftest.nl"
46265     $as_echo 'FGREP' >> "conftest.nl"
46266     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
46267     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46268     ac_count=`expr $ac_count + 1`
46269     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
46270       # Best one so far, save it but keep looking for a better one
46271       ac_cv_path_FGREP="$ac_path_FGREP"
46272       ac_path_FGREP_max=$ac_count
46273     fi
46274     # 10*(2^10) chars as input seems more than enough
46275     test $ac_count -gt 10 && break
46276   done
46277   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46278 esac
46279
46280       $ac_path_FGREP_found && break 3
46281     done
46282   done
46283 done
46284 IFS=$as_save_IFS
46285   if test -z "$ac_cv_path_FGREP"; then
46286     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
46287 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
46288    { (exit 1); exit 1; }; }
46289   fi
46290 else
46291   ac_cv_path_FGREP=$FGREP
46292 fi
46293
46294    fi
46295 fi
46296 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
46297 $as_echo "$ac_cv_path_FGREP" >&6; }
46298  FGREP="$ac_cv_path_FGREP"
46299
46300
46301 test -z "$GREP" && GREP=grep
46302
46303
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314
46315
46316
46317
46318
46319
46320
46321 # Check whether --with-gnu-ld was given.
46322 if test "${with_gnu_ld+set}" = set; then
46323   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
46324 else
46325   with_gnu_ld=no
46326 fi
46327
46328 ac_prog=ld
46329 if test "$GCC" = yes; then
46330   # Check if gcc -print-prog-name=ld gives a path.
46331   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
46332 $as_echo_n "checking for ld used by $CC... " >&6; }
46333   case $host in
46334   *-*-mingw*)
46335     # gcc leaves a trailing carriage return which upsets mingw
46336     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
46337   *)
46338     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
46339   esac
46340   case $ac_prog in
46341     # Accept absolute paths.
46342     [\\/]* | ?:[\\/]*)
46343       re_direlt='/[^/][^/]*/\.\./'
46344       # Canonicalize the pathname of ld
46345       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
46346       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
46347         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
46348       done
46349       test -z "$LD" && LD="$ac_prog"
46350       ;;
46351   "")
46352     # If it fails, then pretend we aren't using GCC.
46353     ac_prog=ld
46354     ;;
46355   *)
46356     # If it is relative, then search for the first ld in PATH.
46357     with_gnu_ld=unknown
46358     ;;
46359   esac
46360 elif test "$with_gnu_ld" = yes; then
46361   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
46362 $as_echo_n "checking for GNU ld... " >&6; }
46363 else
46364   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
46365 $as_echo_n "checking for non-GNU ld... " >&6; }
46366 fi
46367 if test "${lt_cv_path_LD+set}" = set; then
46368   $as_echo_n "(cached) " >&6
46369 else
46370   if test -z "$LD"; then
46371   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
46372   for ac_dir in $PATH; do
46373     IFS="$lt_save_ifs"
46374     test -z "$ac_dir" && ac_dir=.
46375     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
46376       lt_cv_path_LD="$ac_dir/$ac_prog"
46377       # Check to see if the program is GNU ld.  I'd rather use --version,
46378       # but apparently some variants of GNU ld only accept -v.
46379       # Break only if it was the GNU/non-GNU ld that we prefer.
46380       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
46381       *GNU* | *'with BFD'*)
46382         test "$with_gnu_ld" != no && break
46383         ;;
46384       *)
46385         test "$with_gnu_ld" != yes && break
46386         ;;
46387       esac
46388     fi
46389   done
46390   IFS="$lt_save_ifs"
46391 else
46392   lt_cv_path_LD="$LD" # Let the user override the test with a path.
46393 fi
46394 fi
46395
46396 LD="$lt_cv_path_LD"
46397 if test -n "$LD"; then
46398   { $as_echo "$as_me:$LINENO: result: $LD" >&5
46399 $as_echo "$LD" >&6; }
46400 else
46401   { $as_echo "$as_me:$LINENO: result: no" >&5
46402 $as_echo "no" >&6; }
46403 fi
46404 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
46405 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
46406    { (exit 1); exit 1; }; }
46407 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
46408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
46409 if test "${lt_cv_prog_gnu_ld+set}" = set; then
46410   $as_echo_n "(cached) " >&6
46411 else
46412   # I'd rather use --version here, but apparently some GNU lds only accept -v.
46413 case `$LD -v 2>&1 </dev/null` in
46414 *GNU* | *'with BFD'*)
46415   lt_cv_prog_gnu_ld=yes
46416   ;;
46417 *)
46418   lt_cv_prog_gnu_ld=no
46419   ;;
46420 esac
46421 fi
46422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
46423 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
46424 with_gnu_ld=$lt_cv_prog_gnu_ld
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
46435 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
46436 if test "${lt_cv_path_NM+set}" = set; then
46437   $as_echo_n "(cached) " >&6
46438 else
46439   if test -n "$NM"; then
46440   # Let the user override the test.
46441   lt_cv_path_NM="$NM"
46442 else
46443   lt_nm_to_check="${ac_tool_prefix}nm"
46444   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
46445     lt_nm_to_check="$lt_nm_to_check nm"
46446   fi
46447   for lt_tmp_nm in $lt_nm_to_check; do
46448     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
46449     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
46450       IFS="$lt_save_ifs"
46451       test -z "$ac_dir" && ac_dir=.
46452       tmp_nm="$ac_dir/$lt_tmp_nm"
46453       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
46454         # Check to see if the nm accepts a BSD-compat flag.
46455         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
46456         #   nm: unknown option "B" ignored
46457         # Tru64's nm complains that /dev/null is an invalid object file
46458         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
46459         */dev/null* | *'Invalid file or object type'*)
46460           lt_cv_path_NM="$tmp_nm -B"
46461           break
46462           ;;
46463         *)
46464           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
46465           */dev/null*)
46466             lt_cv_path_NM="$tmp_nm -p"
46467             break
46468             ;;
46469           *)
46470             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
46471             continue # so that we can try to find one that supports BSD flags
46472             ;;
46473           esac
46474           ;;
46475         esac
46476       fi
46477     done
46478     IFS="$lt_save_ifs"
46479   done
46480   : ${lt_cv_path_NM=no}
46481 fi
46482 fi
46483 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
46484 $as_echo "$lt_cv_path_NM" >&6; }
46485 if test "$lt_cv_path_NM" != "no"; then
46486   NM="$lt_cv_path_NM"
46487 else
46488   # Didn't find any BSD compatible name lister, look for dumpbin.
46489   if test -n "$ac_tool_prefix"; then
46490   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
46491   do
46492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
46493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
46494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46495 $as_echo_n "checking for $ac_word... " >&6; }
46496 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
46497   $as_echo_n "(cached) " >&6
46498 else
46499   if test -n "$DUMPBIN"; then
46500   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
46501 else
46502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46503 for as_dir in $PATH
46504 do
46505   IFS=$as_save_IFS
46506   test -z "$as_dir" && as_dir=.
46507   for ac_exec_ext in '' $ac_executable_extensions; do
46508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46509     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
46510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46511     break 2
46512   fi
46513 done
46514 done
46515 IFS=$as_save_IFS
46516
46517 fi
46518 fi
46519 DUMPBIN=$ac_cv_prog_DUMPBIN
46520 if test -n "$DUMPBIN"; then
46521   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
46522 $as_echo "$DUMPBIN" >&6; }
46523 else
46524   { $as_echo "$as_me:$LINENO: result: no" >&5
46525 $as_echo "no" >&6; }
46526 fi
46527
46528
46529     test -n "$DUMPBIN" && break
46530   done
46531 fi
46532 if test -z "$DUMPBIN"; then
46533   ac_ct_DUMPBIN=$DUMPBIN
46534   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
46535 do
46536   # Extract the first word of "$ac_prog", so it can be a program name with args.
46537 set dummy $ac_prog; ac_word=$2
46538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46539 $as_echo_n "checking for $ac_word... " >&6; }
46540 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
46541   $as_echo_n "(cached) " >&6
46542 else
46543   if test -n "$ac_ct_DUMPBIN"; then
46544   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
46545 else
46546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46547 for as_dir in $PATH
46548 do
46549   IFS=$as_save_IFS
46550   test -z "$as_dir" && as_dir=.
46551   for ac_exec_ext in '' $ac_executable_extensions; do
46552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46553     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
46554     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46555     break 2
46556   fi
46557 done
46558 done
46559 IFS=$as_save_IFS
46560
46561 fi
46562 fi
46563 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
46564 if test -n "$ac_ct_DUMPBIN"; then
46565   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
46566 $as_echo "$ac_ct_DUMPBIN" >&6; }
46567 else
46568   { $as_echo "$as_me:$LINENO: result: no" >&5
46569 $as_echo "no" >&6; }
46570 fi
46571
46572
46573   test -n "$ac_ct_DUMPBIN" && break
46574 done
46575
46576   if test "x$ac_ct_DUMPBIN" = x; then
46577     DUMPBIN=":"
46578   else
46579     case $cross_compiling:$ac_tool_warned in
46580 yes:)
46581 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46583 ac_tool_warned=yes ;;
46584 esac
46585     DUMPBIN=$ac_ct_DUMPBIN
46586   fi
46587 fi
46588
46589
46590   if test "$DUMPBIN" != ":"; then
46591     NM="$DUMPBIN"
46592   fi
46593 fi
46594 test -z "$NM" && NM=nm
46595
46596
46597
46598
46599
46600
46601 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
46602 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
46603 if test "${lt_cv_nm_interface+set}" = set; then
46604   $as_echo_n "(cached) " >&6
46605 else
46606   lt_cv_nm_interface="BSD nm"
46607   echo "int some_variable = 0;" > conftest.$ac_ext
46608   (eval echo "\"\$as_me:46608: $ac_compile\"" >&5)
46609   (eval "$ac_compile" 2>conftest.err)
46610   cat conftest.err >&5
46611   (eval echo "\"\$as_me:46611: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
46612   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
46613   cat conftest.err >&5
46614   (eval echo "\"\$as_me:46614: output\"" >&5)
46615   cat conftest.out >&5
46616   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
46617     lt_cv_nm_interface="MS dumpbin"
46618   fi
46619   rm -f conftest*
46620 fi
46621 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
46622 $as_echo "$lt_cv_nm_interface" >&6; }
46623
46624 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
46625 $as_echo_n "checking whether ln -s works... " >&6; }
46626 LN_S=$as_ln_s
46627 if test "$LN_S" = "ln -s"; then
46628   { $as_echo "$as_me:$LINENO: result: yes" >&5
46629 $as_echo "yes" >&6; }
46630 else
46631   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46632 $as_echo "no, using $LN_S" >&6; }
46633 fi
46634
46635 # find the maximum length of command line arguments
46636 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
46637 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
46638 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
46639   $as_echo_n "(cached) " >&6
46640 else
46641     i=0
46642   teststring="ABCD"
46643
46644   case $build_os in
46645   msdosdjgpp*)
46646     # On DJGPP, this test can blow up pretty badly due to problems in libc
46647     # (any single argument exceeding 2000 bytes causes a buffer overrun
46648     # during glob expansion).  Even if it were fixed, the result of this
46649     # check would be larger than it should be.
46650     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
46651     ;;
46652
46653   gnu*)
46654     # Under GNU Hurd, this test is not required because there is
46655     # no limit to the length of command line arguments.
46656     # Libtool will interpret -1 as no limit whatsoever
46657     lt_cv_sys_max_cmd_len=-1;
46658     ;;
46659
46660   cygwin* | mingw*)
46661     # On Win9x/ME, this test blows up -- it succeeds, but takes
46662     # about 5 minutes as the teststring grows exponentially.
46663     # Worse, since 9x/ME are not pre-emptively multitasking,
46664     # you end up with a "frozen" computer, even though with patience
46665     # the test eventually succeeds (with a max line length of 256k).
46666     # Instead, let's just punt: use the minimum linelength reported by
46667     # all of the supported platforms: 8192 (on NT/2K/XP).
46668     lt_cv_sys_max_cmd_len=8192;
46669     ;;
46670
46671   amigaos*)
46672     # On AmigaOS with pdksh, this test takes hours, literally.
46673     # So we just punt and use a minimum line length of 8192.
46674     lt_cv_sys_max_cmd_len=8192;
46675     ;;
46676
46677   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
46678     # This has been around since 386BSD, at least.  Likely further.
46679     if test -x /sbin/sysctl; then
46680       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
46681     elif test -x /usr/sbin/sysctl; then
46682       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
46683     else
46684       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
46685     fi
46686     # And add a safety zone
46687     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46688     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46689     ;;
46690
46691   interix*)
46692     # We know the value 262144 and hardcode it with a safety zone (like BSD)
46693     lt_cv_sys_max_cmd_len=196608
46694     ;;
46695
46696   osf*)
46697     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
46698     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
46699     # nice to cause kernel panics so lets avoid the loop below.
46700     # First set a reasonable default.
46701     lt_cv_sys_max_cmd_len=16384
46702     #
46703     if test -x /sbin/sysconfig; then
46704       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
46705         *1*) lt_cv_sys_max_cmd_len=-1 ;;
46706       esac
46707     fi
46708     ;;
46709   sco3.2v5*)
46710     lt_cv_sys_max_cmd_len=102400
46711     ;;
46712   sysv5* | sco5v6* | sysv4.2uw2*)
46713     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
46714     if test -n "$kargmax"; then
46715       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
46716     else
46717       lt_cv_sys_max_cmd_len=32768
46718     fi
46719     ;;
46720   *)
46721     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
46722     if test -n "$lt_cv_sys_max_cmd_len"; then
46723       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46724       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46725     else
46726       # Make teststring a little bigger before we do anything with it.
46727       # a 1K string should be a reasonable start.
46728       for i in 1 2 3 4 5 6 7 8 ; do
46729         teststring=$teststring$teststring
46730       done
46731       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
46732       # If test is not a shell built-in, we'll probably end up computing a
46733       # maximum length that is only half of the actual maximum length, but
46734       # we can't tell.
46735       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
46736                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
46737               test $i != 17 # 1/2 MB should be enough
46738       do
46739         i=`expr $i + 1`
46740         teststring=$teststring$teststring
46741       done
46742       # Only check the string length outside the loop.
46743       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
46744       teststring=
46745       # Add a significant safety factor because C++ compilers can tack on
46746       # massive amounts of additional arguments before passing them to the
46747       # linker.  It appears as though 1/2 is a usable value.
46748       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
46749     fi
46750     ;;
46751   esac
46752
46753 fi
46754
46755 if test -n $lt_cv_sys_max_cmd_len ; then
46756   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
46757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
46758 else
46759   { $as_echo "$as_me:$LINENO: result: none" >&5
46760 $as_echo "none" >&6; }
46761 fi
46762 max_cmd_len=$lt_cv_sys_max_cmd_len
46763
46764
46765
46766
46767
46768
46769 : ${CP="cp -f"}
46770 : ${MV="mv -f"}
46771 : ${RM="rm -f"}
46772
46773 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
46774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
46775 # Try some XSI features
46776 xsi_shell=no
46777 ( _lt_dummy="a/b/c"
46778   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
46779       = c,a/b,, \
46780     && eval 'test $(( 1 + 1 )) -eq 2 \
46781     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
46782   && xsi_shell=yes
46783 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
46784 $as_echo "$xsi_shell" >&6; }
46785
46786
46787 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
46788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
46789 lt_shell_append=no
46790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
46791     >/dev/null 2>&1 \
46792   && lt_shell_append=yes
46793 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
46794 $as_echo "$lt_shell_append" >&6; }
46795
46796
46797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46798   lt_unset=unset
46799 else
46800   lt_unset=false
46801 fi
46802
46803
46804
46805
46806
46807 # test EBCDIC or ASCII
46808 case `echo X|tr X '\101'` in
46809  A) # ASCII based system
46810     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
46811   lt_SP2NL='tr \040 \012'
46812   lt_NL2SP='tr \015\012 \040\040'
46813   ;;
46814  *) # EBCDIC based system
46815   lt_SP2NL='tr \100 \n'
46816   lt_NL2SP='tr \r\n \100\100'
46817   ;;
46818 esac
46819
46820
46821
46822
46823
46824
46825
46826
46827
46828 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
46829 $as_echo_n "checking for $LD option to reload object files... " >&6; }
46830 if test "${lt_cv_ld_reload_flag+set}" = set; then
46831   $as_echo_n "(cached) " >&6
46832 else
46833   lt_cv_ld_reload_flag='-r'
46834 fi
46835 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
46836 $as_echo "$lt_cv_ld_reload_flag" >&6; }
46837 reload_flag=$lt_cv_ld_reload_flag
46838 case $reload_flag in
46839 "" | " "*) ;;
46840 *) reload_flag=" $reload_flag" ;;
46841 esac
46842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
46843 case $host_os in
46844   darwin*)
46845     if test "$GCC" = yes; then
46846       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
46847     else
46848       reload_cmds='$LD$reload_flag -o $output$reload_objs'
46849     fi
46850     ;;
46851 esac
46852
46853
46854
46855
46856
46857
46858
46859
46860
46861
46862 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
46863 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
46864 if test "${lt_cv_deplibs_check_method+set}" = set; then
46865   $as_echo_n "(cached) " >&6
46866 else
46867   lt_cv_file_magic_cmd='$MAGIC_CMD'
46868 lt_cv_file_magic_test_file=
46869 lt_cv_deplibs_check_method='unknown'
46870 # Need to set the preceding variable on all platforms that support
46871 # interlibrary dependencies.
46872 # 'none' -- dependencies not supported.
46873 # `unknown' -- same as none, but documents that we really don't know.
46874 # 'pass_all' -- all dependencies passed with no checks.
46875 # 'test_compile' -- check by making test program.
46876 # 'file_magic [[regex]]' -- check by looking for files in library path
46877 # which responds to the $file_magic_cmd with a given extended regex.
46878 # If you have `file' or equivalent on your system and you're not sure
46879 # whether `pass_all' will *always* work, you probably want this one.
46880
46881 case $host_os in
46882 aix[4-9]*)
46883   lt_cv_deplibs_check_method=pass_all
46884   ;;
46885
46886 beos*)
46887   lt_cv_deplibs_check_method=pass_all
46888   ;;
46889
46890 bsdi[45]*)
46891   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
46892   lt_cv_file_magic_cmd='/usr/bin/file -L'
46893   lt_cv_file_magic_test_file=/shlib/libc.so
46894   ;;
46895
46896 cygwin*)
46897   # func_win32_libid is a shell function defined in ltmain.sh
46898   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
46899   lt_cv_file_magic_cmd='func_win32_libid'
46900   ;;
46901
46902 mingw* | pw32*)
46903   # Base MSYS/MinGW do not provide the 'file' command needed by
46904   # func_win32_libid shell function, so use a weaker test based on 'objdump',
46905   # unless we find 'file', for example because we are cross-compiling.
46906   if ( file / ) >/dev/null 2>&1; then
46907     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
46908     lt_cv_file_magic_cmd='func_win32_libid'
46909   else
46910     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
46911     lt_cv_file_magic_cmd='$OBJDUMP -f'
46912   fi
46913   ;;
46914
46915 darwin* | rhapsody*)
46916   lt_cv_deplibs_check_method=pass_all
46917   ;;
46918
46919 freebsd* | dragonfly*)
46920   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
46921     case $host_cpu in
46922     i*86 )
46923       # Not sure whether the presence of OpenBSD here was a mistake.
46924       # Let's accept both of them until this is cleared up.
46925       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
46926       lt_cv_file_magic_cmd=/usr/bin/file
46927       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
46928       ;;
46929     esac
46930   else
46931     lt_cv_deplibs_check_method=pass_all
46932   fi
46933   ;;
46934
46935 gnu*)
46936   lt_cv_deplibs_check_method=pass_all
46937   ;;
46938
46939 hpux10.20* | hpux11*)
46940   lt_cv_file_magic_cmd=/usr/bin/file
46941   case $host_cpu in
46942   ia64*)
46943     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
46944     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
46945     ;;
46946   hppa*64*)
46947     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]'
46948     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
46949     ;;
46950   *)
46951     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
46952     lt_cv_file_magic_test_file=/usr/lib/libc.sl
46953     ;;
46954   esac
46955   ;;
46956
46957 interix[3-9]*)
46958   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
46959   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
46960   ;;
46961
46962 irix5* | irix6* | nonstopux*)
46963   case $LD in
46964   *-32|*"-32 ") libmagic=32-bit;;
46965   *-n32|*"-n32 ") libmagic=N32;;
46966   *-64|*"-64 ") libmagic=64-bit;;
46967   *) libmagic=never-match;;
46968   esac
46969   lt_cv_deplibs_check_method=pass_all
46970   ;;
46971
46972 # This must be Linux ELF.
46973 linux* | k*bsd*-gnu)
46974   lt_cv_deplibs_check_method=pass_all
46975   ;;
46976
46977 netbsd*)
46978   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
46979     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
46980   else
46981     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
46982   fi
46983   ;;
46984
46985 newos6*)
46986   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
46987   lt_cv_file_magic_cmd=/usr/bin/file
46988   lt_cv_file_magic_test_file=/usr/lib/libnls.so
46989   ;;
46990
46991 *nto* | *qnx*)
46992   lt_cv_deplibs_check_method=pass_all
46993   ;;
46994
46995 openbsd*)
46996   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46997     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
46998   else
46999     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
47000   fi
47001   ;;
47002
47003 osf3* | osf4* | osf5*)
47004   lt_cv_deplibs_check_method=pass_all
47005   ;;
47006
47007 rdos*)
47008   lt_cv_deplibs_check_method=pass_all
47009   ;;
47010
47011 solaris*)
47012   lt_cv_deplibs_check_method=pass_all
47013   ;;
47014
47015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
47016   lt_cv_deplibs_check_method=pass_all
47017   ;;
47018
47019 sysv4 | sysv4.3*)
47020   case $host_vendor in
47021   motorola)
47022     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]'
47023     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
47024     ;;
47025   ncr)
47026     lt_cv_deplibs_check_method=pass_all
47027     ;;
47028   sequent)
47029     lt_cv_file_magic_cmd='/bin/file'
47030     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
47031     ;;
47032   sni)
47033     lt_cv_file_magic_cmd='/bin/file'
47034     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
47035     lt_cv_file_magic_test_file=/lib/libc.so
47036     ;;
47037   siemens)
47038     lt_cv_deplibs_check_method=pass_all
47039     ;;
47040   pc)
47041     lt_cv_deplibs_check_method=pass_all
47042     ;;
47043   esac
47044   ;;
47045
47046 tpf*)
47047   lt_cv_deplibs_check_method=pass_all
47048   ;;
47049 esac
47050
47051 fi
47052 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
47053 $as_echo "$lt_cv_deplibs_check_method" >&6; }
47054 file_magic_cmd=$lt_cv_file_magic_cmd
47055 deplibs_check_method=$lt_cv_deplibs_check_method
47056 test -z "$deplibs_check_method" && deplibs_check_method=unknown
47057
47058
47059
47060
47061
47062
47063
47064
47065
47066
47067
47068
47069 if test -n "$ac_tool_prefix"; then
47070   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47071 set dummy ${ac_tool_prefix}ar; ac_word=$2
47072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47073 $as_echo_n "checking for $ac_word... " >&6; }
47074 if test "${ac_cv_prog_AR+set}" = set; then
47075   $as_echo_n "(cached) " >&6
47076 else
47077   if test -n "$AR"; then
47078   ac_cv_prog_AR="$AR" # Let the user override the test.
47079 else
47080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47081 for as_dir in $PATH
47082 do
47083   IFS=$as_save_IFS
47084   test -z "$as_dir" && as_dir=.
47085   for ac_exec_ext in '' $ac_executable_extensions; do
47086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47087     ac_cv_prog_AR="${ac_tool_prefix}ar"
47088     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47089     break 2
47090   fi
47091 done
47092 done
47093 IFS=$as_save_IFS
47094
47095 fi
47096 fi
47097 AR=$ac_cv_prog_AR
47098 if test -n "$AR"; then
47099   { $as_echo "$as_me:$LINENO: result: $AR" >&5
47100 $as_echo "$AR" >&6; }
47101 else
47102   { $as_echo "$as_me:$LINENO: result: no" >&5
47103 $as_echo "no" >&6; }
47104 fi
47105
47106
47107 fi
47108 if test -z "$ac_cv_prog_AR"; then
47109   ac_ct_AR=$AR
47110   # Extract the first word of "ar", so it can be a program name with args.
47111 set dummy ar; ac_word=$2
47112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47113 $as_echo_n "checking for $ac_word... " >&6; }
47114 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47115   $as_echo_n "(cached) " >&6
47116 else
47117   if test -n "$ac_ct_AR"; then
47118   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47119 else
47120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47121 for as_dir in $PATH
47122 do
47123   IFS=$as_save_IFS
47124   test -z "$as_dir" && as_dir=.
47125   for ac_exec_ext in '' $ac_executable_extensions; do
47126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47127     ac_cv_prog_ac_ct_AR="ar"
47128     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47129     break 2
47130   fi
47131 done
47132 done
47133 IFS=$as_save_IFS
47134
47135 fi
47136 fi
47137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47138 if test -n "$ac_ct_AR"; then
47139   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47140 $as_echo "$ac_ct_AR" >&6; }
47141 else
47142   { $as_echo "$as_me:$LINENO: result: no" >&5
47143 $as_echo "no" >&6; }
47144 fi
47145
47146   if test "x$ac_ct_AR" = x; then
47147     AR="false"
47148   else
47149     case $cross_compiling:$ac_tool_warned in
47150 yes:)
47151 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47153 ac_tool_warned=yes ;;
47154 esac
47155     AR=$ac_ct_AR
47156   fi
47157 else
47158   AR="$ac_cv_prog_AR"
47159 fi
47160
47161 test -z "$AR" && AR=ar
47162 test -z "$AR_FLAGS" && AR_FLAGS=cru
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174 if test -n "$ac_tool_prefix"; then
47175   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47176 set dummy ${ac_tool_prefix}strip; ac_word=$2
47177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47178 $as_echo_n "checking for $ac_word... " >&6; }
47179 if test "${ac_cv_prog_STRIP+set}" = set; then
47180   $as_echo_n "(cached) " >&6
47181 else
47182   if test -n "$STRIP"; then
47183   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47184 else
47185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47186 for as_dir in $PATH
47187 do
47188   IFS=$as_save_IFS
47189   test -z "$as_dir" && as_dir=.
47190   for ac_exec_ext in '' $ac_executable_extensions; do
47191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47192     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47194     break 2
47195   fi
47196 done
47197 done
47198 IFS=$as_save_IFS
47199
47200 fi
47201 fi
47202 STRIP=$ac_cv_prog_STRIP
47203 if test -n "$STRIP"; then
47204   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
47205 $as_echo "$STRIP" >&6; }
47206 else
47207   { $as_echo "$as_me:$LINENO: result: no" >&5
47208 $as_echo "no" >&6; }
47209 fi
47210
47211
47212 fi
47213 if test -z "$ac_cv_prog_STRIP"; then
47214   ac_ct_STRIP=$STRIP
47215   # Extract the first word of "strip", so it can be a program name with args.
47216 set dummy strip; ac_word=$2
47217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47218 $as_echo_n "checking for $ac_word... " >&6; }
47219 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47220   $as_echo_n "(cached) " >&6
47221 else
47222   if test -n "$ac_ct_STRIP"; then
47223   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47224 else
47225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47226 for as_dir in $PATH
47227 do
47228   IFS=$as_save_IFS
47229   test -z "$as_dir" && as_dir=.
47230   for ac_exec_ext in '' $ac_executable_extensions; do
47231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47232     ac_cv_prog_ac_ct_STRIP="strip"
47233     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47234     break 2
47235   fi
47236 done
47237 done
47238 IFS=$as_save_IFS
47239
47240 fi
47241 fi
47242 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47243 if test -n "$ac_ct_STRIP"; then
47244   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47245 $as_echo "$ac_ct_STRIP" >&6; }
47246 else
47247   { $as_echo "$as_me:$LINENO: result: no" >&5
47248 $as_echo "no" >&6; }
47249 fi
47250
47251   if test "x$ac_ct_STRIP" = x; then
47252     STRIP=":"
47253   else
47254     case $cross_compiling:$ac_tool_warned in
47255 yes:)
47256 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47258 ac_tool_warned=yes ;;
47259 esac
47260     STRIP=$ac_ct_STRIP
47261   fi
47262 else
47263   STRIP="$ac_cv_prog_STRIP"
47264 fi
47265
47266 test -z "$STRIP" && STRIP=:
47267
47268
47269
47270
47271
47272
47273 if test -n "$ac_tool_prefix"; then
47274   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47277 $as_echo_n "checking for $ac_word... " >&6; }
47278 if test "${ac_cv_prog_RANLIB+set}" = set; then
47279   $as_echo_n "(cached) " >&6
47280 else
47281   if test -n "$RANLIB"; then
47282   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47283 else
47284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47285 for as_dir in $PATH
47286 do
47287   IFS=$as_save_IFS
47288   test -z "$as_dir" && as_dir=.
47289   for ac_exec_ext in '' $ac_executable_extensions; do
47290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47291     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47292     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47293     break 2
47294   fi
47295 done
47296 done
47297 IFS=$as_save_IFS
47298
47299 fi
47300 fi
47301 RANLIB=$ac_cv_prog_RANLIB
47302 if test -n "$RANLIB"; then
47303   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
47304 $as_echo "$RANLIB" >&6; }
47305 else
47306   { $as_echo "$as_me:$LINENO: result: no" >&5
47307 $as_echo "no" >&6; }
47308 fi
47309
47310
47311 fi
47312 if test -z "$ac_cv_prog_RANLIB"; then
47313   ac_ct_RANLIB=$RANLIB
47314   # Extract the first word of "ranlib", so it can be a program name with args.
47315 set dummy ranlib; ac_word=$2
47316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47317 $as_echo_n "checking for $ac_word... " >&6; }
47318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47319   $as_echo_n "(cached) " >&6
47320 else
47321   if test -n "$ac_ct_RANLIB"; then
47322   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47323 else
47324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47325 for as_dir in $PATH
47326 do
47327   IFS=$as_save_IFS
47328   test -z "$as_dir" && as_dir=.
47329   for ac_exec_ext in '' $ac_executable_extensions; do
47330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47331     ac_cv_prog_ac_ct_RANLIB="ranlib"
47332     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47333     break 2
47334   fi
47335 done
47336 done
47337 IFS=$as_save_IFS
47338
47339 fi
47340 fi
47341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47342 if test -n "$ac_ct_RANLIB"; then
47343   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47344 $as_echo "$ac_ct_RANLIB" >&6; }
47345 else
47346   { $as_echo "$as_me:$LINENO: result: no" >&5
47347 $as_echo "no" >&6; }
47348 fi
47349
47350   if test "x$ac_ct_RANLIB" = x; then
47351     RANLIB=":"
47352   else
47353     case $cross_compiling:$ac_tool_warned in
47354 yes:)
47355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47357 ac_tool_warned=yes ;;
47358 esac
47359     RANLIB=$ac_ct_RANLIB
47360   fi
47361 else
47362   RANLIB="$ac_cv_prog_RANLIB"
47363 fi
47364
47365 test -z "$RANLIB" && RANLIB=:
47366
47367
47368
47369
47370
47371
47372 # Determine commands to create old-style static archives.
47373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
47374 old_postinstall_cmds='chmod 644 $oldlib'
47375 old_postuninstall_cmds=
47376
47377 if test -n "$RANLIB"; then
47378   case $host_os in
47379   openbsd*)
47380     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
47381     ;;
47382   *)
47383     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
47384     ;;
47385   esac
47386   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
47387 fi
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
47399
47400
47401
47402
47403
47404
47405
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422 # If no C compiler was specified, use CC.
47423 LTCC=${LTCC-"$CC"}
47424
47425 # If no C compiler flags were specified, use CFLAGS.
47426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
47427
47428 # Allow CC to be a program name with arguments.
47429 compiler=$CC
47430
47431
47432 # Check for command to grab the raw symbol name followed by C symbol from nm.
47433 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
47434 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
47435 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
47436   $as_echo_n "(cached) " >&6
47437 else
47438
47439 # These are sane defaults that work on at least a few old systems.
47440 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
47441
47442 # Character class describing NM global symbol codes.
47443 symcode='[BCDEGRST]'
47444
47445 # Regexp to match symbols that can be accessed directly from C.
47446 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
47447
47448 # Define system-specific variables.
47449 case $host_os in
47450 aix*)
47451   symcode='[BCDT]'
47452   ;;
47453 cygwin* | mingw* | pw32*)
47454   symcode='[ABCDGISTW]'
47455   ;;
47456 hpux*)
47457   if test "$host_cpu" = ia64; then
47458     symcode='[ABCDEGRST]'
47459   fi
47460   ;;
47461 irix* | nonstopux*)
47462   symcode='[BCDEGRST]'
47463   ;;
47464 osf*)
47465   symcode='[BCDEGQRST]'
47466   ;;
47467 solaris*)
47468   symcode='[BDRT]'
47469   ;;
47470 sco3.2v5*)
47471   symcode='[DT]'
47472   ;;
47473 sysv4.2uw2*)
47474   symcode='[DT]'
47475   ;;
47476 sysv5* | sco5v6* | unixware* | OpenUNIX*)
47477   symcode='[ABDT]'
47478   ;;
47479 sysv4)
47480   symcode='[DFNSTU]'
47481   ;;
47482 esac
47483
47484 # If we're using GNU nm, then use its standard symbol codes.
47485 case `$NM -V 2>&1` in
47486 *GNU* | *'with BFD'*)
47487   symcode='[ABCDGIRSTW]' ;;
47488 esac
47489
47490 # Transform an extracted symbol line into a proper C declaration.
47491 # Some systems (esp. on ia64) link data and code symbols differently,
47492 # so use this general approach.
47493 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
47494
47495 # Transform an extracted symbol line into symbol name and symbol address
47496 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
47497 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'"
47498
47499 # Handle CRLF in mingw tool chain
47500 opt_cr=
47501 case $build_os in
47502 mingw*)
47503   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
47504   ;;
47505 esac
47506
47507 # Try without a prefix underscore, then with it.
47508 for ac_symprfx in "" "_"; do
47509
47510   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
47511   symxfrm="\\1 $ac_symprfx\\2 \\2"
47512
47513   # Write the raw and C identifiers.
47514   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
47515     # Fake it for dumpbin and say T for any non-static function
47516     # and D for any global variable.
47517     # Also find C++ and __fastcall symbols from MSVC++,
47518     # which start with @ or ?.
47519     lt_cv_sys_global_symbol_pipe="$AWK '"\
47520 "     {last_section=section; section=\$ 3};"\
47521 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
47522 "     \$ 0!~/External *\|/{next};"\
47523 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
47524 "     {if(hide[section]) next};"\
47525 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
47526 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
47527 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
47528 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
47529 "     ' prfx=^$ac_symprfx"
47530   else
47531     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
47532   fi
47533
47534   # Check to see that the pipe works correctly.
47535   pipe_works=no
47536
47537   rm -f conftest*
47538   cat > conftest.$ac_ext <<_LT_EOF
47539 #ifdef __cplusplus
47540 extern "C" {
47541 #endif
47542 char nm_test_var;
47543 void nm_test_func(void);
47544 void nm_test_func(void){}
47545 #ifdef __cplusplus
47546 }
47547 #endif
47548 int main(){nm_test_var='a';nm_test_func();return(0);}
47549 _LT_EOF
47550
47551   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47552   (eval $ac_compile) 2>&5
47553   ac_status=$?
47554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47555   (exit $ac_status); }; then
47556     # Now try to grab the symbols.
47557     nlist=conftest.nm
47558     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
47559   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
47560   ac_status=$?
47561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47562   (exit $ac_status); } && test -s "$nlist"; then
47563       # Try sorting and uniquifying the output.
47564       if sort "$nlist" | uniq > "$nlist"T; then
47565         mv -f "$nlist"T "$nlist"
47566       else
47567         rm -f "$nlist"T
47568       fi
47569
47570       # Make sure that we snagged all the symbols we need.
47571       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
47572         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
47573           cat <<_LT_EOF > conftest.$ac_ext
47574 #ifdef __cplusplus
47575 extern "C" {
47576 #endif
47577
47578 _LT_EOF
47579           # Now generate the symbol file.
47580           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
47581
47582           cat <<_LT_EOF >> conftest.$ac_ext
47583
47584 /* The mapping between symbol names and symbols.  */
47585 const struct {
47586   const char *name;
47587   void       *address;
47588 }
47589 lt__PROGRAM__LTX_preloaded_symbols[] =
47590 {
47591   { "@PROGRAM@", (void *) 0 },
47592 _LT_EOF
47593           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
47594           cat <<\_LT_EOF >> conftest.$ac_ext
47595   {0, (void *) 0}
47596 };
47597
47598 /* This works around a problem in FreeBSD linker */
47599 #ifdef FREEBSD_WORKAROUND
47600 static const void *lt_preloaded_setup() {
47601   return lt__PROGRAM__LTX_preloaded_symbols;
47602 }
47603 #endif
47604
47605 #ifdef __cplusplus
47606 }
47607 #endif
47608 _LT_EOF
47609           # Now try linking the two files.
47610           mv conftest.$ac_objext conftstm.$ac_objext
47611           lt_save_LIBS="$LIBS"
47612           lt_save_CFLAGS="$CFLAGS"
47613           LIBS="conftstm.$ac_objext"
47614           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
47615           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47616   (eval $ac_link) 2>&5
47617   ac_status=$?
47618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47619   (exit $ac_status); } && test -s conftest${ac_exeext}; then
47620             pipe_works=yes
47621           fi
47622           LIBS="$lt_save_LIBS"
47623           CFLAGS="$lt_save_CFLAGS"
47624         else
47625           echo "cannot find nm_test_func in $nlist" >&5
47626         fi
47627       else
47628         echo "cannot find nm_test_var in $nlist" >&5
47629       fi
47630     else
47631       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
47632     fi
47633   else
47634     echo "$progname: failed program was:" >&5
47635     cat conftest.$ac_ext >&5
47636   fi
47637   rm -rf conftest* conftst*
47638
47639   # Do not use the global_symbol_pipe unless it works.
47640   if test "$pipe_works" = yes; then
47641     break
47642   else
47643     lt_cv_sys_global_symbol_pipe=
47644   fi
47645 done
47646
47647 fi
47648
47649 if test -z "$lt_cv_sys_global_symbol_pipe"; then
47650   lt_cv_sys_global_symbol_to_cdecl=
47651 fi
47652 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
47653   { $as_echo "$as_me:$LINENO: result: failed" >&5
47654 $as_echo "failed" >&6; }
47655 else
47656   { $as_echo "$as_me:$LINENO: result: ok" >&5
47657 $as_echo "ok" >&6; }
47658 fi
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
47677
47678
47679
47680
47681 # Check whether --enable-libtool-lock was given.
47682 if test "${enable_libtool_lock+set}" = set; then
47683   enableval=$enable_libtool_lock;
47684 fi
47685
47686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
47687
47688 # Some flags need to be propagated to the compiler or linker for good
47689 # libtool support.
47690 case $host in
47691 ia64-*-hpux*)
47692   # Find out which ABI we are using.
47693   echo 'int i;' > conftest.$ac_ext
47694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47695   (eval $ac_compile) 2>&5
47696   ac_status=$?
47697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698   (exit $ac_status); }; then
47699     case `/usr/bin/file conftest.$ac_objext` in
47700       *ELF-32*)
47701         HPUX_IA64_MODE="32"
47702         ;;
47703       *ELF-64*)
47704         HPUX_IA64_MODE="64"
47705         ;;
47706     esac
47707   fi
47708   rm -rf conftest*
47709   ;;
47710 *-*-irix6*)
47711   # Find out which ABI we are using.
47712   echo '#line 47712 "configure"' > conftest.$ac_ext
47713   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47714   (eval $ac_compile) 2>&5
47715   ac_status=$?
47716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717   (exit $ac_status); }; then
47718     if test "$lt_cv_prog_gnu_ld" = yes; then
47719       case `/usr/bin/file conftest.$ac_objext` in
47720         *32-bit*)
47721           LD="${LD-ld} -melf32bsmip"
47722           ;;
47723         *N32*)
47724           LD="${LD-ld} -melf32bmipn32"
47725           ;;
47726         *64-bit*)
47727           LD="${LD-ld} -melf64bmip"
47728         ;;
47729       esac
47730     else
47731       case `/usr/bin/file conftest.$ac_objext` in
47732         *32-bit*)
47733           LD="${LD-ld} -32"
47734           ;;
47735         *N32*)
47736           LD="${LD-ld} -n32"
47737           ;;
47738         *64-bit*)
47739           LD="${LD-ld} -64"
47740           ;;
47741       esac
47742     fi
47743   fi
47744   rm -rf conftest*
47745   ;;
47746
47747 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
47748 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
47749   # Find out which ABI we are using.
47750   echo 'int i;' > conftest.$ac_ext
47751   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47752   (eval $ac_compile) 2>&5
47753   ac_status=$?
47754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47755   (exit $ac_status); }; then
47756     case `/usr/bin/file conftest.o` in
47757       *32-bit*)
47758         case $host in
47759           x86_64-*kfreebsd*-gnu)
47760             LD="${LD-ld} -m elf_i386_fbsd"
47761             ;;
47762           x86_64-*linux*)
47763             LD="${LD-ld} -m elf_i386"
47764             ;;
47765           ppc64-*linux*|powerpc64-*linux*)
47766             LD="${LD-ld} -m elf32ppclinux"
47767             ;;
47768           s390x-*linux*)
47769             LD="${LD-ld} -m elf_s390"
47770             ;;
47771           sparc64-*linux*)
47772             LD="${LD-ld} -m elf32_sparc"
47773             ;;
47774         esac
47775         ;;
47776       *64-bit*)
47777         case $host in
47778           x86_64-*kfreebsd*-gnu)
47779             LD="${LD-ld} -m elf_x86_64_fbsd"
47780             ;;
47781           x86_64-*linux*)
47782             LD="${LD-ld} -m elf_x86_64"
47783             ;;
47784           ppc*-*linux*|powerpc*-*linux*)
47785             LD="${LD-ld} -m elf64ppc"
47786             ;;
47787           s390*-*linux*|s390*-*tpf*)
47788             LD="${LD-ld} -m elf64_s390"
47789             ;;
47790           sparc*-*linux*)
47791             LD="${LD-ld} -m elf64_sparc"
47792             ;;
47793         esac
47794         ;;
47795     esac
47796   fi
47797   rm -rf conftest*
47798   ;;
47799
47800 *-*-sco3.2v5*)
47801   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
47802   SAVE_CFLAGS="$CFLAGS"
47803   CFLAGS="$CFLAGS -belf"
47804   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
47805 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
47806 if test "${lt_cv_cc_needs_belf+set}" = set; then
47807   $as_echo_n "(cached) " >&6
47808 else
47809   ac_ext=c
47810 ac_cpp='$CPP $CPPFLAGS'
47811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47814
47815      cat >conftest.$ac_ext <<_ACEOF
47816 /* confdefs.h.  */
47817 _ACEOF
47818 cat confdefs.h >>conftest.$ac_ext
47819 cat >>conftest.$ac_ext <<_ACEOF
47820 /* end confdefs.h.  */
47821
47822 int
47823 main ()
47824 {
47825
47826   ;
47827   return 0;
47828 }
47829 _ACEOF
47830 rm -f conftest.$ac_objext conftest$ac_exeext
47831 if { (ac_try="$ac_link"
47832 case "(($ac_try" in
47833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47834   *) ac_try_echo=$ac_try;;
47835 esac
47836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47837 $as_echo "$ac_try_echo") >&5
47838   (eval "$ac_link") 2>conftest.er1
47839   ac_status=$?
47840   grep -v '^ *+' conftest.er1 >conftest.err
47841   rm -f conftest.er1
47842   cat conftest.err >&5
47843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47844   (exit $ac_status); } && {
47845          test -z "$ac_c_werror_flag" ||
47846          test ! -s conftest.err
47847        } && test -s conftest$ac_exeext && {
47848          test "$cross_compiling" = yes ||
47849          $as_test_x conftest$ac_exeext
47850        }; then
47851   lt_cv_cc_needs_belf=yes
47852 else
47853   $as_echo "$as_me: failed program was:" >&5
47854 sed 's/^/| /' conftest.$ac_ext >&5
47855
47856         lt_cv_cc_needs_belf=no
47857 fi
47858
47859 rm -rf conftest.dSYM
47860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47861       conftest$ac_exeext conftest.$ac_ext
47862      ac_ext=c
47863 ac_cpp='$CPP $CPPFLAGS'
47864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47867
47868 fi
47869 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
47870 $as_echo "$lt_cv_cc_needs_belf" >&6; }
47871   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
47872     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
47873     CFLAGS="$SAVE_CFLAGS"
47874   fi
47875   ;;
47876 sparc*-*solaris*)
47877   # Find out which ABI we are using.
47878   echo 'int i;' > conftest.$ac_ext
47879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47880   (eval $ac_compile) 2>&5
47881   ac_status=$?
47882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47883   (exit $ac_status); }; then
47884     case `/usr/bin/file conftest.o` in
47885     *64-bit*)
47886       case $lt_cv_prog_gnu_ld in
47887       yes*) LD="${LD-ld} -m elf64_sparc" ;;
47888       *)
47889         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
47890           LD="${LD-ld} -64"
47891         fi
47892         ;;
47893       esac
47894       ;;
47895     esac
47896   fi
47897   rm -rf conftest*
47898   ;;
47899 esac
47900
47901 need_locks="$enable_libtool_lock"
47902
47903
47904   case $host_os in
47905     rhapsody* | darwin*)
47906     if test -n "$ac_tool_prefix"; then
47907   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
47908 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
47909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47910 $as_echo_n "checking for $ac_word... " >&6; }
47911 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
47912   $as_echo_n "(cached) " >&6
47913 else
47914   if test -n "$DSYMUTIL"; then
47915   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
47916 else
47917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47918 for as_dir in $PATH
47919 do
47920   IFS=$as_save_IFS
47921   test -z "$as_dir" && as_dir=.
47922   for ac_exec_ext in '' $ac_executable_extensions; do
47923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47924     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
47925     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47926     break 2
47927   fi
47928 done
47929 done
47930 IFS=$as_save_IFS
47931
47932 fi
47933 fi
47934 DSYMUTIL=$ac_cv_prog_DSYMUTIL
47935 if test -n "$DSYMUTIL"; then
47936   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
47937 $as_echo "$DSYMUTIL" >&6; }
47938 else
47939   { $as_echo "$as_me:$LINENO: result: no" >&5
47940 $as_echo "no" >&6; }
47941 fi
47942
47943
47944 fi
47945 if test -z "$ac_cv_prog_DSYMUTIL"; then
47946   ac_ct_DSYMUTIL=$DSYMUTIL
47947   # Extract the first word of "dsymutil", so it can be a program name with args.
47948 set dummy dsymutil; ac_word=$2
47949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47950 $as_echo_n "checking for $ac_word... " >&6; }
47951 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
47952   $as_echo_n "(cached) " >&6
47953 else
47954   if test -n "$ac_ct_DSYMUTIL"; then
47955   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
47956 else
47957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47958 for as_dir in $PATH
47959 do
47960   IFS=$as_save_IFS
47961   test -z "$as_dir" && as_dir=.
47962   for ac_exec_ext in '' $ac_executable_extensions; do
47963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47964     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
47965     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47966     break 2
47967   fi
47968 done
47969 done
47970 IFS=$as_save_IFS
47971
47972 fi
47973 fi
47974 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
47975 if test -n "$ac_ct_DSYMUTIL"; then
47976   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
47977 $as_echo "$ac_ct_DSYMUTIL" >&6; }
47978 else
47979   { $as_echo "$as_me:$LINENO: result: no" >&5
47980 $as_echo "no" >&6; }
47981 fi
47982
47983   if test "x$ac_ct_DSYMUTIL" = x; then
47984     DSYMUTIL=":"
47985   else
47986     case $cross_compiling:$ac_tool_warned in
47987 yes:)
47988 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47990 ac_tool_warned=yes ;;
47991 esac
47992     DSYMUTIL=$ac_ct_DSYMUTIL
47993   fi
47994 else
47995   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
47996 fi
47997
47998     if test -n "$ac_tool_prefix"; then
47999   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
48000 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
48001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48002 $as_echo_n "checking for $ac_word... " >&6; }
48003 if test "${ac_cv_prog_NMEDIT+set}" = set; then
48004   $as_echo_n "(cached) " >&6
48005 else
48006   if test -n "$NMEDIT"; then
48007   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
48008 else
48009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48010 for as_dir in $PATH
48011 do
48012   IFS=$as_save_IFS
48013   test -z "$as_dir" && as_dir=.
48014   for ac_exec_ext in '' $ac_executable_extensions; do
48015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48016     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
48017     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48018     break 2
48019   fi
48020 done
48021 done
48022 IFS=$as_save_IFS
48023
48024 fi
48025 fi
48026 NMEDIT=$ac_cv_prog_NMEDIT
48027 if test -n "$NMEDIT"; then
48028   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
48029 $as_echo "$NMEDIT" >&6; }
48030 else
48031   { $as_echo "$as_me:$LINENO: result: no" >&5
48032 $as_echo "no" >&6; }
48033 fi
48034
48035
48036 fi
48037 if test -z "$ac_cv_prog_NMEDIT"; then
48038   ac_ct_NMEDIT=$NMEDIT
48039   # Extract the first word of "nmedit", so it can be a program name with args.
48040 set dummy nmedit; ac_word=$2
48041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48042 $as_echo_n "checking for $ac_word... " >&6; }
48043 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
48044   $as_echo_n "(cached) " >&6
48045 else
48046   if test -n "$ac_ct_NMEDIT"; then
48047   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
48048 else
48049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48050 for as_dir in $PATH
48051 do
48052   IFS=$as_save_IFS
48053   test -z "$as_dir" && as_dir=.
48054   for ac_exec_ext in '' $ac_executable_extensions; do
48055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48056     ac_cv_prog_ac_ct_NMEDIT="nmedit"
48057     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48058     break 2
48059   fi
48060 done
48061 done
48062 IFS=$as_save_IFS
48063
48064 fi
48065 fi
48066 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
48067 if test -n "$ac_ct_NMEDIT"; then
48068   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
48069 $as_echo "$ac_ct_NMEDIT" >&6; }
48070 else
48071   { $as_echo "$as_me:$LINENO: result: no" >&5
48072 $as_echo "no" >&6; }
48073 fi
48074
48075   if test "x$ac_ct_NMEDIT" = x; then
48076     NMEDIT=":"
48077   else
48078     case $cross_compiling:$ac_tool_warned in
48079 yes:)
48080 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48082 ac_tool_warned=yes ;;
48083 esac
48084     NMEDIT=$ac_ct_NMEDIT
48085   fi
48086 else
48087   NMEDIT="$ac_cv_prog_NMEDIT"
48088 fi
48089
48090     if test -n "$ac_tool_prefix"; then
48091   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
48092 set dummy ${ac_tool_prefix}lipo; ac_word=$2
48093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48094 $as_echo_n "checking for $ac_word... " >&6; }
48095 if test "${ac_cv_prog_LIPO+set}" = set; then
48096   $as_echo_n "(cached) " >&6
48097 else
48098   if test -n "$LIPO"; then
48099   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
48100 else
48101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48102 for as_dir in $PATH
48103 do
48104   IFS=$as_save_IFS
48105   test -z "$as_dir" && as_dir=.
48106   for ac_exec_ext in '' $ac_executable_extensions; do
48107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48108     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
48109     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48110     break 2
48111   fi
48112 done
48113 done
48114 IFS=$as_save_IFS
48115
48116 fi
48117 fi
48118 LIPO=$ac_cv_prog_LIPO
48119 if test -n "$LIPO"; then
48120   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
48121 $as_echo "$LIPO" >&6; }
48122 else
48123   { $as_echo "$as_me:$LINENO: result: no" >&5
48124 $as_echo "no" >&6; }
48125 fi
48126
48127
48128 fi
48129 if test -z "$ac_cv_prog_LIPO"; then
48130   ac_ct_LIPO=$LIPO
48131   # Extract the first word of "lipo", so it can be a program name with args.
48132 set dummy lipo; ac_word=$2
48133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48134 $as_echo_n "checking for $ac_word... " >&6; }
48135 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
48136   $as_echo_n "(cached) " >&6
48137 else
48138   if test -n "$ac_ct_LIPO"; then
48139   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
48140 else
48141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48142 for as_dir in $PATH
48143 do
48144   IFS=$as_save_IFS
48145   test -z "$as_dir" && as_dir=.
48146   for ac_exec_ext in '' $ac_executable_extensions; do
48147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48148     ac_cv_prog_ac_ct_LIPO="lipo"
48149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48150     break 2
48151   fi
48152 done
48153 done
48154 IFS=$as_save_IFS
48155
48156 fi
48157 fi
48158 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
48159 if test -n "$ac_ct_LIPO"; then
48160   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
48161 $as_echo "$ac_ct_LIPO" >&6; }
48162 else
48163   { $as_echo "$as_me:$LINENO: result: no" >&5
48164 $as_echo "no" >&6; }
48165 fi
48166
48167   if test "x$ac_ct_LIPO" = x; then
48168     LIPO=":"
48169   else
48170     case $cross_compiling:$ac_tool_warned in
48171 yes:)
48172 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48174 ac_tool_warned=yes ;;
48175 esac
48176     LIPO=$ac_ct_LIPO
48177   fi
48178 else
48179   LIPO="$ac_cv_prog_LIPO"
48180 fi
48181
48182     if test -n "$ac_tool_prefix"; then
48183   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
48184 set dummy ${ac_tool_prefix}otool; ac_word=$2
48185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48186 $as_echo_n "checking for $ac_word... " >&6; }
48187 if test "${ac_cv_prog_OTOOL+set}" = set; then
48188   $as_echo_n "(cached) " >&6
48189 else
48190   if test -n "$OTOOL"; then
48191   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
48192 else
48193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48194 for as_dir in $PATH
48195 do
48196   IFS=$as_save_IFS
48197   test -z "$as_dir" && as_dir=.
48198   for ac_exec_ext in '' $ac_executable_extensions; do
48199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48200     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
48201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48202     break 2
48203   fi
48204 done
48205 done
48206 IFS=$as_save_IFS
48207
48208 fi
48209 fi
48210 OTOOL=$ac_cv_prog_OTOOL
48211 if test -n "$OTOOL"; then
48212   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
48213 $as_echo "$OTOOL" >&6; }
48214 else
48215   { $as_echo "$as_me:$LINENO: result: no" >&5
48216 $as_echo "no" >&6; }
48217 fi
48218
48219
48220 fi
48221 if test -z "$ac_cv_prog_OTOOL"; then
48222   ac_ct_OTOOL=$OTOOL
48223   # Extract the first word of "otool", so it can be a program name with args.
48224 set dummy otool; ac_word=$2
48225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48226 $as_echo_n "checking for $ac_word... " >&6; }
48227 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
48228   $as_echo_n "(cached) " >&6
48229 else
48230   if test -n "$ac_ct_OTOOL"; then
48231   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
48232 else
48233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48234 for as_dir in $PATH
48235 do
48236   IFS=$as_save_IFS
48237   test -z "$as_dir" && as_dir=.
48238   for ac_exec_ext in '' $ac_executable_extensions; do
48239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48240     ac_cv_prog_ac_ct_OTOOL="otool"
48241     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48242     break 2
48243   fi
48244 done
48245 done
48246 IFS=$as_save_IFS
48247
48248 fi
48249 fi
48250 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
48251 if test -n "$ac_ct_OTOOL"; then
48252   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
48253 $as_echo "$ac_ct_OTOOL" >&6; }
48254 else
48255   { $as_echo "$as_me:$LINENO: result: no" >&5
48256 $as_echo "no" >&6; }
48257 fi
48258
48259   if test "x$ac_ct_OTOOL" = x; then
48260     OTOOL=":"
48261   else
48262     case $cross_compiling:$ac_tool_warned in
48263 yes:)
48264 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48266 ac_tool_warned=yes ;;
48267 esac
48268     OTOOL=$ac_ct_OTOOL
48269   fi
48270 else
48271   OTOOL="$ac_cv_prog_OTOOL"
48272 fi
48273
48274     if test -n "$ac_tool_prefix"; then
48275   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
48276 set dummy ${ac_tool_prefix}otool64; ac_word=$2
48277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48278 $as_echo_n "checking for $ac_word... " >&6; }
48279 if test "${ac_cv_prog_OTOOL64+set}" = set; then
48280   $as_echo_n "(cached) " >&6
48281 else
48282   if test -n "$OTOOL64"; then
48283   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
48284 else
48285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48286 for as_dir in $PATH
48287 do
48288   IFS=$as_save_IFS
48289   test -z "$as_dir" && as_dir=.
48290   for ac_exec_ext in '' $ac_executable_extensions; do
48291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48292     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
48293     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48294     break 2
48295   fi
48296 done
48297 done
48298 IFS=$as_save_IFS
48299
48300 fi
48301 fi
48302 OTOOL64=$ac_cv_prog_OTOOL64
48303 if test -n "$OTOOL64"; then
48304   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
48305 $as_echo "$OTOOL64" >&6; }
48306 else
48307   { $as_echo "$as_me:$LINENO: result: no" >&5
48308 $as_echo "no" >&6; }
48309 fi
48310
48311
48312 fi
48313 if test -z "$ac_cv_prog_OTOOL64"; then
48314   ac_ct_OTOOL64=$OTOOL64
48315   # Extract the first word of "otool64", so it can be a program name with args.
48316 set dummy otool64; ac_word=$2
48317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48318 $as_echo_n "checking for $ac_word... " >&6; }
48319 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
48320   $as_echo_n "(cached) " >&6
48321 else
48322   if test -n "$ac_ct_OTOOL64"; then
48323   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
48324 else
48325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48326 for as_dir in $PATH
48327 do
48328   IFS=$as_save_IFS
48329   test -z "$as_dir" && as_dir=.
48330   for ac_exec_ext in '' $ac_executable_extensions; do
48331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48332     ac_cv_prog_ac_ct_OTOOL64="otool64"
48333     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48334     break 2
48335   fi
48336 done
48337 done
48338 IFS=$as_save_IFS
48339
48340 fi
48341 fi
48342 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
48343 if test -n "$ac_ct_OTOOL64"; then
48344   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
48345 $as_echo "$ac_ct_OTOOL64" >&6; }
48346 else
48347   { $as_echo "$as_me:$LINENO: result: no" >&5
48348 $as_echo "no" >&6; }
48349 fi
48350
48351   if test "x$ac_ct_OTOOL64" = x; then
48352     OTOOL64=":"
48353   else
48354     case $cross_compiling:$ac_tool_warned in
48355 yes:)
48356 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48358 ac_tool_warned=yes ;;
48359 esac
48360     OTOOL64=$ac_ct_OTOOL64
48361   fi
48362 else
48363   OTOOL64="$ac_cv_prog_OTOOL64"
48364 fi
48365
48366
48367
48368
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
48393 $as_echo_n "checking for -single_module linker flag... " >&6; }
48394 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
48395   $as_echo_n "(cached) " >&6
48396 else
48397   lt_cv_apple_cc_single_mod=no
48398       if test -z "${LT_MULTI_MODULE}"; then
48399         # By default we will add the -single_module flag. You can override
48400         # by either setting the environment variable LT_MULTI_MODULE
48401         # non-empty at configure time, or by adding -multi_module to the
48402         # link flags.
48403         rm -rf libconftest.dylib*
48404         echo "int foo(void){return 1;}" > conftest.c
48405         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
48406 -dynamiclib -Wl,-single_module conftest.c" >&5
48407         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
48408           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
48409         _lt_result=$?
48410         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
48411           lt_cv_apple_cc_single_mod=yes
48412         else
48413           cat conftest.err >&5
48414         fi
48415         rm -rf libconftest.dylib*
48416         rm -f conftest.*
48417       fi
48418 fi
48419 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
48420 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
48421     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
48422 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
48423 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
48424   $as_echo_n "(cached) " >&6
48425 else
48426   lt_cv_ld_exported_symbols_list=no
48427       save_LDFLAGS=$LDFLAGS
48428       echo "_main" > conftest.sym
48429       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
48430       cat >conftest.$ac_ext <<_ACEOF
48431 /* confdefs.h.  */
48432 _ACEOF
48433 cat confdefs.h >>conftest.$ac_ext
48434 cat >>conftest.$ac_ext <<_ACEOF
48435 /* end confdefs.h.  */
48436
48437 int
48438 main ()
48439 {
48440
48441   ;
48442   return 0;
48443 }
48444 _ACEOF
48445 rm -f conftest.$ac_objext conftest$ac_exeext
48446 if { (ac_try="$ac_link"
48447 case "(($ac_try" in
48448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48449   *) ac_try_echo=$ac_try;;
48450 esac
48451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48452 $as_echo "$ac_try_echo") >&5
48453   (eval "$ac_link") 2>conftest.er1
48454   ac_status=$?
48455   grep -v '^ *+' conftest.er1 >conftest.err
48456   rm -f conftest.er1
48457   cat conftest.err >&5
48458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48459   (exit $ac_status); } && {
48460          test -z "$ac_c_werror_flag" ||
48461          test ! -s conftest.err
48462        } && test -s conftest$ac_exeext && {
48463          test "$cross_compiling" = yes ||
48464          $as_test_x conftest$ac_exeext
48465        }; then
48466   lt_cv_ld_exported_symbols_list=yes
48467 else
48468   $as_echo "$as_me: failed program was:" >&5
48469 sed 's/^/| /' conftest.$ac_ext >&5
48470
48471         lt_cv_ld_exported_symbols_list=no
48472 fi
48473
48474 rm -rf conftest.dSYM
48475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48476       conftest$ac_exeext conftest.$ac_ext
48477         LDFLAGS="$save_LDFLAGS"
48478
48479 fi
48480 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
48481 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
48482     case $host_os in
48483     rhapsody* | darwin1.[012])
48484       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
48485     darwin1.*)
48486       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
48487     darwin*) # darwin 5.x on
48488       # if running on 10.5 or later, the deployment target defaults
48489       # to the OS version, if on x86, and 10.4, the deployment
48490       # target defaults to 10.4. Don't you love it?
48491       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
48492         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
48493           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
48494         10.[012]*)
48495           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
48496         10.*)
48497           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
48498       esac
48499     ;;
48500   esac
48501     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
48502       _lt_dar_single_mod='$single_module'
48503     fi
48504     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
48505       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
48506     else
48507       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
48508     fi
48509     if test "$DSYMUTIL" != ":"; then
48510       _lt_dsymutil='~$DSYMUTIL $lib || :'
48511     else
48512       _lt_dsymutil=
48513     fi
48514     ;;
48515   esac
48516
48517
48518 for ac_header in dlfcn.h
48519 do
48520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48522 $as_echo_n "checking for $ac_header... " >&6; }
48523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48524   $as_echo_n "(cached) " >&6
48525 else
48526   cat >conftest.$ac_ext <<_ACEOF
48527 /* confdefs.h.  */
48528 _ACEOF
48529 cat confdefs.h >>conftest.$ac_ext
48530 cat >>conftest.$ac_ext <<_ACEOF
48531 /* end confdefs.h.  */
48532 $ac_includes_default
48533
48534 #include <$ac_header>
48535 _ACEOF
48536 rm -f conftest.$ac_objext
48537 if { (ac_try="$ac_compile"
48538 case "(($ac_try" in
48539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48540   *) ac_try_echo=$ac_try;;
48541 esac
48542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48543 $as_echo "$ac_try_echo") >&5
48544   (eval "$ac_compile") 2>conftest.er1
48545   ac_status=$?
48546   grep -v '^ *+' conftest.er1 >conftest.err
48547   rm -f conftest.er1
48548   cat conftest.err >&5
48549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48550   (exit $ac_status); } && {
48551          test -z "$ac_c_werror_flag" ||
48552          test ! -s conftest.err
48553        } && test -s conftest.$ac_objext; then
48554   eval "$as_ac_Header=yes"
48555 else
48556   $as_echo "$as_me: failed program was:" >&5
48557 sed 's/^/| /' conftest.$ac_ext >&5
48558
48559         eval "$as_ac_Header=no"
48560 fi
48561
48562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48563 fi
48564 ac_res=`eval 'as_val=${'$as_ac_Header'}
48565                  $as_echo "$as_val"'`
48566                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48567 $as_echo "$ac_res" >&6; }
48568 as_val=`eval 'as_val=${'$as_ac_Header'}
48569                  $as_echo "$as_val"'`
48570    if test "x$as_val" = x""yes; then
48571   cat >>confdefs.h <<_ACEOF
48572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48573 _ACEOF
48574
48575 fi
48576
48577 done
48578
48579
48580
48581 # Set options
48582
48583
48584
48585         enable_dlopen=no
48586
48587
48588   enable_win32_dll=no
48589
48590
48591             # Check whether --enable-shared was given.
48592 if test "${enable_shared+set}" = set; then
48593   enableval=$enable_shared; p=${PACKAGE-default}
48594     case $enableval in
48595     yes) enable_shared=yes ;;
48596     no) enable_shared=no ;;
48597     *)
48598       enable_shared=no
48599       # Look at the argument we got.  We use all the common list separators.
48600       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48601       for pkg in $enableval; do
48602         IFS="$lt_save_ifs"
48603         if test "X$pkg" = "X$p"; then
48604           enable_shared=yes
48605         fi
48606       done
48607       IFS="$lt_save_ifs"
48608       ;;
48609     esac
48610 else
48611   enable_shared=yes
48612 fi
48613
48614
48615
48616
48617
48618
48619
48620
48621
48622   # Check whether --enable-static was given.
48623 if test "${enable_static+set}" = set; then
48624   enableval=$enable_static; p=${PACKAGE-default}
48625     case $enableval in
48626     yes) enable_static=yes ;;
48627     no) enable_static=no ;;
48628     *)
48629      enable_static=no
48630       # Look at the argument we got.  We use all the common list separators.
48631       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48632       for pkg in $enableval; do
48633         IFS="$lt_save_ifs"
48634         if test "X$pkg" = "X$p"; then
48635           enable_static=yes
48636         fi
48637       done
48638       IFS="$lt_save_ifs"
48639       ;;
48640     esac
48641 else
48642   enable_static=yes
48643 fi
48644
48645
48646
48647
48648
48649
48650
48651
48652
48653
48654 # Check whether --with-pic was given.
48655 if test "${with_pic+set}" = set; then
48656   withval=$with_pic; pic_mode="$withval"
48657 else
48658   pic_mode=default
48659 fi
48660
48661
48662 test -z "$pic_mode" && pic_mode=default
48663
48664
48665
48666
48667
48668
48669
48670   # Check whether --enable-fast-install was given.
48671 if test "${enable_fast_install+set}" = set; then
48672   enableval=$enable_fast_install; p=${PACKAGE-default}
48673     case $enableval in
48674     yes) enable_fast_install=yes ;;
48675     no) enable_fast_install=no ;;
48676     *)
48677       enable_fast_install=no
48678       # Look at the argument we got.  We use all the common list separators.
48679       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48680       for pkg in $enableval; do
48681         IFS="$lt_save_ifs"
48682         if test "X$pkg" = "X$p"; then
48683           enable_fast_install=yes
48684         fi
48685       done
48686       IFS="$lt_save_ifs"
48687       ;;
48688     esac
48689 else
48690   enable_fast_install=yes
48691 fi
48692
48693
48694
48695
48696
48697
48698
48699
48700
48701
48702
48703 # This can be used to rebuild libtool when needed
48704 LIBTOOL_DEPS="$ltmain"
48705
48706 # Always use our own libtool.
48707 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733 test -z "$LN_S" && LN_S="ln -s"
48734
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746
48747
48748 if test -n "${ZSH_VERSION+set}" ; then
48749    setopt NO_GLOB_SUBST
48750 fi
48751
48752 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
48753 $as_echo_n "checking for objdir... " >&6; }
48754 if test "${lt_cv_objdir+set}" = set; then
48755   $as_echo_n "(cached) " >&6
48756 else
48757   rm -f .libs 2>/dev/null
48758 mkdir .libs 2>/dev/null
48759 if test -d .libs; then
48760   lt_cv_objdir=.libs
48761 else
48762   # MS-DOS does not allow filenames that begin with a dot.
48763   lt_cv_objdir=_libs
48764 fi
48765 rmdir .libs 2>/dev/null
48766 fi
48767 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
48768 $as_echo "$lt_cv_objdir" >&6; }
48769 objdir=$lt_cv_objdir
48770
48771
48772
48773
48774
48775 cat >>confdefs.h <<_ACEOF
48776 #define LT_OBJDIR "$lt_cv_objdir/"
48777 _ACEOF
48778
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795 case $host_os in
48796 aix3*)
48797   # AIX sometimes has problems with the GCC collect2 program.  For some
48798   # reason, if we set the COLLECT_NAMES environment variable, the problems
48799   # vanish in a puff of smoke.
48800   if test "X${COLLECT_NAMES+set}" != Xset; then
48801     COLLECT_NAMES=
48802     export COLLECT_NAMES
48803   fi
48804   ;;
48805 esac
48806
48807 # Sed substitution that helps us do robust quoting.  It backslashifies
48808 # metacharacters that are still active within double-quoted strings.
48809 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
48810
48811 # Same as above, but do not quote variable references.
48812 double_quote_subst='s/\(["`\\]\)/\\\1/g'
48813
48814 # Sed substitution to delay expansion of an escaped shell variable in a
48815 # double_quote_subst'ed string.
48816 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
48817
48818 # Sed substitution to delay expansion of an escaped single quote.
48819 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
48820
48821 # Sed substitution to avoid accidental globbing in evaled expressions
48822 no_glob_subst='s/\*/\\\*/g'
48823
48824 # Global variables:
48825 ofile=libtool
48826 can_build_shared=yes
48827
48828 # All known linkers require a `.a' archive for static linking (except MSVC,
48829 # which needs '.lib').
48830 libext=a
48831
48832 with_gnu_ld="$lt_cv_prog_gnu_ld"
48833
48834 old_CC="$CC"
48835 old_CFLAGS="$CFLAGS"
48836
48837 # Set sane defaults for various variables
48838 test -z "$CC" && CC=cc
48839 test -z "$LTCC" && LTCC=$CC
48840 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
48841 test -z "$LD" && LD=ld
48842 test -z "$ac_objext" && ac_objext=o
48843
48844 for cc_temp in $compiler""; do
48845   case $cc_temp in
48846     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48847     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48848     \-*) ;;
48849     *) break;;
48850   esac
48851 done
48852 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
48853
48854
48855 # Only perform the check for file, if the check method requires it
48856 test -z "$MAGIC_CMD" && MAGIC_CMD=file
48857 case $deplibs_check_method in
48858 file_magic*)
48859   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
48860     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
48861 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
48862 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
48863   $as_echo_n "(cached) " >&6
48864 else
48865   case $MAGIC_CMD in
48866 [\\/*] |  ?:[\\/]*)
48867   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
48868   ;;
48869 *)
48870   lt_save_MAGIC_CMD="$MAGIC_CMD"
48871   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
48872   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
48873   for ac_dir in $ac_dummy; do
48874     IFS="$lt_save_ifs"
48875     test -z "$ac_dir" && ac_dir=.
48876     if test -f $ac_dir/${ac_tool_prefix}file; then
48877       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
48878       if test -n "$file_magic_test_file"; then
48879         case $deplibs_check_method in
48880         "file_magic "*)
48881           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
48882           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48883           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
48884             $EGREP "$file_magic_regex" > /dev/null; then
48885             :
48886           else
48887             cat <<_LT_EOF 1>&2
48888
48889 *** Warning: the command libtool uses to detect shared libraries,
48890 *** $file_magic_cmd, produces output that libtool cannot recognize.
48891 *** The result is that libtool may fail to recognize shared libraries
48892 *** as such.  This will affect the creation of libtool libraries that
48893 *** depend on shared libraries, but programs linked with such libtool
48894 *** libraries will work regardless of this problem.  Nevertheless, you
48895 *** may want to report the problem to your system manager and/or to
48896 *** bug-libtool@gnu.org
48897
48898 _LT_EOF
48899           fi ;;
48900         esac
48901       fi
48902       break
48903     fi
48904   done
48905   IFS="$lt_save_ifs"
48906   MAGIC_CMD="$lt_save_MAGIC_CMD"
48907   ;;
48908 esac
48909 fi
48910
48911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48912 if test -n "$MAGIC_CMD"; then
48913   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
48914 $as_echo "$MAGIC_CMD" >&6; }
48915 else
48916   { $as_echo "$as_me:$LINENO: result: no" >&5
48917 $as_echo "no" >&6; }
48918 fi
48919
48920
48921
48922
48923
48924 if test -z "$lt_cv_path_MAGIC_CMD"; then
48925   if test -n "$ac_tool_prefix"; then
48926     { $as_echo "$as_me:$LINENO: checking for file" >&5
48927 $as_echo_n "checking for file... " >&6; }
48928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
48929   $as_echo_n "(cached) " >&6
48930 else
48931   case $MAGIC_CMD in
48932 [\\/*] |  ?:[\\/]*)
48933   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
48934   ;;
48935 *)
48936   lt_save_MAGIC_CMD="$MAGIC_CMD"
48937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
48938   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
48939   for ac_dir in $ac_dummy; do
48940     IFS="$lt_save_ifs"
48941     test -z "$ac_dir" && ac_dir=.
48942     if test -f $ac_dir/file; then
48943       lt_cv_path_MAGIC_CMD="$ac_dir/file"
48944       if test -n "$file_magic_test_file"; then
48945         case $deplibs_check_method in
48946         "file_magic "*)
48947           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
48948           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48949           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
48950             $EGREP "$file_magic_regex" > /dev/null; then
48951             :
48952           else
48953             cat <<_LT_EOF 1>&2
48954
48955 *** Warning: the command libtool uses to detect shared libraries,
48956 *** $file_magic_cmd, produces output that libtool cannot recognize.
48957 *** The result is that libtool may fail to recognize shared libraries
48958 *** as such.  This will affect the creation of libtool libraries that
48959 *** depend on shared libraries, but programs linked with such libtool
48960 *** libraries will work regardless of this problem.  Nevertheless, you
48961 *** may want to report the problem to your system manager and/or to
48962 *** bug-libtool@gnu.org
48963
48964 _LT_EOF
48965           fi ;;
48966         esac
48967       fi
48968       break
48969     fi
48970   done
48971   IFS="$lt_save_ifs"
48972   MAGIC_CMD="$lt_save_MAGIC_CMD"
48973   ;;
48974 esac
48975 fi
48976
48977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48978 if test -n "$MAGIC_CMD"; then
48979   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
48980 $as_echo "$MAGIC_CMD" >&6; }
48981 else
48982   { $as_echo "$as_me:$LINENO: result: no" >&5
48983 $as_echo "no" >&6; }
48984 fi
48985
48986
48987   else
48988     MAGIC_CMD=:
48989   fi
48990 fi
48991
48992   fi
48993   ;;
48994 esac
48995
48996 # Use C for the default configuration in the libtool script
48997
48998 lt_save_CC="$CC"
48999 ac_ext=c
49000 ac_cpp='$CPP $CPPFLAGS'
49001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49004
49005
49006 # Source file extension for C test sources.
49007 ac_ext=c
49008
49009 # Object file extension for compiled C test sources.
49010 objext=o
49011 objext=$objext
49012
49013 # Code to be used in simple compile tests
49014 lt_simple_compile_test_code="int some_variable = 0;"
49015
49016 # Code to be used in simple link tests
49017 lt_simple_link_test_code='int main(){return(0);}'
49018
49019
49020
49021
49022
49023
49024
49025 # If no C compiler was specified, use CC.
49026 LTCC=${LTCC-"$CC"}
49027
49028 # If no C compiler flags were specified, use CFLAGS.
49029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
49030
49031 # Allow CC to be a program name with arguments.
49032 compiler=$CC
49033
49034 # Save the default compiler, since it gets overwritten when the other
49035 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
49036 compiler_DEFAULT=$CC
49037
49038 # save warnings/boilerplate of simple test code
49039 ac_outfile=conftest.$ac_objext
49040 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
49041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
49042 _lt_compiler_boilerplate=`cat conftest.err`
49043 $RM conftest*
49044
49045 ac_outfile=conftest.$ac_objext
49046 echo "$lt_simple_link_test_code" >conftest.$ac_ext
49047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
49048 _lt_linker_boilerplate=`cat conftest.err`
49049 $RM -r conftest*
49050
49051
49052 ## CAVEAT EMPTOR:
49053 ## There is no encapsulation within the following macros, do not change
49054 ## the running order or otherwise move them around unless you know exactly
49055 ## what you are doing...
49056 if test -n "$compiler"; then
49057
49058 lt_prog_compiler_no_builtin_flag=
49059
49060 if test "$GCC" = yes; then
49061   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
49062
49063   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
49064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
49065 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
49066   $as_echo_n "(cached) " >&6
49067 else
49068   lt_cv_prog_compiler_rtti_exceptions=no
49069    ac_outfile=conftest.$ac_objext
49070    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49071    lt_compiler_flag="-fno-rtti -fno-exceptions"
49072    # Insert the option either (1) after the last *FLAGS variable, or
49073    # (2) before a word containing "conftest.", or (3) at the end.
49074    # Note that $ac_compile itself does not contain backslashes and begins
49075    # with a dollar sign (not a hyphen), so the echo should work correctly.
49076    # The option is referenced via a variable to avoid confusing sed.
49077    lt_compile=`echo "$ac_compile" | $SED \
49078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49080    -e 's:$: $lt_compiler_flag:'`
49081    (eval echo "\"\$as_me:49081: $lt_compile\"" >&5)
49082    (eval "$lt_compile" 2>conftest.err)
49083    ac_status=$?
49084    cat conftest.err >&5
49085    echo "$as_me:49085: \$? = $ac_status" >&5
49086    if (exit $ac_status) && test -s "$ac_outfile"; then
49087      # The compiler can only warn and ignore the option if not recognized
49088      # So say no if there are warnings other than the usual output.
49089      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
49090      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49091      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
49092        lt_cv_prog_compiler_rtti_exceptions=yes
49093      fi
49094    fi
49095    $RM conftest*
49096
49097 fi
49098 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
49099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
49100
49101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
49102     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
49103 else
49104     :
49105 fi
49106
49107 fi
49108
49109
49110
49111
49112
49113
49114   lt_prog_compiler_wl=
49115 lt_prog_compiler_pic=
49116 lt_prog_compiler_static=
49117
49118 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
49119 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
49120
49121   if test "$GCC" = yes; then
49122     lt_prog_compiler_wl='-Wl,'
49123     lt_prog_compiler_static='-static'
49124
49125     case $host_os in
49126       aix*)
49127       # All AIX code is PIC.
49128       if test "$host_cpu" = ia64; then
49129         # AIX 5 now supports IA64 processor
49130         lt_prog_compiler_static='-Bstatic'
49131       fi
49132       ;;
49133
49134     amigaos*)
49135       case $host_cpu in
49136       powerpc)
49137             # see comment about AmigaOS4 .so support
49138             lt_prog_compiler_pic='-fPIC'
49139         ;;
49140       m68k)
49141             # FIXME: we need at least 68020 code to build shared libraries, but
49142             # adding the `-m68020' flag to GCC prevents building anything better,
49143             # like `-m68040'.
49144             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
49145         ;;
49146       esac
49147       ;;
49148
49149     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
49150       # PIC is the default for these OSes.
49151       ;;
49152
49153     mingw* | cygwin* | pw32* | os2*)
49154       # This hack is so that the source file can tell whether it is being
49155       # built for inclusion in a dll (and should export symbols for example).
49156       # Although the cygwin gcc ignores -fPIC, still need this for old-style
49157       # (--disable-auto-import) libraries
49158       lt_prog_compiler_pic='-DDLL_EXPORT'
49159       ;;
49160
49161     darwin* | rhapsody*)
49162       # PIC is the default on this platform
49163       # Common symbols not allowed in MH_DYLIB files
49164       lt_prog_compiler_pic='-fno-common'
49165       ;;
49166
49167     hpux*)
49168       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
49169       # not for PA HP-UX.
49170       case $host_cpu in
49171       hppa*64*|ia64*)
49172         # +Z the default
49173         ;;
49174       *)
49175         lt_prog_compiler_pic='-fPIC'
49176         ;;
49177       esac
49178       ;;
49179
49180     interix[3-9]*)
49181       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
49182       # Instead, we relocate shared libraries at runtime.
49183       ;;
49184
49185     msdosdjgpp*)
49186       # Just because we use GCC doesn't mean we suddenly get shared libraries
49187       # on systems that don't support them.
49188       lt_prog_compiler_can_build_shared=no
49189       enable_shared=no
49190       ;;
49191
49192     *nto* | *qnx*)
49193       # QNX uses GNU C++, but need to define -shared option too, otherwise
49194       # it will coredump.
49195       lt_prog_compiler_pic='-fPIC -shared'
49196       ;;
49197
49198     sysv4*MP*)
49199       if test -d /usr/nec; then
49200         lt_prog_compiler_pic=-Kconform_pic
49201       fi
49202       ;;
49203
49204     *)
49205       lt_prog_compiler_pic='-fPIC'
49206       ;;
49207     esac
49208   else
49209     # PORTME Check for flag to pass linker flags through the system compiler.
49210     case $host_os in
49211     aix*)
49212       lt_prog_compiler_wl='-Wl,'
49213       if test "$host_cpu" = ia64; then
49214         # AIX 5 now supports IA64 processor
49215         lt_prog_compiler_static='-Bstatic'
49216       else
49217         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
49218       fi
49219       ;;
49220
49221     mingw* | cygwin* | pw32* | os2*)
49222       # This hack is so that the source file can tell whether it is being
49223       # built for inclusion in a dll (and should export symbols for example).
49224       lt_prog_compiler_pic='-DDLL_EXPORT'
49225       ;;
49226
49227     hpux9* | hpux10* | hpux11*)
49228       lt_prog_compiler_wl='-Wl,'
49229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
49230       # not for PA HP-UX.
49231       case $host_cpu in
49232       hppa*64*|ia64*)
49233         # +Z the default
49234         ;;
49235       *)
49236         lt_prog_compiler_pic='+Z'
49237         ;;
49238       esac
49239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
49240       lt_prog_compiler_static='${wl}-a ${wl}archive'
49241       ;;
49242
49243     irix5* | irix6* | nonstopux*)
49244       lt_prog_compiler_wl='-Wl,'
49245       # PIC (with -KPIC) is the default.
49246       lt_prog_compiler_static='-non_shared'
49247       ;;
49248
49249     linux* | k*bsd*-gnu)
49250       case $cc_basename in
49251       icc* | ecc* | ifort*)
49252         lt_prog_compiler_wl='-Wl,'
49253         lt_prog_compiler_pic='-KPIC'
49254         lt_prog_compiler_static='-static'
49255         ;;
49256       pgcc* | pgf77* | pgf90* | pgf95*)
49257         # Portland Group compilers (*not* the Pentium gcc compiler,
49258         # which looks to be a dead project)
49259         lt_prog_compiler_wl='-Wl,'
49260         lt_prog_compiler_pic='-fpic'
49261         lt_prog_compiler_static='-Bstatic'
49262         ;;
49263       ccc*)
49264         lt_prog_compiler_wl='-Wl,'
49265         # All Alpha code is PIC.
49266         lt_prog_compiler_static='-non_shared'
49267         ;;
49268       xl*)
49269         # IBM XL C 8.0/Fortran 10.1 on PPC
49270         lt_prog_compiler_wl='-Wl,'
49271         lt_prog_compiler_pic='-qpic'
49272         lt_prog_compiler_static='-qstaticlink'
49273         ;;
49274       *)
49275         case `$CC -V 2>&1 | sed 5q` in
49276         *Sun\ C*)
49277           # Sun C 5.9
49278           lt_prog_compiler_pic='-KPIC'
49279           lt_prog_compiler_static='-Bstatic'
49280           lt_prog_compiler_wl='-Wl,'
49281           ;;
49282         *Sun\ F*)
49283           # Sun Fortran 8.3 passes all unrecognized flags to the linker
49284           lt_prog_compiler_pic='-KPIC'
49285           lt_prog_compiler_static='-Bstatic'
49286           lt_prog_compiler_wl=''
49287           ;;
49288         esac
49289         ;;
49290       esac
49291       ;;
49292
49293     newsos6)
49294       lt_prog_compiler_pic='-KPIC'
49295       lt_prog_compiler_static='-Bstatic'
49296       ;;
49297
49298     *nto* | *qnx*)
49299       # QNX uses GNU C++, but need to define -shared option too, otherwise
49300       # it will coredump.
49301       lt_prog_compiler_pic='-fPIC -shared'
49302       ;;
49303
49304     osf3* | osf4* | osf5*)
49305       lt_prog_compiler_wl='-Wl,'
49306       # All OSF/1 code is PIC.
49307       lt_prog_compiler_static='-non_shared'
49308       ;;
49309
49310     rdos*)
49311       lt_prog_compiler_static='-non_shared'
49312       ;;
49313
49314     solaris*)
49315       lt_prog_compiler_pic='-KPIC'
49316       lt_prog_compiler_static='-Bstatic'
49317       case $cc_basename in
49318       f77* | f90* | f95*)
49319         lt_prog_compiler_wl='-Qoption ld ';;
49320       *)
49321         lt_prog_compiler_wl='-Wl,';;
49322       esac
49323       ;;
49324
49325     sunos4*)
49326       lt_prog_compiler_wl='-Qoption ld '
49327       lt_prog_compiler_pic='-PIC'
49328       lt_prog_compiler_static='-Bstatic'
49329       ;;
49330
49331     sysv4 | sysv4.2uw2* | sysv4.3*)
49332       lt_prog_compiler_wl='-Wl,'
49333       lt_prog_compiler_pic='-KPIC'
49334       lt_prog_compiler_static='-Bstatic'
49335       ;;
49336
49337     sysv4*MP*)
49338       if test -d /usr/nec ;then
49339         lt_prog_compiler_pic='-Kconform_pic'
49340         lt_prog_compiler_static='-Bstatic'
49341       fi
49342       ;;
49343
49344     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
49345       lt_prog_compiler_wl='-Wl,'
49346       lt_prog_compiler_pic='-KPIC'
49347       lt_prog_compiler_static='-Bstatic'
49348       ;;
49349
49350     unicos*)
49351       lt_prog_compiler_wl='-Wl,'
49352       lt_prog_compiler_can_build_shared=no
49353       ;;
49354
49355     uts4*)
49356       lt_prog_compiler_pic='-pic'
49357       lt_prog_compiler_static='-Bstatic'
49358       ;;
49359
49360     *)
49361       lt_prog_compiler_can_build_shared=no
49362       ;;
49363     esac
49364   fi
49365
49366 case $host_os in
49367   # For platforms which do not support PIC, -DPIC is meaningless:
49368   *djgpp*)
49369     lt_prog_compiler_pic=
49370     ;;
49371   *)
49372     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
49373     ;;
49374 esac
49375 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
49376 $as_echo "$lt_prog_compiler_pic" >&6; }
49377
49378
49379
49380
49381
49382
49383 #
49384 # Check to make sure the PIC flag actually works.
49385 #
49386 if test -n "$lt_prog_compiler_pic"; then
49387   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
49388 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
49389 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
49390   $as_echo_n "(cached) " >&6
49391 else
49392   lt_cv_prog_compiler_pic_works=no
49393    ac_outfile=conftest.$ac_objext
49394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49395    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
49396    # Insert the option either (1) after the last *FLAGS variable, or
49397    # (2) before a word containing "conftest.", or (3) at the end.
49398    # Note that $ac_compile itself does not contain backslashes and begins
49399    # with a dollar sign (not a hyphen), so the echo should work correctly.
49400    # The option is referenced via a variable to avoid confusing sed.
49401    lt_compile=`echo "$ac_compile" | $SED \
49402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49404    -e 's:$: $lt_compiler_flag:'`
49405    (eval echo "\"\$as_me:49405: $lt_compile\"" >&5)
49406    (eval "$lt_compile" 2>conftest.err)
49407    ac_status=$?
49408    cat conftest.err >&5
49409    echo "$as_me:49409: \$? = $ac_status" >&5
49410    if (exit $ac_status) && test -s "$ac_outfile"; then
49411      # The compiler can only warn and ignore the option if not recognized
49412      # So say no if there are warnings other than the usual output.
49413      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
49414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
49416        lt_cv_prog_compiler_pic_works=yes
49417      fi
49418    fi
49419    $RM conftest*
49420
49421 fi
49422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
49423 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
49424
49425 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
49426     case $lt_prog_compiler_pic in
49427      "" | " "*) ;;
49428      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
49429      esac
49430 else
49431     lt_prog_compiler_pic=
49432      lt_prog_compiler_can_build_shared=no
49433 fi
49434
49435 fi
49436
49437
49438
49439
49440
49441
49442 #
49443 # Check to make sure the static flag actually works.
49444 #
49445 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
49446 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
49447 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
49448 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
49449   $as_echo_n "(cached) " >&6
49450 else
49451   lt_cv_prog_compiler_static_works=no
49452    save_LDFLAGS="$LDFLAGS"
49453    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
49454    echo "$lt_simple_link_test_code" > conftest.$ac_ext
49455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
49456      # The linker can only warn and ignore the option if not recognized
49457      # So say no if there are warnings
49458      if test -s conftest.err; then
49459        # Append any errors to the config.log.
49460        cat conftest.err 1>&5
49461        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
49462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49463        if diff conftest.exp conftest.er2 >/dev/null; then
49464          lt_cv_prog_compiler_static_works=yes
49465        fi
49466      else
49467        lt_cv_prog_compiler_static_works=yes
49468      fi
49469    fi
49470    $RM -r conftest*
49471    LDFLAGS="$save_LDFLAGS"
49472
49473 fi
49474 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
49475 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
49476
49477 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
49478     :
49479 else
49480     lt_prog_compiler_static=
49481 fi
49482
49483
49484
49485
49486
49487
49488
49489   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
49490 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
49491 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
49492   $as_echo_n "(cached) " >&6
49493 else
49494   lt_cv_prog_compiler_c_o=no
49495    $RM -r conftest 2>/dev/null
49496    mkdir conftest
49497    cd conftest
49498    mkdir out
49499    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49500
49501    lt_compiler_flag="-o out/conftest2.$ac_objext"
49502    # Insert the option either (1) after the last *FLAGS variable, or
49503    # (2) before a word containing "conftest.", or (3) at the end.
49504    # Note that $ac_compile itself does not contain backslashes and begins
49505    # with a dollar sign (not a hyphen), so the echo should work correctly.
49506    lt_compile=`echo "$ac_compile" | $SED \
49507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49509    -e 's:$: $lt_compiler_flag:'`
49510    (eval echo "\"\$as_me:49510: $lt_compile\"" >&5)
49511    (eval "$lt_compile" 2>out/conftest.err)
49512    ac_status=$?
49513    cat out/conftest.err >&5
49514    echo "$as_me:49514: \$? = $ac_status" >&5
49515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
49516    then
49517      # The compiler can only warn and ignore the option if not recognized
49518      # So say no if there are warnings
49519      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
49520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
49521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
49522        lt_cv_prog_compiler_c_o=yes
49523      fi
49524    fi
49525    chmod u+w . 2>&5
49526    $RM conftest*
49527    # SGI C++ compiler will create directory out/ii_files/ for
49528    # template instantiation
49529    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
49530    $RM out/* && rmdir out
49531    cd ..
49532    $RM -r conftest
49533    $RM conftest*
49534
49535 fi
49536 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
49537 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
49538
49539
49540
49541
49542
49543
49544   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
49545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
49546 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
49547   $as_echo_n "(cached) " >&6
49548 else
49549   lt_cv_prog_compiler_c_o=no
49550    $RM -r conftest 2>/dev/null
49551    mkdir conftest
49552    cd conftest
49553    mkdir out
49554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49555
49556    lt_compiler_flag="-o out/conftest2.$ac_objext"
49557    # Insert the option either (1) after the last *FLAGS variable, or
49558    # (2) before a word containing "conftest.", or (3) at the end.
49559    # Note that $ac_compile itself does not contain backslashes and begins
49560    # with a dollar sign (not a hyphen), so the echo should work correctly.
49561    lt_compile=`echo "$ac_compile" | $SED \
49562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49564    -e 's:$: $lt_compiler_flag:'`
49565    (eval echo "\"\$as_me:49565: $lt_compile\"" >&5)
49566    (eval "$lt_compile" 2>out/conftest.err)
49567    ac_status=$?
49568    cat out/conftest.err >&5
49569    echo "$as_me:49569: \$? = $ac_status" >&5
49570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
49571    then
49572      # The compiler can only warn and ignore the option if not recognized
49573      # So say no if there are warnings
49574      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
49575      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
49576      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
49577        lt_cv_prog_compiler_c_o=yes
49578      fi
49579    fi
49580    chmod u+w . 2>&5
49581    $RM conftest*
49582    # SGI C++ compiler will create directory out/ii_files/ for
49583    # template instantiation
49584    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
49585    $RM out/* && rmdir out
49586    cd ..
49587    $RM -r conftest
49588    $RM conftest*
49589
49590 fi
49591 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
49592 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
49593
49594
49595
49596
49597 hard_links="nottested"
49598 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
49599   # do not overwrite the value of need_locks provided by the user
49600   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
49601 $as_echo_n "checking if we can lock with hard links... " >&6; }
49602   hard_links=yes
49603   $RM conftest*
49604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
49605   touch conftest.a
49606   ln conftest.a conftest.b 2>&5 || hard_links=no
49607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
49608   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
49609 $as_echo "$hard_links" >&6; }
49610   if test "$hard_links" = no; then
49611     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
49612 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
49613     need_locks=warn
49614   fi
49615 else
49616   need_locks=no
49617 fi
49618
49619
49620
49621
49622
49623
49624   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
49625 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
49626
49627   runpath_var=
49628   allow_undefined_flag=
49629   always_export_symbols=no
49630   archive_cmds=
49631   archive_expsym_cmds=
49632   compiler_needs_object=no
49633   enable_shared_with_static_runtimes=no
49634   export_dynamic_flag_spec=
49635   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
49636   hardcode_automatic=no
49637   hardcode_direct=no
49638   hardcode_direct_absolute=no
49639   hardcode_libdir_flag_spec=
49640   hardcode_libdir_flag_spec_ld=
49641   hardcode_libdir_separator=
49642   hardcode_minus_L=no
49643   hardcode_shlibpath_var=unsupported
49644   inherit_rpath=no
49645   link_all_deplibs=unknown
49646   module_cmds=
49647   module_expsym_cmds=
49648   old_archive_from_new_cmds=
49649   old_archive_from_expsyms_cmds=
49650   thread_safe_flag_spec=
49651   whole_archive_flag_spec=
49652   # include_expsyms should be a list of space-separated symbols to be *always*
49653   # included in the symbol list
49654   include_expsyms=
49655   # exclude_expsyms can be an extended regexp of symbols to exclude
49656   # it will be wrapped by ` (' and `)$', so one must not match beginning or
49657   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
49658   # as well as any symbol that contains `d'.
49659   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
49660   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
49661   # platforms (ab)use it in PIC code, but their linkers get confused if
49662   # the symbol is explicitly referenced.  Since portable code cannot
49663   # rely on this symbol name, it's probably fine to never include it in
49664   # preloaded symbol tables.
49665   # Exclude shared library initialization/finalization symbols.
49666   extract_expsyms_cmds=
49667
49668   case $host_os in
49669   cygwin* | mingw* | pw32*)
49670     # FIXME: the MSVC++ port hasn't been tested in a loooong time
49671     # When not using gcc, we currently assume that we are using
49672     # Microsoft Visual C++.
49673     if test "$GCC" != yes; then
49674       with_gnu_ld=no
49675     fi
49676     ;;
49677   interix*)
49678     # we just hope/assume this is gcc and not c89 (= MSVC++)
49679     with_gnu_ld=yes
49680     ;;
49681   openbsd*)
49682     with_gnu_ld=no
49683     ;;
49684   esac
49685
49686   ld_shlibs=yes
49687   if test "$with_gnu_ld" = yes; then
49688     # If archive_cmds runs LD, not CC, wlarc should be empty
49689     wlarc='${wl}'
49690
49691     # Set some defaults for GNU ld with shared library support. These
49692     # are reset later if shared libraries are not supported. Putting them
49693     # here allows them to be overridden if necessary.
49694     runpath_var=LD_RUN_PATH
49695     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49696     export_dynamic_flag_spec='${wl}--export-dynamic'
49697     # ancient GNU ld didn't support --whole-archive et. al.
49698     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
49699       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
49700     else
49701       whole_archive_flag_spec=
49702     fi
49703     supports_anon_versioning=no
49704     case `$LD -v 2>&1` in
49705       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
49706       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
49707       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
49708       *\ 2.11.*) ;; # other 2.11 versions
49709       *) supports_anon_versioning=yes ;;
49710     esac
49711
49712     # See if GNU ld supports shared libraries.
49713     case $host_os in
49714     aix[3-9]*)
49715       # On AIX/PPC, the GNU linker is very broken
49716       if test "$host_cpu" != ia64; then
49717         ld_shlibs=no
49718         cat <<_LT_EOF 1>&2
49719
49720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
49721 *** to be unable to reliably create shared libraries on AIX.
49722 *** Therefore, libtool is disabling shared libraries support.  If you
49723 *** really care for shared libraries, you may want to modify your PATH
49724 *** so that a non-GNU linker is found, and then restart.
49725
49726 _LT_EOF
49727       fi
49728       ;;
49729
49730     amigaos*)
49731       case $host_cpu in
49732       powerpc)
49733             # see comment about AmigaOS4 .so support
49734             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49735             archive_expsym_cmds=''
49736         ;;
49737       m68k)
49738             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)'
49739             hardcode_libdir_flag_spec='-L$libdir'
49740             hardcode_minus_L=yes
49741         ;;
49742       esac
49743       ;;
49744
49745     beos*)
49746       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49747         allow_undefined_flag=unsupported
49748         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
49749         # support --undefined.  This deserves some investigation.  FIXME
49750         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49751       else
49752         ld_shlibs=no
49753       fi
49754       ;;
49755
49756     cygwin* | mingw* | pw32*)
49757       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
49758       # as there is no search path for DLLs.
49759       hardcode_libdir_flag_spec='-L$libdir'
49760       allow_undefined_flag=unsupported
49761       always_export_symbols=no
49762       enable_shared_with_static_runtimes=yes
49763       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
49764
49765       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
49766         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
49767         # If the export-symbols file already is a .def file (1st line
49768         # is EXPORTS), use it as is; otherwise, prepend...
49769         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
49770           cp $export_symbols $output_objdir/$soname.def;
49771         else
49772           echo EXPORTS > $output_objdir/$soname.def;
49773           cat $export_symbols >> $output_objdir/$soname.def;
49774         fi~
49775         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
49776       else
49777         ld_shlibs=no
49778       fi
49779       ;;
49780
49781     interix[3-9]*)
49782       hardcode_direct=no
49783       hardcode_shlibpath_var=no
49784       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
49785       export_dynamic_flag_spec='${wl}-E'
49786       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
49787       # Instead, shared libraries are loaded at an image base (0x10000000 by
49788       # default) and relocated if they conflict, which is a slow very memory
49789       # consuming and fragmenting process.  To avoid this, we pick a random,
49790       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
49791       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
49792       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
49793       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'
49794       ;;
49795
49796     gnu* | linux* | tpf* | k*bsd*-gnu)
49797       tmp_diet=no
49798       if test "$host_os" = linux-dietlibc; then
49799         case $cc_basename in
49800           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
49801         esac
49802       fi
49803       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
49804          && test "$tmp_diet" = no
49805       then
49806         tmp_addflag=
49807         tmp_sharedflag='-shared'
49808         case $cc_basename,$host_cpu in
49809         pgcc*)                          # Portland Group C compiler
49810           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'
49811           tmp_addflag=' $pic_flag'
49812           ;;
49813         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
49814           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'
49815           tmp_addflag=' $pic_flag -Mnomain' ;;
49816         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
49817           tmp_addflag=' -i_dynamic' ;;
49818         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
49819           tmp_addflag=' -i_dynamic -nofor_main' ;;
49820         ifc* | ifort*)                  # Intel Fortran compiler
49821           tmp_addflag=' -nofor_main' ;;
49822         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
49823           tmp_sharedflag='-qmkshrobj'
49824           tmp_addflag= ;;
49825         esac
49826         case `$CC -V 2>&1 | sed 5q` in
49827         *Sun\ C*)                       # Sun C 5.9
49828           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'
49829           compiler_needs_object=yes
49830           tmp_sharedflag='-G' ;;
49831         *Sun\ F*)                       # Sun Fortran 8.3
49832           tmp_sharedflag='-G' ;;
49833         esac
49834         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49835
49836         if test "x$supports_anon_versioning" = xyes; then
49837           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
49838             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
49839             echo "local: *; };" >> $output_objdir/$libname.ver~
49840             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
49841         fi
49842
49843         case $cc_basename in
49844         xlf*)
49845           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
49846           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
49847           hardcode_libdir_flag_spec=
49848           hardcode_libdir_flag_spec_ld='-rpath $libdir'
49849           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
49850           if test "x$supports_anon_versioning" = xyes; then
49851             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
49852               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
49853               echo "local: *; };" >> $output_objdir/$libname.ver~
49854               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
49855           fi
49856           ;;
49857         esac
49858       else
49859         ld_shlibs=no
49860       fi
49861       ;;
49862
49863     netbsd*)
49864       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
49865         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
49866         wlarc=
49867       else
49868         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49869         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49870       fi
49871       ;;
49872
49873     solaris*)
49874       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
49875         ld_shlibs=no
49876         cat <<_LT_EOF 1>&2
49877
49878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
49879 *** create shared libraries on Solaris systems.  Therefore, libtool
49880 *** is disabling shared libraries support.  We urge you to upgrade GNU
49881 *** binutils to release 2.9.1 or newer.  Another option is to modify
49882 *** your PATH or compiler configuration so that the native linker is
49883 *** used, and then restart.
49884
49885 _LT_EOF
49886       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49887         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49888         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49889       else
49890         ld_shlibs=no
49891       fi
49892       ;;
49893
49894     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
49895       case `$LD -v 2>&1` in
49896         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
49897         ld_shlibs=no
49898         cat <<_LT_EOF 1>&2
49899
49900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
49901 *** reliably create shared libraries on SCO systems.  Therefore, libtool
49902 *** is disabling shared libraries support.  We urge you to upgrade GNU
49903 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
49904 *** your PATH or compiler configuration so that the native linker is
49905 *** used, and then restart.
49906
49907 _LT_EOF
49908         ;;
49909         *)
49910           # For security reasons, it is highly recommended that you always
49911           # use absolute paths for naming shared libraries, and exclude the
49912           # DT_RUNPATH tag from executables and libraries.  But doing so
49913           # requires that you compile everything twice, which is a pain.
49914           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49915             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49916             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49917             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49918           else
49919             ld_shlibs=no
49920           fi
49921         ;;
49922       esac
49923       ;;
49924
49925     sunos4*)
49926       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
49927       wlarc=
49928       hardcode_direct=yes
49929       hardcode_shlibpath_var=no
49930       ;;
49931
49932     *)
49933       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49934         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49935         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49936       else
49937         ld_shlibs=no
49938       fi
49939       ;;
49940     esac
49941
49942     if test "$ld_shlibs" = no; then
49943       runpath_var=
49944       hardcode_libdir_flag_spec=
49945       export_dynamic_flag_spec=
49946       whole_archive_flag_spec=
49947     fi
49948   else
49949     # PORTME fill in a description of your system's linker (not GNU ld)
49950     case $host_os in
49951     aix3*)
49952       allow_undefined_flag=unsupported
49953       always_export_symbols=yes
49954       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'
49955       # Note: this linker hardcodes the directories in LIBPATH if there
49956       # are no directories specified by -L.
49957       hardcode_minus_L=yes
49958       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
49959         # Neither direct hardcoding nor static linking is supported with a
49960         # broken collect2.
49961         hardcode_direct=unsupported
49962       fi
49963       ;;
49964
49965     aix[4-9]*)
49966       if test "$host_cpu" = ia64; then
49967         # On IA64, the linker does run time linking by default, so we don't
49968         # have to do anything special.
49969         aix_use_runtimelinking=no
49970         exp_sym_flag='-Bexport'
49971         no_entry_flag=""
49972       else
49973         # If we're using GNU nm, then we don't want the "-C" option.
49974         # -C means demangle to AIX nm, but means don't demangle with GNU nm
49975         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
49976           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'
49977         else
49978           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'
49979         fi
49980         aix_use_runtimelinking=no
49981
49982         # Test if we are trying to use run time linking or normal
49983         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
49984         # need to do runtime linking.
49985         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
49986           for ld_flag in $LDFLAGS; do
49987           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
49988             aix_use_runtimelinking=yes
49989             break
49990           fi
49991           done
49992           ;;
49993         esac
49994
49995         exp_sym_flag='-bexport'
49996         no_entry_flag='-bnoentry'
49997       fi
49998
49999       # When large executables or shared objects are built, AIX ld can
50000       # have problems creating the table of contents.  If linking a library
50001       # or program results in "error TOC overflow" add -mminimal-toc to
50002       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
50003       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
50004
50005       archive_cmds=''
50006       hardcode_direct=yes
50007       hardcode_direct_absolute=yes
50008       hardcode_libdir_separator=':'
50009       link_all_deplibs=yes
50010       file_list_spec='${wl}-f,'
50011
50012       if test "$GCC" = yes; then
50013         case $host_os in aix4.[012]|aix4.[012].*)
50014         # We only want to do this on AIX 4.2 and lower, the check
50015         # below for broken collect2 doesn't work under 4.3+
50016           collect2name=`${CC} -print-prog-name=collect2`
50017           if test -f "$collect2name" &&
50018            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50019           then
50020           # We have reworked collect2
50021           :
50022           else
50023           # We have old collect2
50024           hardcode_direct=unsupported
50025           # It fails to find uninstalled libraries when the uninstalled
50026           # path is not listed in the libpath.  Setting hardcode_minus_L
50027           # to unsupported forces relinking
50028           hardcode_minus_L=yes
50029           hardcode_libdir_flag_spec='-L$libdir'
50030           hardcode_libdir_separator=
50031           fi
50032           ;;
50033         esac
50034         shared_flag='-shared'
50035         if test "$aix_use_runtimelinking" = yes; then
50036           shared_flag="$shared_flag "'${wl}-G'
50037         fi
50038       else
50039         # not using gcc
50040         if test "$host_cpu" = ia64; then
50041         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50042         # chokes on -Wl,-G. The following line is correct:
50043           shared_flag='-G'
50044         else
50045           if test "$aix_use_runtimelinking" = yes; then
50046             shared_flag='${wl}-G'
50047           else
50048             shared_flag='${wl}-bM:SRE'
50049           fi
50050         fi
50051       fi
50052
50053       # It seems that -bexpall does not export symbols beginning with
50054       # underscore (_), so it is better to generate a list of symbols to export.
50055       always_export_symbols=yes
50056       if test "$aix_use_runtimelinking" = yes; then
50057         # Warning - without using the other runtime loading flags (-brtl),
50058         # -berok will link without error, but may produce a broken library.
50059         allow_undefined_flag='-berok'
50060         # Determine the default libpath from the value encoded in an
50061         # empty executable.
50062         cat >conftest.$ac_ext <<_ACEOF
50063 /* confdefs.h.  */
50064 _ACEOF
50065 cat confdefs.h >>conftest.$ac_ext
50066 cat >>conftest.$ac_ext <<_ACEOF
50067 /* end confdefs.h.  */
50068
50069 int
50070 main ()
50071 {
50072
50073   ;
50074   return 0;
50075 }
50076 _ACEOF
50077 rm -f conftest.$ac_objext conftest$ac_exeext
50078 if { (ac_try="$ac_link"
50079 case "(($ac_try" in
50080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50081   *) ac_try_echo=$ac_try;;
50082 esac
50083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50084 $as_echo "$ac_try_echo") >&5
50085   (eval "$ac_link") 2>conftest.er1
50086   ac_status=$?
50087   grep -v '^ *+' conftest.er1 >conftest.err
50088   rm -f conftest.er1
50089   cat conftest.err >&5
50090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50091   (exit $ac_status); } && {
50092          test -z "$ac_c_werror_flag" ||
50093          test ! -s conftest.err
50094        } && test -s conftest$ac_exeext && {
50095          test "$cross_compiling" = yes ||
50096          $as_test_x conftest$ac_exeext
50097        }; then
50098
50099 lt_aix_libpath_sed='
50100     /Import File Strings/,/^$/ {
50101         /^0/ {
50102             s/^0  *\(.*\)$/\1/
50103             p
50104         }
50105     }'
50106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50107 # Check for a 64-bit object if we didn't find anything.
50108 if test -z "$aix_libpath"; then
50109   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50110 fi
50111 else
50112   $as_echo "$as_me: failed program was:" >&5
50113 sed 's/^/| /' conftest.$ac_ext >&5
50114
50115
50116 fi
50117
50118 rm -rf conftest.dSYM
50119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50120       conftest$ac_exeext conftest.$ac_ext
50121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
50122
50123         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
50124         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"
50125       else
50126         if test "$host_cpu" = ia64; then
50127           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
50128           allow_undefined_flag="-z nodefs"
50129           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"
50130         else
50131          # Determine the default libpath from the value encoded in an
50132          # empty executable.
50133          cat >conftest.$ac_ext <<_ACEOF
50134 /* confdefs.h.  */
50135 _ACEOF
50136 cat confdefs.h >>conftest.$ac_ext
50137 cat >>conftest.$ac_ext <<_ACEOF
50138 /* end confdefs.h.  */
50139
50140 int
50141 main ()
50142 {
50143
50144   ;
50145   return 0;
50146 }
50147 _ACEOF
50148 rm -f conftest.$ac_objext conftest$ac_exeext
50149 if { (ac_try="$ac_link"
50150 case "(($ac_try" in
50151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50152   *) ac_try_echo=$ac_try;;
50153 esac
50154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50155 $as_echo "$ac_try_echo") >&5
50156   (eval "$ac_link") 2>conftest.er1
50157   ac_status=$?
50158   grep -v '^ *+' conftest.er1 >conftest.err
50159   rm -f conftest.er1
50160   cat conftest.err >&5
50161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50162   (exit $ac_status); } && {
50163          test -z "$ac_c_werror_flag" ||
50164          test ! -s conftest.err
50165        } && test -s conftest$ac_exeext && {
50166          test "$cross_compiling" = yes ||
50167          $as_test_x conftest$ac_exeext
50168        }; then
50169
50170 lt_aix_libpath_sed='
50171     /Import File Strings/,/^$/ {
50172         /^0/ {
50173             s/^0  *\(.*\)$/\1/
50174             p
50175         }
50176     }'
50177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50178 # Check for a 64-bit object if we didn't find anything.
50179 if test -z "$aix_libpath"; then
50180   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50181 fi
50182 else
50183   $as_echo "$as_me: failed program was:" >&5
50184 sed 's/^/| /' conftest.$ac_ext >&5
50185
50186
50187 fi
50188
50189 rm -rf conftest.dSYM
50190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50191       conftest$ac_exeext conftest.$ac_ext
50192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
50193
50194          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
50195           # Warning - without using the other run time loading flags,
50196           # -berok will link without error, but may produce a broken library.
50197           no_undefined_flag=' ${wl}-bernotok'
50198           allow_undefined_flag=' ${wl}-berok'
50199           # Exported symbols can be pulled into shared objects from archives
50200           whole_archive_flag_spec='$convenience'
50201           archive_cmds_need_lc=yes
50202           # This is similar to how AIX traditionally builds its shared libraries.
50203           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'
50204         fi
50205       fi
50206       ;;
50207
50208     amigaos*)
50209       case $host_cpu in
50210       powerpc)
50211             # see comment about AmigaOS4 .so support
50212             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
50213             archive_expsym_cmds=''
50214         ;;
50215       m68k)
50216             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)'
50217             hardcode_libdir_flag_spec='-L$libdir'
50218             hardcode_minus_L=yes
50219         ;;
50220       esac
50221       ;;
50222
50223     bsdi[45]*)
50224       export_dynamic_flag_spec=-rdynamic
50225       ;;
50226
50227     cygwin* | mingw* | pw32*)
50228       # When not using gcc, we currently assume that we are using
50229       # Microsoft Visual C++.
50230       # hardcode_libdir_flag_spec is actually meaningless, as there is
50231       # no search path for DLLs.
50232       hardcode_libdir_flag_spec=' '
50233       allow_undefined_flag=unsupported
50234       # Tell ltmain to make .lib files, not .a files.
50235       libext=lib
50236       # Tell ltmain to make .dll files, not .so files.
50237       shrext_cmds=".dll"
50238       # FIXME: Setting linknames here is a bad hack.
50239       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
50240       # The linker will automatically build a .lib file if we build a DLL.
50241       old_archive_from_new_cmds='true'
50242       # FIXME: Should let the user specify the lib program.
50243       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
50244       fix_srcfile_path='`cygpath -w "$srcfile"`'
50245       enable_shared_with_static_runtimes=yes
50246       ;;
50247
50248     darwin* | rhapsody*)
50249
50250
50251   archive_cmds_need_lc=no
50252   hardcode_direct=no
50253   hardcode_automatic=yes
50254   hardcode_shlibpath_var=unsupported
50255   whole_archive_flag_spec=''
50256   link_all_deplibs=yes
50257   allow_undefined_flag="$_lt_dar_allow_undefined"
50258   if test "$GCC" = "yes"; then
50259     output_verbose_link_cmd=echo
50260     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
50261     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
50262     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}"
50263     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}"
50264
50265   else
50266   ld_shlibs=no
50267   fi
50268
50269       ;;
50270
50271     dgux*)
50272       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50273       hardcode_libdir_flag_spec='-L$libdir'
50274       hardcode_shlibpath_var=no
50275       ;;
50276
50277     freebsd1*)
50278       ld_shlibs=no
50279       ;;
50280
50281     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
50282     # support.  Future versions do this automatically, but an explicit c++rt0.o
50283     # does not break anything, and helps significantly (at the cost of a little
50284     # extra space).
50285     freebsd2.2*)
50286       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
50287       hardcode_libdir_flag_spec='-R$libdir'
50288       hardcode_direct=yes
50289       hardcode_shlibpath_var=no
50290       ;;
50291
50292     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
50293     freebsd2*)
50294       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
50295       hardcode_direct=yes
50296       hardcode_minus_L=yes
50297       hardcode_shlibpath_var=no
50298       ;;
50299
50300     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
50301     freebsd* | dragonfly*)
50302       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
50303       hardcode_libdir_flag_spec='-R$libdir'
50304       hardcode_direct=yes
50305       hardcode_shlibpath_var=no
50306       ;;
50307
50308     hpux9*)
50309       if test "$GCC" = yes; then
50310         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'
50311       else
50312         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'
50313       fi
50314       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50315       hardcode_libdir_separator=:
50316       hardcode_direct=yes
50317
50318       # hardcode_minus_L: Not really in the search PATH,
50319       # but as the default location of the library.
50320       hardcode_minus_L=yes
50321       export_dynamic_flag_spec='${wl}-E'
50322       ;;
50323
50324     hpux10*)
50325       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
50326         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50327       else
50328         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
50329       fi
50330       if test "$with_gnu_ld" = no; then
50331         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50332         hardcode_libdir_flag_spec_ld='+b $libdir'
50333         hardcode_libdir_separator=:
50334         hardcode_direct=yes
50335         hardcode_direct_absolute=yes
50336         export_dynamic_flag_spec='${wl}-E'
50337         # hardcode_minus_L: Not really in the search PATH,
50338         # but as the default location of the library.
50339         hardcode_minus_L=yes
50340       fi
50341       ;;
50342
50343     hpux11*)
50344       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
50345         case $host_cpu in
50346         hppa*64*)
50347           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50348           ;;
50349         ia64*)
50350           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
50351           ;;
50352         *)
50353           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50354           ;;
50355         esac
50356       else
50357         case $host_cpu in
50358         hppa*64*)
50359           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50360           ;;
50361         ia64*)
50362           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
50363           ;;
50364         *)
50365           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50366           ;;
50367         esac
50368       fi
50369       if test "$with_gnu_ld" = no; then
50370         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50371         hardcode_libdir_separator=:
50372
50373         case $host_cpu in
50374         hppa*64*|ia64*)
50375           hardcode_direct=no
50376           hardcode_shlibpath_var=no
50377           ;;
50378         *)
50379           hardcode_direct=yes
50380           hardcode_direct_absolute=yes
50381           export_dynamic_flag_spec='${wl}-E'
50382
50383           # hardcode_minus_L: Not really in the search PATH,
50384           # but as the default location of the library.
50385           hardcode_minus_L=yes
50386           ;;
50387         esac
50388       fi
50389       ;;
50390
50391     irix5* | irix6* | nonstopux*)
50392       if test "$GCC" = yes; then
50393         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'
50394         # Try to use the -exported_symbol ld option, if it does not
50395         # work, assume that -exports_file does not work either and
50396         # implicitly export all symbols.
50397         save_LDFLAGS="$LDFLAGS"
50398         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
50399         cat >conftest.$ac_ext <<_ACEOF
50400 int foo(void) {}
50401 _ACEOF
50402 rm -f conftest.$ac_objext conftest$ac_exeext
50403 if { (ac_try="$ac_link"
50404 case "(($ac_try" in
50405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50406   *) ac_try_echo=$ac_try;;
50407 esac
50408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50409 $as_echo "$ac_try_echo") >&5
50410   (eval "$ac_link") 2>conftest.er1
50411   ac_status=$?
50412   grep -v '^ *+' conftest.er1 >conftest.err
50413   rm -f conftest.er1
50414   cat conftest.err >&5
50415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50416   (exit $ac_status); } && {
50417          test -z "$ac_c_werror_flag" ||
50418          test ! -s conftest.err
50419        } && test -s conftest$ac_exeext && {
50420          test "$cross_compiling" = yes ||
50421          $as_test_x conftest$ac_exeext
50422        }; then
50423   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'
50424
50425 else
50426   $as_echo "$as_me: failed program was:" >&5
50427 sed 's/^/| /' conftest.$ac_ext >&5
50428
50429
50430 fi
50431
50432 rm -rf conftest.dSYM
50433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50434       conftest$ac_exeext conftest.$ac_ext
50435         LDFLAGS="$save_LDFLAGS"
50436       else
50437         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'
50438         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'
50439       fi
50440       archive_cmds_need_lc='no'
50441       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50442       hardcode_libdir_separator=:
50443       inherit_rpath=yes
50444       link_all_deplibs=yes
50445       ;;
50446
50447     netbsd*)
50448       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
50449         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
50450       else
50451         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
50452       fi
50453       hardcode_libdir_flag_spec='-R$libdir'
50454       hardcode_direct=yes
50455       hardcode_shlibpath_var=no
50456       ;;
50457
50458     newsos6)
50459       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50460       hardcode_direct=yes
50461       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50462       hardcode_libdir_separator=:
50463       hardcode_shlibpath_var=no
50464       ;;
50465
50466     *nto* | *qnx*)
50467       ;;
50468
50469     openbsd*)
50470       if test -f /usr/libexec/ld.so; then
50471         hardcode_direct=yes
50472         hardcode_shlibpath_var=no
50473         hardcode_direct_absolute=yes
50474         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
50475           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
50476           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
50477           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
50478           export_dynamic_flag_spec='${wl}-E'
50479         else
50480           case $host_os in
50481            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
50482              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
50483              hardcode_libdir_flag_spec='-R$libdir'
50484              ;;
50485            *)
50486              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
50487              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
50488              ;;
50489           esac
50490         fi
50491       else
50492         ld_shlibs=no
50493       fi
50494       ;;
50495
50496     os2*)
50497       hardcode_libdir_flag_spec='-L$libdir'
50498       hardcode_minus_L=yes
50499       allow_undefined_flag=unsupported
50500       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'
50501       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
50502       ;;
50503
50504     osf3*)
50505       if test "$GCC" = yes; then
50506         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
50507         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'
50508       else
50509         allow_undefined_flag=' -expect_unresolved \*'
50510         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'
50511       fi
50512       archive_cmds_need_lc='no'
50513       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50514       hardcode_libdir_separator=:
50515       ;;
50516
50517     osf4* | osf5*)      # as osf3* with the addition of -msym flag
50518       if test "$GCC" = yes; then
50519         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
50520         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'
50521         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50522       else
50523         allow_undefined_flag=' -expect_unresolved \*'
50524         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'
50525         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~
50526         $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'
50527
50528         # Both c and cxx compiler support -rpath directly
50529         hardcode_libdir_flag_spec='-rpath $libdir'
50530       fi
50531       archive_cmds_need_lc='no'
50532       hardcode_libdir_separator=:
50533       ;;
50534
50535     solaris*)
50536       no_undefined_flag=' -z defs'
50537       if test "$GCC" = yes; then
50538         wlarc='${wl}'
50539         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50540         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50541           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50542       else
50543         case `$CC -V 2>&1` in
50544         *"Compilers 5.0"*)
50545           wlarc=''
50546           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
50547           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50548           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
50549           ;;
50550         *)
50551           wlarc='${wl}'
50552           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
50553           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50554           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50555           ;;
50556         esac
50557       fi
50558       hardcode_libdir_flag_spec='-R$libdir'
50559       hardcode_shlibpath_var=no
50560       case $host_os in
50561       solaris2.[0-5] | solaris2.[0-5].*) ;;
50562       *)
50563         # The compiler driver will combine and reorder linker options,
50564         # but understands `-z linker_flag'.  GCC discards it without `$wl',
50565         # but is careful enough not to reorder.
50566         # Supported since Solaris 2.6 (maybe 2.5.1?)
50567         if test "$GCC" = yes; then
50568           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
50569         else
50570           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
50571         fi
50572         ;;
50573       esac
50574       link_all_deplibs=yes
50575       ;;
50576
50577     sunos4*)
50578       if test "x$host_vendor" = xsequent; then
50579         # Use $CC to link under sequent, because it throws in some extra .o
50580         # files that make .init and .fini sections work.
50581         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
50582       else
50583         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
50584       fi
50585       hardcode_libdir_flag_spec='-L$libdir'
50586       hardcode_direct=yes
50587       hardcode_minus_L=yes
50588       hardcode_shlibpath_var=no
50589       ;;
50590
50591     sysv4)
50592       case $host_vendor in
50593         sni)
50594           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50595           hardcode_direct=yes # is this really true???
50596         ;;
50597         siemens)
50598           ## LD is ld it makes a PLAMLIB
50599           ## CC just makes a GrossModule.
50600           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
50601           reload_cmds='$CC -r -o $output$reload_objs'
50602           hardcode_direct=no
50603         ;;
50604         motorola)
50605           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50606           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
50607         ;;
50608       esac
50609       runpath_var='LD_RUN_PATH'
50610       hardcode_shlibpath_var=no
50611       ;;
50612
50613     sysv4.3*)
50614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50615       hardcode_shlibpath_var=no
50616       export_dynamic_flag_spec='-Bexport'
50617       ;;
50618
50619     sysv4*MP*)
50620       if test -d /usr/nec; then
50621         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50622         hardcode_shlibpath_var=no
50623         runpath_var=LD_RUN_PATH
50624         hardcode_runpath_var=yes
50625         ld_shlibs=yes
50626       fi
50627       ;;
50628
50629     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
50630       no_undefined_flag='${wl}-z,text'
50631       archive_cmds_need_lc=no
50632       hardcode_shlibpath_var=no
50633       runpath_var='LD_RUN_PATH'
50634
50635       if test "$GCC" = yes; then
50636         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50637         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50638       else
50639         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50640         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50641       fi
50642       ;;
50643
50644     sysv5* | sco3.2v5* | sco5v6*)
50645       # Note: We can NOT use -z defs as we might desire, because we do not
50646       # link with -lc, and that would cause any symbols used from libc to
50647       # always be unresolved, which means just about no library would
50648       # ever link correctly.  If we're not using GNU ld we use -z text
50649       # though, which does catch some bad symbols but isn't as heavy-handed
50650       # as -z defs.
50651       no_undefined_flag='${wl}-z,text'
50652       allow_undefined_flag='${wl}-z,nodefs'
50653       archive_cmds_need_lc=no
50654       hardcode_shlibpath_var=no
50655       hardcode_libdir_flag_spec='${wl}-R,$libdir'
50656       hardcode_libdir_separator=':'
50657       link_all_deplibs=yes
50658       export_dynamic_flag_spec='${wl}-Bexport'
50659       runpath_var='LD_RUN_PATH'
50660
50661       if test "$GCC" = yes; then
50662         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50663         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50664       else
50665         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50666         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50667       fi
50668       ;;
50669
50670     uts4*)
50671       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50672       hardcode_libdir_flag_spec='-L$libdir'
50673       hardcode_shlibpath_var=no
50674       ;;
50675
50676     *)
50677       ld_shlibs=no
50678       ;;
50679     esac
50680
50681     if test x$host_vendor = xsni; then
50682       case $host in
50683       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
50684         export_dynamic_flag_spec='${wl}-Blargedynsym'
50685         ;;
50686       esac
50687     fi
50688   fi
50689
50690 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
50691 $as_echo "$ld_shlibs" >&6; }
50692 test "$ld_shlibs" = no && can_build_shared=no
50693
50694 with_gnu_ld=$with_gnu_ld
50695
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710 #
50711 # Do we need to explicitly link libc?
50712 #
50713 case "x$archive_cmds_need_lc" in
50714 x|xyes)
50715   # Assume -lc should be added
50716   archive_cmds_need_lc=yes
50717
50718   if test "$enable_shared" = yes && test "$GCC" = yes; then
50719     case $archive_cmds in
50720     *'~'*)
50721       # FIXME: we may have to deal with multi-command sequences.
50722       ;;
50723     '$CC '*)
50724       # Test whether the compiler implicitly links with -lc since on some
50725       # systems, -lgcc has to come before -lc. If gcc already passes -lc
50726       # to ld, don't add -lc before -lgcc.
50727       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
50728 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
50729       $RM conftest*
50730       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
50731
50732       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50733   (eval $ac_compile) 2>&5
50734   ac_status=$?
50735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50736   (exit $ac_status); } 2>conftest.err; then
50737         soname=conftest
50738         lib=conftest
50739         libobjs=conftest.$ac_objext
50740         deplibs=
50741         wl=$lt_prog_compiler_wl
50742         pic_flag=$lt_prog_compiler_pic
50743         compiler_flags=-v
50744         linker_flags=-v
50745         verstring=
50746         output_objdir=.
50747         libname=conftest
50748         lt_save_allow_undefined_flag=$allow_undefined_flag
50749         allow_undefined_flag=
50750         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
50751   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
50752   ac_status=$?
50753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50754   (exit $ac_status); }
50755         then
50756           archive_cmds_need_lc=no
50757         else
50758           archive_cmds_need_lc=yes
50759         fi
50760         allow_undefined_flag=$lt_save_allow_undefined_flag
50761       else
50762         cat conftest.err 1>&5
50763       fi
50764       $RM conftest*
50765       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
50766 $as_echo "$archive_cmds_need_lc" >&6; }
50767       ;;
50768     esac
50769   fi
50770   ;;
50771 esac
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781
50782
50783
50784
50785
50786
50787
50788
50789
50790
50791
50792
50793
50794
50795
50796
50797
50798
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
50814
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   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
50930 $as_echo_n "checking dynamic linker characteristics... " >&6; }
50931
50932 if test "$GCC" = yes; then
50933   case $host_os in
50934     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
50935     *) lt_awk_arg="/^libraries:/" ;;
50936   esac
50937   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
50938   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
50939     # if the path contains ";" then we assume it to be the separator
50940     # otherwise default to the standard path separator (i.e. ":") - it is
50941     # assumed that no part of a normal pathname contains ";" but that should
50942     # okay in the real world where ";" in dirpaths is itself problematic.
50943     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
50944   else
50945     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
50946   fi
50947   # Ok, now we have the path, separated by spaces, we can step through it
50948   # and add multilib dir if necessary.
50949   lt_tmp_lt_search_path_spec=
50950   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
50951   for lt_sys_path in $lt_search_path_spec; do
50952     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
50953       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
50954     else
50955       test -d "$lt_sys_path" && \
50956         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
50957     fi
50958   done
50959   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
50960 BEGIN {RS=" "; FS="/|\n";} {
50961   lt_foo="";
50962   lt_count=0;
50963   for (lt_i = NF; lt_i > 0; lt_i--) {
50964     if ($lt_i != "" && $lt_i != ".") {
50965       if ($lt_i == "..") {
50966         lt_count++;
50967       } else {
50968         if (lt_count == 0) {
50969           lt_foo="/" $lt_i lt_foo;
50970         } else {
50971           lt_count--;
50972         }
50973       }
50974     }
50975   }
50976   if (lt_foo != "") { lt_freq[lt_foo]++; }
50977   if (lt_freq[lt_foo] == 1) { print lt_foo; }
50978 }'`
50979   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
50980 else
50981   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
50982 fi
50983 library_names_spec=
50984 libname_spec='lib$name'
50985 soname_spec=
50986 shrext_cmds=".so"
50987 postinstall_cmds=
50988 postuninstall_cmds=
50989 finish_cmds=
50990 finish_eval=
50991 shlibpath_var=
50992 shlibpath_overrides_runpath=unknown
50993 version_type=none
50994 dynamic_linker="$host_os ld.so"
50995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
50996 need_lib_prefix=unknown
50997 hardcode_into_libs=no
50998
50999 # when you set need_version to no, make sure it does not cause -set_version
51000 # flags to be left without arguments
51001 need_version=unknown
51002
51003 case $host_os in
51004 aix3*)
51005   version_type=linux
51006   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
51007   shlibpath_var=LIBPATH
51008
51009   # AIX 3 has no versioning support, so we append a major version to the name.
51010   soname_spec='${libname}${release}${shared_ext}$major'
51011   ;;
51012
51013 aix[4-9]*)
51014   version_type=linux
51015   need_lib_prefix=no
51016   need_version=no
51017   hardcode_into_libs=yes
51018   if test "$host_cpu" = ia64; then
51019     # AIX 5 supports IA64
51020     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
51021     shlibpath_var=LD_LIBRARY_PATH
51022   else
51023     # With GCC up to 2.95.x, collect2 would create an import file
51024     # for dependence libraries.  The import file would start with
51025     # the line `#! .'.  This would cause the generated library to
51026     # depend on `.', always an invalid library.  This was fixed in
51027     # development snapshots of GCC prior to 3.0.
51028     case $host_os in
51029       aix4 | aix4.[01] | aix4.[01].*)
51030       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
51031            echo ' yes '
51032            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
51033         :
51034       else
51035         can_build_shared=no
51036       fi
51037       ;;
51038     esac
51039     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
51040     # soname into executable. Probably we can add versioning support to
51041     # collect2, so additional links can be useful in future.
51042     if test "$aix_use_runtimelinking" = yes; then
51043       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
51044       # instead of lib<name>.a to let people know that these are not
51045       # typical AIX shared libraries.
51046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51047     else
51048       # We preserve .a as extension for shared libraries through AIX4.2
51049       # and later when we are not doing run time linking.
51050       library_names_spec='${libname}${release}.a $libname.a'
51051       soname_spec='${libname}${release}${shared_ext}$major'
51052     fi
51053     shlibpath_var=LIBPATH
51054   fi
51055   ;;
51056
51057 amigaos*)
51058   case $host_cpu in
51059   powerpc)
51060     # Since July 2007 AmigaOS4 officially supports .so libraries.
51061     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
51062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51063     ;;
51064   m68k)
51065     library_names_spec='$libname.ixlibrary $libname.a'
51066     # Create ${libname}_ixlibrary.a entries in /sys/libs.
51067     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'
51068     ;;
51069   esac
51070   ;;
51071
51072 beos*)
51073   library_names_spec='${libname}${shared_ext}'
51074   dynamic_linker="$host_os ld.so"
51075   shlibpath_var=LIBRARY_PATH
51076   ;;
51077
51078 bsdi[45]*)
51079   version_type=linux
51080   need_version=no
51081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51082   soname_spec='${libname}${release}${shared_ext}$major'
51083   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
51084   shlibpath_var=LD_LIBRARY_PATH
51085   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
51086   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
51087   # the default ld.so.conf also contains /usr/contrib/lib and
51088   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
51089   # libtool to hard-code these into programs
51090   ;;
51091
51092 cygwin* | mingw* | pw32*)
51093   version_type=windows
51094   shrext_cmds=".dll"
51095   need_version=no
51096   need_lib_prefix=no
51097
51098   case $GCC,$host_os in
51099   yes,cygwin* | yes,mingw* | yes,pw32*)
51100     library_names_spec='$libname.dll.a'
51101     # DLL is installed to $(libdir)/../bin by postinstall_cmds
51102     postinstall_cmds='base_file=`basename \${file}`~
51103       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
51104       dldir=$destdir/`dirname \$dlpath`~
51105       test -d \$dldir || mkdir -p \$dldir~
51106       $install_prog $dir/$dlname \$dldir/$dlname~
51107       chmod a+x \$dldir/$dlname~
51108       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
51109         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
51110       fi'
51111     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
51112       dlpath=$dir/\$dldll~
51113        $RM \$dlpath'
51114     shlibpath_overrides_runpath=yes
51115
51116     case $host_os in
51117     cygwin*)
51118       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
51119       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51120       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
51121       ;;
51122     mingw*)
51123       # MinGW DLLs use traditional 'lib' prefix
51124       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51125       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
51126       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
51127         # It is most probably a Windows format PATH printed by
51128         # mingw gcc, but we are running on Cygwin. Gcc prints its search
51129         # path with ; separators, and with drive letters. We can handle the
51130         # drive letters (cygwin fileutils understands them), so leave them,
51131         # especially as we might pass files found there to a mingw objdump,
51132         # which wouldn't understand a cygwinified path. Ahh.
51133         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
51134       else
51135         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
51136       fi
51137       ;;
51138     pw32*)
51139       # pw32 DLLs use 'pw' prefix rather than 'lib'
51140       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51141       ;;
51142     esac
51143     ;;
51144
51145   *)
51146     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
51147     ;;
51148   esac
51149   dynamic_linker='Win32 ld.exe'
51150   # FIXME: first we should search . and the directory the executable is in
51151   shlibpath_var=PATH
51152   ;;
51153
51154 darwin* | rhapsody*)
51155   dynamic_linker="$host_os dyld"
51156   version_type=darwin
51157   need_lib_prefix=no
51158   need_version=no
51159   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
51160   soname_spec='${libname}${release}${major}$shared_ext'
51161   shlibpath_overrides_runpath=yes
51162   shlibpath_var=DYLD_LIBRARY_PATH
51163   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
51164
51165   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
51166   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
51167   ;;
51168
51169 dgux*)
51170   version_type=linux
51171   need_lib_prefix=no
51172   need_version=no
51173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
51174   soname_spec='${libname}${release}${shared_ext}$major'
51175   shlibpath_var=LD_LIBRARY_PATH
51176   ;;
51177
51178 freebsd1*)
51179   dynamic_linker=no
51180   ;;
51181
51182 freebsd* | dragonfly*)
51183   # DragonFly does not have aout.  When/if they implement a new
51184   # versioning mechanism, adjust this.
51185   if test -x /usr/bin/objformat; then
51186     objformat=`/usr/bin/objformat`
51187   else
51188     case $host_os in
51189     freebsd[123]*) objformat=aout ;;
51190     *) objformat=elf ;;
51191     esac
51192   fi
51193   # Handle Gentoo/FreeBSD as it was Linux
51194   case $host_vendor in
51195     gentoo)
51196       version_type=linux ;;
51197     *)
51198       version_type=freebsd-$objformat ;;
51199   esac
51200
51201   case $version_type in
51202     freebsd-elf*)
51203       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
51204       need_version=no
51205       need_lib_prefix=no
51206       ;;
51207     freebsd-*)
51208       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
51209       need_version=yes
51210       ;;
51211     linux)
51212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51213       soname_spec='${libname}${release}${shared_ext}$major'
51214       need_lib_prefix=no
51215       need_version=no
51216       ;;
51217   esac
51218   shlibpath_var=LD_LIBRARY_PATH
51219   case $host_os in
51220   freebsd2*)
51221     shlibpath_overrides_runpath=yes
51222     ;;
51223   freebsd3.[01]* | freebsdelf3.[01]*)
51224     shlibpath_overrides_runpath=yes
51225     hardcode_into_libs=yes
51226     ;;
51227   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
51228   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
51229     shlibpath_overrides_runpath=no
51230     hardcode_into_libs=yes
51231     ;;
51232   *) # from 4.6 on, and DragonFly
51233     shlibpath_overrides_runpath=yes
51234     hardcode_into_libs=yes
51235     ;;
51236   esac
51237   ;;
51238
51239 gnu*)
51240   version_type=linux
51241   need_lib_prefix=no
51242   need_version=no
51243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
51244   soname_spec='${libname}${release}${shared_ext}$major'
51245   shlibpath_var=LD_LIBRARY_PATH
51246   hardcode_into_libs=yes
51247   ;;
51248
51249 hpux9* | hpux10* | hpux11*)
51250   # Give a soname corresponding to the major version so that dld.sl refuses to
51251   # link against other versions.
51252   version_type=sunos
51253   need_lib_prefix=no
51254   need_version=no
51255   case $host_cpu in
51256   ia64*)
51257     shrext_cmds='.so'
51258     hardcode_into_libs=yes
51259     dynamic_linker="$host_os dld.so"
51260     shlibpath_var=LD_LIBRARY_PATH
51261     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
51262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51263     soname_spec='${libname}${release}${shared_ext}$major'
51264     if test "X$HPUX_IA64_MODE" = X32; then
51265       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
51266     else
51267       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
51268     fi
51269     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
51270     ;;
51271   hppa*64*)
51272     shrext_cmds='.sl'
51273     hardcode_into_libs=yes
51274     dynamic_linker="$host_os dld.sl"
51275     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
51276     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
51277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51278     soname_spec='${libname}${release}${shared_ext}$major'
51279     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
51280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
51281     ;;
51282   *)
51283     shrext_cmds='.sl'
51284     dynamic_linker="$host_os dld.sl"
51285     shlibpath_var=SHLIB_PATH
51286     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
51287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51288     soname_spec='${libname}${release}${shared_ext}$major'
51289     ;;
51290   esac
51291   # HP-UX runs *really* slowly unless shared libraries are mode 555.
51292   postinstall_cmds='chmod 555 $lib'
51293   ;;
51294
51295 interix[3-9]*)
51296   version_type=linux
51297   need_lib_prefix=no
51298   need_version=no
51299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51300   soname_spec='${libname}${release}${shared_ext}$major'
51301   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
51302   shlibpath_var=LD_LIBRARY_PATH
51303   shlibpath_overrides_runpath=no
51304   hardcode_into_libs=yes
51305   ;;
51306
51307 irix5* | irix6* | nonstopux*)
51308   case $host_os in
51309     nonstopux*) version_type=nonstopux ;;
51310     *)
51311         if test "$lt_cv_prog_gnu_ld" = yes; then
51312                 version_type=linux
51313         else
51314                 version_type=irix
51315         fi ;;
51316   esac
51317   need_lib_prefix=no
51318   need_version=no
51319   soname_spec='${libname}${release}${shared_ext}$major'
51320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
51321   case $host_os in
51322   irix5* | nonstopux*)
51323     libsuff= shlibsuff=
51324     ;;
51325   *)
51326     case $LD in # libtool.m4 will add one of these switches to LD
51327     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
51328       libsuff= shlibsuff= libmagic=32-bit;;
51329     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
51330       libsuff=32 shlibsuff=N32 libmagic=N32;;
51331     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
51332       libsuff=64 shlibsuff=64 libmagic=64-bit;;
51333     *) libsuff= shlibsuff= libmagic=never-match;;
51334     esac
51335     ;;
51336   esac
51337   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
51338   shlibpath_overrides_runpath=no
51339   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
51340   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
51341   hardcode_into_libs=yes
51342   ;;
51343
51344 # No shared lib support for Linux oldld, aout, or coff.
51345 linux*oldld* | linux*aout* | linux*coff*)
51346   dynamic_linker=no
51347   ;;
51348
51349 # This must be Linux ELF.
51350 linux* | k*bsd*-gnu)
51351   version_type=linux
51352   need_lib_prefix=no
51353   need_version=no
51354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51355   soname_spec='${libname}${release}${shared_ext}$major'
51356   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
51357   shlibpath_var=LD_LIBRARY_PATH
51358   shlibpath_overrides_runpath=no
51359   # Some binutils ld are patched to set DT_RUNPATH
51360   save_LDFLAGS=$LDFLAGS
51361   save_libdir=$libdir
51362   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
51363        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
51364   cat >conftest.$ac_ext <<_ACEOF
51365 /* confdefs.h.  */
51366 _ACEOF
51367 cat confdefs.h >>conftest.$ac_ext
51368 cat >>conftest.$ac_ext <<_ACEOF
51369 /* end confdefs.h.  */
51370
51371 int
51372 main ()
51373 {
51374
51375   ;
51376   return 0;
51377 }
51378 _ACEOF
51379 rm -f conftest.$ac_objext conftest$ac_exeext
51380 if { (ac_try="$ac_link"
51381 case "(($ac_try" in
51382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51383   *) ac_try_echo=$ac_try;;
51384 esac
51385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51386 $as_echo "$ac_try_echo") >&5
51387   (eval "$ac_link") 2>conftest.er1
51388   ac_status=$?
51389   grep -v '^ *+' conftest.er1 >conftest.err
51390   rm -f conftest.er1
51391   cat conftest.err >&5
51392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51393   (exit $ac_status); } && {
51394          test -z "$ac_c_werror_flag" ||
51395          test ! -s conftest.err
51396        } && test -s conftest$ac_exeext && {
51397          test "$cross_compiling" = yes ||
51398          $as_test_x conftest$ac_exeext
51399        }; then
51400   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
51401   shlibpath_overrides_runpath=yes
51402 fi
51403
51404 else
51405   $as_echo "$as_me: failed program was:" >&5
51406 sed 's/^/| /' conftest.$ac_ext >&5
51407
51408
51409 fi
51410
51411 rm -rf conftest.dSYM
51412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51413       conftest$ac_exeext conftest.$ac_ext
51414   LDFLAGS=$save_LDFLAGS
51415   libdir=$save_libdir
51416
51417   # This implies no fast_install, which is unacceptable.
51418   # Some rework will be needed to allow for fast_install
51419   # before this can be enabled.
51420   hardcode_into_libs=yes
51421
51422   # Append ld.so.conf contents to the search path
51423   if test -f /etc/ld.so.conf; then
51424     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' ' '`
51425     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
51426   fi
51427
51428   # We used to test for /lib/ld.so.1 and disable shared libraries on
51429   # powerpc, because MkLinux only supported shared libraries with the
51430   # GNU dynamic linker.  Since this was broken with cross compilers,
51431   # most powerpc-linux boxes support dynamic linking these days and
51432   # people can always --disable-shared, the test was removed, and we
51433   # assume the GNU/Linux dynamic linker is in use.
51434   dynamic_linker='GNU/Linux ld.so'
51435   ;;
51436
51437 netbsd*)
51438   version_type=sunos
51439   need_lib_prefix=no
51440   need_version=no
51441   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
51442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
51444     dynamic_linker='NetBSD (a.out) ld.so'
51445   else
51446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51447     soname_spec='${libname}${release}${shared_ext}$major'
51448     dynamic_linker='NetBSD ld.elf_so'
51449   fi
51450   shlibpath_var=LD_LIBRARY_PATH
51451   shlibpath_overrides_runpath=yes
51452   hardcode_into_libs=yes
51453   ;;
51454
51455 newsos6)
51456   version_type=linux
51457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51458   shlibpath_var=LD_LIBRARY_PATH
51459   shlibpath_overrides_runpath=yes
51460   ;;
51461
51462 *nto* | *qnx*)
51463   version_type=qnx
51464   need_lib_prefix=no
51465   need_version=no
51466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51467   soname_spec='${libname}${release}${shared_ext}$major'
51468   shlibpath_var=LD_LIBRARY_PATH
51469   shlibpath_overrides_runpath=no
51470   hardcode_into_libs=yes
51471   dynamic_linker='ldqnx.so'
51472   ;;
51473
51474 openbsd*)
51475   version_type=sunos
51476   sys_lib_dlsearch_path_spec="/usr/lib"
51477   need_lib_prefix=no
51478   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
51479   case $host_os in
51480     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
51481     *)                          need_version=no  ;;
51482   esac
51483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
51485   shlibpath_var=LD_LIBRARY_PATH
51486   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
51487     case $host_os in
51488       openbsd2.[89] | openbsd2.[89].*)
51489         shlibpath_overrides_runpath=no
51490         ;;
51491       *)
51492         shlibpath_overrides_runpath=yes
51493         ;;
51494       esac
51495   else
51496     shlibpath_overrides_runpath=yes
51497   fi
51498   ;;
51499
51500 os2*)
51501   libname_spec='$name'
51502   shrext_cmds=".dll"
51503   need_lib_prefix=no
51504   library_names_spec='$libname${shared_ext} $libname.a'
51505   dynamic_linker='OS/2 ld.exe'
51506   shlibpath_var=LIBPATH
51507   ;;
51508
51509 osf3* | osf4* | osf5*)
51510   version_type=osf
51511   need_lib_prefix=no
51512   need_version=no
51513   soname_spec='${libname}${release}${shared_ext}$major'
51514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51515   shlibpath_var=LD_LIBRARY_PATH
51516   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
51517   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
51518   ;;
51519
51520 rdos*)
51521   dynamic_linker=no
51522   ;;
51523
51524 solaris*)
51525   version_type=linux
51526   need_lib_prefix=no
51527   need_version=no
51528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51529   soname_spec='${libname}${release}${shared_ext}$major'
51530   shlibpath_var=LD_LIBRARY_PATH
51531   shlibpath_overrides_runpath=yes
51532   hardcode_into_libs=yes
51533   # ldd complains unless libraries are executable
51534   postinstall_cmds='chmod +x $lib'
51535   ;;
51536
51537 sunos4*)
51538   version_type=sunos
51539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51540   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
51541   shlibpath_var=LD_LIBRARY_PATH
51542   shlibpath_overrides_runpath=yes
51543   if test "$with_gnu_ld" = yes; then
51544     need_lib_prefix=no
51545   fi
51546   need_version=yes
51547   ;;
51548
51549 sysv4 | sysv4.3*)
51550   version_type=linux
51551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51552   soname_spec='${libname}${release}${shared_ext}$major'
51553   shlibpath_var=LD_LIBRARY_PATH
51554   case $host_vendor in
51555     sni)
51556       shlibpath_overrides_runpath=no
51557       need_lib_prefix=no
51558       runpath_var=LD_RUN_PATH
51559       ;;
51560     siemens)
51561       need_lib_prefix=no
51562       ;;
51563     motorola)
51564       need_lib_prefix=no
51565       need_version=no
51566       shlibpath_overrides_runpath=no
51567       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
51568       ;;
51569   esac
51570   ;;
51571
51572 sysv4*MP*)
51573   if test -d /usr/nec ;then
51574     version_type=linux
51575     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
51576     soname_spec='$libname${shared_ext}.$major'
51577     shlibpath_var=LD_LIBRARY_PATH
51578   fi
51579   ;;
51580
51581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
51582   version_type=freebsd-elf
51583   need_lib_prefix=no
51584   need_version=no
51585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
51586   soname_spec='${libname}${release}${shared_ext}$major'
51587   shlibpath_var=LD_LIBRARY_PATH
51588   shlibpath_overrides_runpath=yes
51589   hardcode_into_libs=yes
51590   if test "$with_gnu_ld" = yes; then
51591     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
51592   else
51593     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
51594     case $host_os in
51595       sco3.2v5*)
51596         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
51597         ;;
51598     esac
51599   fi
51600   sys_lib_dlsearch_path_spec='/usr/lib'
51601   ;;
51602
51603 tpf*)
51604   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
51605   version_type=linux
51606   need_lib_prefix=no
51607   need_version=no
51608   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51609   shlibpath_var=LD_LIBRARY_PATH
51610   shlibpath_overrides_runpath=no
51611   hardcode_into_libs=yes
51612   ;;
51613
51614 uts4*)
51615   version_type=linux
51616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51617   soname_spec='${libname}${release}${shared_ext}$major'
51618   shlibpath_var=LD_LIBRARY_PATH
51619   ;;
51620
51621 *)
51622   dynamic_linker=no
51623   ;;
51624 esac
51625 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
51626 $as_echo "$dynamic_linker" >&6; }
51627 test "$dynamic_linker" = no && can_build_shared=no
51628
51629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
51630 if test "$GCC" = yes; then
51631   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
51632 fi
51633
51634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
51635   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
51636 fi
51637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
51638   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
51639 fi
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654
51655
51656
51657
51658
51659
51660
51661
51662
51663
51664
51665
51666
51667
51668
51669
51670
51671
51672
51673
51674
51675
51676
51677
51678
51679
51680
51681
51682
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   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
51728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
51729 hardcode_action=
51730 if test -n "$hardcode_libdir_flag_spec" ||
51731    test -n "$runpath_var" ||
51732    test "X$hardcode_automatic" = "Xyes" ; then
51733
51734   # We can hardcode non-existent directories.
51735   if test "$hardcode_direct" != no &&
51736      # If the only mechanism to avoid hardcoding is shlibpath_var, we
51737      # have to relink, otherwise we might link with an installed library
51738      # when we should be linking with a yet-to-be-installed one
51739      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
51740      test "$hardcode_minus_L" != no; then
51741     # Linking always hardcodes the temporary library directory.
51742     hardcode_action=relink
51743   else
51744     # We can link without hardcoding, and we can hardcode nonexisting dirs.
51745     hardcode_action=immediate
51746   fi
51747 else
51748   # We cannot hardcode anything, or else we can only hardcode existing
51749   # directories.
51750   hardcode_action=unsupported
51751 fi
51752 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
51753 $as_echo "$hardcode_action" >&6; }
51754
51755 if test "$hardcode_action" = relink ||
51756    test "$inherit_rpath" = yes; then
51757   # Fast installation is not supported
51758   enable_fast_install=no
51759 elif test "$shlibpath_overrides_runpath" = yes ||
51760      test "$enable_shared" = no; then
51761   # Fast installation is not necessary
51762   enable_fast_install=needless
51763 fi
51764
51765
51766
51767
51768
51769
51770   if test "x$enable_dlopen" != xyes; then
51771   enable_dlopen=unknown
51772   enable_dlopen_self=unknown
51773   enable_dlopen_self_static=unknown
51774 else
51775   lt_cv_dlopen=no
51776   lt_cv_dlopen_libs=
51777
51778   case $host_os in
51779   beos*)
51780     lt_cv_dlopen="load_add_on"
51781     lt_cv_dlopen_libs=
51782     lt_cv_dlopen_self=yes
51783     ;;
51784
51785   mingw* | pw32*)
51786     lt_cv_dlopen="LoadLibrary"
51787     lt_cv_dlopen_libs=
51788     ;;
51789
51790   cygwin*)
51791     lt_cv_dlopen="dlopen"
51792     lt_cv_dlopen_libs=
51793     ;;
51794
51795   darwin*)
51796   # if libdl is installed we need to link against it
51797     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
51798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
51799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
51800   $as_echo_n "(cached) " >&6
51801 else
51802   ac_check_lib_save_LIBS=$LIBS
51803 LIBS="-ldl  $LIBS"
51804 cat >conftest.$ac_ext <<_ACEOF
51805 /* confdefs.h.  */
51806 _ACEOF
51807 cat confdefs.h >>conftest.$ac_ext
51808 cat >>conftest.$ac_ext <<_ACEOF
51809 /* end confdefs.h.  */
51810
51811 /* Override any GCC internal prototype to avoid an error.
51812    Use char because int might match the return type of a GCC
51813    builtin and then its argument prototype would still apply.  */
51814 #ifdef __cplusplus
51815 extern "C"
51816 #endif
51817 char dlopen ();
51818 int
51819 main ()
51820 {
51821 return dlopen ();
51822   ;
51823   return 0;
51824 }
51825 _ACEOF
51826 rm -f conftest.$ac_objext conftest$ac_exeext
51827 if { (ac_try="$ac_link"
51828 case "(($ac_try" in
51829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51830   *) ac_try_echo=$ac_try;;
51831 esac
51832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51833 $as_echo "$ac_try_echo") >&5
51834   (eval "$ac_link") 2>conftest.er1
51835   ac_status=$?
51836   grep -v '^ *+' conftest.er1 >conftest.err
51837   rm -f conftest.er1
51838   cat conftest.err >&5
51839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51840   (exit $ac_status); } && {
51841          test -z "$ac_c_werror_flag" ||
51842          test ! -s conftest.err
51843        } && test -s conftest$ac_exeext && {
51844          test "$cross_compiling" = yes ||
51845          $as_test_x conftest$ac_exeext
51846        }; then
51847   ac_cv_lib_dl_dlopen=yes
51848 else
51849   $as_echo "$as_me: failed program was:" >&5
51850 sed 's/^/| /' conftest.$ac_ext >&5
51851
51852         ac_cv_lib_dl_dlopen=no
51853 fi
51854
51855 rm -rf conftest.dSYM
51856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51857       conftest$ac_exeext conftest.$ac_ext
51858 LIBS=$ac_check_lib_save_LIBS
51859 fi
51860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
51861 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
51862 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
51863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
51864 else
51865
51866     lt_cv_dlopen="dyld"
51867     lt_cv_dlopen_libs=
51868     lt_cv_dlopen_self=yes
51869
51870 fi
51871
51872     ;;
51873
51874   *)
51875     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
51876 $as_echo_n "checking for shl_load... " >&6; }
51877 if test "${ac_cv_func_shl_load+set}" = set; then
51878   $as_echo_n "(cached) " >&6
51879 else
51880   cat >conftest.$ac_ext <<_ACEOF
51881 /* confdefs.h.  */
51882 _ACEOF
51883 cat confdefs.h >>conftest.$ac_ext
51884 cat >>conftest.$ac_ext <<_ACEOF
51885 /* end confdefs.h.  */
51886 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
51887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51888 #define shl_load innocuous_shl_load
51889
51890 /* System header to define __stub macros and hopefully few prototypes,
51891     which can conflict with char shl_load (); below.
51892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51893     <limits.h> exists even on freestanding compilers.  */
51894
51895 #ifdef __STDC__
51896 # include <limits.h>
51897 #else
51898 # include <assert.h>
51899 #endif
51900
51901 #undef shl_load
51902
51903 /* Override any GCC internal prototype to avoid an error.
51904    Use char because int might match the return type of a GCC
51905    builtin and then its argument prototype would still apply.  */
51906 #ifdef __cplusplus
51907 extern "C"
51908 #endif
51909 char shl_load ();
51910 /* The GNU C library defines this for functions which it implements
51911     to always fail with ENOSYS.  Some functions are actually named
51912     something starting with __ and the normal name is an alias.  */
51913 #if defined __stub_shl_load || defined __stub___shl_load
51914 choke me
51915 #endif
51916
51917 int
51918 main ()
51919 {
51920 return shl_load ();
51921   ;
51922   return 0;
51923 }
51924 _ACEOF
51925 rm -f conftest.$ac_objext conftest$ac_exeext
51926 if { (ac_try="$ac_link"
51927 case "(($ac_try" in
51928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51929   *) ac_try_echo=$ac_try;;
51930 esac
51931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51932 $as_echo "$ac_try_echo") >&5
51933   (eval "$ac_link") 2>conftest.er1
51934   ac_status=$?
51935   grep -v '^ *+' conftest.er1 >conftest.err
51936   rm -f conftest.er1
51937   cat conftest.err >&5
51938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51939   (exit $ac_status); } && {
51940          test -z "$ac_c_werror_flag" ||
51941          test ! -s conftest.err
51942        } && test -s conftest$ac_exeext && {
51943          test "$cross_compiling" = yes ||
51944          $as_test_x conftest$ac_exeext
51945        }; then
51946   ac_cv_func_shl_load=yes
51947 else
51948   $as_echo "$as_me: failed program was:" >&5
51949 sed 's/^/| /' conftest.$ac_ext >&5
51950
51951         ac_cv_func_shl_load=no
51952 fi
51953
51954 rm -rf conftest.dSYM
51955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51956       conftest$ac_exeext conftest.$ac_ext
51957 fi
51958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
51959 $as_echo "$ac_cv_func_shl_load" >&6; }
51960 if test "x$ac_cv_func_shl_load" = x""yes; then
51961   lt_cv_dlopen="shl_load"
51962 else
51963   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
51964 $as_echo_n "checking for shl_load in -ldld... " >&6; }
51965 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
51966   $as_echo_n "(cached) " >&6
51967 else
51968   ac_check_lib_save_LIBS=$LIBS
51969 LIBS="-ldld  $LIBS"
51970 cat >conftest.$ac_ext <<_ACEOF
51971 /* confdefs.h.  */
51972 _ACEOF
51973 cat confdefs.h >>conftest.$ac_ext
51974 cat >>conftest.$ac_ext <<_ACEOF
51975 /* end confdefs.h.  */
51976
51977 /* Override any GCC internal prototype to avoid an error.
51978    Use char because int might match the return type of a GCC
51979    builtin and then its argument prototype would still apply.  */
51980 #ifdef __cplusplus
51981 extern "C"
51982 #endif
51983 char shl_load ();
51984 int
51985 main ()
51986 {
51987 return shl_load ();
51988   ;
51989   return 0;
51990 }
51991 _ACEOF
51992 rm -f conftest.$ac_objext conftest$ac_exeext
51993 if { (ac_try="$ac_link"
51994 case "(($ac_try" in
51995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51996   *) ac_try_echo=$ac_try;;
51997 esac
51998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51999 $as_echo "$ac_try_echo") >&5
52000   (eval "$ac_link") 2>conftest.er1
52001   ac_status=$?
52002   grep -v '^ *+' conftest.er1 >conftest.err
52003   rm -f conftest.er1
52004   cat conftest.err >&5
52005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52006   (exit $ac_status); } && {
52007          test -z "$ac_c_werror_flag" ||
52008          test ! -s conftest.err
52009        } && test -s conftest$ac_exeext && {
52010          test "$cross_compiling" = yes ||
52011          $as_test_x conftest$ac_exeext
52012        }; then
52013   ac_cv_lib_dld_shl_load=yes
52014 else
52015   $as_echo "$as_me: failed program was:" >&5
52016 sed 's/^/| /' conftest.$ac_ext >&5
52017
52018         ac_cv_lib_dld_shl_load=no
52019 fi
52020
52021 rm -rf conftest.dSYM
52022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52023       conftest$ac_exeext conftest.$ac_ext
52024 LIBS=$ac_check_lib_save_LIBS
52025 fi
52026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
52027 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
52028 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
52029   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
52030 else
52031   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
52032 $as_echo_n "checking for dlopen... " >&6; }
52033 if test "${ac_cv_func_dlopen+set}" = set; then
52034   $as_echo_n "(cached) " >&6
52035 else
52036   cat >conftest.$ac_ext <<_ACEOF
52037 /* confdefs.h.  */
52038 _ACEOF
52039 cat confdefs.h >>conftest.$ac_ext
52040 cat >>conftest.$ac_ext <<_ACEOF
52041 /* end confdefs.h.  */
52042 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
52043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52044 #define dlopen innocuous_dlopen
52045
52046 /* System header to define __stub macros and hopefully few prototypes,
52047     which can conflict with char dlopen (); below.
52048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52049     <limits.h> exists even on freestanding compilers.  */
52050
52051 #ifdef __STDC__
52052 # include <limits.h>
52053 #else
52054 # include <assert.h>
52055 #endif
52056
52057 #undef dlopen
52058
52059 /* Override any GCC internal prototype to avoid an error.
52060    Use char because int might match the return type of a GCC
52061    builtin and then its argument prototype would still apply.  */
52062 #ifdef __cplusplus
52063 extern "C"
52064 #endif
52065 char dlopen ();
52066 /* The GNU C library defines this for functions which it implements
52067     to always fail with ENOSYS.  Some functions are actually named
52068     something starting with __ and the normal name is an alias.  */
52069 #if defined __stub_dlopen || defined __stub___dlopen
52070 choke me
52071 #endif
52072
52073 int
52074 main ()
52075 {
52076 return dlopen ();
52077   ;
52078   return 0;
52079 }
52080 _ACEOF
52081 rm -f conftest.$ac_objext conftest$ac_exeext
52082 if { (ac_try="$ac_link"
52083 case "(($ac_try" in
52084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52085   *) ac_try_echo=$ac_try;;
52086 esac
52087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52088 $as_echo "$ac_try_echo") >&5
52089   (eval "$ac_link") 2>conftest.er1
52090   ac_status=$?
52091   grep -v '^ *+' conftest.er1 >conftest.err
52092   rm -f conftest.er1
52093   cat conftest.err >&5
52094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52095   (exit $ac_status); } && {
52096          test -z "$ac_c_werror_flag" ||
52097          test ! -s conftest.err
52098        } && test -s conftest$ac_exeext && {
52099          test "$cross_compiling" = yes ||
52100          $as_test_x conftest$ac_exeext
52101        }; then
52102   ac_cv_func_dlopen=yes
52103 else
52104   $as_echo "$as_me: failed program was:" >&5
52105 sed 's/^/| /' conftest.$ac_ext >&5
52106
52107         ac_cv_func_dlopen=no
52108 fi
52109
52110 rm -rf conftest.dSYM
52111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52112       conftest$ac_exeext conftest.$ac_ext
52113 fi
52114 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
52115 $as_echo "$ac_cv_func_dlopen" >&6; }
52116 if test "x$ac_cv_func_dlopen" = x""yes; then
52117   lt_cv_dlopen="dlopen"
52118 else
52119   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
52120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
52121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
52122   $as_echo_n "(cached) " >&6
52123 else
52124   ac_check_lib_save_LIBS=$LIBS
52125 LIBS="-ldl  $LIBS"
52126 cat >conftest.$ac_ext <<_ACEOF
52127 /* confdefs.h.  */
52128 _ACEOF
52129 cat confdefs.h >>conftest.$ac_ext
52130 cat >>conftest.$ac_ext <<_ACEOF
52131 /* end confdefs.h.  */
52132
52133 /* Override any GCC internal prototype to avoid an error.
52134    Use char because int might match the return type of a GCC
52135    builtin and then its argument prototype would still apply.  */
52136 #ifdef __cplusplus
52137 extern "C"
52138 #endif
52139 char dlopen ();
52140 int
52141 main ()
52142 {
52143 return dlopen ();
52144   ;
52145   return 0;
52146 }
52147 _ACEOF
52148 rm -f conftest.$ac_objext conftest$ac_exeext
52149 if { (ac_try="$ac_link"
52150 case "(($ac_try" in
52151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52152   *) ac_try_echo=$ac_try;;
52153 esac
52154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52155 $as_echo "$ac_try_echo") >&5
52156   (eval "$ac_link") 2>conftest.er1
52157   ac_status=$?
52158   grep -v '^ *+' conftest.er1 >conftest.err
52159   rm -f conftest.er1
52160   cat conftest.err >&5
52161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52162   (exit $ac_status); } && {
52163          test -z "$ac_c_werror_flag" ||
52164          test ! -s conftest.err
52165        } && test -s conftest$ac_exeext && {
52166          test "$cross_compiling" = yes ||
52167          $as_test_x conftest$ac_exeext
52168        }; then
52169   ac_cv_lib_dl_dlopen=yes
52170 else
52171   $as_echo "$as_me: failed program was:" >&5
52172 sed 's/^/| /' conftest.$ac_ext >&5
52173
52174         ac_cv_lib_dl_dlopen=no
52175 fi
52176
52177 rm -rf conftest.dSYM
52178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52179       conftest$ac_exeext conftest.$ac_ext
52180 LIBS=$ac_check_lib_save_LIBS
52181 fi
52182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
52183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
52184 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
52185   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
52186 else
52187   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
52188 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
52189 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
52190   $as_echo_n "(cached) " >&6
52191 else
52192   ac_check_lib_save_LIBS=$LIBS
52193 LIBS="-lsvld  $LIBS"
52194 cat >conftest.$ac_ext <<_ACEOF
52195 /* confdefs.h.  */
52196 _ACEOF
52197 cat confdefs.h >>conftest.$ac_ext
52198 cat >>conftest.$ac_ext <<_ACEOF
52199 /* end confdefs.h.  */
52200
52201 /* Override any GCC internal prototype to avoid an error.
52202    Use char because int might match the return type of a GCC
52203    builtin and then its argument prototype would still apply.  */
52204 #ifdef __cplusplus
52205 extern "C"
52206 #endif
52207 char dlopen ();
52208 int
52209 main ()
52210 {
52211 return dlopen ();
52212   ;
52213   return 0;
52214 }
52215 _ACEOF
52216 rm -f conftest.$ac_objext conftest$ac_exeext
52217 if { (ac_try="$ac_link"
52218 case "(($ac_try" in
52219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52220   *) ac_try_echo=$ac_try;;
52221 esac
52222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52223 $as_echo "$ac_try_echo") >&5
52224   (eval "$ac_link") 2>conftest.er1
52225   ac_status=$?
52226   grep -v '^ *+' conftest.er1 >conftest.err
52227   rm -f conftest.er1
52228   cat conftest.err >&5
52229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52230   (exit $ac_status); } && {
52231          test -z "$ac_c_werror_flag" ||
52232          test ! -s conftest.err
52233        } && test -s conftest$ac_exeext && {
52234          test "$cross_compiling" = yes ||
52235          $as_test_x conftest$ac_exeext
52236        }; then
52237   ac_cv_lib_svld_dlopen=yes
52238 else
52239   $as_echo "$as_me: failed program was:" >&5
52240 sed 's/^/| /' conftest.$ac_ext >&5
52241
52242         ac_cv_lib_svld_dlopen=no
52243 fi
52244
52245 rm -rf conftest.dSYM
52246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52247       conftest$ac_exeext conftest.$ac_ext
52248 LIBS=$ac_check_lib_save_LIBS
52249 fi
52250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
52251 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
52252 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
52253   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
52254 else
52255   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
52256 $as_echo_n "checking for dld_link in -ldld... " >&6; }
52257 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
52258   $as_echo_n "(cached) " >&6
52259 else
52260   ac_check_lib_save_LIBS=$LIBS
52261 LIBS="-ldld  $LIBS"
52262 cat >conftest.$ac_ext <<_ACEOF
52263 /* confdefs.h.  */
52264 _ACEOF
52265 cat confdefs.h >>conftest.$ac_ext
52266 cat >>conftest.$ac_ext <<_ACEOF
52267 /* end confdefs.h.  */
52268
52269 /* Override any GCC internal prototype to avoid an error.
52270    Use char because int might match the return type of a GCC
52271    builtin and then its argument prototype would still apply.  */
52272 #ifdef __cplusplus
52273 extern "C"
52274 #endif
52275 char dld_link ();
52276 int
52277 main ()
52278 {
52279 return dld_link ();
52280   ;
52281   return 0;
52282 }
52283 _ACEOF
52284 rm -f conftest.$ac_objext conftest$ac_exeext
52285 if { (ac_try="$ac_link"
52286 case "(($ac_try" in
52287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52288   *) ac_try_echo=$ac_try;;
52289 esac
52290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52291 $as_echo "$ac_try_echo") >&5
52292   (eval "$ac_link") 2>conftest.er1
52293   ac_status=$?
52294   grep -v '^ *+' conftest.er1 >conftest.err
52295   rm -f conftest.er1
52296   cat conftest.err >&5
52297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52298   (exit $ac_status); } && {
52299          test -z "$ac_c_werror_flag" ||
52300          test ! -s conftest.err
52301        } && test -s conftest$ac_exeext && {
52302          test "$cross_compiling" = yes ||
52303          $as_test_x conftest$ac_exeext
52304        }; then
52305   ac_cv_lib_dld_dld_link=yes
52306 else
52307   $as_echo "$as_me: failed program was:" >&5
52308 sed 's/^/| /' conftest.$ac_ext >&5
52309
52310         ac_cv_lib_dld_dld_link=no
52311 fi
52312
52313 rm -rf conftest.dSYM
52314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52315       conftest$ac_exeext conftest.$ac_ext
52316 LIBS=$ac_check_lib_save_LIBS
52317 fi
52318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
52319 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
52320 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
52321   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
52322 fi
52323
52324
52325 fi
52326
52327
52328 fi
52329
52330
52331 fi
52332
52333
52334 fi
52335
52336
52337 fi
52338
52339     ;;
52340   esac
52341
52342   if test "x$lt_cv_dlopen" != xno; then
52343     enable_dlopen=yes
52344   else
52345     enable_dlopen=no
52346   fi
52347
52348   case $lt_cv_dlopen in
52349   dlopen)
52350     save_CPPFLAGS="$CPPFLAGS"
52351     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
52352
52353     save_LDFLAGS="$LDFLAGS"
52354     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
52355
52356     save_LIBS="$LIBS"
52357     LIBS="$lt_cv_dlopen_libs $LIBS"
52358
52359     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
52360 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
52361 if test "${lt_cv_dlopen_self+set}" = set; then
52362   $as_echo_n "(cached) " >&6
52363 else
52364           if test "$cross_compiling" = yes; then :
52365   lt_cv_dlopen_self=cross
52366 else
52367   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
52368   lt_status=$lt_dlunknown
52369   cat > conftest.$ac_ext <<_LT_EOF
52370 #line 52370 "configure"
52371 #include "confdefs.h"
52372
52373 #if HAVE_DLFCN_H
52374 #include <dlfcn.h>
52375 #endif
52376
52377 #include <stdio.h>
52378
52379 #ifdef RTLD_GLOBAL
52380 #  define LT_DLGLOBAL           RTLD_GLOBAL
52381 #else
52382 #  ifdef DL_GLOBAL
52383 #    define LT_DLGLOBAL         DL_GLOBAL
52384 #  else
52385 #    define LT_DLGLOBAL         0
52386 #  endif
52387 #endif
52388
52389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
52390    find out it does not work in some platform. */
52391 #ifndef LT_DLLAZY_OR_NOW
52392 #  ifdef RTLD_LAZY
52393 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
52394 #  else
52395 #    ifdef DL_LAZY
52396 #      define LT_DLLAZY_OR_NOW          DL_LAZY
52397 #    else
52398 #      ifdef RTLD_NOW
52399 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
52400 #      else
52401 #        ifdef DL_NOW
52402 #          define LT_DLLAZY_OR_NOW      DL_NOW
52403 #        else
52404 #          define LT_DLLAZY_OR_NOW      0
52405 #        endif
52406 #      endif
52407 #    endif
52408 #  endif
52409 #endif
52410
52411 #ifdef __cplusplus
52412 extern "C" void exit (int);
52413 #endif
52414
52415 void fnord() { int i=42;}
52416 int main ()
52417 {
52418   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
52419   int status = $lt_dlunknown;
52420
52421   if (self)
52422     {
52423       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
52424       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
52425       /* dlclose (self); */
52426     }
52427   else
52428     puts (dlerror ());
52429
52430     exit (status);
52431 }
52432 _LT_EOF
52433   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52434   (eval $ac_link) 2>&5
52435   ac_status=$?
52436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52437   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
52438     (./conftest; exit; ) >&5 2>/dev/null
52439     lt_status=$?
52440     case x$lt_status in
52441       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
52442       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
52443       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
52444     esac
52445   else :
52446     # compilation failed
52447     lt_cv_dlopen_self=no
52448   fi
52449 fi
52450 rm -fr conftest*
52451
52452
52453 fi
52454 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
52455 $as_echo "$lt_cv_dlopen_self" >&6; }
52456
52457     if test "x$lt_cv_dlopen_self" = xyes; then
52458       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
52459       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
52460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
52461 if test "${lt_cv_dlopen_self_static+set}" = set; then
52462   $as_echo_n "(cached) " >&6
52463 else
52464           if test "$cross_compiling" = yes; then :
52465   lt_cv_dlopen_self_static=cross
52466 else
52467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
52468   lt_status=$lt_dlunknown
52469   cat > conftest.$ac_ext <<_LT_EOF
52470 #line 52470 "configure"
52471 #include "confdefs.h"
52472
52473 #if HAVE_DLFCN_H
52474 #include <dlfcn.h>
52475 #endif
52476
52477 #include <stdio.h>
52478
52479 #ifdef RTLD_GLOBAL
52480 #  define LT_DLGLOBAL           RTLD_GLOBAL
52481 #else
52482 #  ifdef DL_GLOBAL
52483 #    define LT_DLGLOBAL         DL_GLOBAL
52484 #  else
52485 #    define LT_DLGLOBAL         0
52486 #  endif
52487 #endif
52488
52489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
52490    find out it does not work in some platform. */
52491 #ifndef LT_DLLAZY_OR_NOW
52492 #  ifdef RTLD_LAZY
52493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
52494 #  else
52495 #    ifdef DL_LAZY
52496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
52497 #    else
52498 #      ifdef RTLD_NOW
52499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
52500 #      else
52501 #        ifdef DL_NOW
52502 #          define LT_DLLAZY_OR_NOW      DL_NOW
52503 #        else
52504 #          define LT_DLLAZY_OR_NOW      0
52505 #        endif
52506 #      endif
52507 #    endif
52508 #  endif
52509 #endif
52510
52511 #ifdef __cplusplus
52512 extern "C" void exit (int);
52513 #endif
52514
52515 void fnord() { int i=42;}
52516 int main ()
52517 {
52518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
52519   int status = $lt_dlunknown;
52520
52521   if (self)
52522     {
52523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
52524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
52525       /* dlclose (self); */
52526     }
52527   else
52528     puts (dlerror ());
52529
52530     exit (status);
52531 }
52532 _LT_EOF
52533   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52534   (eval $ac_link) 2>&5
52535   ac_status=$?
52536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52537   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
52538     (./conftest; exit; ) >&5 2>/dev/null
52539     lt_status=$?
52540     case x$lt_status in
52541       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
52542       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
52543       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
52544     esac
52545   else :
52546     # compilation failed
52547     lt_cv_dlopen_self_static=no
52548   fi
52549 fi
52550 rm -fr conftest*
52551
52552
52553 fi
52554 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
52555 $as_echo "$lt_cv_dlopen_self_static" >&6; }
52556     fi
52557
52558     CPPFLAGS="$save_CPPFLAGS"
52559     LDFLAGS="$save_LDFLAGS"
52560     LIBS="$save_LIBS"
52561     ;;
52562   esac
52563
52564   case $lt_cv_dlopen_self in
52565   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
52566   *) enable_dlopen_self=unknown ;;
52567   esac
52568
52569   case $lt_cv_dlopen_self_static in
52570   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
52571   *) enable_dlopen_self_static=unknown ;;
52572   esac
52573 fi
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591 striplib=
52592 old_striplib=
52593 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
52594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
52595 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
52596   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
52597   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
52598   { $as_echo "$as_me:$LINENO: result: yes" >&5
52599 $as_echo "yes" >&6; }
52600 else
52601 # FIXME - insert some real tests, host_os isn't really good enough
52602   case $host_os in
52603   darwin*)
52604     if test -n "$STRIP" ; then
52605       striplib="$STRIP -x"
52606       old_striplib="$STRIP -S"
52607       { $as_echo "$as_me:$LINENO: result: yes" >&5
52608 $as_echo "yes" >&6; }
52609     else
52610       { $as_echo "$as_me:$LINENO: result: no" >&5
52611 $as_echo "no" >&6; }
52612     fi
52613     ;;
52614   *)
52615     { $as_echo "$as_me:$LINENO: result: no" >&5
52616 $as_echo "no" >&6; }
52617     ;;
52618   esac
52619 fi
52620
52621
52622
52623
52624
52625
52626
52627
52628
52629
52630
52631
52632   # Report which library types will actually be built
52633   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
52634 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
52635   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
52636 $as_echo "$can_build_shared" >&6; }
52637
52638   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
52639 $as_echo_n "checking whether to build shared libraries... " >&6; }
52640   test "$can_build_shared" = "no" && enable_shared=no
52641
52642   # On AIX, shared libraries and static libraries use the same namespace, and
52643   # are all built from PIC.
52644   case $host_os in
52645   aix3*)
52646     test "$enable_shared" = yes && enable_static=no
52647     if test -n "$RANLIB"; then
52648       archive_cmds="$archive_cmds~\$RANLIB \$lib"
52649       postinstall_cmds='$RANLIB $lib'
52650     fi
52651     ;;
52652
52653   aix[4-9]*)
52654     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
52655       test "$enable_shared" = yes && enable_static=no
52656     fi
52657     ;;
52658   esac
52659   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
52660 $as_echo "$enable_shared" >&6; }
52661
52662   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
52663 $as_echo_n "checking whether to build static libraries... " >&6; }
52664   # Make sure either enable_shared or enable_static is yes.
52665   test "$enable_shared" = yes || enable_static=yes
52666   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
52667 $as_echo "$enable_static" >&6; }
52668
52669
52670
52671
52672 fi
52673 ac_ext=c
52674 ac_cpp='$CPP $CPPFLAGS'
52675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52678
52679 CC="$lt_save_CC"
52680
52681
52682
52683
52684
52685
52686
52687
52688
52689
52690
52691
52692
52693         ac_config_commands="$ac_config_commands libtool"
52694
52695
52696
52697
52698 # Only expand once:
52699
52700
52701
52702
52703     # Check whether --enable-static-binary was given.
52704 if test "${enable_static_binary+set}" = set; then
52705   enableval=$enable_static_binary;
52706             case "$enableval" in
52707             "" | y | ye | yes)
52708                 AMANDA_STATIC_LDFLAGS=-static
52709                 if test x"$enable_static" = x"no"; then
52710                         { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
52711 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
52712    { (exit 1); exit 1; }; }
52713                 fi
52714                 ;;
52715             *n | no)
52716                 AMANDA_STATIC_LDFLAGS=
52717                 ;;
52718             esac
52719
52720 fi
52721
52722
52723
52724
52725 #
52726 # headers
52727 #
52728
52729
52730
52731
52732
52733 ac_header_dirent=no
52734 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
52735   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
52736 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
52737 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
52738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52739   $as_echo_n "(cached) " >&6
52740 else
52741   cat >conftest.$ac_ext <<_ACEOF
52742 /* confdefs.h.  */
52743 _ACEOF
52744 cat confdefs.h >>conftest.$ac_ext
52745 cat >>conftest.$ac_ext <<_ACEOF
52746 /* end confdefs.h.  */
52747 #include <sys/types.h>
52748 #include <$ac_hdr>
52749
52750 int
52751 main ()
52752 {
52753 if ((DIR *) 0)
52754 return 0;
52755   ;
52756   return 0;
52757 }
52758 _ACEOF
52759 rm -f conftest.$ac_objext
52760 if { (ac_try="$ac_compile"
52761 case "(($ac_try" in
52762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52763   *) ac_try_echo=$ac_try;;
52764 esac
52765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52766 $as_echo "$ac_try_echo") >&5
52767   (eval "$ac_compile") 2>conftest.er1
52768   ac_status=$?
52769   grep -v '^ *+' conftest.er1 >conftest.err
52770   rm -f conftest.er1
52771   cat conftest.err >&5
52772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52773   (exit $ac_status); } && {
52774          test -z "$ac_c_werror_flag" ||
52775          test ! -s conftest.err
52776        } && test -s conftest.$ac_objext; then
52777   eval "$as_ac_Header=yes"
52778 else
52779   $as_echo "$as_me: failed program was:" >&5
52780 sed 's/^/| /' conftest.$ac_ext >&5
52781
52782         eval "$as_ac_Header=no"
52783 fi
52784
52785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52786 fi
52787 ac_res=`eval 'as_val=${'$as_ac_Header'}
52788                  $as_echo "$as_val"'`
52789                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52790 $as_echo "$ac_res" >&6; }
52791 as_val=`eval 'as_val=${'$as_ac_Header'}
52792                  $as_echo "$as_val"'`
52793    if test "x$as_val" = x""yes; then
52794   cat >>confdefs.h <<_ACEOF
52795 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
52796 _ACEOF
52797
52798 ac_header_dirent=$ac_hdr; break
52799 fi
52800
52801 done
52802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
52803 if test $ac_header_dirent = dirent.h; then
52804   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
52805 $as_echo_n "checking for library containing opendir... " >&6; }
52806 if test "${ac_cv_search_opendir+set}" = set; then
52807   $as_echo_n "(cached) " >&6
52808 else
52809   ac_func_search_save_LIBS=$LIBS
52810 cat >conftest.$ac_ext <<_ACEOF
52811 /* confdefs.h.  */
52812 _ACEOF
52813 cat confdefs.h >>conftest.$ac_ext
52814 cat >>conftest.$ac_ext <<_ACEOF
52815 /* end confdefs.h.  */
52816
52817 /* Override any GCC internal prototype to avoid an error.
52818    Use char because int might match the return type of a GCC
52819    builtin and then its argument prototype would still apply.  */
52820 #ifdef __cplusplus
52821 extern "C"
52822 #endif
52823 char opendir ();
52824 int
52825 main ()
52826 {
52827 return opendir ();
52828   ;
52829   return 0;
52830 }
52831 _ACEOF
52832 for ac_lib in '' dir; do
52833   if test -z "$ac_lib"; then
52834     ac_res="none required"
52835   else
52836     ac_res=-l$ac_lib
52837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52838   fi
52839   rm -f conftest.$ac_objext conftest$ac_exeext
52840 if { (ac_try="$ac_link"
52841 case "(($ac_try" in
52842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52843   *) ac_try_echo=$ac_try;;
52844 esac
52845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52846 $as_echo "$ac_try_echo") >&5
52847   (eval "$ac_link") 2>conftest.er1
52848   ac_status=$?
52849   grep -v '^ *+' conftest.er1 >conftest.err
52850   rm -f conftest.er1
52851   cat conftest.err >&5
52852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52853   (exit $ac_status); } && {
52854          test -z "$ac_c_werror_flag" ||
52855          test ! -s conftest.err
52856        } && test -s conftest$ac_exeext && {
52857          test "$cross_compiling" = yes ||
52858          $as_test_x conftest$ac_exeext
52859        }; then
52860   ac_cv_search_opendir=$ac_res
52861 else
52862   $as_echo "$as_me: failed program was:" >&5
52863 sed 's/^/| /' conftest.$ac_ext >&5
52864
52865
52866 fi
52867
52868 rm -rf conftest.dSYM
52869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52870       conftest$ac_exeext
52871   if test "${ac_cv_search_opendir+set}" = set; then
52872   break
52873 fi
52874 done
52875 if test "${ac_cv_search_opendir+set}" = set; then
52876   :
52877 else
52878   ac_cv_search_opendir=no
52879 fi
52880 rm conftest.$ac_ext
52881 LIBS=$ac_func_search_save_LIBS
52882 fi
52883 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
52884 $as_echo "$ac_cv_search_opendir" >&6; }
52885 ac_res=$ac_cv_search_opendir
52886 if test "$ac_res" != no; then
52887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52888
52889 fi
52890
52891 else
52892   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
52893 $as_echo_n "checking for library containing opendir... " >&6; }
52894 if test "${ac_cv_search_opendir+set}" = set; then
52895   $as_echo_n "(cached) " >&6
52896 else
52897   ac_func_search_save_LIBS=$LIBS
52898 cat >conftest.$ac_ext <<_ACEOF
52899 /* confdefs.h.  */
52900 _ACEOF
52901 cat confdefs.h >>conftest.$ac_ext
52902 cat >>conftest.$ac_ext <<_ACEOF
52903 /* end confdefs.h.  */
52904
52905 /* Override any GCC internal prototype to avoid an error.
52906    Use char because int might match the return type of a GCC
52907    builtin and then its argument prototype would still apply.  */
52908 #ifdef __cplusplus
52909 extern "C"
52910 #endif
52911 char opendir ();
52912 int
52913 main ()
52914 {
52915 return opendir ();
52916   ;
52917   return 0;
52918 }
52919 _ACEOF
52920 for ac_lib in '' x; do
52921   if test -z "$ac_lib"; then
52922     ac_res="none required"
52923   else
52924     ac_res=-l$ac_lib
52925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52926   fi
52927   rm -f conftest.$ac_objext conftest$ac_exeext
52928 if { (ac_try="$ac_link"
52929 case "(($ac_try" in
52930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52931   *) ac_try_echo=$ac_try;;
52932 esac
52933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52934 $as_echo "$ac_try_echo") >&5
52935   (eval "$ac_link") 2>conftest.er1
52936   ac_status=$?
52937   grep -v '^ *+' conftest.er1 >conftest.err
52938   rm -f conftest.er1
52939   cat conftest.err >&5
52940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52941   (exit $ac_status); } && {
52942          test -z "$ac_c_werror_flag" ||
52943          test ! -s conftest.err
52944        } && test -s conftest$ac_exeext && {
52945          test "$cross_compiling" = yes ||
52946          $as_test_x conftest$ac_exeext
52947        }; then
52948   ac_cv_search_opendir=$ac_res
52949 else
52950   $as_echo "$as_me: failed program was:" >&5
52951 sed 's/^/| /' conftest.$ac_ext >&5
52952
52953
52954 fi
52955
52956 rm -rf conftest.dSYM
52957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52958       conftest$ac_exeext
52959   if test "${ac_cv_search_opendir+set}" = set; then
52960   break
52961 fi
52962 done
52963 if test "${ac_cv_search_opendir+set}" = set; then
52964   :
52965 else
52966   ac_cv_search_opendir=no
52967 fi
52968 rm conftest.$ac_ext
52969 LIBS=$ac_func_search_save_LIBS
52970 fi
52971 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
52972 $as_echo "$ac_cv_search_opendir" >&6; }
52973 ac_res=$ac_cv_search_opendir
52974 if test "$ac_res" != no; then
52975   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52976
52977 fi
52978
52979 fi
52980
52981 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
52982 $as_echo_n "checking for ANSI C header files... " >&6; }
52983 if test "${ac_cv_header_stdc+set}" = set; then
52984   $as_echo_n "(cached) " >&6
52985 else
52986   cat >conftest.$ac_ext <<_ACEOF
52987 /* confdefs.h.  */
52988 _ACEOF
52989 cat confdefs.h >>conftest.$ac_ext
52990 cat >>conftest.$ac_ext <<_ACEOF
52991 /* end confdefs.h.  */
52992 #include <stdlib.h>
52993 #include <stdarg.h>
52994 #include <string.h>
52995 #include <float.h>
52996
52997 int
52998 main ()
52999 {
53000
53001   ;
53002   return 0;
53003 }
53004 _ACEOF
53005 rm -f conftest.$ac_objext
53006 if { (ac_try="$ac_compile"
53007 case "(($ac_try" in
53008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53009   *) ac_try_echo=$ac_try;;
53010 esac
53011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53012 $as_echo "$ac_try_echo") >&5
53013   (eval "$ac_compile") 2>conftest.er1
53014   ac_status=$?
53015   grep -v '^ *+' conftest.er1 >conftest.err
53016   rm -f conftest.er1
53017   cat conftest.err >&5
53018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53019   (exit $ac_status); } && {
53020          test -z "$ac_c_werror_flag" ||
53021          test ! -s conftest.err
53022        } && test -s conftest.$ac_objext; then
53023   ac_cv_header_stdc=yes
53024 else
53025   $as_echo "$as_me: failed program was:" >&5
53026 sed 's/^/| /' conftest.$ac_ext >&5
53027
53028         ac_cv_header_stdc=no
53029 fi
53030
53031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53032
53033 if test $ac_cv_header_stdc = yes; then
53034   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
53035   cat >conftest.$ac_ext <<_ACEOF
53036 /* confdefs.h.  */
53037 _ACEOF
53038 cat confdefs.h >>conftest.$ac_ext
53039 cat >>conftest.$ac_ext <<_ACEOF
53040 /* end confdefs.h.  */
53041 #include <string.h>
53042
53043 _ACEOF
53044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53045   $EGREP "memchr" >/dev/null 2>&1; then
53046   :
53047 else
53048   ac_cv_header_stdc=no
53049 fi
53050 rm -f conftest*
53051
53052 fi
53053
53054 if test $ac_cv_header_stdc = yes; then
53055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
53056   cat >conftest.$ac_ext <<_ACEOF
53057 /* confdefs.h.  */
53058 _ACEOF
53059 cat confdefs.h >>conftest.$ac_ext
53060 cat >>conftest.$ac_ext <<_ACEOF
53061 /* end confdefs.h.  */
53062 #include <stdlib.h>
53063
53064 _ACEOF
53065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53066   $EGREP "free" >/dev/null 2>&1; then
53067   :
53068 else
53069   ac_cv_header_stdc=no
53070 fi
53071 rm -f conftest*
53072
53073 fi
53074
53075 if test $ac_cv_header_stdc = yes; then
53076   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
53077   if test "$cross_compiling" = yes; then
53078   :
53079 else
53080   cat >conftest.$ac_ext <<_ACEOF
53081 /* confdefs.h.  */
53082 _ACEOF
53083 cat confdefs.h >>conftest.$ac_ext
53084 cat >>conftest.$ac_ext <<_ACEOF
53085 /* end confdefs.h.  */
53086 #include <ctype.h>
53087 #include <stdlib.h>
53088 #if ((' ' & 0x0FF) == 0x020)
53089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
53090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
53091 #else
53092 # define ISLOWER(c) \
53093                    (('a' <= (c) && (c) <= 'i') \
53094                      || ('j' <= (c) && (c) <= 'r') \
53095                      || ('s' <= (c) && (c) <= 'z'))
53096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
53097 #endif
53098
53099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
53100 int
53101 main ()
53102 {
53103   int i;
53104   for (i = 0; i < 256; i++)
53105     if (XOR (islower (i), ISLOWER (i))
53106         || toupper (i) != TOUPPER (i))
53107       return 2;
53108   return 0;
53109 }
53110 _ACEOF
53111 rm -f conftest$ac_exeext
53112 if { (ac_try="$ac_link"
53113 case "(($ac_try" in
53114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53115   *) ac_try_echo=$ac_try;;
53116 esac
53117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53118 $as_echo "$ac_try_echo") >&5
53119   (eval "$ac_link") 2>&5
53120   ac_status=$?
53121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53123   { (case "(($ac_try" in
53124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53125   *) ac_try_echo=$ac_try;;
53126 esac
53127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53128 $as_echo "$ac_try_echo") >&5
53129   (eval "$ac_try") 2>&5
53130   ac_status=$?
53131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53132   (exit $ac_status); }; }; then
53133   :
53134 else
53135   $as_echo "$as_me: program exited with status $ac_status" >&5
53136 $as_echo "$as_me: failed program was:" >&5
53137 sed 's/^/| /' conftest.$ac_ext >&5
53138
53139 ( exit $ac_status )
53140 ac_cv_header_stdc=no
53141 fi
53142 rm -rf conftest.dSYM
53143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53144 fi
53145
53146
53147 fi
53148 fi
53149 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
53150 $as_echo "$ac_cv_header_stdc" >&6; }
53151 if test $ac_cv_header_stdc = yes; then
53152
53153 cat >>confdefs.h <<\_ACEOF
53154 #define STDC_HEADERS 1
53155 _ACEOF
53156
53157 fi
53158
53159 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
53160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
53161 if test "${ac_cv_header_time+set}" = set; then
53162   $as_echo_n "(cached) " >&6
53163 else
53164   cat >conftest.$ac_ext <<_ACEOF
53165 /* confdefs.h.  */
53166 _ACEOF
53167 cat confdefs.h >>conftest.$ac_ext
53168 cat >>conftest.$ac_ext <<_ACEOF
53169 /* end confdefs.h.  */
53170 #include <sys/types.h>
53171 #include <sys/time.h>
53172 #include <time.h>
53173
53174 int
53175 main ()
53176 {
53177 if ((struct tm *) 0)
53178 return 0;
53179   ;
53180   return 0;
53181 }
53182 _ACEOF
53183 rm -f conftest.$ac_objext
53184 if { (ac_try="$ac_compile"
53185 case "(($ac_try" in
53186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53187   *) ac_try_echo=$ac_try;;
53188 esac
53189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53190 $as_echo "$ac_try_echo") >&5
53191   (eval "$ac_compile") 2>conftest.er1
53192   ac_status=$?
53193   grep -v '^ *+' conftest.er1 >conftest.err
53194   rm -f conftest.er1
53195   cat conftest.err >&5
53196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53197   (exit $ac_status); } && {
53198          test -z "$ac_c_werror_flag" ||
53199          test ! -s conftest.err
53200        } && test -s conftest.$ac_objext; then
53201   ac_cv_header_time=yes
53202 else
53203   $as_echo "$as_me: failed program was:" >&5
53204 sed 's/^/| /' conftest.$ac_ext >&5
53205
53206         ac_cv_header_time=no
53207 fi
53208
53209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53210 fi
53211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
53212 $as_echo "$ac_cv_header_time" >&6; }
53213 if test $ac_cv_header_time = yes; then
53214
53215 cat >>confdefs.h <<\_ACEOF
53216 #define TIME_WITH_SYS_TIME 1
53217 _ACEOF
53218
53219 fi
53220
53221
53222
53223
53224
53225
53226
53227
53228
53229
53230
53231
53232
53233
53234
53235
53236
53237
53238
53239
53240
53241
53242
53243
53244
53245
53246 for ac_header in grp.h \
53247         libc.h \
53248         libgen.h \
53249         limits.h \
53250         math.h \
53251         netinet/in.h \
53252         regex.h \
53253         stdarg.h \
53254         stdlib.h \
53255         strings.h \
53256         rpc/rpc.h \
53257         sys/file.h \
53258         sys/ioctl.h \
53259         sys/ipc.h \
53260         sys/mntent.h \
53261         sys/param.h \
53262         sys/select.h \
53263         sys/stat.h \
53264         sys/shm.h \
53265         sys/time.h \
53266         sys/types.h \
53267         sys/uio.h \
53268         syslog.h \
53269         time.h \
53270         unistd.h \
53271
53272 do
53273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53275   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53276 $as_echo_n "checking for $ac_header... " >&6; }
53277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53278   $as_echo_n "(cached) " >&6
53279 fi
53280 ac_res=`eval 'as_val=${'$as_ac_Header'}
53281                  $as_echo "$as_val"'`
53282                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53283 $as_echo "$ac_res" >&6; }
53284 else
53285   # Is the header compilable?
53286 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53287 $as_echo_n "checking $ac_header usability... " >&6; }
53288 cat >conftest.$ac_ext <<_ACEOF
53289 /* confdefs.h.  */
53290 _ACEOF
53291 cat confdefs.h >>conftest.$ac_ext
53292 cat >>conftest.$ac_ext <<_ACEOF
53293 /* end confdefs.h.  */
53294 $ac_includes_default
53295 #include <$ac_header>
53296 _ACEOF
53297 rm -f conftest.$ac_objext
53298 if { (ac_try="$ac_compile"
53299 case "(($ac_try" in
53300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53301   *) ac_try_echo=$ac_try;;
53302 esac
53303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53304 $as_echo "$ac_try_echo") >&5
53305   (eval "$ac_compile") 2>conftest.er1
53306   ac_status=$?
53307   grep -v '^ *+' conftest.er1 >conftest.err
53308   rm -f conftest.er1
53309   cat conftest.err >&5
53310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53311   (exit $ac_status); } && {
53312          test -z "$ac_c_werror_flag" ||
53313          test ! -s conftest.err
53314        } && test -s conftest.$ac_objext; then
53315   ac_header_compiler=yes
53316 else
53317   $as_echo "$as_me: failed program was:" >&5
53318 sed 's/^/| /' conftest.$ac_ext >&5
53319
53320         ac_header_compiler=no
53321 fi
53322
53323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53325 $as_echo "$ac_header_compiler" >&6; }
53326
53327 # Is the header present?
53328 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53329 $as_echo_n "checking $ac_header presence... " >&6; }
53330 cat >conftest.$ac_ext <<_ACEOF
53331 /* confdefs.h.  */
53332 _ACEOF
53333 cat confdefs.h >>conftest.$ac_ext
53334 cat >>conftest.$ac_ext <<_ACEOF
53335 /* end confdefs.h.  */
53336 #include <$ac_header>
53337 _ACEOF
53338 if { (ac_try="$ac_cpp conftest.$ac_ext"
53339 case "(($ac_try" in
53340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53341   *) ac_try_echo=$ac_try;;
53342 esac
53343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53344 $as_echo "$ac_try_echo") >&5
53345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53346   ac_status=$?
53347   grep -v '^ *+' conftest.er1 >conftest.err
53348   rm -f conftest.er1
53349   cat conftest.err >&5
53350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53351   (exit $ac_status); } >/dev/null && {
53352          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53353          test ! -s conftest.err
53354        }; then
53355   ac_header_preproc=yes
53356 else
53357   $as_echo "$as_me: failed program was:" >&5
53358 sed 's/^/| /' conftest.$ac_ext >&5
53359
53360   ac_header_preproc=no
53361 fi
53362
53363 rm -f conftest.err conftest.$ac_ext
53364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53365 $as_echo "$ac_header_preproc" >&6; }
53366
53367 # So?  What about this header?
53368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53369   yes:no: )
53370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53371 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53374     ac_header_preproc=yes
53375     ;;
53376   no:yes:* )
53377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53378 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53380 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53382 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53384 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53388 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53389
53390     ;;
53391 esac
53392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53393 $as_echo_n "checking for $ac_header... " >&6; }
53394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53395   $as_echo_n "(cached) " >&6
53396 else
53397   eval "$as_ac_Header=\$ac_header_preproc"
53398 fi
53399 ac_res=`eval 'as_val=${'$as_ac_Header'}
53400                  $as_echo "$as_val"'`
53401                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53402 $as_echo "$ac_res" >&6; }
53403
53404 fi
53405 as_val=`eval 'as_val=${'$as_ac_Header'}
53406                  $as_echo "$as_val"'`
53407    if test "x$as_val" = x""yes; then
53408   cat >>confdefs.h <<_ACEOF
53409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53410 _ACEOF
53411
53412 fi
53413
53414 done
53415
53416
53417 cat >>confdefs.h <<\_ACEOF
53418 #define HAVE_AMANDA_H 1
53419 _ACEOF
53420
53421
53422 cat >>confdefs.h <<\_ACEOF
53423 #define HAVE_UTIL_H 1
53424 _ACEOF
53425
53426
53427
53428 cat >>confdefs.h <<\_ACEOF
53429 #define USE_GETTEXT 1
53430 _ACEOF
53431
53432
53433 #
53434 # Types
53435 #
53436 # The cast to long int works around a bug in the HP C Compiler
53437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53439 # This bug is HP SR number 8606223364.
53440 { $as_echo "$as_me:$LINENO: checking size of int" >&5
53441 $as_echo_n "checking size of int... " >&6; }
53442 if test "${ac_cv_sizeof_int+set}" = set; then
53443   $as_echo_n "(cached) " >&6
53444 else
53445   if test "$cross_compiling" = yes; then
53446   # Depending upon the size, compute the lo and hi bounds.
53447 cat >conftest.$ac_ext <<_ACEOF
53448 /* confdefs.h.  */
53449 _ACEOF
53450 cat confdefs.h >>conftest.$ac_ext
53451 cat >>conftest.$ac_ext <<_ACEOF
53452 /* end confdefs.h.  */
53453 $ac_includes_default
53454 int
53455 main ()
53456 {
53457 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
53458 test_array [0] = 0
53459
53460   ;
53461   return 0;
53462 }
53463 _ACEOF
53464 rm -f conftest.$ac_objext
53465 if { (ac_try="$ac_compile"
53466 case "(($ac_try" in
53467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53468   *) ac_try_echo=$ac_try;;
53469 esac
53470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53471 $as_echo "$ac_try_echo") >&5
53472   (eval "$ac_compile") 2>conftest.er1
53473   ac_status=$?
53474   grep -v '^ *+' conftest.er1 >conftest.err
53475   rm -f conftest.er1
53476   cat conftest.err >&5
53477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53478   (exit $ac_status); } && {
53479          test -z "$ac_c_werror_flag" ||
53480          test ! -s conftest.err
53481        } && test -s conftest.$ac_objext; then
53482   ac_lo=0 ac_mid=0
53483   while :; do
53484     cat >conftest.$ac_ext <<_ACEOF
53485 /* confdefs.h.  */
53486 _ACEOF
53487 cat confdefs.h >>conftest.$ac_ext
53488 cat >>conftest.$ac_ext <<_ACEOF
53489 /* end confdefs.h.  */
53490 $ac_includes_default
53491 int
53492 main ()
53493 {
53494 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
53495 test_array [0] = 0
53496
53497   ;
53498   return 0;
53499 }
53500 _ACEOF
53501 rm -f conftest.$ac_objext
53502 if { (ac_try="$ac_compile"
53503 case "(($ac_try" in
53504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53505   *) ac_try_echo=$ac_try;;
53506 esac
53507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53508 $as_echo "$ac_try_echo") >&5
53509   (eval "$ac_compile") 2>conftest.er1
53510   ac_status=$?
53511   grep -v '^ *+' conftest.er1 >conftest.err
53512   rm -f conftest.er1
53513   cat conftest.err >&5
53514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53515   (exit $ac_status); } && {
53516          test -z "$ac_c_werror_flag" ||
53517          test ! -s conftest.err
53518        } && test -s conftest.$ac_objext; then
53519   ac_hi=$ac_mid; break
53520 else
53521   $as_echo "$as_me: failed program was:" >&5
53522 sed 's/^/| /' conftest.$ac_ext >&5
53523
53524         ac_lo=`expr $ac_mid + 1`
53525                         if test $ac_lo -le $ac_mid; then
53526                           ac_lo= ac_hi=
53527                           break
53528                         fi
53529                         ac_mid=`expr 2 '*' $ac_mid + 1`
53530 fi
53531
53532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53533   done
53534 else
53535   $as_echo "$as_me: failed program was:" >&5
53536 sed 's/^/| /' conftest.$ac_ext >&5
53537
53538         cat >conftest.$ac_ext <<_ACEOF
53539 /* confdefs.h.  */
53540 _ACEOF
53541 cat confdefs.h >>conftest.$ac_ext
53542 cat >>conftest.$ac_ext <<_ACEOF
53543 /* end confdefs.h.  */
53544 $ac_includes_default
53545 int
53546 main ()
53547 {
53548 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
53549 test_array [0] = 0
53550
53551   ;
53552   return 0;
53553 }
53554 _ACEOF
53555 rm -f conftest.$ac_objext
53556 if { (ac_try="$ac_compile"
53557 case "(($ac_try" in
53558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53559   *) ac_try_echo=$ac_try;;
53560 esac
53561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53562 $as_echo "$ac_try_echo") >&5
53563   (eval "$ac_compile") 2>conftest.er1
53564   ac_status=$?
53565   grep -v '^ *+' conftest.er1 >conftest.err
53566   rm -f conftest.er1
53567   cat conftest.err >&5
53568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53569   (exit $ac_status); } && {
53570          test -z "$ac_c_werror_flag" ||
53571          test ! -s conftest.err
53572        } && test -s conftest.$ac_objext; then
53573   ac_hi=-1 ac_mid=-1
53574   while :; do
53575     cat >conftest.$ac_ext <<_ACEOF
53576 /* confdefs.h.  */
53577 _ACEOF
53578 cat confdefs.h >>conftest.$ac_ext
53579 cat >>conftest.$ac_ext <<_ACEOF
53580 /* end confdefs.h.  */
53581 $ac_includes_default
53582 int
53583 main ()
53584 {
53585 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
53586 test_array [0] = 0
53587
53588   ;
53589   return 0;
53590 }
53591 _ACEOF
53592 rm -f conftest.$ac_objext
53593 if { (ac_try="$ac_compile"
53594 case "(($ac_try" in
53595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53596   *) ac_try_echo=$ac_try;;
53597 esac
53598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53599 $as_echo "$ac_try_echo") >&5
53600   (eval "$ac_compile") 2>conftest.er1
53601   ac_status=$?
53602   grep -v '^ *+' conftest.er1 >conftest.err
53603   rm -f conftest.er1
53604   cat conftest.err >&5
53605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53606   (exit $ac_status); } && {
53607          test -z "$ac_c_werror_flag" ||
53608          test ! -s conftest.err
53609        } && test -s conftest.$ac_objext; then
53610   ac_lo=$ac_mid; break
53611 else
53612   $as_echo "$as_me: failed program was:" >&5
53613 sed 's/^/| /' conftest.$ac_ext >&5
53614
53615         ac_hi=`expr '(' $ac_mid ')' - 1`
53616                         if test $ac_mid -le $ac_hi; then
53617                           ac_lo= ac_hi=
53618                           break
53619                         fi
53620                         ac_mid=`expr 2 '*' $ac_mid`
53621 fi
53622
53623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53624   done
53625 else
53626   $as_echo "$as_me: failed program was:" >&5
53627 sed 's/^/| /' conftest.$ac_ext >&5
53628
53629         ac_lo= ac_hi=
53630 fi
53631
53632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53633 fi
53634
53635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53636 # Binary search between lo and hi bounds.
53637 while test "x$ac_lo" != "x$ac_hi"; do
53638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53639   cat >conftest.$ac_ext <<_ACEOF
53640 /* confdefs.h.  */
53641 _ACEOF
53642 cat confdefs.h >>conftest.$ac_ext
53643 cat >>conftest.$ac_ext <<_ACEOF
53644 /* end confdefs.h.  */
53645 $ac_includes_default
53646 int
53647 main ()
53648 {
53649 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
53650 test_array [0] = 0
53651
53652   ;
53653   return 0;
53654 }
53655 _ACEOF
53656 rm -f conftest.$ac_objext
53657 if { (ac_try="$ac_compile"
53658 case "(($ac_try" in
53659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53660   *) ac_try_echo=$ac_try;;
53661 esac
53662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53663 $as_echo "$ac_try_echo") >&5
53664   (eval "$ac_compile") 2>conftest.er1
53665   ac_status=$?
53666   grep -v '^ *+' conftest.er1 >conftest.err
53667   rm -f conftest.er1
53668   cat conftest.err >&5
53669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53670   (exit $ac_status); } && {
53671          test -z "$ac_c_werror_flag" ||
53672          test ! -s conftest.err
53673        } && test -s conftest.$ac_objext; then
53674   ac_hi=$ac_mid
53675 else
53676   $as_echo "$as_me: failed program was:" >&5
53677 sed 's/^/| /' conftest.$ac_ext >&5
53678
53679         ac_lo=`expr '(' $ac_mid ')' + 1`
53680 fi
53681
53682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53683 done
53684 case $ac_lo in
53685 ?*) ac_cv_sizeof_int=$ac_lo;;
53686 '') if test "$ac_cv_type_int" = yes; then
53687      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53689 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
53690 See \`config.log' for more details." >&5
53691 $as_echo "$as_me: error: cannot compute sizeof (int)
53692 See \`config.log' for more details." >&2;}
53693    { (exit 77); exit 77; }; }; }
53694    else
53695      ac_cv_sizeof_int=0
53696    fi ;;
53697 esac
53698 else
53699   cat >conftest.$ac_ext <<_ACEOF
53700 /* confdefs.h.  */
53701 _ACEOF
53702 cat confdefs.h >>conftest.$ac_ext
53703 cat >>conftest.$ac_ext <<_ACEOF
53704 /* end confdefs.h.  */
53705 $ac_includes_default
53706 static long int longval () { return (long int) (sizeof (int)); }
53707 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
53708 #include <stdio.h>
53709 #include <stdlib.h>
53710 int
53711 main ()
53712 {
53713
53714   FILE *f = fopen ("conftest.val", "w");
53715   if (! f)
53716     return 1;
53717   if (((long int) (sizeof (int))) < 0)
53718     {
53719       long int i = longval ();
53720       if (i != ((long int) (sizeof (int))))
53721         return 1;
53722       fprintf (f, "%ld", i);
53723     }
53724   else
53725     {
53726       unsigned long int i = ulongval ();
53727       if (i != ((long int) (sizeof (int))))
53728         return 1;
53729       fprintf (f, "%lu", i);
53730     }
53731   /* Do not output a trailing newline, as this causes \r\n confusion
53732      on some platforms.  */
53733   return ferror (f) || fclose (f) != 0;
53734
53735   ;
53736   return 0;
53737 }
53738 _ACEOF
53739 rm -f conftest$ac_exeext
53740 if { (ac_try="$ac_link"
53741 case "(($ac_try" in
53742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53743   *) ac_try_echo=$ac_try;;
53744 esac
53745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53746 $as_echo "$ac_try_echo") >&5
53747   (eval "$ac_link") 2>&5
53748   ac_status=$?
53749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53751   { (case "(($ac_try" in
53752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53753   *) ac_try_echo=$ac_try;;
53754 esac
53755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53756 $as_echo "$ac_try_echo") >&5
53757   (eval "$ac_try") 2>&5
53758   ac_status=$?
53759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53760   (exit $ac_status); }; }; then
53761   ac_cv_sizeof_int=`cat conftest.val`
53762 else
53763   $as_echo "$as_me: program exited with status $ac_status" >&5
53764 $as_echo "$as_me: failed program was:" >&5
53765 sed 's/^/| /' conftest.$ac_ext >&5
53766
53767 ( exit $ac_status )
53768 if test "$ac_cv_type_int" = yes; then
53769      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53771 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
53772 See \`config.log' for more details." >&5
53773 $as_echo "$as_me: error: cannot compute sizeof (int)
53774 See \`config.log' for more details." >&2;}
53775    { (exit 77); exit 77; }; }; }
53776    else
53777      ac_cv_sizeof_int=0
53778    fi
53779 fi
53780 rm -rf conftest.dSYM
53781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53782 fi
53783 rm -f conftest.val
53784 fi
53785 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
53786 $as_echo "$ac_cv_sizeof_int" >&6; }
53787
53788
53789
53790 cat >>confdefs.h <<_ACEOF
53791 #define SIZEOF_INT $ac_cv_sizeof_int
53792 _ACEOF
53793
53794
53795 # The cast to long int works around a bug in the HP C Compiler
53796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53798 # This bug is HP SR number 8606223364.
53799 { $as_echo "$as_me:$LINENO: checking size of long" >&5
53800 $as_echo_n "checking size of long... " >&6; }
53801 if test "${ac_cv_sizeof_long+set}" = set; then
53802   $as_echo_n "(cached) " >&6
53803 else
53804   if test "$cross_compiling" = yes; then
53805   # Depending upon the size, compute the lo and hi bounds.
53806 cat >conftest.$ac_ext <<_ACEOF
53807 /* confdefs.h.  */
53808 _ACEOF
53809 cat confdefs.h >>conftest.$ac_ext
53810 cat >>conftest.$ac_ext <<_ACEOF
53811 /* end confdefs.h.  */
53812 $ac_includes_default
53813 int
53814 main ()
53815 {
53816 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
53817 test_array [0] = 0
53818
53819   ;
53820   return 0;
53821 }
53822 _ACEOF
53823 rm -f conftest.$ac_objext
53824 if { (ac_try="$ac_compile"
53825 case "(($ac_try" in
53826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53827   *) ac_try_echo=$ac_try;;
53828 esac
53829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53830 $as_echo "$ac_try_echo") >&5
53831   (eval "$ac_compile") 2>conftest.er1
53832   ac_status=$?
53833   grep -v '^ *+' conftest.er1 >conftest.err
53834   rm -f conftest.er1
53835   cat conftest.err >&5
53836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53837   (exit $ac_status); } && {
53838          test -z "$ac_c_werror_flag" ||
53839          test ! -s conftest.err
53840        } && test -s conftest.$ac_objext; then
53841   ac_lo=0 ac_mid=0
53842   while :; do
53843     cat >conftest.$ac_ext <<_ACEOF
53844 /* confdefs.h.  */
53845 _ACEOF
53846 cat confdefs.h >>conftest.$ac_ext
53847 cat >>conftest.$ac_ext <<_ACEOF
53848 /* end confdefs.h.  */
53849 $ac_includes_default
53850 int
53851 main ()
53852 {
53853 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
53854 test_array [0] = 0
53855
53856   ;
53857   return 0;
53858 }
53859 _ACEOF
53860 rm -f conftest.$ac_objext
53861 if { (ac_try="$ac_compile"
53862 case "(($ac_try" in
53863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53864   *) ac_try_echo=$ac_try;;
53865 esac
53866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53867 $as_echo "$ac_try_echo") >&5
53868   (eval "$ac_compile") 2>conftest.er1
53869   ac_status=$?
53870   grep -v '^ *+' conftest.er1 >conftest.err
53871   rm -f conftest.er1
53872   cat conftest.err >&5
53873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53874   (exit $ac_status); } && {
53875          test -z "$ac_c_werror_flag" ||
53876          test ! -s conftest.err
53877        } && test -s conftest.$ac_objext; then
53878   ac_hi=$ac_mid; break
53879 else
53880   $as_echo "$as_me: failed program was:" >&5
53881 sed 's/^/| /' conftest.$ac_ext >&5
53882
53883         ac_lo=`expr $ac_mid + 1`
53884                         if test $ac_lo -le $ac_mid; then
53885                           ac_lo= ac_hi=
53886                           break
53887                         fi
53888                         ac_mid=`expr 2 '*' $ac_mid + 1`
53889 fi
53890
53891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53892   done
53893 else
53894   $as_echo "$as_me: failed program was:" >&5
53895 sed 's/^/| /' conftest.$ac_ext >&5
53896
53897         cat >conftest.$ac_ext <<_ACEOF
53898 /* confdefs.h.  */
53899 _ACEOF
53900 cat confdefs.h >>conftest.$ac_ext
53901 cat >>conftest.$ac_ext <<_ACEOF
53902 /* end confdefs.h.  */
53903 $ac_includes_default
53904 int
53905 main ()
53906 {
53907 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
53908 test_array [0] = 0
53909
53910   ;
53911   return 0;
53912 }
53913 _ACEOF
53914 rm -f conftest.$ac_objext
53915 if { (ac_try="$ac_compile"
53916 case "(($ac_try" in
53917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53918   *) ac_try_echo=$ac_try;;
53919 esac
53920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53921 $as_echo "$ac_try_echo") >&5
53922   (eval "$ac_compile") 2>conftest.er1
53923   ac_status=$?
53924   grep -v '^ *+' conftest.er1 >conftest.err
53925   rm -f conftest.er1
53926   cat conftest.err >&5
53927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53928   (exit $ac_status); } && {
53929          test -z "$ac_c_werror_flag" ||
53930          test ! -s conftest.err
53931        } && test -s conftest.$ac_objext; then
53932   ac_hi=-1 ac_mid=-1
53933   while :; do
53934     cat >conftest.$ac_ext <<_ACEOF
53935 /* confdefs.h.  */
53936 _ACEOF
53937 cat confdefs.h >>conftest.$ac_ext
53938 cat >>conftest.$ac_ext <<_ACEOF
53939 /* end confdefs.h.  */
53940 $ac_includes_default
53941 int
53942 main ()
53943 {
53944 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
53945 test_array [0] = 0
53946
53947   ;
53948   return 0;
53949 }
53950 _ACEOF
53951 rm -f conftest.$ac_objext
53952 if { (ac_try="$ac_compile"
53953 case "(($ac_try" in
53954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53955   *) ac_try_echo=$ac_try;;
53956 esac
53957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53958 $as_echo "$ac_try_echo") >&5
53959   (eval "$ac_compile") 2>conftest.er1
53960   ac_status=$?
53961   grep -v '^ *+' conftest.er1 >conftest.err
53962   rm -f conftest.er1
53963   cat conftest.err >&5
53964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53965   (exit $ac_status); } && {
53966          test -z "$ac_c_werror_flag" ||
53967          test ! -s conftest.err
53968        } && test -s conftest.$ac_objext; then
53969   ac_lo=$ac_mid; break
53970 else
53971   $as_echo "$as_me: failed program was:" >&5
53972 sed 's/^/| /' conftest.$ac_ext >&5
53973
53974         ac_hi=`expr '(' $ac_mid ')' - 1`
53975                         if test $ac_mid -le $ac_hi; then
53976                           ac_lo= ac_hi=
53977                           break
53978                         fi
53979                         ac_mid=`expr 2 '*' $ac_mid`
53980 fi
53981
53982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53983   done
53984 else
53985   $as_echo "$as_me: failed program was:" >&5
53986 sed 's/^/| /' conftest.$ac_ext >&5
53987
53988         ac_lo= ac_hi=
53989 fi
53990
53991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53992 fi
53993
53994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53995 # Binary search between lo and hi bounds.
53996 while test "x$ac_lo" != "x$ac_hi"; do
53997   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53998   cat >conftest.$ac_ext <<_ACEOF
53999 /* confdefs.h.  */
54000 _ACEOF
54001 cat confdefs.h >>conftest.$ac_ext
54002 cat >>conftest.$ac_ext <<_ACEOF
54003 /* end confdefs.h.  */
54004 $ac_includes_default
54005 int
54006 main ()
54007 {
54008 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
54009 test_array [0] = 0
54010
54011   ;
54012   return 0;
54013 }
54014 _ACEOF
54015 rm -f conftest.$ac_objext
54016 if { (ac_try="$ac_compile"
54017 case "(($ac_try" in
54018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54019   *) ac_try_echo=$ac_try;;
54020 esac
54021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54022 $as_echo "$ac_try_echo") >&5
54023   (eval "$ac_compile") 2>conftest.er1
54024   ac_status=$?
54025   grep -v '^ *+' conftest.er1 >conftest.err
54026   rm -f conftest.er1
54027   cat conftest.err >&5
54028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54029   (exit $ac_status); } && {
54030          test -z "$ac_c_werror_flag" ||
54031          test ! -s conftest.err
54032        } && test -s conftest.$ac_objext; then
54033   ac_hi=$ac_mid
54034 else
54035   $as_echo "$as_me: failed program was:" >&5
54036 sed 's/^/| /' conftest.$ac_ext >&5
54037
54038         ac_lo=`expr '(' $ac_mid ')' + 1`
54039 fi
54040
54041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54042 done
54043 case $ac_lo in
54044 ?*) ac_cv_sizeof_long=$ac_lo;;
54045 '') if test "$ac_cv_type_long" = yes; then
54046      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54048 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
54049 See \`config.log' for more details." >&5
54050 $as_echo "$as_me: error: cannot compute sizeof (long)
54051 See \`config.log' for more details." >&2;}
54052    { (exit 77); exit 77; }; }; }
54053    else
54054      ac_cv_sizeof_long=0
54055    fi ;;
54056 esac
54057 else
54058   cat >conftest.$ac_ext <<_ACEOF
54059 /* confdefs.h.  */
54060 _ACEOF
54061 cat confdefs.h >>conftest.$ac_ext
54062 cat >>conftest.$ac_ext <<_ACEOF
54063 /* end confdefs.h.  */
54064 $ac_includes_default
54065 static long int longval () { return (long int) (sizeof (long)); }
54066 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
54067 #include <stdio.h>
54068 #include <stdlib.h>
54069 int
54070 main ()
54071 {
54072
54073   FILE *f = fopen ("conftest.val", "w");
54074   if (! f)
54075     return 1;
54076   if (((long int) (sizeof (long))) < 0)
54077     {
54078       long int i = longval ();
54079       if (i != ((long int) (sizeof (long))))
54080         return 1;
54081       fprintf (f, "%ld", i);
54082     }
54083   else
54084     {
54085       unsigned long int i = ulongval ();
54086       if (i != ((long int) (sizeof (long))))
54087         return 1;
54088       fprintf (f, "%lu", i);
54089     }
54090   /* Do not output a trailing newline, as this causes \r\n confusion
54091      on some platforms.  */
54092   return ferror (f) || fclose (f) != 0;
54093
54094   ;
54095   return 0;
54096 }
54097 _ACEOF
54098 rm -f conftest$ac_exeext
54099 if { (ac_try="$ac_link"
54100 case "(($ac_try" in
54101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54102   *) ac_try_echo=$ac_try;;
54103 esac
54104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54105 $as_echo "$ac_try_echo") >&5
54106   (eval "$ac_link") 2>&5
54107   ac_status=$?
54108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54110   { (case "(($ac_try" in
54111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54112   *) ac_try_echo=$ac_try;;
54113 esac
54114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54115 $as_echo "$ac_try_echo") >&5
54116   (eval "$ac_try") 2>&5
54117   ac_status=$?
54118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54119   (exit $ac_status); }; }; then
54120   ac_cv_sizeof_long=`cat conftest.val`
54121 else
54122   $as_echo "$as_me: program exited with status $ac_status" >&5
54123 $as_echo "$as_me: failed program was:" >&5
54124 sed 's/^/| /' conftest.$ac_ext >&5
54125
54126 ( exit $ac_status )
54127 if test "$ac_cv_type_long" = yes; then
54128      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54130 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
54131 See \`config.log' for more details." >&5
54132 $as_echo "$as_me: error: cannot compute sizeof (long)
54133 See \`config.log' for more details." >&2;}
54134    { (exit 77); exit 77; }; }; }
54135    else
54136      ac_cv_sizeof_long=0
54137    fi
54138 fi
54139 rm -rf conftest.dSYM
54140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54141 fi
54142 rm -f conftest.val
54143 fi
54144 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
54145 $as_echo "$ac_cv_sizeof_long" >&6; }
54146
54147
54148
54149 cat >>confdefs.h <<_ACEOF
54150 #define SIZEOF_LONG $ac_cv_sizeof_long
54151 _ACEOF
54152
54153
54154 # The cast to long int works around a bug in the HP C Compiler
54155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54157 # This bug is HP SR number 8606223364.
54158 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
54159 $as_echo_n "checking size of long long... " >&6; }
54160 if test "${ac_cv_sizeof_long_long+set}" = set; then
54161   $as_echo_n "(cached) " >&6
54162 else
54163   if test "$cross_compiling" = yes; then
54164   # Depending upon the size, compute the lo and hi bounds.
54165 cat >conftest.$ac_ext <<_ACEOF
54166 /* confdefs.h.  */
54167 _ACEOF
54168 cat confdefs.h >>conftest.$ac_ext
54169 cat >>conftest.$ac_ext <<_ACEOF
54170 /* end confdefs.h.  */
54171 $ac_includes_default
54172 int
54173 main ()
54174 {
54175 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
54176 test_array [0] = 0
54177
54178   ;
54179   return 0;
54180 }
54181 _ACEOF
54182 rm -f conftest.$ac_objext
54183 if { (ac_try="$ac_compile"
54184 case "(($ac_try" in
54185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54186   *) ac_try_echo=$ac_try;;
54187 esac
54188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54189 $as_echo "$ac_try_echo") >&5
54190   (eval "$ac_compile") 2>conftest.er1
54191   ac_status=$?
54192   grep -v '^ *+' conftest.er1 >conftest.err
54193   rm -f conftest.er1
54194   cat conftest.err >&5
54195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54196   (exit $ac_status); } && {
54197          test -z "$ac_c_werror_flag" ||
54198          test ! -s conftest.err
54199        } && test -s conftest.$ac_objext; then
54200   ac_lo=0 ac_mid=0
54201   while :; do
54202     cat >conftest.$ac_ext <<_ACEOF
54203 /* confdefs.h.  */
54204 _ACEOF
54205 cat confdefs.h >>conftest.$ac_ext
54206 cat >>conftest.$ac_ext <<_ACEOF
54207 /* end confdefs.h.  */
54208 $ac_includes_default
54209 int
54210 main ()
54211 {
54212 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
54213 test_array [0] = 0
54214
54215   ;
54216   return 0;
54217 }
54218 _ACEOF
54219 rm -f conftest.$ac_objext
54220 if { (ac_try="$ac_compile"
54221 case "(($ac_try" in
54222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54223   *) ac_try_echo=$ac_try;;
54224 esac
54225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54226 $as_echo "$ac_try_echo") >&5
54227   (eval "$ac_compile") 2>conftest.er1
54228   ac_status=$?
54229   grep -v '^ *+' conftest.er1 >conftest.err
54230   rm -f conftest.er1
54231   cat conftest.err >&5
54232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54233   (exit $ac_status); } && {
54234          test -z "$ac_c_werror_flag" ||
54235          test ! -s conftest.err
54236        } && test -s conftest.$ac_objext; then
54237   ac_hi=$ac_mid; break
54238 else
54239   $as_echo "$as_me: failed program was:" >&5
54240 sed 's/^/| /' conftest.$ac_ext >&5
54241
54242         ac_lo=`expr $ac_mid + 1`
54243                         if test $ac_lo -le $ac_mid; then
54244                           ac_lo= ac_hi=
54245                           break
54246                         fi
54247                         ac_mid=`expr 2 '*' $ac_mid + 1`
54248 fi
54249
54250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54251   done
54252 else
54253   $as_echo "$as_me: failed program was:" >&5
54254 sed 's/^/| /' conftest.$ac_ext >&5
54255
54256         cat >conftest.$ac_ext <<_ACEOF
54257 /* confdefs.h.  */
54258 _ACEOF
54259 cat confdefs.h >>conftest.$ac_ext
54260 cat >>conftest.$ac_ext <<_ACEOF
54261 /* end confdefs.h.  */
54262 $ac_includes_default
54263 int
54264 main ()
54265 {
54266 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
54267 test_array [0] = 0
54268
54269   ;
54270   return 0;
54271 }
54272 _ACEOF
54273 rm -f conftest.$ac_objext
54274 if { (ac_try="$ac_compile"
54275 case "(($ac_try" in
54276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54277   *) ac_try_echo=$ac_try;;
54278 esac
54279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54280 $as_echo "$ac_try_echo") >&5
54281   (eval "$ac_compile") 2>conftest.er1
54282   ac_status=$?
54283   grep -v '^ *+' conftest.er1 >conftest.err
54284   rm -f conftest.er1
54285   cat conftest.err >&5
54286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54287   (exit $ac_status); } && {
54288          test -z "$ac_c_werror_flag" ||
54289          test ! -s conftest.err
54290        } && test -s conftest.$ac_objext; then
54291   ac_hi=-1 ac_mid=-1
54292   while :; do
54293     cat >conftest.$ac_ext <<_ACEOF
54294 /* confdefs.h.  */
54295 _ACEOF
54296 cat confdefs.h >>conftest.$ac_ext
54297 cat >>conftest.$ac_ext <<_ACEOF
54298 /* end confdefs.h.  */
54299 $ac_includes_default
54300 int
54301 main ()
54302 {
54303 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
54304 test_array [0] = 0
54305
54306   ;
54307   return 0;
54308 }
54309 _ACEOF
54310 rm -f conftest.$ac_objext
54311 if { (ac_try="$ac_compile"
54312 case "(($ac_try" in
54313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54314   *) ac_try_echo=$ac_try;;
54315 esac
54316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54317 $as_echo "$ac_try_echo") >&5
54318   (eval "$ac_compile") 2>conftest.er1
54319   ac_status=$?
54320   grep -v '^ *+' conftest.er1 >conftest.err
54321   rm -f conftest.er1
54322   cat conftest.err >&5
54323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54324   (exit $ac_status); } && {
54325          test -z "$ac_c_werror_flag" ||
54326          test ! -s conftest.err
54327        } && test -s conftest.$ac_objext; then
54328   ac_lo=$ac_mid; break
54329 else
54330   $as_echo "$as_me: failed program was:" >&5
54331 sed 's/^/| /' conftest.$ac_ext >&5
54332
54333         ac_hi=`expr '(' $ac_mid ')' - 1`
54334                         if test $ac_mid -le $ac_hi; then
54335                           ac_lo= ac_hi=
54336                           break
54337                         fi
54338                         ac_mid=`expr 2 '*' $ac_mid`
54339 fi
54340
54341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54342   done
54343 else
54344   $as_echo "$as_me: failed program was:" >&5
54345 sed 's/^/| /' conftest.$ac_ext >&5
54346
54347         ac_lo= ac_hi=
54348 fi
54349
54350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54351 fi
54352
54353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54354 # Binary search between lo and hi bounds.
54355 while test "x$ac_lo" != "x$ac_hi"; do
54356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54357   cat >conftest.$ac_ext <<_ACEOF
54358 /* confdefs.h.  */
54359 _ACEOF
54360 cat confdefs.h >>conftest.$ac_ext
54361 cat >>conftest.$ac_ext <<_ACEOF
54362 /* end confdefs.h.  */
54363 $ac_includes_default
54364 int
54365 main ()
54366 {
54367 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
54368 test_array [0] = 0
54369
54370   ;
54371   return 0;
54372 }
54373 _ACEOF
54374 rm -f conftest.$ac_objext
54375 if { (ac_try="$ac_compile"
54376 case "(($ac_try" in
54377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54378   *) ac_try_echo=$ac_try;;
54379 esac
54380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54381 $as_echo "$ac_try_echo") >&5
54382   (eval "$ac_compile") 2>conftest.er1
54383   ac_status=$?
54384   grep -v '^ *+' conftest.er1 >conftest.err
54385   rm -f conftest.er1
54386   cat conftest.err >&5
54387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54388   (exit $ac_status); } && {
54389          test -z "$ac_c_werror_flag" ||
54390          test ! -s conftest.err
54391        } && test -s conftest.$ac_objext; then
54392   ac_hi=$ac_mid
54393 else
54394   $as_echo "$as_me: failed program was:" >&5
54395 sed 's/^/| /' conftest.$ac_ext >&5
54396
54397         ac_lo=`expr '(' $ac_mid ')' + 1`
54398 fi
54399
54400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54401 done
54402 case $ac_lo in
54403 ?*) ac_cv_sizeof_long_long=$ac_lo;;
54404 '') if test "$ac_cv_type_long_long" = yes; then
54405      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54407 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
54408 See \`config.log' for more details." >&5
54409 $as_echo "$as_me: error: cannot compute sizeof (long long)
54410 See \`config.log' for more details." >&2;}
54411    { (exit 77); exit 77; }; }; }
54412    else
54413      ac_cv_sizeof_long_long=0
54414    fi ;;
54415 esac
54416 else
54417   cat >conftest.$ac_ext <<_ACEOF
54418 /* confdefs.h.  */
54419 _ACEOF
54420 cat confdefs.h >>conftest.$ac_ext
54421 cat >>conftest.$ac_ext <<_ACEOF
54422 /* end confdefs.h.  */
54423 $ac_includes_default
54424 static long int longval () { return (long int) (sizeof (long long)); }
54425 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
54426 #include <stdio.h>
54427 #include <stdlib.h>
54428 int
54429 main ()
54430 {
54431
54432   FILE *f = fopen ("conftest.val", "w");
54433   if (! f)
54434     return 1;
54435   if (((long int) (sizeof (long long))) < 0)
54436     {
54437       long int i = longval ();
54438       if (i != ((long int) (sizeof (long long))))
54439         return 1;
54440       fprintf (f, "%ld", i);
54441     }
54442   else
54443     {
54444       unsigned long int i = ulongval ();
54445       if (i != ((long int) (sizeof (long long))))
54446         return 1;
54447       fprintf (f, "%lu", i);
54448     }
54449   /* Do not output a trailing newline, as this causes \r\n confusion
54450      on some platforms.  */
54451   return ferror (f) || fclose (f) != 0;
54452
54453   ;
54454   return 0;
54455 }
54456 _ACEOF
54457 rm -f conftest$ac_exeext
54458 if { (ac_try="$ac_link"
54459 case "(($ac_try" in
54460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54461   *) ac_try_echo=$ac_try;;
54462 esac
54463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54464 $as_echo "$ac_try_echo") >&5
54465   (eval "$ac_link") 2>&5
54466   ac_status=$?
54467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54469   { (case "(($ac_try" in
54470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54471   *) ac_try_echo=$ac_try;;
54472 esac
54473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54474 $as_echo "$ac_try_echo") >&5
54475   (eval "$ac_try") 2>&5
54476   ac_status=$?
54477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54478   (exit $ac_status); }; }; then
54479   ac_cv_sizeof_long_long=`cat conftest.val`
54480 else
54481   $as_echo "$as_me: program exited with status $ac_status" >&5
54482 $as_echo "$as_me: failed program was:" >&5
54483 sed 's/^/| /' conftest.$ac_ext >&5
54484
54485 ( exit $ac_status )
54486 if test "$ac_cv_type_long_long" = yes; then
54487      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54489 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
54490 See \`config.log' for more details." >&5
54491 $as_echo "$as_me: error: cannot compute sizeof (long long)
54492 See \`config.log' for more details." >&2;}
54493    { (exit 77); exit 77; }; }; }
54494    else
54495      ac_cv_sizeof_long_long=0
54496    fi
54497 fi
54498 rm -rf conftest.dSYM
54499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54500 fi
54501 rm -f conftest.val
54502 fi
54503 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
54504 $as_echo "$ac_cv_sizeof_long_long" >&6; }
54505
54506
54507
54508 cat >>confdefs.h <<_ACEOF
54509 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
54510 _ACEOF
54511
54512
54513 # The cast to long int works around a bug in the HP C Compiler
54514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54516 # This bug is HP SR number 8606223364.
54517 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
54518 $as_echo_n "checking size of intmax_t... " >&6; }
54519 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
54520   $as_echo_n "(cached) " >&6
54521 else
54522   if test "$cross_compiling" = yes; then
54523   # Depending upon the size, compute the lo and hi bounds.
54524 cat >conftest.$ac_ext <<_ACEOF
54525 /* confdefs.h.  */
54526 _ACEOF
54527 cat confdefs.h >>conftest.$ac_ext
54528 cat >>conftest.$ac_ext <<_ACEOF
54529 /* end confdefs.h.  */
54530 $ac_includes_default
54531 int
54532 main ()
54533 {
54534 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
54535 test_array [0] = 0
54536
54537   ;
54538   return 0;
54539 }
54540 _ACEOF
54541 rm -f conftest.$ac_objext
54542 if { (ac_try="$ac_compile"
54543 case "(($ac_try" in
54544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54545   *) ac_try_echo=$ac_try;;
54546 esac
54547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54548 $as_echo "$ac_try_echo") >&5
54549   (eval "$ac_compile") 2>conftest.er1
54550   ac_status=$?
54551   grep -v '^ *+' conftest.er1 >conftest.err
54552   rm -f conftest.er1
54553   cat conftest.err >&5
54554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54555   (exit $ac_status); } && {
54556          test -z "$ac_c_werror_flag" ||
54557          test ! -s conftest.err
54558        } && test -s conftest.$ac_objext; then
54559   ac_lo=0 ac_mid=0
54560   while :; do
54561     cat >conftest.$ac_ext <<_ACEOF
54562 /* confdefs.h.  */
54563 _ACEOF
54564 cat confdefs.h >>conftest.$ac_ext
54565 cat >>conftest.$ac_ext <<_ACEOF
54566 /* end confdefs.h.  */
54567 $ac_includes_default
54568 int
54569 main ()
54570 {
54571 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
54572 test_array [0] = 0
54573
54574   ;
54575   return 0;
54576 }
54577 _ACEOF
54578 rm -f conftest.$ac_objext
54579 if { (ac_try="$ac_compile"
54580 case "(($ac_try" in
54581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54582   *) ac_try_echo=$ac_try;;
54583 esac
54584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54585 $as_echo "$ac_try_echo") >&5
54586   (eval "$ac_compile") 2>conftest.er1
54587   ac_status=$?
54588   grep -v '^ *+' conftest.er1 >conftest.err
54589   rm -f conftest.er1
54590   cat conftest.err >&5
54591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54592   (exit $ac_status); } && {
54593          test -z "$ac_c_werror_flag" ||
54594          test ! -s conftest.err
54595        } && test -s conftest.$ac_objext; then
54596   ac_hi=$ac_mid; break
54597 else
54598   $as_echo "$as_me: failed program was:" >&5
54599 sed 's/^/| /' conftest.$ac_ext >&5
54600
54601         ac_lo=`expr $ac_mid + 1`
54602                         if test $ac_lo -le $ac_mid; then
54603                           ac_lo= ac_hi=
54604                           break
54605                         fi
54606                         ac_mid=`expr 2 '*' $ac_mid + 1`
54607 fi
54608
54609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54610   done
54611 else
54612   $as_echo "$as_me: failed program was:" >&5
54613 sed 's/^/| /' conftest.$ac_ext >&5
54614
54615         cat >conftest.$ac_ext <<_ACEOF
54616 /* confdefs.h.  */
54617 _ACEOF
54618 cat confdefs.h >>conftest.$ac_ext
54619 cat >>conftest.$ac_ext <<_ACEOF
54620 /* end confdefs.h.  */
54621 $ac_includes_default
54622 int
54623 main ()
54624 {
54625 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
54626 test_array [0] = 0
54627
54628   ;
54629   return 0;
54630 }
54631 _ACEOF
54632 rm -f conftest.$ac_objext
54633 if { (ac_try="$ac_compile"
54634 case "(($ac_try" in
54635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54636   *) ac_try_echo=$ac_try;;
54637 esac
54638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54639 $as_echo "$ac_try_echo") >&5
54640   (eval "$ac_compile") 2>conftest.er1
54641   ac_status=$?
54642   grep -v '^ *+' conftest.er1 >conftest.err
54643   rm -f conftest.er1
54644   cat conftest.err >&5
54645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54646   (exit $ac_status); } && {
54647          test -z "$ac_c_werror_flag" ||
54648          test ! -s conftest.err
54649        } && test -s conftest.$ac_objext; then
54650   ac_hi=-1 ac_mid=-1
54651   while :; do
54652     cat >conftest.$ac_ext <<_ACEOF
54653 /* confdefs.h.  */
54654 _ACEOF
54655 cat confdefs.h >>conftest.$ac_ext
54656 cat >>conftest.$ac_ext <<_ACEOF
54657 /* end confdefs.h.  */
54658 $ac_includes_default
54659 int
54660 main ()
54661 {
54662 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
54663 test_array [0] = 0
54664
54665   ;
54666   return 0;
54667 }
54668 _ACEOF
54669 rm -f conftest.$ac_objext
54670 if { (ac_try="$ac_compile"
54671 case "(($ac_try" in
54672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54673   *) ac_try_echo=$ac_try;;
54674 esac
54675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54676 $as_echo "$ac_try_echo") >&5
54677   (eval "$ac_compile") 2>conftest.er1
54678   ac_status=$?
54679   grep -v '^ *+' conftest.er1 >conftest.err
54680   rm -f conftest.er1
54681   cat conftest.err >&5
54682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54683   (exit $ac_status); } && {
54684          test -z "$ac_c_werror_flag" ||
54685          test ! -s conftest.err
54686        } && test -s conftest.$ac_objext; then
54687   ac_lo=$ac_mid; break
54688 else
54689   $as_echo "$as_me: failed program was:" >&5
54690 sed 's/^/| /' conftest.$ac_ext >&5
54691
54692         ac_hi=`expr '(' $ac_mid ')' - 1`
54693                         if test $ac_mid -le $ac_hi; then
54694                           ac_lo= ac_hi=
54695                           break
54696                         fi
54697                         ac_mid=`expr 2 '*' $ac_mid`
54698 fi
54699
54700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54701   done
54702 else
54703   $as_echo "$as_me: failed program was:" >&5
54704 sed 's/^/| /' conftest.$ac_ext >&5
54705
54706         ac_lo= ac_hi=
54707 fi
54708
54709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54710 fi
54711
54712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54713 # Binary search between lo and hi bounds.
54714 while test "x$ac_lo" != "x$ac_hi"; do
54715   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54716   cat >conftest.$ac_ext <<_ACEOF
54717 /* confdefs.h.  */
54718 _ACEOF
54719 cat confdefs.h >>conftest.$ac_ext
54720 cat >>conftest.$ac_ext <<_ACEOF
54721 /* end confdefs.h.  */
54722 $ac_includes_default
54723 int
54724 main ()
54725 {
54726 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
54727 test_array [0] = 0
54728
54729   ;
54730   return 0;
54731 }
54732 _ACEOF
54733 rm -f conftest.$ac_objext
54734 if { (ac_try="$ac_compile"
54735 case "(($ac_try" in
54736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54737   *) ac_try_echo=$ac_try;;
54738 esac
54739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54740 $as_echo "$ac_try_echo") >&5
54741   (eval "$ac_compile") 2>conftest.er1
54742   ac_status=$?
54743   grep -v '^ *+' conftest.er1 >conftest.err
54744   rm -f conftest.er1
54745   cat conftest.err >&5
54746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54747   (exit $ac_status); } && {
54748          test -z "$ac_c_werror_flag" ||
54749          test ! -s conftest.err
54750        } && test -s conftest.$ac_objext; then
54751   ac_hi=$ac_mid
54752 else
54753   $as_echo "$as_me: failed program was:" >&5
54754 sed 's/^/| /' conftest.$ac_ext >&5
54755
54756         ac_lo=`expr '(' $ac_mid ')' + 1`
54757 fi
54758
54759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54760 done
54761 case $ac_lo in
54762 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
54763 '') if test "$ac_cv_type_intmax_t" = yes; then
54764      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54766 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
54767 See \`config.log' for more details." >&5
54768 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
54769 See \`config.log' for more details." >&2;}
54770    { (exit 77); exit 77; }; }; }
54771    else
54772      ac_cv_sizeof_intmax_t=0
54773    fi ;;
54774 esac
54775 else
54776   cat >conftest.$ac_ext <<_ACEOF
54777 /* confdefs.h.  */
54778 _ACEOF
54779 cat confdefs.h >>conftest.$ac_ext
54780 cat >>conftest.$ac_ext <<_ACEOF
54781 /* end confdefs.h.  */
54782 $ac_includes_default
54783 static long int longval () { return (long int) (sizeof (intmax_t)); }
54784 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
54785 #include <stdio.h>
54786 #include <stdlib.h>
54787 int
54788 main ()
54789 {
54790
54791   FILE *f = fopen ("conftest.val", "w");
54792   if (! f)
54793     return 1;
54794   if (((long int) (sizeof (intmax_t))) < 0)
54795     {
54796       long int i = longval ();
54797       if (i != ((long int) (sizeof (intmax_t))))
54798         return 1;
54799       fprintf (f, "%ld", i);
54800     }
54801   else
54802     {
54803       unsigned long int i = ulongval ();
54804       if (i != ((long int) (sizeof (intmax_t))))
54805         return 1;
54806       fprintf (f, "%lu", i);
54807     }
54808   /* Do not output a trailing newline, as this causes \r\n confusion
54809      on some platforms.  */
54810   return ferror (f) || fclose (f) != 0;
54811
54812   ;
54813   return 0;
54814 }
54815 _ACEOF
54816 rm -f conftest$ac_exeext
54817 if { (ac_try="$ac_link"
54818 case "(($ac_try" in
54819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54820   *) ac_try_echo=$ac_try;;
54821 esac
54822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54823 $as_echo "$ac_try_echo") >&5
54824   (eval "$ac_link") 2>&5
54825   ac_status=$?
54826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54828   { (case "(($ac_try" in
54829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54830   *) ac_try_echo=$ac_try;;
54831 esac
54832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54833 $as_echo "$ac_try_echo") >&5
54834   (eval "$ac_try") 2>&5
54835   ac_status=$?
54836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54837   (exit $ac_status); }; }; then
54838   ac_cv_sizeof_intmax_t=`cat conftest.val`
54839 else
54840   $as_echo "$as_me: program exited with status $ac_status" >&5
54841 $as_echo "$as_me: failed program was:" >&5
54842 sed 's/^/| /' conftest.$ac_ext >&5
54843
54844 ( exit $ac_status )
54845 if test "$ac_cv_type_intmax_t" = yes; then
54846      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54848 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
54849 See \`config.log' for more details." >&5
54850 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
54851 See \`config.log' for more details." >&2;}
54852    { (exit 77); exit 77; }; }; }
54853    else
54854      ac_cv_sizeof_intmax_t=0
54855    fi
54856 fi
54857 rm -rf conftest.dSYM
54858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54859 fi
54860 rm -f conftest.val
54861 fi
54862 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
54863 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
54864
54865
54866
54867 cat >>confdefs.h <<_ACEOF
54868 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
54869 _ACEOF
54870
54871
54872 # The cast to long int works around a bug in the HP C Compiler
54873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54875 # This bug is HP SR number 8606223364.
54876 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
54877 $as_echo_n "checking size of off_t... " >&6; }
54878 if test "${ac_cv_sizeof_off_t+set}" = set; then
54879   $as_echo_n "(cached) " >&6
54880 else
54881   if test "$cross_compiling" = yes; then
54882   # Depending upon the size, compute the lo and hi bounds.
54883 cat >conftest.$ac_ext <<_ACEOF
54884 /* confdefs.h.  */
54885 _ACEOF
54886 cat confdefs.h >>conftest.$ac_ext
54887 cat >>conftest.$ac_ext <<_ACEOF
54888 /* end confdefs.h.  */
54889 $ac_includes_default
54890 int
54891 main ()
54892 {
54893 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
54894 test_array [0] = 0
54895
54896   ;
54897   return 0;
54898 }
54899 _ACEOF
54900 rm -f conftest.$ac_objext
54901 if { (ac_try="$ac_compile"
54902 case "(($ac_try" in
54903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54904   *) ac_try_echo=$ac_try;;
54905 esac
54906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54907 $as_echo "$ac_try_echo") >&5
54908   (eval "$ac_compile") 2>conftest.er1
54909   ac_status=$?
54910   grep -v '^ *+' conftest.er1 >conftest.err
54911   rm -f conftest.er1
54912   cat conftest.err >&5
54913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54914   (exit $ac_status); } && {
54915          test -z "$ac_c_werror_flag" ||
54916          test ! -s conftest.err
54917        } && test -s conftest.$ac_objext; then
54918   ac_lo=0 ac_mid=0
54919   while :; do
54920     cat >conftest.$ac_ext <<_ACEOF
54921 /* confdefs.h.  */
54922 _ACEOF
54923 cat confdefs.h >>conftest.$ac_ext
54924 cat >>conftest.$ac_ext <<_ACEOF
54925 /* end confdefs.h.  */
54926 $ac_includes_default
54927 int
54928 main ()
54929 {
54930 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
54931 test_array [0] = 0
54932
54933   ;
54934   return 0;
54935 }
54936 _ACEOF
54937 rm -f conftest.$ac_objext
54938 if { (ac_try="$ac_compile"
54939 case "(($ac_try" in
54940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54941   *) ac_try_echo=$ac_try;;
54942 esac
54943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54944 $as_echo "$ac_try_echo") >&5
54945   (eval "$ac_compile") 2>conftest.er1
54946   ac_status=$?
54947   grep -v '^ *+' conftest.er1 >conftest.err
54948   rm -f conftest.er1
54949   cat conftest.err >&5
54950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54951   (exit $ac_status); } && {
54952          test -z "$ac_c_werror_flag" ||
54953          test ! -s conftest.err
54954        } && test -s conftest.$ac_objext; then
54955   ac_hi=$ac_mid; break
54956 else
54957   $as_echo "$as_me: failed program was:" >&5
54958 sed 's/^/| /' conftest.$ac_ext >&5
54959
54960         ac_lo=`expr $ac_mid + 1`
54961                         if test $ac_lo -le $ac_mid; then
54962                           ac_lo= ac_hi=
54963                           break
54964                         fi
54965                         ac_mid=`expr 2 '*' $ac_mid + 1`
54966 fi
54967
54968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54969   done
54970 else
54971   $as_echo "$as_me: failed program was:" >&5
54972 sed 's/^/| /' conftest.$ac_ext >&5
54973
54974         cat >conftest.$ac_ext <<_ACEOF
54975 /* confdefs.h.  */
54976 _ACEOF
54977 cat confdefs.h >>conftest.$ac_ext
54978 cat >>conftest.$ac_ext <<_ACEOF
54979 /* end confdefs.h.  */
54980 $ac_includes_default
54981 int
54982 main ()
54983 {
54984 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
54985 test_array [0] = 0
54986
54987   ;
54988   return 0;
54989 }
54990 _ACEOF
54991 rm -f conftest.$ac_objext
54992 if { (ac_try="$ac_compile"
54993 case "(($ac_try" in
54994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54995   *) ac_try_echo=$ac_try;;
54996 esac
54997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54998 $as_echo "$ac_try_echo") >&5
54999   (eval "$ac_compile") 2>conftest.er1
55000   ac_status=$?
55001   grep -v '^ *+' conftest.er1 >conftest.err
55002   rm -f conftest.er1
55003   cat conftest.err >&5
55004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55005   (exit $ac_status); } && {
55006          test -z "$ac_c_werror_flag" ||
55007          test ! -s conftest.err
55008        } && test -s conftest.$ac_objext; then
55009   ac_hi=-1 ac_mid=-1
55010   while :; do
55011     cat >conftest.$ac_ext <<_ACEOF
55012 /* confdefs.h.  */
55013 _ACEOF
55014 cat confdefs.h >>conftest.$ac_ext
55015 cat >>conftest.$ac_ext <<_ACEOF
55016 /* end confdefs.h.  */
55017 $ac_includes_default
55018 int
55019 main ()
55020 {
55021 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
55022 test_array [0] = 0
55023
55024   ;
55025   return 0;
55026 }
55027 _ACEOF
55028 rm -f conftest.$ac_objext
55029 if { (ac_try="$ac_compile"
55030 case "(($ac_try" in
55031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55032   *) ac_try_echo=$ac_try;;
55033 esac
55034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55035 $as_echo "$ac_try_echo") >&5
55036   (eval "$ac_compile") 2>conftest.er1
55037   ac_status=$?
55038   grep -v '^ *+' conftest.er1 >conftest.err
55039   rm -f conftest.er1
55040   cat conftest.err >&5
55041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55042   (exit $ac_status); } && {
55043          test -z "$ac_c_werror_flag" ||
55044          test ! -s conftest.err
55045        } && test -s conftest.$ac_objext; then
55046   ac_lo=$ac_mid; break
55047 else
55048   $as_echo "$as_me: failed program was:" >&5
55049 sed 's/^/| /' conftest.$ac_ext >&5
55050
55051         ac_hi=`expr '(' $ac_mid ')' - 1`
55052                         if test $ac_mid -le $ac_hi; then
55053                           ac_lo= ac_hi=
55054                           break
55055                         fi
55056                         ac_mid=`expr 2 '*' $ac_mid`
55057 fi
55058
55059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55060   done
55061 else
55062   $as_echo "$as_me: failed program was:" >&5
55063 sed 's/^/| /' conftest.$ac_ext >&5
55064
55065         ac_lo= ac_hi=
55066 fi
55067
55068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55069 fi
55070
55071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55072 # Binary search between lo and hi bounds.
55073 while test "x$ac_lo" != "x$ac_hi"; do
55074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55075   cat >conftest.$ac_ext <<_ACEOF
55076 /* confdefs.h.  */
55077 _ACEOF
55078 cat confdefs.h >>conftest.$ac_ext
55079 cat >>conftest.$ac_ext <<_ACEOF
55080 /* end confdefs.h.  */
55081 $ac_includes_default
55082 int
55083 main ()
55084 {
55085 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
55086 test_array [0] = 0
55087
55088   ;
55089   return 0;
55090 }
55091 _ACEOF
55092 rm -f conftest.$ac_objext
55093 if { (ac_try="$ac_compile"
55094 case "(($ac_try" in
55095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55096   *) ac_try_echo=$ac_try;;
55097 esac
55098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55099 $as_echo "$ac_try_echo") >&5
55100   (eval "$ac_compile") 2>conftest.er1
55101   ac_status=$?
55102   grep -v '^ *+' conftest.er1 >conftest.err
55103   rm -f conftest.er1
55104   cat conftest.err >&5
55105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55106   (exit $ac_status); } && {
55107          test -z "$ac_c_werror_flag" ||
55108          test ! -s conftest.err
55109        } && test -s conftest.$ac_objext; then
55110   ac_hi=$ac_mid
55111 else
55112   $as_echo "$as_me: failed program was:" >&5
55113 sed 's/^/| /' conftest.$ac_ext >&5
55114
55115         ac_lo=`expr '(' $ac_mid ')' + 1`
55116 fi
55117
55118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55119 done
55120 case $ac_lo in
55121 ?*) ac_cv_sizeof_off_t=$ac_lo;;
55122 '') if test "$ac_cv_type_off_t" = yes; then
55123      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55125 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
55126 See \`config.log' for more details." >&5
55127 $as_echo "$as_me: error: cannot compute sizeof (off_t)
55128 See \`config.log' for more details." >&2;}
55129    { (exit 77); exit 77; }; }; }
55130    else
55131      ac_cv_sizeof_off_t=0
55132    fi ;;
55133 esac
55134 else
55135   cat >conftest.$ac_ext <<_ACEOF
55136 /* confdefs.h.  */
55137 _ACEOF
55138 cat confdefs.h >>conftest.$ac_ext
55139 cat >>conftest.$ac_ext <<_ACEOF
55140 /* end confdefs.h.  */
55141 $ac_includes_default
55142 static long int longval () { return (long int) (sizeof (off_t)); }
55143 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
55144 #include <stdio.h>
55145 #include <stdlib.h>
55146 int
55147 main ()
55148 {
55149
55150   FILE *f = fopen ("conftest.val", "w");
55151   if (! f)
55152     return 1;
55153   if (((long int) (sizeof (off_t))) < 0)
55154     {
55155       long int i = longval ();
55156       if (i != ((long int) (sizeof (off_t))))
55157         return 1;
55158       fprintf (f, "%ld", i);
55159     }
55160   else
55161     {
55162       unsigned long int i = ulongval ();
55163       if (i != ((long int) (sizeof (off_t))))
55164         return 1;
55165       fprintf (f, "%lu", i);
55166     }
55167   /* Do not output a trailing newline, as this causes \r\n confusion
55168      on some platforms.  */
55169   return ferror (f) || fclose (f) != 0;
55170
55171   ;
55172   return 0;
55173 }
55174 _ACEOF
55175 rm -f conftest$ac_exeext
55176 if { (ac_try="$ac_link"
55177 case "(($ac_try" in
55178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55179   *) ac_try_echo=$ac_try;;
55180 esac
55181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55182 $as_echo "$ac_try_echo") >&5
55183   (eval "$ac_link") 2>&5
55184   ac_status=$?
55185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55187   { (case "(($ac_try" in
55188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55189   *) ac_try_echo=$ac_try;;
55190 esac
55191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55192 $as_echo "$ac_try_echo") >&5
55193   (eval "$ac_try") 2>&5
55194   ac_status=$?
55195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55196   (exit $ac_status); }; }; then
55197   ac_cv_sizeof_off_t=`cat conftest.val`
55198 else
55199   $as_echo "$as_me: program exited with status $ac_status" >&5
55200 $as_echo "$as_me: failed program was:" >&5
55201 sed 's/^/| /' conftest.$ac_ext >&5
55202
55203 ( exit $ac_status )
55204 if test "$ac_cv_type_off_t" = yes; then
55205      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55207 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
55208 See \`config.log' for more details." >&5
55209 $as_echo "$as_me: error: cannot compute sizeof (off_t)
55210 See \`config.log' for more details." >&2;}
55211    { (exit 77); exit 77; }; }; }
55212    else
55213      ac_cv_sizeof_off_t=0
55214    fi
55215 fi
55216 rm -rf conftest.dSYM
55217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55218 fi
55219 rm -f conftest.val
55220 fi
55221 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
55222 $as_echo "$ac_cv_sizeof_off_t" >&6; }
55223
55224
55225
55226 cat >>confdefs.h <<_ACEOF
55227 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
55228 _ACEOF
55229
55230
55231 # The cast to long int works around a bug in the HP C Compiler
55232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55234 # This bug is HP SR number 8606223364.
55235 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
55236 $as_echo_n "checking size of size_t... " >&6; }
55237 if test "${ac_cv_sizeof_size_t+set}" = set; then
55238   $as_echo_n "(cached) " >&6
55239 else
55240   if test "$cross_compiling" = yes; then
55241   # Depending upon the size, compute the lo and hi bounds.
55242 cat >conftest.$ac_ext <<_ACEOF
55243 /* confdefs.h.  */
55244 _ACEOF
55245 cat confdefs.h >>conftest.$ac_ext
55246 cat >>conftest.$ac_ext <<_ACEOF
55247 /* end confdefs.h.  */
55248 $ac_includes_default
55249 int
55250 main ()
55251 {
55252 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
55253 test_array [0] = 0
55254
55255   ;
55256   return 0;
55257 }
55258 _ACEOF
55259 rm -f conftest.$ac_objext
55260 if { (ac_try="$ac_compile"
55261 case "(($ac_try" in
55262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55263   *) ac_try_echo=$ac_try;;
55264 esac
55265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55266 $as_echo "$ac_try_echo") >&5
55267   (eval "$ac_compile") 2>conftest.er1
55268   ac_status=$?
55269   grep -v '^ *+' conftest.er1 >conftest.err
55270   rm -f conftest.er1
55271   cat conftest.err >&5
55272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55273   (exit $ac_status); } && {
55274          test -z "$ac_c_werror_flag" ||
55275          test ! -s conftest.err
55276        } && test -s conftest.$ac_objext; then
55277   ac_lo=0 ac_mid=0
55278   while :; do
55279     cat >conftest.$ac_ext <<_ACEOF
55280 /* confdefs.h.  */
55281 _ACEOF
55282 cat confdefs.h >>conftest.$ac_ext
55283 cat >>conftest.$ac_ext <<_ACEOF
55284 /* end confdefs.h.  */
55285 $ac_includes_default
55286 int
55287 main ()
55288 {
55289 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
55290 test_array [0] = 0
55291
55292   ;
55293   return 0;
55294 }
55295 _ACEOF
55296 rm -f conftest.$ac_objext
55297 if { (ac_try="$ac_compile"
55298 case "(($ac_try" in
55299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55300   *) ac_try_echo=$ac_try;;
55301 esac
55302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55303 $as_echo "$ac_try_echo") >&5
55304   (eval "$ac_compile") 2>conftest.er1
55305   ac_status=$?
55306   grep -v '^ *+' conftest.er1 >conftest.err
55307   rm -f conftest.er1
55308   cat conftest.err >&5
55309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55310   (exit $ac_status); } && {
55311          test -z "$ac_c_werror_flag" ||
55312          test ! -s conftest.err
55313        } && test -s conftest.$ac_objext; then
55314   ac_hi=$ac_mid; break
55315 else
55316   $as_echo "$as_me: failed program was:" >&5
55317 sed 's/^/| /' conftest.$ac_ext >&5
55318
55319         ac_lo=`expr $ac_mid + 1`
55320                         if test $ac_lo -le $ac_mid; then
55321                           ac_lo= ac_hi=
55322                           break
55323                         fi
55324                         ac_mid=`expr 2 '*' $ac_mid + 1`
55325 fi
55326
55327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55328   done
55329 else
55330   $as_echo "$as_me: failed program was:" >&5
55331 sed 's/^/| /' conftest.$ac_ext >&5
55332
55333         cat >conftest.$ac_ext <<_ACEOF
55334 /* confdefs.h.  */
55335 _ACEOF
55336 cat confdefs.h >>conftest.$ac_ext
55337 cat >>conftest.$ac_ext <<_ACEOF
55338 /* end confdefs.h.  */
55339 $ac_includes_default
55340 int
55341 main ()
55342 {
55343 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
55344 test_array [0] = 0
55345
55346   ;
55347   return 0;
55348 }
55349 _ACEOF
55350 rm -f conftest.$ac_objext
55351 if { (ac_try="$ac_compile"
55352 case "(($ac_try" in
55353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55354   *) ac_try_echo=$ac_try;;
55355 esac
55356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55357 $as_echo "$ac_try_echo") >&5
55358   (eval "$ac_compile") 2>conftest.er1
55359   ac_status=$?
55360   grep -v '^ *+' conftest.er1 >conftest.err
55361   rm -f conftest.er1
55362   cat conftest.err >&5
55363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55364   (exit $ac_status); } && {
55365          test -z "$ac_c_werror_flag" ||
55366          test ! -s conftest.err
55367        } && test -s conftest.$ac_objext; then
55368   ac_hi=-1 ac_mid=-1
55369   while :; do
55370     cat >conftest.$ac_ext <<_ACEOF
55371 /* confdefs.h.  */
55372 _ACEOF
55373 cat confdefs.h >>conftest.$ac_ext
55374 cat >>conftest.$ac_ext <<_ACEOF
55375 /* end confdefs.h.  */
55376 $ac_includes_default
55377 int
55378 main ()
55379 {
55380 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
55381 test_array [0] = 0
55382
55383   ;
55384   return 0;
55385 }
55386 _ACEOF
55387 rm -f conftest.$ac_objext
55388 if { (ac_try="$ac_compile"
55389 case "(($ac_try" in
55390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55391   *) ac_try_echo=$ac_try;;
55392 esac
55393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55394 $as_echo "$ac_try_echo") >&5
55395   (eval "$ac_compile") 2>conftest.er1
55396   ac_status=$?
55397   grep -v '^ *+' conftest.er1 >conftest.err
55398   rm -f conftest.er1
55399   cat conftest.err >&5
55400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55401   (exit $ac_status); } && {
55402          test -z "$ac_c_werror_flag" ||
55403          test ! -s conftest.err
55404        } && test -s conftest.$ac_objext; then
55405   ac_lo=$ac_mid; break
55406 else
55407   $as_echo "$as_me: failed program was:" >&5
55408 sed 's/^/| /' conftest.$ac_ext >&5
55409
55410         ac_hi=`expr '(' $ac_mid ')' - 1`
55411                         if test $ac_mid -le $ac_hi; then
55412                           ac_lo= ac_hi=
55413                           break
55414                         fi
55415                         ac_mid=`expr 2 '*' $ac_mid`
55416 fi
55417
55418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55419   done
55420 else
55421   $as_echo "$as_me: failed program was:" >&5
55422 sed 's/^/| /' conftest.$ac_ext >&5
55423
55424         ac_lo= ac_hi=
55425 fi
55426
55427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55428 fi
55429
55430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55431 # Binary search between lo and hi bounds.
55432 while test "x$ac_lo" != "x$ac_hi"; do
55433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55434   cat >conftest.$ac_ext <<_ACEOF
55435 /* confdefs.h.  */
55436 _ACEOF
55437 cat confdefs.h >>conftest.$ac_ext
55438 cat >>conftest.$ac_ext <<_ACEOF
55439 /* end confdefs.h.  */
55440 $ac_includes_default
55441 int
55442 main ()
55443 {
55444 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
55445 test_array [0] = 0
55446
55447   ;
55448   return 0;
55449 }
55450 _ACEOF
55451 rm -f conftest.$ac_objext
55452 if { (ac_try="$ac_compile"
55453 case "(($ac_try" in
55454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55455   *) ac_try_echo=$ac_try;;
55456 esac
55457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55458 $as_echo "$ac_try_echo") >&5
55459   (eval "$ac_compile") 2>conftest.er1
55460   ac_status=$?
55461   grep -v '^ *+' conftest.er1 >conftest.err
55462   rm -f conftest.er1
55463   cat conftest.err >&5
55464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55465   (exit $ac_status); } && {
55466          test -z "$ac_c_werror_flag" ||
55467          test ! -s conftest.err
55468        } && test -s conftest.$ac_objext; then
55469   ac_hi=$ac_mid
55470 else
55471   $as_echo "$as_me: failed program was:" >&5
55472 sed 's/^/| /' conftest.$ac_ext >&5
55473
55474         ac_lo=`expr '(' $ac_mid ')' + 1`
55475 fi
55476
55477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55478 done
55479 case $ac_lo in
55480 ?*) ac_cv_sizeof_size_t=$ac_lo;;
55481 '') if test "$ac_cv_type_size_t" = yes; then
55482      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55484 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
55485 See \`config.log' for more details." >&5
55486 $as_echo "$as_me: error: cannot compute sizeof (size_t)
55487 See \`config.log' for more details." >&2;}
55488    { (exit 77); exit 77; }; }; }
55489    else
55490      ac_cv_sizeof_size_t=0
55491    fi ;;
55492 esac
55493 else
55494   cat >conftest.$ac_ext <<_ACEOF
55495 /* confdefs.h.  */
55496 _ACEOF
55497 cat confdefs.h >>conftest.$ac_ext
55498 cat >>conftest.$ac_ext <<_ACEOF
55499 /* end confdefs.h.  */
55500 $ac_includes_default
55501 static long int longval () { return (long int) (sizeof (size_t)); }
55502 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
55503 #include <stdio.h>
55504 #include <stdlib.h>
55505 int
55506 main ()
55507 {
55508
55509   FILE *f = fopen ("conftest.val", "w");
55510   if (! f)
55511     return 1;
55512   if (((long int) (sizeof (size_t))) < 0)
55513     {
55514       long int i = longval ();
55515       if (i != ((long int) (sizeof (size_t))))
55516         return 1;
55517       fprintf (f, "%ld", i);
55518     }
55519   else
55520     {
55521       unsigned long int i = ulongval ();
55522       if (i != ((long int) (sizeof (size_t))))
55523         return 1;
55524       fprintf (f, "%lu", i);
55525     }
55526   /* Do not output a trailing newline, as this causes \r\n confusion
55527      on some platforms.  */
55528   return ferror (f) || fclose (f) != 0;
55529
55530   ;
55531   return 0;
55532 }
55533 _ACEOF
55534 rm -f conftest$ac_exeext
55535 if { (ac_try="$ac_link"
55536 case "(($ac_try" in
55537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55538   *) ac_try_echo=$ac_try;;
55539 esac
55540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55541 $as_echo "$ac_try_echo") >&5
55542   (eval "$ac_link") 2>&5
55543   ac_status=$?
55544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55546   { (case "(($ac_try" in
55547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55548   *) ac_try_echo=$ac_try;;
55549 esac
55550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55551 $as_echo "$ac_try_echo") >&5
55552   (eval "$ac_try") 2>&5
55553   ac_status=$?
55554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55555   (exit $ac_status); }; }; then
55556   ac_cv_sizeof_size_t=`cat conftest.val`
55557 else
55558   $as_echo "$as_me: program exited with status $ac_status" >&5
55559 $as_echo "$as_me: failed program was:" >&5
55560 sed 's/^/| /' conftest.$ac_ext >&5
55561
55562 ( exit $ac_status )
55563 if test "$ac_cv_type_size_t" = yes; then
55564      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55566 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
55567 See \`config.log' for more details." >&5
55568 $as_echo "$as_me: error: cannot compute sizeof (size_t)
55569 See \`config.log' for more details." >&2;}
55570    { (exit 77); exit 77; }; }; }
55571    else
55572      ac_cv_sizeof_size_t=0
55573    fi
55574 fi
55575 rm -rf conftest.dSYM
55576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55577 fi
55578 rm -f conftest.val
55579 fi
55580 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
55581 $as_echo "$ac_cv_sizeof_size_t" >&6; }
55582
55583
55584
55585 cat >>confdefs.h <<_ACEOF
55586 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
55587 _ACEOF
55588
55589
55590 # The cast to long int works around a bug in the HP C Compiler
55591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55593 # This bug is HP SR number 8606223364.
55594 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
55595 $as_echo_n "checking size of ssize_t... " >&6; }
55596 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
55597   $as_echo_n "(cached) " >&6
55598 else
55599   if test "$cross_compiling" = yes; then
55600   # Depending upon the size, compute the lo and hi bounds.
55601 cat >conftest.$ac_ext <<_ACEOF
55602 /* confdefs.h.  */
55603 _ACEOF
55604 cat confdefs.h >>conftest.$ac_ext
55605 cat >>conftest.$ac_ext <<_ACEOF
55606 /* end confdefs.h.  */
55607 $ac_includes_default
55608 int
55609 main ()
55610 {
55611 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
55612 test_array [0] = 0
55613
55614   ;
55615   return 0;
55616 }
55617 _ACEOF
55618 rm -f conftest.$ac_objext
55619 if { (ac_try="$ac_compile"
55620 case "(($ac_try" in
55621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55622   *) ac_try_echo=$ac_try;;
55623 esac
55624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55625 $as_echo "$ac_try_echo") >&5
55626   (eval "$ac_compile") 2>conftest.er1
55627   ac_status=$?
55628   grep -v '^ *+' conftest.er1 >conftest.err
55629   rm -f conftest.er1
55630   cat conftest.err >&5
55631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55632   (exit $ac_status); } && {
55633          test -z "$ac_c_werror_flag" ||
55634          test ! -s conftest.err
55635        } && test -s conftest.$ac_objext; then
55636   ac_lo=0 ac_mid=0
55637   while :; do
55638     cat >conftest.$ac_ext <<_ACEOF
55639 /* confdefs.h.  */
55640 _ACEOF
55641 cat confdefs.h >>conftest.$ac_ext
55642 cat >>conftest.$ac_ext <<_ACEOF
55643 /* end confdefs.h.  */
55644 $ac_includes_default
55645 int
55646 main ()
55647 {
55648 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
55649 test_array [0] = 0
55650
55651   ;
55652   return 0;
55653 }
55654 _ACEOF
55655 rm -f conftest.$ac_objext
55656 if { (ac_try="$ac_compile"
55657 case "(($ac_try" in
55658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55659   *) ac_try_echo=$ac_try;;
55660 esac
55661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55662 $as_echo "$ac_try_echo") >&5
55663   (eval "$ac_compile") 2>conftest.er1
55664   ac_status=$?
55665   grep -v '^ *+' conftest.er1 >conftest.err
55666   rm -f conftest.er1
55667   cat conftest.err >&5
55668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55669   (exit $ac_status); } && {
55670          test -z "$ac_c_werror_flag" ||
55671          test ! -s conftest.err
55672        } && test -s conftest.$ac_objext; then
55673   ac_hi=$ac_mid; break
55674 else
55675   $as_echo "$as_me: failed program was:" >&5
55676 sed 's/^/| /' conftest.$ac_ext >&5
55677
55678         ac_lo=`expr $ac_mid + 1`
55679                         if test $ac_lo -le $ac_mid; then
55680                           ac_lo= ac_hi=
55681                           break
55682                         fi
55683                         ac_mid=`expr 2 '*' $ac_mid + 1`
55684 fi
55685
55686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55687   done
55688 else
55689   $as_echo "$as_me: failed program was:" >&5
55690 sed 's/^/| /' conftest.$ac_ext >&5
55691
55692         cat >conftest.$ac_ext <<_ACEOF
55693 /* confdefs.h.  */
55694 _ACEOF
55695 cat confdefs.h >>conftest.$ac_ext
55696 cat >>conftest.$ac_ext <<_ACEOF
55697 /* end confdefs.h.  */
55698 $ac_includes_default
55699 int
55700 main ()
55701 {
55702 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
55703 test_array [0] = 0
55704
55705   ;
55706   return 0;
55707 }
55708 _ACEOF
55709 rm -f conftest.$ac_objext
55710 if { (ac_try="$ac_compile"
55711 case "(($ac_try" in
55712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55713   *) ac_try_echo=$ac_try;;
55714 esac
55715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55716 $as_echo "$ac_try_echo") >&5
55717   (eval "$ac_compile") 2>conftest.er1
55718   ac_status=$?
55719   grep -v '^ *+' conftest.er1 >conftest.err
55720   rm -f conftest.er1
55721   cat conftest.err >&5
55722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55723   (exit $ac_status); } && {
55724          test -z "$ac_c_werror_flag" ||
55725          test ! -s conftest.err
55726        } && test -s conftest.$ac_objext; then
55727   ac_hi=-1 ac_mid=-1
55728   while :; do
55729     cat >conftest.$ac_ext <<_ACEOF
55730 /* confdefs.h.  */
55731 _ACEOF
55732 cat confdefs.h >>conftest.$ac_ext
55733 cat >>conftest.$ac_ext <<_ACEOF
55734 /* end confdefs.h.  */
55735 $ac_includes_default
55736 int
55737 main ()
55738 {
55739 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
55740 test_array [0] = 0
55741
55742   ;
55743   return 0;
55744 }
55745 _ACEOF
55746 rm -f conftest.$ac_objext
55747 if { (ac_try="$ac_compile"
55748 case "(($ac_try" in
55749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55750   *) ac_try_echo=$ac_try;;
55751 esac
55752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55753 $as_echo "$ac_try_echo") >&5
55754   (eval "$ac_compile") 2>conftest.er1
55755   ac_status=$?
55756   grep -v '^ *+' conftest.er1 >conftest.err
55757   rm -f conftest.er1
55758   cat conftest.err >&5
55759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55760   (exit $ac_status); } && {
55761          test -z "$ac_c_werror_flag" ||
55762          test ! -s conftest.err
55763        } && test -s conftest.$ac_objext; then
55764   ac_lo=$ac_mid; break
55765 else
55766   $as_echo "$as_me: failed program was:" >&5
55767 sed 's/^/| /' conftest.$ac_ext >&5
55768
55769         ac_hi=`expr '(' $ac_mid ')' - 1`
55770                         if test $ac_mid -le $ac_hi; then
55771                           ac_lo= ac_hi=
55772                           break
55773                         fi
55774                         ac_mid=`expr 2 '*' $ac_mid`
55775 fi
55776
55777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55778   done
55779 else
55780   $as_echo "$as_me: failed program was:" >&5
55781 sed 's/^/| /' conftest.$ac_ext >&5
55782
55783         ac_lo= ac_hi=
55784 fi
55785
55786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55787 fi
55788
55789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55790 # Binary search between lo and hi bounds.
55791 while test "x$ac_lo" != "x$ac_hi"; do
55792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55793   cat >conftest.$ac_ext <<_ACEOF
55794 /* confdefs.h.  */
55795 _ACEOF
55796 cat confdefs.h >>conftest.$ac_ext
55797 cat >>conftest.$ac_ext <<_ACEOF
55798 /* end confdefs.h.  */
55799 $ac_includes_default
55800 int
55801 main ()
55802 {
55803 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
55804 test_array [0] = 0
55805
55806   ;
55807   return 0;
55808 }
55809 _ACEOF
55810 rm -f conftest.$ac_objext
55811 if { (ac_try="$ac_compile"
55812 case "(($ac_try" in
55813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55814   *) ac_try_echo=$ac_try;;
55815 esac
55816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55817 $as_echo "$ac_try_echo") >&5
55818   (eval "$ac_compile") 2>conftest.er1
55819   ac_status=$?
55820   grep -v '^ *+' conftest.er1 >conftest.err
55821   rm -f conftest.er1
55822   cat conftest.err >&5
55823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55824   (exit $ac_status); } && {
55825          test -z "$ac_c_werror_flag" ||
55826          test ! -s conftest.err
55827        } && test -s conftest.$ac_objext; then
55828   ac_hi=$ac_mid
55829 else
55830   $as_echo "$as_me: failed program was:" >&5
55831 sed 's/^/| /' conftest.$ac_ext >&5
55832
55833         ac_lo=`expr '(' $ac_mid ')' + 1`
55834 fi
55835
55836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55837 done
55838 case $ac_lo in
55839 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
55840 '') if test "$ac_cv_type_ssize_t" = yes; then
55841      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55843 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
55844 See \`config.log' for more details." >&5
55845 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
55846 See \`config.log' for more details." >&2;}
55847    { (exit 77); exit 77; }; }; }
55848    else
55849      ac_cv_sizeof_ssize_t=0
55850    fi ;;
55851 esac
55852 else
55853   cat >conftest.$ac_ext <<_ACEOF
55854 /* confdefs.h.  */
55855 _ACEOF
55856 cat confdefs.h >>conftest.$ac_ext
55857 cat >>conftest.$ac_ext <<_ACEOF
55858 /* end confdefs.h.  */
55859 $ac_includes_default
55860 static long int longval () { return (long int) (sizeof (ssize_t)); }
55861 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
55862 #include <stdio.h>
55863 #include <stdlib.h>
55864 int
55865 main ()
55866 {
55867
55868   FILE *f = fopen ("conftest.val", "w");
55869   if (! f)
55870     return 1;
55871   if (((long int) (sizeof (ssize_t))) < 0)
55872     {
55873       long int i = longval ();
55874       if (i != ((long int) (sizeof (ssize_t))))
55875         return 1;
55876       fprintf (f, "%ld", i);
55877     }
55878   else
55879     {
55880       unsigned long int i = ulongval ();
55881       if (i != ((long int) (sizeof (ssize_t))))
55882         return 1;
55883       fprintf (f, "%lu", i);
55884     }
55885   /* Do not output a trailing newline, as this causes \r\n confusion
55886      on some platforms.  */
55887   return ferror (f) || fclose (f) != 0;
55888
55889   ;
55890   return 0;
55891 }
55892 _ACEOF
55893 rm -f conftest$ac_exeext
55894 if { (ac_try="$ac_link"
55895 case "(($ac_try" in
55896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55897   *) ac_try_echo=$ac_try;;
55898 esac
55899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55900 $as_echo "$ac_try_echo") >&5
55901   (eval "$ac_link") 2>&5
55902   ac_status=$?
55903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55905   { (case "(($ac_try" in
55906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55907   *) ac_try_echo=$ac_try;;
55908 esac
55909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55910 $as_echo "$ac_try_echo") >&5
55911   (eval "$ac_try") 2>&5
55912   ac_status=$?
55913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55914   (exit $ac_status); }; }; then
55915   ac_cv_sizeof_ssize_t=`cat conftest.val`
55916 else
55917   $as_echo "$as_me: program exited with status $ac_status" >&5
55918 $as_echo "$as_me: failed program was:" >&5
55919 sed 's/^/| /' conftest.$ac_ext >&5
55920
55921 ( exit $ac_status )
55922 if test "$ac_cv_type_ssize_t" = yes; then
55923      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55925 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
55926 See \`config.log' for more details." >&5
55927 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
55928 See \`config.log' for more details." >&2;}
55929    { (exit 77); exit 77; }; }; }
55930    else
55931      ac_cv_sizeof_ssize_t=0
55932    fi
55933 fi
55934 rm -rf conftest.dSYM
55935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55936 fi
55937 rm -f conftest.val
55938 fi
55939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
55940 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
55941
55942
55943
55944 cat >>confdefs.h <<_ACEOF
55945 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
55946 _ACEOF
55947
55948
55949 # The cast to long int works around a bug in the HP C Compiler
55950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55952 # This bug is HP SR number 8606223364.
55953 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
55954 $as_echo_n "checking size of time_t... " >&6; }
55955 if test "${ac_cv_sizeof_time_t+set}" = set; then
55956   $as_echo_n "(cached) " >&6
55957 else
55958   if test "$cross_compiling" = yes; then
55959   # Depending upon the size, compute the lo and hi bounds.
55960 cat >conftest.$ac_ext <<_ACEOF
55961 /* confdefs.h.  */
55962 _ACEOF
55963 cat confdefs.h >>conftest.$ac_ext
55964 cat >>conftest.$ac_ext <<_ACEOF
55965 /* end confdefs.h.  */
55966 $ac_includes_default
55967 int
55968 main ()
55969 {
55970 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
55971 test_array [0] = 0
55972
55973   ;
55974   return 0;
55975 }
55976 _ACEOF
55977 rm -f conftest.$ac_objext
55978 if { (ac_try="$ac_compile"
55979 case "(($ac_try" in
55980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55981   *) ac_try_echo=$ac_try;;
55982 esac
55983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55984 $as_echo "$ac_try_echo") >&5
55985   (eval "$ac_compile") 2>conftest.er1
55986   ac_status=$?
55987   grep -v '^ *+' conftest.er1 >conftest.err
55988   rm -f conftest.er1
55989   cat conftest.err >&5
55990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55991   (exit $ac_status); } && {
55992          test -z "$ac_c_werror_flag" ||
55993          test ! -s conftest.err
55994        } && test -s conftest.$ac_objext; then
55995   ac_lo=0 ac_mid=0
55996   while :; do
55997     cat >conftest.$ac_ext <<_ACEOF
55998 /* confdefs.h.  */
55999 _ACEOF
56000 cat confdefs.h >>conftest.$ac_ext
56001 cat >>conftest.$ac_ext <<_ACEOF
56002 /* end confdefs.h.  */
56003 $ac_includes_default
56004 int
56005 main ()
56006 {
56007 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
56008 test_array [0] = 0
56009
56010   ;
56011   return 0;
56012 }
56013 _ACEOF
56014 rm -f conftest.$ac_objext
56015 if { (ac_try="$ac_compile"
56016 case "(($ac_try" in
56017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56018   *) ac_try_echo=$ac_try;;
56019 esac
56020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56021 $as_echo "$ac_try_echo") >&5
56022   (eval "$ac_compile") 2>conftest.er1
56023   ac_status=$?
56024   grep -v '^ *+' conftest.er1 >conftest.err
56025   rm -f conftest.er1
56026   cat conftest.err >&5
56027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56028   (exit $ac_status); } && {
56029          test -z "$ac_c_werror_flag" ||
56030          test ! -s conftest.err
56031        } && test -s conftest.$ac_objext; then
56032   ac_hi=$ac_mid; break
56033 else
56034   $as_echo "$as_me: failed program was:" >&5
56035 sed 's/^/| /' conftest.$ac_ext >&5
56036
56037         ac_lo=`expr $ac_mid + 1`
56038                         if test $ac_lo -le $ac_mid; then
56039                           ac_lo= ac_hi=
56040                           break
56041                         fi
56042                         ac_mid=`expr 2 '*' $ac_mid + 1`
56043 fi
56044
56045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56046   done
56047 else
56048   $as_echo "$as_me: failed program was:" >&5
56049 sed 's/^/| /' conftest.$ac_ext >&5
56050
56051         cat >conftest.$ac_ext <<_ACEOF
56052 /* confdefs.h.  */
56053 _ACEOF
56054 cat confdefs.h >>conftest.$ac_ext
56055 cat >>conftest.$ac_ext <<_ACEOF
56056 /* end confdefs.h.  */
56057 $ac_includes_default
56058 int
56059 main ()
56060 {
56061 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
56062 test_array [0] = 0
56063
56064   ;
56065   return 0;
56066 }
56067 _ACEOF
56068 rm -f conftest.$ac_objext
56069 if { (ac_try="$ac_compile"
56070 case "(($ac_try" in
56071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56072   *) ac_try_echo=$ac_try;;
56073 esac
56074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56075 $as_echo "$ac_try_echo") >&5
56076   (eval "$ac_compile") 2>conftest.er1
56077   ac_status=$?
56078   grep -v '^ *+' conftest.er1 >conftest.err
56079   rm -f conftest.er1
56080   cat conftest.err >&5
56081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56082   (exit $ac_status); } && {
56083          test -z "$ac_c_werror_flag" ||
56084          test ! -s conftest.err
56085        } && test -s conftest.$ac_objext; then
56086   ac_hi=-1 ac_mid=-1
56087   while :; do
56088     cat >conftest.$ac_ext <<_ACEOF
56089 /* confdefs.h.  */
56090 _ACEOF
56091 cat confdefs.h >>conftest.$ac_ext
56092 cat >>conftest.$ac_ext <<_ACEOF
56093 /* end confdefs.h.  */
56094 $ac_includes_default
56095 int
56096 main ()
56097 {
56098 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
56099 test_array [0] = 0
56100
56101   ;
56102   return 0;
56103 }
56104 _ACEOF
56105 rm -f conftest.$ac_objext
56106 if { (ac_try="$ac_compile"
56107 case "(($ac_try" in
56108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56109   *) ac_try_echo=$ac_try;;
56110 esac
56111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56112 $as_echo "$ac_try_echo") >&5
56113   (eval "$ac_compile") 2>conftest.er1
56114   ac_status=$?
56115   grep -v '^ *+' conftest.er1 >conftest.err
56116   rm -f conftest.er1
56117   cat conftest.err >&5
56118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56119   (exit $ac_status); } && {
56120          test -z "$ac_c_werror_flag" ||
56121          test ! -s conftest.err
56122        } && test -s conftest.$ac_objext; then
56123   ac_lo=$ac_mid; break
56124 else
56125   $as_echo "$as_me: failed program was:" >&5
56126 sed 's/^/| /' conftest.$ac_ext >&5
56127
56128         ac_hi=`expr '(' $ac_mid ')' - 1`
56129                         if test $ac_mid -le $ac_hi; then
56130                           ac_lo= ac_hi=
56131                           break
56132                         fi
56133                         ac_mid=`expr 2 '*' $ac_mid`
56134 fi
56135
56136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56137   done
56138 else
56139   $as_echo "$as_me: failed program was:" >&5
56140 sed 's/^/| /' conftest.$ac_ext >&5
56141
56142         ac_lo= ac_hi=
56143 fi
56144
56145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56146 fi
56147
56148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56149 # Binary search between lo and hi bounds.
56150 while test "x$ac_lo" != "x$ac_hi"; do
56151   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
56152   cat >conftest.$ac_ext <<_ACEOF
56153 /* confdefs.h.  */
56154 _ACEOF
56155 cat confdefs.h >>conftest.$ac_ext
56156 cat >>conftest.$ac_ext <<_ACEOF
56157 /* end confdefs.h.  */
56158 $ac_includes_default
56159 int
56160 main ()
56161 {
56162 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
56163 test_array [0] = 0
56164
56165   ;
56166   return 0;
56167 }
56168 _ACEOF
56169 rm -f conftest.$ac_objext
56170 if { (ac_try="$ac_compile"
56171 case "(($ac_try" in
56172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56173   *) ac_try_echo=$ac_try;;
56174 esac
56175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56176 $as_echo "$ac_try_echo") >&5
56177   (eval "$ac_compile") 2>conftest.er1
56178   ac_status=$?
56179   grep -v '^ *+' conftest.er1 >conftest.err
56180   rm -f conftest.er1
56181   cat conftest.err >&5
56182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56183   (exit $ac_status); } && {
56184          test -z "$ac_c_werror_flag" ||
56185          test ! -s conftest.err
56186        } && test -s conftest.$ac_objext; then
56187   ac_hi=$ac_mid
56188 else
56189   $as_echo "$as_me: failed program was:" >&5
56190 sed 's/^/| /' conftest.$ac_ext >&5
56191
56192         ac_lo=`expr '(' $ac_mid ')' + 1`
56193 fi
56194
56195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56196 done
56197 case $ac_lo in
56198 ?*) ac_cv_sizeof_time_t=$ac_lo;;
56199 '') if test "$ac_cv_type_time_t" = yes; then
56200      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
56201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56202 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
56203 See \`config.log' for more details." >&5
56204 $as_echo "$as_me: error: cannot compute sizeof (time_t)
56205 See \`config.log' for more details." >&2;}
56206    { (exit 77); exit 77; }; }; }
56207    else
56208      ac_cv_sizeof_time_t=0
56209    fi ;;
56210 esac
56211 else
56212   cat >conftest.$ac_ext <<_ACEOF
56213 /* confdefs.h.  */
56214 _ACEOF
56215 cat confdefs.h >>conftest.$ac_ext
56216 cat >>conftest.$ac_ext <<_ACEOF
56217 /* end confdefs.h.  */
56218 $ac_includes_default
56219 static long int longval () { return (long int) (sizeof (time_t)); }
56220 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
56221 #include <stdio.h>
56222 #include <stdlib.h>
56223 int
56224 main ()
56225 {
56226
56227   FILE *f = fopen ("conftest.val", "w");
56228   if (! f)
56229     return 1;
56230   if (((long int) (sizeof (time_t))) < 0)
56231     {
56232       long int i = longval ();
56233       if (i != ((long int) (sizeof (time_t))))
56234         return 1;
56235       fprintf (f, "%ld", i);
56236     }
56237   else
56238     {
56239       unsigned long int i = ulongval ();
56240       if (i != ((long int) (sizeof (time_t))))
56241         return 1;
56242       fprintf (f, "%lu", i);
56243     }
56244   /* Do not output a trailing newline, as this causes \r\n confusion
56245      on some platforms.  */
56246   return ferror (f) || fclose (f) != 0;
56247
56248   ;
56249   return 0;
56250 }
56251 _ACEOF
56252 rm -f conftest$ac_exeext
56253 if { (ac_try="$ac_link"
56254 case "(($ac_try" in
56255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56256   *) ac_try_echo=$ac_try;;
56257 esac
56258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56259 $as_echo "$ac_try_echo") >&5
56260   (eval "$ac_link") 2>&5
56261   ac_status=$?
56262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56264   { (case "(($ac_try" in
56265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56266   *) ac_try_echo=$ac_try;;
56267 esac
56268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56269 $as_echo "$ac_try_echo") >&5
56270   (eval "$ac_try") 2>&5
56271   ac_status=$?
56272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56273   (exit $ac_status); }; }; then
56274   ac_cv_sizeof_time_t=`cat conftest.val`
56275 else
56276   $as_echo "$as_me: program exited with status $ac_status" >&5
56277 $as_echo "$as_me: failed program was:" >&5
56278 sed 's/^/| /' conftest.$ac_ext >&5
56279
56280 ( exit $ac_status )
56281 if test "$ac_cv_type_time_t" = yes; then
56282      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
56283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56284 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
56285 See \`config.log' for more details." >&5
56286 $as_echo "$as_me: error: cannot compute sizeof (time_t)
56287 See \`config.log' for more details." >&2;}
56288    { (exit 77); exit 77; }; }; }
56289    else
56290      ac_cv_sizeof_time_t=0
56291    fi
56292 fi
56293 rm -rf conftest.dSYM
56294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56295 fi
56296 rm -f conftest.val
56297 fi
56298 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
56299 $as_echo "$ac_cv_sizeof_time_t" >&6; }
56300
56301
56302
56303 cat >>confdefs.h <<_ACEOF
56304 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
56305 _ACEOF
56306
56307
56308 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
56309 $as_echo_n "checking for off_t... " >&6; }
56310 if test "${ac_cv_type_off_t+set}" = set; then
56311   $as_echo_n "(cached) " >&6
56312 else
56313   ac_cv_type_off_t=no
56314 cat >conftest.$ac_ext <<_ACEOF
56315 /* confdefs.h.  */
56316 _ACEOF
56317 cat confdefs.h >>conftest.$ac_ext
56318 cat >>conftest.$ac_ext <<_ACEOF
56319 /* end confdefs.h.  */
56320 $ac_includes_default
56321 int
56322 main ()
56323 {
56324 if (sizeof (off_t))
56325        return 0;
56326   ;
56327   return 0;
56328 }
56329 _ACEOF
56330 rm -f conftest.$ac_objext
56331 if { (ac_try="$ac_compile"
56332 case "(($ac_try" in
56333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56334   *) ac_try_echo=$ac_try;;
56335 esac
56336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56337 $as_echo "$ac_try_echo") >&5
56338   (eval "$ac_compile") 2>conftest.er1
56339   ac_status=$?
56340   grep -v '^ *+' conftest.er1 >conftest.err
56341   rm -f conftest.er1
56342   cat conftest.err >&5
56343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56344   (exit $ac_status); } && {
56345          test -z "$ac_c_werror_flag" ||
56346          test ! -s conftest.err
56347        } && test -s conftest.$ac_objext; then
56348   cat >conftest.$ac_ext <<_ACEOF
56349 /* confdefs.h.  */
56350 _ACEOF
56351 cat confdefs.h >>conftest.$ac_ext
56352 cat >>conftest.$ac_ext <<_ACEOF
56353 /* end confdefs.h.  */
56354 $ac_includes_default
56355 int
56356 main ()
56357 {
56358 if (sizeof ((off_t)))
56359           return 0;
56360   ;
56361   return 0;
56362 }
56363 _ACEOF
56364 rm -f conftest.$ac_objext
56365 if { (ac_try="$ac_compile"
56366 case "(($ac_try" in
56367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56368   *) ac_try_echo=$ac_try;;
56369 esac
56370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56371 $as_echo "$ac_try_echo") >&5
56372   (eval "$ac_compile") 2>conftest.er1
56373   ac_status=$?
56374   grep -v '^ *+' conftest.er1 >conftest.err
56375   rm -f conftest.er1
56376   cat conftest.err >&5
56377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56378   (exit $ac_status); } && {
56379          test -z "$ac_c_werror_flag" ||
56380          test ! -s conftest.err
56381        } && test -s conftest.$ac_objext; then
56382   :
56383 else
56384   $as_echo "$as_me: failed program was:" >&5
56385 sed 's/^/| /' conftest.$ac_ext >&5
56386
56387         ac_cv_type_off_t=yes
56388 fi
56389
56390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56391 else
56392   $as_echo "$as_me: failed program was:" >&5
56393 sed 's/^/| /' conftest.$ac_ext >&5
56394
56395
56396 fi
56397
56398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56399 fi
56400 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
56401 $as_echo "$ac_cv_type_off_t" >&6; }
56402 if test "x$ac_cv_type_off_t" = x""yes; then
56403   :
56404 else
56405
56406 cat >>confdefs.h <<_ACEOF
56407 #define off_t long int
56408 _ACEOF
56409
56410 fi
56411
56412 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
56413 $as_echo_n "checking for pid_t... " >&6; }
56414 if test "${ac_cv_type_pid_t+set}" = set; then
56415   $as_echo_n "(cached) " >&6
56416 else
56417   ac_cv_type_pid_t=no
56418 cat >conftest.$ac_ext <<_ACEOF
56419 /* confdefs.h.  */
56420 _ACEOF
56421 cat confdefs.h >>conftest.$ac_ext
56422 cat >>conftest.$ac_ext <<_ACEOF
56423 /* end confdefs.h.  */
56424 $ac_includes_default
56425 int
56426 main ()
56427 {
56428 if (sizeof (pid_t))
56429        return 0;
56430   ;
56431   return 0;
56432 }
56433 _ACEOF
56434 rm -f conftest.$ac_objext
56435 if { (ac_try="$ac_compile"
56436 case "(($ac_try" in
56437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56438   *) ac_try_echo=$ac_try;;
56439 esac
56440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56441 $as_echo "$ac_try_echo") >&5
56442   (eval "$ac_compile") 2>conftest.er1
56443   ac_status=$?
56444   grep -v '^ *+' conftest.er1 >conftest.err
56445   rm -f conftest.er1
56446   cat conftest.err >&5
56447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56448   (exit $ac_status); } && {
56449          test -z "$ac_c_werror_flag" ||
56450          test ! -s conftest.err
56451        } && test -s conftest.$ac_objext; then
56452   cat >conftest.$ac_ext <<_ACEOF
56453 /* confdefs.h.  */
56454 _ACEOF
56455 cat confdefs.h >>conftest.$ac_ext
56456 cat >>conftest.$ac_ext <<_ACEOF
56457 /* end confdefs.h.  */
56458 $ac_includes_default
56459 int
56460 main ()
56461 {
56462 if (sizeof ((pid_t)))
56463           return 0;
56464   ;
56465   return 0;
56466 }
56467 _ACEOF
56468 rm -f conftest.$ac_objext
56469 if { (ac_try="$ac_compile"
56470 case "(($ac_try" in
56471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56472   *) ac_try_echo=$ac_try;;
56473 esac
56474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56475 $as_echo "$ac_try_echo") >&5
56476   (eval "$ac_compile") 2>conftest.er1
56477   ac_status=$?
56478   grep -v '^ *+' conftest.er1 >conftest.err
56479   rm -f conftest.er1
56480   cat conftest.err >&5
56481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56482   (exit $ac_status); } && {
56483          test -z "$ac_c_werror_flag" ||
56484          test ! -s conftest.err
56485        } && test -s conftest.$ac_objext; then
56486   :
56487 else
56488   $as_echo "$as_me: failed program was:" >&5
56489 sed 's/^/| /' conftest.$ac_ext >&5
56490
56491         ac_cv_type_pid_t=yes
56492 fi
56493
56494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56495 else
56496   $as_echo "$as_me: failed program was:" >&5
56497 sed 's/^/| /' conftest.$ac_ext >&5
56498
56499
56500 fi
56501
56502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56503 fi
56504 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
56505 $as_echo "$ac_cv_type_pid_t" >&6; }
56506 if test "x$ac_cv_type_pid_t" = x""yes; then
56507   :
56508 else
56509
56510 cat >>confdefs.h <<_ACEOF
56511 #define pid_t int
56512 _ACEOF
56513
56514 fi
56515
56516 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
56517 $as_echo_n "checking for size_t... " >&6; }
56518 if test "${ac_cv_type_size_t+set}" = set; then
56519   $as_echo_n "(cached) " >&6
56520 else
56521   ac_cv_type_size_t=no
56522 cat >conftest.$ac_ext <<_ACEOF
56523 /* confdefs.h.  */
56524 _ACEOF
56525 cat confdefs.h >>conftest.$ac_ext
56526 cat >>conftest.$ac_ext <<_ACEOF
56527 /* end confdefs.h.  */
56528 $ac_includes_default
56529 int
56530 main ()
56531 {
56532 if (sizeof (size_t))
56533        return 0;
56534   ;
56535   return 0;
56536 }
56537 _ACEOF
56538 rm -f conftest.$ac_objext
56539 if { (ac_try="$ac_compile"
56540 case "(($ac_try" in
56541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56542   *) ac_try_echo=$ac_try;;
56543 esac
56544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56545 $as_echo "$ac_try_echo") >&5
56546   (eval "$ac_compile") 2>conftest.er1
56547   ac_status=$?
56548   grep -v '^ *+' conftest.er1 >conftest.err
56549   rm -f conftest.er1
56550   cat conftest.err >&5
56551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56552   (exit $ac_status); } && {
56553          test -z "$ac_c_werror_flag" ||
56554          test ! -s conftest.err
56555        } && test -s conftest.$ac_objext; then
56556   cat >conftest.$ac_ext <<_ACEOF
56557 /* confdefs.h.  */
56558 _ACEOF
56559 cat confdefs.h >>conftest.$ac_ext
56560 cat >>conftest.$ac_ext <<_ACEOF
56561 /* end confdefs.h.  */
56562 $ac_includes_default
56563 int
56564 main ()
56565 {
56566 if (sizeof ((size_t)))
56567           return 0;
56568   ;
56569   return 0;
56570 }
56571 _ACEOF
56572 rm -f conftest.$ac_objext
56573 if { (ac_try="$ac_compile"
56574 case "(($ac_try" in
56575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56576   *) ac_try_echo=$ac_try;;
56577 esac
56578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56579 $as_echo "$ac_try_echo") >&5
56580   (eval "$ac_compile") 2>conftest.er1
56581   ac_status=$?
56582   grep -v '^ *+' conftest.er1 >conftest.err
56583   rm -f conftest.er1
56584   cat conftest.err >&5
56585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56586   (exit $ac_status); } && {
56587          test -z "$ac_c_werror_flag" ||
56588          test ! -s conftest.err
56589        } && test -s conftest.$ac_objext; then
56590   :
56591 else
56592   $as_echo "$as_me: failed program was:" >&5
56593 sed 's/^/| /' conftest.$ac_ext >&5
56594
56595         ac_cv_type_size_t=yes
56596 fi
56597
56598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56599 else
56600   $as_echo "$as_me: failed program was:" >&5
56601 sed 's/^/| /' conftest.$ac_ext >&5
56602
56603
56604 fi
56605
56606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56607 fi
56608 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
56609 $as_echo "$ac_cv_type_size_t" >&6; }
56610 if test "x$ac_cv_type_size_t" = x""yes; then
56611   :
56612 else
56613
56614 cat >>confdefs.h <<_ACEOF
56615 #define size_t unsigned int
56616 _ACEOF
56617
56618 fi
56619
56620 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
56621 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
56622 if test "${ac_cv_type_uid_t+set}" = set; then
56623   $as_echo_n "(cached) " >&6
56624 else
56625   cat >conftest.$ac_ext <<_ACEOF
56626 /* confdefs.h.  */
56627 _ACEOF
56628 cat confdefs.h >>conftest.$ac_ext
56629 cat >>conftest.$ac_ext <<_ACEOF
56630 /* end confdefs.h.  */
56631 #include <sys/types.h>
56632
56633 _ACEOF
56634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56635   $EGREP "uid_t" >/dev/null 2>&1; then
56636   ac_cv_type_uid_t=yes
56637 else
56638   ac_cv_type_uid_t=no
56639 fi
56640 rm -f conftest*
56641
56642 fi
56643 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
56644 $as_echo "$ac_cv_type_uid_t" >&6; }
56645 if test $ac_cv_type_uid_t = no; then
56646
56647 cat >>confdefs.h <<\_ACEOF
56648 #define uid_t int
56649 _ACEOF
56650
56651
56652 cat >>confdefs.h <<\_ACEOF
56653 #define gid_t int
56654 _ACEOF
56655
56656 fi
56657
56658 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
56659 $as_echo_n "checking return type of signal handlers... " >&6; }
56660 if test "${ac_cv_type_signal+set}" = set; then
56661   $as_echo_n "(cached) " >&6
56662 else
56663   cat >conftest.$ac_ext <<_ACEOF
56664 /* confdefs.h.  */
56665 _ACEOF
56666 cat confdefs.h >>conftest.$ac_ext
56667 cat >>conftest.$ac_ext <<_ACEOF
56668 /* end confdefs.h.  */
56669 #include <sys/types.h>
56670 #include <signal.h>
56671
56672 int
56673 main ()
56674 {
56675 return *(signal (0, 0)) (0) == 1;
56676   ;
56677   return 0;
56678 }
56679 _ACEOF
56680 rm -f conftest.$ac_objext
56681 if { (ac_try="$ac_compile"
56682 case "(($ac_try" in
56683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56684   *) ac_try_echo=$ac_try;;
56685 esac
56686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56687 $as_echo "$ac_try_echo") >&5
56688   (eval "$ac_compile") 2>conftest.er1
56689   ac_status=$?
56690   grep -v '^ *+' conftest.er1 >conftest.err
56691   rm -f conftest.er1
56692   cat conftest.err >&5
56693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56694   (exit $ac_status); } && {
56695          test -z "$ac_c_werror_flag" ||
56696          test ! -s conftest.err
56697        } && test -s conftest.$ac_objext; then
56698   ac_cv_type_signal=int
56699 else
56700   $as_echo "$as_me: failed program was:" >&5
56701 sed 's/^/| /' conftest.$ac_ext >&5
56702
56703         ac_cv_type_signal=void
56704 fi
56705
56706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56707 fi
56708 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
56709 $as_echo "$ac_cv_type_signal" >&6; }
56710
56711 cat >>confdefs.h <<_ACEOF
56712 #define RETSIGTYPE $ac_cv_type_signal
56713 _ACEOF
56714
56715
56716 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
56717 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
56718 if test "${ac_cv_struct_tm+set}" = set; then
56719   $as_echo_n "(cached) " >&6
56720 else
56721   cat >conftest.$ac_ext <<_ACEOF
56722 /* confdefs.h.  */
56723 _ACEOF
56724 cat confdefs.h >>conftest.$ac_ext
56725 cat >>conftest.$ac_ext <<_ACEOF
56726 /* end confdefs.h.  */
56727 #include <sys/types.h>
56728 #include <time.h>
56729
56730 int
56731 main ()
56732 {
56733 struct tm tm;
56734                                      int *p = &tm.tm_sec;
56735                                      return !p;
56736   ;
56737   return 0;
56738 }
56739 _ACEOF
56740 rm -f conftest.$ac_objext
56741 if { (ac_try="$ac_compile"
56742 case "(($ac_try" in
56743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56744   *) ac_try_echo=$ac_try;;
56745 esac
56746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56747 $as_echo "$ac_try_echo") >&5
56748   (eval "$ac_compile") 2>conftest.er1
56749   ac_status=$?
56750   grep -v '^ *+' conftest.er1 >conftest.err
56751   rm -f conftest.er1
56752   cat conftest.err >&5
56753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56754   (exit $ac_status); } && {
56755          test -z "$ac_c_werror_flag" ||
56756          test ! -s conftest.err
56757        } && test -s conftest.$ac_objext; then
56758   ac_cv_struct_tm=time.h
56759 else
56760   $as_echo "$as_me: failed program was:" >&5
56761 sed 's/^/| /' conftest.$ac_ext >&5
56762
56763         ac_cv_struct_tm=sys/time.h
56764 fi
56765
56766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56767 fi
56768 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
56769 $as_echo "$ac_cv_struct_tm" >&6; }
56770 if test $ac_cv_struct_tm = sys/time.h; then
56771
56772 cat >>confdefs.h <<\_ACEOF
56773 #define TM_IN_SYS_TIME 1
56774 _ACEOF
56775
56776 fi
56777
56778
56779       ## lifted from config/gnulib/socklen.m4
56780             { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
56781 $as_echo_n "checking for socklen_t equivalent... " >&6; }
56782       if test "${gl_cv_socklen_t_equiv+set}" = set; then
56783   $as_echo_n "(cached) " >&6
56784 else
56785   # Systems have either "struct sockaddr *" or
56786          # "void *" as the second argument to getpeername
56787          gl_cv_socklen_t_equiv=
56788          for arg2 in "struct sockaddr" void; do
56789            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
56790              cat >conftest.$ac_ext <<_ACEOF
56791 /* confdefs.h.  */
56792 _ACEOF
56793 cat confdefs.h >>conftest.$ac_ext
56794 cat >>conftest.$ac_ext <<_ACEOF
56795 /* end confdefs.h.  */
56796 #include <sys/types.h>
56797                 #include <sys/socket.h>
56798
56799                 int getpeername (int, $arg2 *, $t *);
56800 int
56801 main ()
56802 {
56803 $t len;
56804                 getpeername (0, 0, &len);
56805   ;
56806   return 0;
56807 }
56808 _ACEOF
56809 rm -f conftest.$ac_objext
56810 if { (ac_try="$ac_compile"
56811 case "(($ac_try" in
56812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56813   *) ac_try_echo=$ac_try;;
56814 esac
56815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56816 $as_echo "$ac_try_echo") >&5
56817   (eval "$ac_compile") 2>conftest.er1
56818   ac_status=$?
56819   grep -v '^ *+' conftest.er1 >conftest.err
56820   rm -f conftest.er1
56821   cat conftest.err >&5
56822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56823   (exit $ac_status); } && {
56824          test -z "$ac_c_werror_flag" ||
56825          test ! -s conftest.err
56826        } && test -s conftest.$ac_objext; then
56827   gl_cv_socklen_t_equiv="$t"
56828 else
56829   $as_echo "$as_me: failed program was:" >&5
56830 sed 's/^/| /' conftest.$ac_ext >&5
56831
56832
56833 fi
56834
56835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56836              test "$gl_cv_socklen_t_equiv" != "" && break
56837            done
56838            test "$gl_cv_socklen_t_equiv" != "" && break
56839          done
56840
56841 fi
56842
56843       ## end lifting from config/gnulib/socklen.m4
56844       # fallback if the check fails
56845       if test "$gl_cv_socklen_t_equiv" = ""; then
56846         gl_cv_socklen_t_equiv=socklen_t
56847       fi
56848       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
56849 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
56850
56851
56852 cat >>confdefs.h <<_ACEOF
56853 #define socklen_t_equiv $gl_cv_socklen_t_equiv
56854 _ACEOF
56855
56856
56857
56858
56859     { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
56860 $as_echo_n "checking for sa_family_t... " >&6; }
56861 if test "${ac_cv_type_sa_family_t+set}" = set; then
56862   $as_echo_n "(cached) " >&6
56863 else
56864   ac_cv_type_sa_family_t=no
56865 cat >conftest.$ac_ext <<_ACEOF
56866 /* confdefs.h.  */
56867 _ACEOF
56868 cat confdefs.h >>conftest.$ac_ext
56869 cat >>conftest.$ac_ext <<_ACEOF
56870 /* end confdefs.h.  */
56871
56872 #ifdef HAVE_SYS_TYPES_H
56873 #include <sys/types.h>
56874 #endif
56875 #ifdef STDC_HEADERS
56876 #include <stdlib.h>
56877 #include <stddef.h>
56878 #endif
56879 #include <sys/socket.h>
56880
56881
56882
56883 int
56884 main ()
56885 {
56886 if (sizeof (sa_family_t))
56887        return 0;
56888   ;
56889   return 0;
56890 }
56891 _ACEOF
56892 rm -f conftest.$ac_objext
56893 if { (ac_try="$ac_compile"
56894 case "(($ac_try" in
56895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56896   *) ac_try_echo=$ac_try;;
56897 esac
56898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56899 $as_echo "$ac_try_echo") >&5
56900   (eval "$ac_compile") 2>conftest.er1
56901   ac_status=$?
56902   grep -v '^ *+' conftest.er1 >conftest.err
56903   rm -f conftest.er1
56904   cat conftest.err >&5
56905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56906   (exit $ac_status); } && {
56907          test -z "$ac_c_werror_flag" ||
56908          test ! -s conftest.err
56909        } && test -s conftest.$ac_objext; then
56910   cat >conftest.$ac_ext <<_ACEOF
56911 /* confdefs.h.  */
56912 _ACEOF
56913 cat confdefs.h >>conftest.$ac_ext
56914 cat >>conftest.$ac_ext <<_ACEOF
56915 /* end confdefs.h.  */
56916
56917 #ifdef HAVE_SYS_TYPES_H
56918 #include <sys/types.h>
56919 #endif
56920 #ifdef STDC_HEADERS
56921 #include <stdlib.h>
56922 #include <stddef.h>
56923 #endif
56924 #include <sys/socket.h>
56925
56926
56927
56928 int
56929 main ()
56930 {
56931 if (sizeof ((sa_family_t)))
56932           return 0;
56933   ;
56934   return 0;
56935 }
56936 _ACEOF
56937 rm -f conftest.$ac_objext
56938 if { (ac_try="$ac_compile"
56939 case "(($ac_try" in
56940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56941   *) ac_try_echo=$ac_try;;
56942 esac
56943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56944 $as_echo "$ac_try_echo") >&5
56945   (eval "$ac_compile") 2>conftest.er1
56946   ac_status=$?
56947   grep -v '^ *+' conftest.er1 >conftest.err
56948   rm -f conftest.er1
56949   cat conftest.err >&5
56950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56951   (exit $ac_status); } && {
56952          test -z "$ac_c_werror_flag" ||
56953          test ! -s conftest.err
56954        } && test -s conftest.$ac_objext; then
56955   :
56956 else
56957   $as_echo "$as_me: failed program was:" >&5
56958 sed 's/^/| /' conftest.$ac_ext >&5
56959
56960         ac_cv_type_sa_family_t=yes
56961 fi
56962
56963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56964 else
56965   $as_echo "$as_me: failed program was:" >&5
56966 sed 's/^/| /' conftest.$ac_ext >&5
56967
56968
56969 fi
56970
56971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56972 fi
56973 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
56974 $as_echo "$ac_cv_type_sa_family_t" >&6; }
56975 if test "x$ac_cv_type_sa_family_t" = x""yes; then
56976   :
56977 else
56978
56979
56980 cat >>confdefs.h <<\_ACEOF
56981 #define sa_family_t unsigned short
56982 _ACEOF
56983
56984
56985 fi
56986
56987
56988
56989
56990     { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
56991 $as_echo_n "checking for in_port_t... " >&6; }
56992 if test "${ac_cv_type_in_port_t+set}" = set; then
56993   $as_echo_n "(cached) " >&6
56994 else
56995   ac_cv_type_in_port_t=no
56996 cat >conftest.$ac_ext <<_ACEOF
56997 /* confdefs.h.  */
56998 _ACEOF
56999 cat confdefs.h >>conftest.$ac_ext
57000 cat >>conftest.$ac_ext <<_ACEOF
57001 /* end confdefs.h.  */
57002
57003 #ifdef HAVE_SYS_TYPES_H
57004 #include <sys/types.h>
57005 #endif
57006 #ifdef STDC_HEADERS
57007 #include <stdlib.h>
57008 #include <stddef.h>
57009 #endif
57010 #include <netinet/in.h>
57011
57012
57013
57014 int
57015 main ()
57016 {
57017 if (sizeof (in_port_t))
57018        return 0;
57019   ;
57020   return 0;
57021 }
57022 _ACEOF
57023 rm -f conftest.$ac_objext
57024 if { (ac_try="$ac_compile"
57025 case "(($ac_try" in
57026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57027   *) ac_try_echo=$ac_try;;
57028 esac
57029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57030 $as_echo "$ac_try_echo") >&5
57031   (eval "$ac_compile") 2>conftest.er1
57032   ac_status=$?
57033   grep -v '^ *+' conftest.er1 >conftest.err
57034   rm -f conftest.er1
57035   cat conftest.err >&5
57036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57037   (exit $ac_status); } && {
57038          test -z "$ac_c_werror_flag" ||
57039          test ! -s conftest.err
57040        } && test -s conftest.$ac_objext; then
57041   cat >conftest.$ac_ext <<_ACEOF
57042 /* confdefs.h.  */
57043 _ACEOF
57044 cat confdefs.h >>conftest.$ac_ext
57045 cat >>conftest.$ac_ext <<_ACEOF
57046 /* end confdefs.h.  */
57047
57048 #ifdef HAVE_SYS_TYPES_H
57049 #include <sys/types.h>
57050 #endif
57051 #ifdef STDC_HEADERS
57052 #include <stdlib.h>
57053 #include <stddef.h>
57054 #endif
57055 #include <netinet/in.h>
57056
57057
57058
57059 int
57060 main ()
57061 {
57062 if (sizeof ((in_port_t)))
57063           return 0;
57064   ;
57065   return 0;
57066 }
57067 _ACEOF
57068 rm -f conftest.$ac_objext
57069 if { (ac_try="$ac_compile"
57070 case "(($ac_try" in
57071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57072   *) ac_try_echo=$ac_try;;
57073 esac
57074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57075 $as_echo "$ac_try_echo") >&5
57076   (eval "$ac_compile") 2>conftest.er1
57077   ac_status=$?
57078   grep -v '^ *+' conftest.er1 >conftest.err
57079   rm -f conftest.er1
57080   cat conftest.err >&5
57081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57082   (exit $ac_status); } && {
57083          test -z "$ac_c_werror_flag" ||
57084          test ! -s conftest.err
57085        } && test -s conftest.$ac_objext; then
57086   :
57087 else
57088   $as_echo "$as_me: failed program was:" >&5
57089 sed 's/^/| /' conftest.$ac_ext >&5
57090
57091         ac_cv_type_in_port_t=yes
57092 fi
57093
57094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57095 else
57096   $as_echo "$as_me: failed program was:" >&5
57097 sed 's/^/| /' conftest.$ac_ext >&5
57098
57099
57100 fi
57101
57102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57103 fi
57104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
57105 $as_echo "$ac_cv_type_in_port_t" >&6; }
57106 if test "x$ac_cv_type_in_port_t" = x""yes; then
57107   :
57108 else
57109
57110
57111 cat >>confdefs.h <<\_ACEOF
57112 #define in_port_t unsigned short
57113 _ACEOF
57114
57115
57116 fi
57117
57118
57119
57120
57121
57122
57123 for ac_header in sys/wait.h wait.h
57124 do
57125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57127   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57128 $as_echo_n "checking for $ac_header... " >&6; }
57129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57130   $as_echo_n "(cached) " >&6
57131 fi
57132 ac_res=`eval 'as_val=${'$as_ac_Header'}
57133                  $as_echo "$as_val"'`
57134                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57135 $as_echo "$ac_res" >&6; }
57136 else
57137   # Is the header compilable?
57138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57139 $as_echo_n "checking $ac_header usability... " >&6; }
57140 cat >conftest.$ac_ext <<_ACEOF
57141 /* confdefs.h.  */
57142 _ACEOF
57143 cat confdefs.h >>conftest.$ac_ext
57144 cat >>conftest.$ac_ext <<_ACEOF
57145 /* end confdefs.h.  */
57146 $ac_includes_default
57147 #include <$ac_header>
57148 _ACEOF
57149 rm -f conftest.$ac_objext
57150 if { (ac_try="$ac_compile"
57151 case "(($ac_try" in
57152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57153   *) ac_try_echo=$ac_try;;
57154 esac
57155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57156 $as_echo "$ac_try_echo") >&5
57157   (eval "$ac_compile") 2>conftest.er1
57158   ac_status=$?
57159   grep -v '^ *+' conftest.er1 >conftest.err
57160   rm -f conftest.er1
57161   cat conftest.err >&5
57162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57163   (exit $ac_status); } && {
57164          test -z "$ac_c_werror_flag" ||
57165          test ! -s conftest.err
57166        } && test -s conftest.$ac_objext; then
57167   ac_header_compiler=yes
57168 else
57169   $as_echo "$as_me: failed program was:" >&5
57170 sed 's/^/| /' conftest.$ac_ext >&5
57171
57172         ac_header_compiler=no
57173 fi
57174
57175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57177 $as_echo "$ac_header_compiler" >&6; }
57178
57179 # Is the header present?
57180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57181 $as_echo_n "checking $ac_header presence... " >&6; }
57182 cat >conftest.$ac_ext <<_ACEOF
57183 /* confdefs.h.  */
57184 _ACEOF
57185 cat confdefs.h >>conftest.$ac_ext
57186 cat >>conftest.$ac_ext <<_ACEOF
57187 /* end confdefs.h.  */
57188 #include <$ac_header>
57189 _ACEOF
57190 if { (ac_try="$ac_cpp conftest.$ac_ext"
57191 case "(($ac_try" in
57192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57193   *) ac_try_echo=$ac_try;;
57194 esac
57195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57196 $as_echo "$ac_try_echo") >&5
57197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57198   ac_status=$?
57199   grep -v '^ *+' conftest.er1 >conftest.err
57200   rm -f conftest.er1
57201   cat conftest.err >&5
57202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57203   (exit $ac_status); } >/dev/null && {
57204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57205          test ! -s conftest.err
57206        }; then
57207   ac_header_preproc=yes
57208 else
57209   $as_echo "$as_me: failed program was:" >&5
57210 sed 's/^/| /' conftest.$ac_ext >&5
57211
57212   ac_header_preproc=no
57213 fi
57214
57215 rm -f conftest.err conftest.$ac_ext
57216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57217 $as_echo "$ac_header_preproc" >&6; }
57218
57219 # So?  What about this header?
57220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57221   yes:no: )
57222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57226     ac_header_preproc=yes
57227     ;;
57228   no:yes:* )
57229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57232 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57236 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57241
57242     ;;
57243 esac
57244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57245 $as_echo_n "checking for $ac_header... " >&6; }
57246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57247   $as_echo_n "(cached) " >&6
57248 else
57249   eval "$as_ac_Header=\$ac_header_preproc"
57250 fi
57251 ac_res=`eval 'as_val=${'$as_ac_Header'}
57252                  $as_echo "$as_val"'`
57253                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57254 $as_echo "$ac_res" >&6; }
57255
57256 fi
57257 as_val=`eval 'as_val=${'$as_ac_Header'}
57258                  $as_echo "$as_val"'`
57259    if test "x$as_val" = x""yes; then
57260   cat >>confdefs.h <<_ACEOF
57261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57262 _ACEOF
57263
57264 fi
57265
57266 done
57267
57268     { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
57269 $as_echo_n "checking whether wait uses union wait... " >&6; }
57270 if test "${cf_cv_arg_union_wait+set}" = set; then
57271   $as_echo_n "(cached) " >&6
57272 else
57273
57274         cat >conftest.$ac_ext <<_ACEOF
57275 /* confdefs.h.  */
57276 _ACEOF
57277 cat confdefs.h >>conftest.$ac_ext
57278 cat >>conftest.$ac_ext <<_ACEOF
57279 /* end confdefs.h.  */
57280
57281 #include <sys/types.h>
57282
57283 #if HAVE_SYS_WAIT_H
57284 # include <sys/wait.h>
57285 #else
57286 # if HAVE_WAIT_H
57287 #  include <wait.h>
57288 # endif
57289 #endif
57290
57291 #ifdef __STDC__
57292 pid_t wait(union wait *);
57293 #endif
57294
57295 int
57296 main ()
57297 {
57298
57299   union wait x; int i;
57300   wait(&x); i = WIFEXITED(x)
57301
57302   ;
57303   return 0;
57304 }
57305 _ACEOF
57306 rm -f conftest.$ac_objext
57307 if { (ac_try="$ac_compile"
57308 case "(($ac_try" in
57309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57310   *) ac_try_echo=$ac_try;;
57311 esac
57312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57313 $as_echo "$ac_try_echo") >&5
57314   (eval "$ac_compile") 2>conftest.er1
57315   ac_status=$?
57316   grep -v '^ *+' conftest.er1 >conftest.err
57317   rm -f conftest.er1
57318   cat conftest.err >&5
57319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57320   (exit $ac_status); } && {
57321          test -z "$ac_c_werror_flag" ||
57322          test ! -s conftest.err
57323        } && test -s conftest.$ac_objext; then
57324   cf_cv_arg_union_wait=yes
57325 else
57326   $as_echo "$as_me: failed program was:" >&5
57327 sed 's/^/| /' conftest.$ac_ext >&5
57328
57329         cf_cv_arg_union_wait=no
57330 fi
57331
57332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57333 fi
57334 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
57335 $as_echo "$cf_cv_arg_union_wait" >&6; }
57336     if test $cf_cv_arg_union_wait = yes; then
57337
57338 cat >>confdefs.h <<\_ACEOF
57339 #define WAIT_USES_UNION 1
57340 _ACEOF
57341
57342     fi
57343
57344
57345
57346
57347
57348 for ac_header in sys/wait.h wait.h
57349 do
57350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57352   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57353 $as_echo_n "checking for $ac_header... " >&6; }
57354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57355   $as_echo_n "(cached) " >&6
57356 fi
57357 ac_res=`eval 'as_val=${'$as_ac_Header'}
57358                  $as_echo "$as_val"'`
57359                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57360 $as_echo "$ac_res" >&6; }
57361 else
57362   # Is the header compilable?
57363 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57364 $as_echo_n "checking $ac_header usability... " >&6; }
57365 cat >conftest.$ac_ext <<_ACEOF
57366 /* confdefs.h.  */
57367 _ACEOF
57368 cat confdefs.h >>conftest.$ac_ext
57369 cat >>conftest.$ac_ext <<_ACEOF
57370 /* end confdefs.h.  */
57371 $ac_includes_default
57372 #include <$ac_header>
57373 _ACEOF
57374 rm -f conftest.$ac_objext
57375 if { (ac_try="$ac_compile"
57376 case "(($ac_try" in
57377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57378   *) ac_try_echo=$ac_try;;
57379 esac
57380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57381 $as_echo "$ac_try_echo") >&5
57382   (eval "$ac_compile") 2>conftest.er1
57383   ac_status=$?
57384   grep -v '^ *+' conftest.er1 >conftest.err
57385   rm -f conftest.er1
57386   cat conftest.err >&5
57387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57388   (exit $ac_status); } && {
57389          test -z "$ac_c_werror_flag" ||
57390          test ! -s conftest.err
57391        } && test -s conftest.$ac_objext; then
57392   ac_header_compiler=yes
57393 else
57394   $as_echo "$as_me: failed program was:" >&5
57395 sed 's/^/| /' conftest.$ac_ext >&5
57396
57397         ac_header_compiler=no
57398 fi
57399
57400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57402 $as_echo "$ac_header_compiler" >&6; }
57403
57404 # Is the header present?
57405 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57406 $as_echo_n "checking $ac_header presence... " >&6; }
57407 cat >conftest.$ac_ext <<_ACEOF
57408 /* confdefs.h.  */
57409 _ACEOF
57410 cat confdefs.h >>conftest.$ac_ext
57411 cat >>conftest.$ac_ext <<_ACEOF
57412 /* end confdefs.h.  */
57413 #include <$ac_header>
57414 _ACEOF
57415 if { (ac_try="$ac_cpp conftest.$ac_ext"
57416 case "(($ac_try" in
57417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57418   *) ac_try_echo=$ac_try;;
57419 esac
57420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57421 $as_echo "$ac_try_echo") >&5
57422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57423   ac_status=$?
57424   grep -v '^ *+' conftest.er1 >conftest.err
57425   rm -f conftest.er1
57426   cat conftest.err >&5
57427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57428   (exit $ac_status); } >/dev/null && {
57429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57430          test ! -s conftest.err
57431        }; then
57432   ac_header_preproc=yes
57433 else
57434   $as_echo "$as_me: failed program was:" >&5
57435 sed 's/^/| /' conftest.$ac_ext >&5
57436
57437   ac_header_preproc=no
57438 fi
57439
57440 rm -f conftest.err conftest.$ac_ext
57441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57442 $as_echo "$ac_header_preproc" >&6; }
57443
57444 # So?  What about this header?
57445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57446   yes:no: )
57447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57448 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57451     ac_header_preproc=yes
57452     ;;
57453   no:yes:* )
57454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57455 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57457 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57459 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57461 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57465 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57466
57467     ;;
57468 esac
57469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57470 $as_echo_n "checking for $ac_header... " >&6; }
57471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57472   $as_echo_n "(cached) " >&6
57473 else
57474   eval "$as_ac_Header=\$ac_header_preproc"
57475 fi
57476 ac_res=`eval 'as_val=${'$as_ac_Header'}
57477                  $as_echo "$as_val"'`
57478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57479 $as_echo "$ac_res" >&6; }
57480
57481 fi
57482 as_val=`eval 'as_val=${'$as_ac_Header'}
57483                  $as_echo "$as_val"'`
57484    if test "x$as_val" = x""yes; then
57485   cat >>confdefs.h <<_ACEOF
57486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57487 _ACEOF
57488
57489 fi
57490
57491 done
57492
57493     { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
57494 $as_echo_n "checking whether wait uses int... " >&6; }
57495 if test "${cf_cv_arg_int+set}" = set; then
57496   $as_echo_n "(cached) " >&6
57497 else
57498
57499         cat >conftest.$ac_ext <<_ACEOF
57500 /* confdefs.h.  */
57501 _ACEOF
57502 cat confdefs.h >>conftest.$ac_ext
57503 cat >>conftest.$ac_ext <<_ACEOF
57504 /* end confdefs.h.  */
57505
57506 #include <sys/types.h>
57507
57508 #if HAVE_SYS_WAIT_H
57509 # include <sys/wait.h>
57510 #else
57511 # if HAVE_WAIT_H
57512 #  include <wait.h>
57513 # endif
57514 #endif
57515
57516 #ifdef __STDC__
57517 pid_t wait(int *);
57518 #endif
57519
57520 int
57521 main ()
57522 {
57523
57524   int x; int i;
57525   wait(&x); i = WIFEXITED(x)
57526
57527   ;
57528   return 0;
57529 }
57530 _ACEOF
57531 rm -f conftest.$ac_objext
57532 if { (ac_try="$ac_compile"
57533 case "(($ac_try" in
57534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57535   *) ac_try_echo=$ac_try;;
57536 esac
57537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57538 $as_echo "$ac_try_echo") >&5
57539   (eval "$ac_compile") 2>conftest.er1
57540   ac_status=$?
57541   grep -v '^ *+' conftest.er1 >conftest.err
57542   rm -f conftest.er1
57543   cat conftest.err >&5
57544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57545   (exit $ac_status); } && {
57546          test -z "$ac_c_werror_flag" ||
57547          test ! -s conftest.err
57548        } && test -s conftest.$ac_objext; then
57549   cf_cv_arg_int=yes
57550 else
57551   $as_echo "$as_me: failed program was:" >&5
57552 sed 's/^/| /' conftest.$ac_ext >&5
57553
57554         cf_cv_arg_int=no
57555 fi
57556
57557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57558 fi
57559 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
57560 $as_echo "$cf_cv_arg_int" >&6; }
57561 if test $cf_cv_arg_int = yes; then
57562
57563 cat >>confdefs.h <<\_ACEOF
57564 #define WAIT_USES_INT 1
57565 _ACEOF
57566
57567 fi
57568
57569
57570 #
57571 # Libraries
57572 #
57573 # cur_colr is on some HP's
57574
57575 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
57576 $as_echo_n "checking for main in -lcur_colr... " >&6; }
57577 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
57578   $as_echo_n "(cached) " >&6
57579 else
57580   ac_check_lib_save_LIBS=$LIBS
57581 LIBS="-lcur_colr  $LIBS"
57582 cat >conftest.$ac_ext <<_ACEOF
57583 /* confdefs.h.  */
57584 _ACEOF
57585 cat confdefs.h >>conftest.$ac_ext
57586 cat >>conftest.$ac_ext <<_ACEOF
57587 /* end confdefs.h.  */
57588
57589
57590 int
57591 main ()
57592 {
57593 return main ();
57594   ;
57595   return 0;
57596 }
57597 _ACEOF
57598 rm -f conftest.$ac_objext conftest$ac_exeext
57599 if { (ac_try="$ac_link"
57600 case "(($ac_try" in
57601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57602   *) ac_try_echo=$ac_try;;
57603 esac
57604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57605 $as_echo "$ac_try_echo") >&5
57606   (eval "$ac_link") 2>conftest.er1
57607   ac_status=$?
57608   grep -v '^ *+' conftest.er1 >conftest.err
57609   rm -f conftest.er1
57610   cat conftest.err >&5
57611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57612   (exit $ac_status); } && {
57613          test -z "$ac_c_werror_flag" ||
57614          test ! -s conftest.err
57615        } && test -s conftest$ac_exeext && {
57616          test "$cross_compiling" = yes ||
57617          $as_test_x conftest$ac_exeext
57618        }; then
57619   ac_cv_lib_cur_colr_main=yes
57620 else
57621   $as_echo "$as_me: failed program was:" >&5
57622 sed 's/^/| /' conftest.$ac_ext >&5
57623
57624         ac_cv_lib_cur_colr_main=no
57625 fi
57626
57627 rm -rf conftest.dSYM
57628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57629       conftest$ac_exeext conftest.$ac_ext
57630 LIBS=$ac_check_lib_save_LIBS
57631 fi
57632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
57633 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
57634 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
57635   cat >>confdefs.h <<_ACEOF
57636 #define HAVE_LIBCUR_COLR 1
57637 _ACEOF
57638
57639   LIBS="-lcur_colr $LIBS"
57640
57641 fi
57642
57643
57644 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
57645 $as_echo_n "checking for main in -lintl... " >&6; }
57646 if test "${ac_cv_lib_intl_main+set}" = set; then
57647   $as_echo_n "(cached) " >&6
57648 else
57649   ac_check_lib_save_LIBS=$LIBS
57650 LIBS="-lintl  $LIBS"
57651 cat >conftest.$ac_ext <<_ACEOF
57652 /* confdefs.h.  */
57653 _ACEOF
57654 cat confdefs.h >>conftest.$ac_ext
57655 cat >>conftest.$ac_ext <<_ACEOF
57656 /* end confdefs.h.  */
57657
57658
57659 int
57660 main ()
57661 {
57662 return main ();
57663   ;
57664   return 0;
57665 }
57666 _ACEOF
57667 rm -f conftest.$ac_objext conftest$ac_exeext
57668 if { (ac_try="$ac_link"
57669 case "(($ac_try" in
57670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57671   *) ac_try_echo=$ac_try;;
57672 esac
57673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57674 $as_echo "$ac_try_echo") >&5
57675   (eval "$ac_link") 2>conftest.er1
57676   ac_status=$?
57677   grep -v '^ *+' conftest.er1 >conftest.err
57678   rm -f conftest.er1
57679   cat conftest.err >&5
57680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57681   (exit $ac_status); } && {
57682          test -z "$ac_c_werror_flag" ||
57683          test ! -s conftest.err
57684        } && test -s conftest$ac_exeext && {
57685          test "$cross_compiling" = yes ||
57686          $as_test_x conftest$ac_exeext
57687        }; then
57688   ac_cv_lib_intl_main=yes
57689 else
57690   $as_echo "$as_me: failed program was:" >&5
57691 sed 's/^/| /' conftest.$ac_ext >&5
57692
57693         ac_cv_lib_intl_main=no
57694 fi
57695
57696 rm -rf conftest.dSYM
57697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57698       conftest$ac_exeext conftest.$ac_ext
57699 LIBS=$ac_check_lib_save_LIBS
57700 fi
57701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
57702 $as_echo "$ac_cv_lib_intl_main" >&6; }
57703 if test "x$ac_cv_lib_intl_main" = x""yes; then
57704   cat >>confdefs.h <<_ACEOF
57705 #define HAVE_LIBINTL 1
57706 _ACEOF
57707
57708   LIBS="-lintl $LIBS"
57709
57710 fi
57711
57712
57713     # Make sure we don't use -lnsl and -lsun on Irix systems.
57714     case "$host" in
57715         *sgi-irix*)
57716
57717 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
57718 $as_echo_n "checking for main in -lsocket... " >&6; }
57719 if test "${ac_cv_lib_socket_main+set}" = set; then
57720   $as_echo_n "(cached) " >&6
57721 else
57722   ac_check_lib_save_LIBS=$LIBS
57723 LIBS="-lsocket  $LIBS"
57724 cat >conftest.$ac_ext <<_ACEOF
57725 /* confdefs.h.  */
57726 _ACEOF
57727 cat confdefs.h >>conftest.$ac_ext
57728 cat >>conftest.$ac_ext <<_ACEOF
57729 /* end confdefs.h.  */
57730
57731
57732 int
57733 main ()
57734 {
57735 return main ();
57736   ;
57737   return 0;
57738 }
57739 _ACEOF
57740 rm -f conftest.$ac_objext conftest$ac_exeext
57741 if { (ac_try="$ac_link"
57742 case "(($ac_try" in
57743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57744   *) ac_try_echo=$ac_try;;
57745 esac
57746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57747 $as_echo "$ac_try_echo") >&5
57748   (eval "$ac_link") 2>conftest.er1
57749   ac_status=$?
57750   grep -v '^ *+' conftest.er1 >conftest.err
57751   rm -f conftest.er1
57752   cat conftest.err >&5
57753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57754   (exit $ac_status); } && {
57755          test -z "$ac_c_werror_flag" ||
57756          test ! -s conftest.err
57757        } && test -s conftest$ac_exeext && {
57758          test "$cross_compiling" = yes ||
57759          $as_test_x conftest$ac_exeext
57760        }; then
57761   ac_cv_lib_socket_main=yes
57762 else
57763   $as_echo "$as_me: failed program was:" >&5
57764 sed 's/^/| /' conftest.$ac_ext >&5
57765
57766         ac_cv_lib_socket_main=no
57767 fi
57768
57769 rm -rf conftest.dSYM
57770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57771       conftest$ac_exeext conftest.$ac_ext
57772 LIBS=$ac_check_lib_save_LIBS
57773 fi
57774 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
57775 $as_echo "$ac_cv_lib_socket_main" >&6; }
57776 if test "x$ac_cv_lib_socket_main" = x""yes; then
57777   cat >>confdefs.h <<_ACEOF
57778 #define HAVE_LIBSOCKET 1
57779 _ACEOF
57780
57781   LIBS="-lsocket $LIBS"
57782
57783 fi
57784
57785                             ;;
57786         *)
57787
57788 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
57789 $as_echo_n "checking for main in -lresolv... " >&6; }
57790 if test "${ac_cv_lib_resolv_main+set}" = set; then
57791   $as_echo_n "(cached) " >&6
57792 else
57793   ac_check_lib_save_LIBS=$LIBS
57794 LIBS="-lresolv  $LIBS"
57795 cat >conftest.$ac_ext <<_ACEOF
57796 /* confdefs.h.  */
57797 _ACEOF
57798 cat confdefs.h >>conftest.$ac_ext
57799 cat >>conftest.$ac_ext <<_ACEOF
57800 /* end confdefs.h.  */
57801
57802
57803 int
57804 main ()
57805 {
57806 return main ();
57807   ;
57808   return 0;
57809 }
57810 _ACEOF
57811 rm -f conftest.$ac_objext conftest$ac_exeext
57812 if { (ac_try="$ac_link"
57813 case "(($ac_try" in
57814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57815   *) ac_try_echo=$ac_try;;
57816 esac
57817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57818 $as_echo "$ac_try_echo") >&5
57819   (eval "$ac_link") 2>conftest.er1
57820   ac_status=$?
57821   grep -v '^ *+' conftest.er1 >conftest.err
57822   rm -f conftest.er1
57823   cat conftest.err >&5
57824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57825   (exit $ac_status); } && {
57826          test -z "$ac_c_werror_flag" ||
57827          test ! -s conftest.err
57828        } && test -s conftest$ac_exeext && {
57829          test "$cross_compiling" = yes ||
57830          $as_test_x conftest$ac_exeext
57831        }; then
57832   ac_cv_lib_resolv_main=yes
57833 else
57834   $as_echo "$as_me: failed program was:" >&5
57835 sed 's/^/| /' conftest.$ac_ext >&5
57836
57837         ac_cv_lib_resolv_main=no
57838 fi
57839
57840 rm -rf conftest.dSYM
57841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57842       conftest$ac_exeext conftest.$ac_ext
57843 LIBS=$ac_check_lib_save_LIBS
57844 fi
57845 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
57846 $as_echo "$ac_cv_lib_resolv_main" >&6; }
57847 if test "x$ac_cv_lib_resolv_main" = x""yes; then
57848   cat >>confdefs.h <<_ACEOF
57849 #define HAVE_LIBRESOLV 1
57850 _ACEOF
57851
57852   LIBS="-lresolv $LIBS"
57853
57854 fi
57855
57856
57857 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
57858 $as_echo_n "checking for main in -lnsl... " >&6; }
57859 if test "${ac_cv_lib_nsl_main+set}" = set; then
57860   $as_echo_n "(cached) " >&6
57861 else
57862   ac_check_lib_save_LIBS=$LIBS
57863 LIBS="-lnsl  $LIBS"
57864 cat >conftest.$ac_ext <<_ACEOF
57865 /* confdefs.h.  */
57866 _ACEOF
57867 cat confdefs.h >>conftest.$ac_ext
57868 cat >>conftest.$ac_ext <<_ACEOF
57869 /* end confdefs.h.  */
57870
57871
57872 int
57873 main ()
57874 {
57875 return main ();
57876   ;
57877   return 0;
57878 }
57879 _ACEOF
57880 rm -f conftest.$ac_objext conftest$ac_exeext
57881 if { (ac_try="$ac_link"
57882 case "(($ac_try" in
57883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57884   *) ac_try_echo=$ac_try;;
57885 esac
57886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57887 $as_echo "$ac_try_echo") >&5
57888   (eval "$ac_link") 2>conftest.er1
57889   ac_status=$?
57890   grep -v '^ *+' conftest.er1 >conftest.err
57891   rm -f conftest.er1
57892   cat conftest.err >&5
57893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57894   (exit $ac_status); } && {
57895          test -z "$ac_c_werror_flag" ||
57896          test ! -s conftest.err
57897        } && test -s conftest$ac_exeext && {
57898          test "$cross_compiling" = yes ||
57899          $as_test_x conftest$ac_exeext
57900        }; then
57901   ac_cv_lib_nsl_main=yes
57902 else
57903   $as_echo "$as_me: failed program was:" >&5
57904 sed 's/^/| /' conftest.$ac_ext >&5
57905
57906         ac_cv_lib_nsl_main=no
57907 fi
57908
57909 rm -rf conftest.dSYM
57910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57911       conftest$ac_exeext conftest.$ac_ext
57912 LIBS=$ac_check_lib_save_LIBS
57913 fi
57914 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
57915 $as_echo "$ac_cv_lib_nsl_main" >&6; }
57916 if test "x$ac_cv_lib_nsl_main" = x""yes; then
57917   cat >>confdefs.h <<_ACEOF
57918 #define HAVE_LIBNSL 1
57919 _ACEOF
57920
57921   LIBS="-lnsl $LIBS"
57922
57923 fi
57924
57925
57926 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
57927 $as_echo_n "checking for main in -lsocket... " >&6; }
57928 if test "${ac_cv_lib_socket_main+set}" = set; then
57929   $as_echo_n "(cached) " >&6
57930 else
57931   ac_check_lib_save_LIBS=$LIBS
57932 LIBS="-lsocket  $LIBS"
57933 cat >conftest.$ac_ext <<_ACEOF
57934 /* confdefs.h.  */
57935 _ACEOF
57936 cat confdefs.h >>conftest.$ac_ext
57937 cat >>conftest.$ac_ext <<_ACEOF
57938 /* end confdefs.h.  */
57939
57940
57941 int
57942 main ()
57943 {
57944 return main ();
57945   ;
57946   return 0;
57947 }
57948 _ACEOF
57949 rm -f conftest.$ac_objext conftest$ac_exeext
57950 if { (ac_try="$ac_link"
57951 case "(($ac_try" in
57952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57953   *) ac_try_echo=$ac_try;;
57954 esac
57955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57956 $as_echo "$ac_try_echo") >&5
57957   (eval "$ac_link") 2>conftest.er1
57958   ac_status=$?
57959   grep -v '^ *+' conftest.er1 >conftest.err
57960   rm -f conftest.er1
57961   cat conftest.err >&5
57962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57963   (exit $ac_status); } && {
57964          test -z "$ac_c_werror_flag" ||
57965          test ! -s conftest.err
57966        } && test -s conftest$ac_exeext && {
57967          test "$cross_compiling" = yes ||
57968          $as_test_x conftest$ac_exeext
57969        }; then
57970   ac_cv_lib_socket_main=yes
57971 else
57972   $as_echo "$as_me: failed program was:" >&5
57973 sed 's/^/| /' conftest.$ac_ext >&5
57974
57975         ac_cv_lib_socket_main=no
57976 fi
57977
57978 rm -rf conftest.dSYM
57979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57980       conftest$ac_exeext conftest.$ac_ext
57981 LIBS=$ac_check_lib_save_LIBS
57982 fi
57983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
57984 $as_echo "$ac_cv_lib_socket_main" >&6; }
57985 if test "x$ac_cv_lib_socket_main" = x""yes; then
57986   cat >>confdefs.h <<_ACEOF
57987 #define HAVE_LIBSOCKET 1
57988 _ACEOF
57989
57990   LIBS="-lsocket $LIBS"
57991
57992 fi
57993
57994
57995 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
57996 $as_echo_n "checking for main in -lsun... " >&6; }
57997 if test "${ac_cv_lib_sun_main+set}" = set; then
57998   $as_echo_n "(cached) " >&6
57999 else
58000   ac_check_lib_save_LIBS=$LIBS
58001 LIBS="-lsun  $LIBS"
58002 cat >conftest.$ac_ext <<_ACEOF
58003 /* confdefs.h.  */
58004 _ACEOF
58005 cat confdefs.h >>conftest.$ac_ext
58006 cat >>conftest.$ac_ext <<_ACEOF
58007 /* end confdefs.h.  */
58008
58009
58010 int
58011 main ()
58012 {
58013 return main ();
58014   ;
58015   return 0;
58016 }
58017 _ACEOF
58018 rm -f conftest.$ac_objext conftest$ac_exeext
58019 if { (ac_try="$ac_link"
58020 case "(($ac_try" in
58021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58022   *) ac_try_echo=$ac_try;;
58023 esac
58024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58025 $as_echo "$ac_try_echo") >&5
58026   (eval "$ac_link") 2>conftest.er1
58027   ac_status=$?
58028   grep -v '^ *+' conftest.er1 >conftest.err
58029   rm -f conftest.er1
58030   cat conftest.err >&5
58031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58032   (exit $ac_status); } && {
58033          test -z "$ac_c_werror_flag" ||
58034          test ! -s conftest.err
58035        } && test -s conftest$ac_exeext && {
58036          test "$cross_compiling" = yes ||
58037          $as_test_x conftest$ac_exeext
58038        }; then
58039   ac_cv_lib_sun_main=yes
58040 else
58041   $as_echo "$as_me: failed program was:" >&5
58042 sed 's/^/| /' conftest.$ac_ext >&5
58043
58044         ac_cv_lib_sun_main=no
58045 fi
58046
58047 rm -rf conftest.dSYM
58048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58049       conftest$ac_exeext conftest.$ac_ext
58050 LIBS=$ac_check_lib_save_LIBS
58051 fi
58052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
58053 $as_echo "$ac_cv_lib_sun_main" >&6; }
58054 if test "x$ac_cv_lib_sun_main" = x""yes; then
58055   cat >>confdefs.h <<_ACEOF
58056 #define HAVE_LIBSUN 1
58057 _ACEOF
58058
58059   LIBS="-lsun $LIBS"
58060
58061 fi
58062
58063                             ;;
58064     esac
58065
58066
58067
58068
58069
58070
58071
58072
58073     # if any of the precious variables are set, disable the pkg-config run
58074     explicit_glib=no
58075     test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
58076     test x"$GLIB_LIBS" = x"" || explicit_glib=yes
58077     test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
58078     test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
58079     test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
58080
58081     if test x"$explicit_glib" = x"no"; then
58082         # search for pkg-config, which the glib configuration uses, adding a few
58083         # system-specific search paths.
58084         # Extract the first word of "pkg-config", so it can be a program name with args.
58085 set dummy pkg-config; ac_word=$2
58086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58087 $as_echo_n "checking for $ac_word... " >&6; }
58088 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
58089   $as_echo_n "(cached) " >&6
58090 else
58091   case $PKG_CONFIG in
58092   [\\/]* | ?:[\\/]*)
58093   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
58094   ;;
58095   *)
58096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58097 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
58098 for as_dir in $as_dummy
58099 do
58100   IFS=$as_save_IFS
58101   test -z "$as_dir" && as_dir=.
58102   for ac_exec_ext in '' $ac_executable_extensions; do
58103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58104     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58105     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58106     break 2
58107   fi
58108 done
58109 done
58110 IFS=$as_save_IFS
58111
58112   ;;
58113 esac
58114 fi
58115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
58116 if test -n "$PKG_CONFIG"; then
58117   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
58118 $as_echo "$PKG_CONFIG" >&6; }
58119 else
58120   { $as_echo "$as_me:$LINENO: result: no" >&5
58121 $as_echo "no" >&6; }
58122 fi
58123
58124
58125
58126         case "$host" in
58127             sparc-sun-solaris2.8) # Solaris 8
58128                 # give the linker a runtime search path; pkg-config doesn't supply this.
58129                 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
58130                 # and make.  Adding this support here makes straight './configure; make'
58131                 # "just work" on Solaris 8
58132                 if test -n "$PKG_CONFIG"; then
58133                     glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
58134                     LDFLAGS="$LDFLAGS $glib_R_flag"
58135                 fi
58136                 ;;
58137         esac
58138
58139         # Check whether --enable-glibtest was given.
58140 if test "${enable_glibtest+set}" = set; then
58141   enableval=$enable_glibtest;
58142 else
58143   enable_glibtest=yes
58144 fi
58145
58146
58147   pkg_config_args=glib-2.0
58148   for module in . gmodule gobject gthread
58149   do
58150       case "$module" in
58151          gmodule)
58152              pkg_config_args="$pkg_config_args gmodule-2.0"
58153          ;;
58154          gmodule-no-export)
58155              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
58156          ;;
58157          gobject)
58158              pkg_config_args="$pkg_config_args gobject-2.0"
58159          ;;
58160          gthread)
58161              pkg_config_args="$pkg_config_args gthread-2.0"
58162          ;;
58163          gio*)
58164              pkg_config_args="$pkg_config_args $module-2.0"
58165          ;;
58166       esac
58167   done
58168
58169
58170
58171 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
58172         if test -n "$ac_tool_prefix"; then
58173   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
58174 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
58175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58176 $as_echo_n "checking for $ac_word... " >&6; }
58177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
58178   $as_echo_n "(cached) " >&6
58179 else
58180   case $PKG_CONFIG in
58181   [\\/]* | ?:[\\/]*)
58182   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
58183   ;;
58184   *)
58185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58186 for as_dir in $PATH
58187 do
58188   IFS=$as_save_IFS
58189   test -z "$as_dir" && as_dir=.
58190   for ac_exec_ext in '' $ac_executable_extensions; do
58191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58192     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58194     break 2
58195   fi
58196 done
58197 done
58198 IFS=$as_save_IFS
58199
58200   ;;
58201 esac
58202 fi
58203 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
58204 if test -n "$PKG_CONFIG"; then
58205   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
58206 $as_echo "$PKG_CONFIG" >&6; }
58207 else
58208   { $as_echo "$as_me:$LINENO: result: no" >&5
58209 $as_echo "no" >&6; }
58210 fi
58211
58212
58213 fi
58214 if test -z "$ac_cv_path_PKG_CONFIG"; then
58215   ac_pt_PKG_CONFIG=$PKG_CONFIG
58216   # Extract the first word of "pkg-config", so it can be a program name with args.
58217 set dummy 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_ac_pt_PKG_CONFIG+set}" = set; then
58221   $as_echo_n "(cached) " >&6
58222 else
58223   case $ac_pt_PKG_CONFIG in
58224   [\\/]* | ?:[\\/]*)
58225   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
58247 if test -n "$ac_pt_PKG_CONFIG"; then
58248   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
58249 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
58250 else
58251   { $as_echo "$as_me:$LINENO: result: no" >&5
58252 $as_echo "no" >&6; }
58253 fi
58254
58255   if test "x$ac_pt_PKG_CONFIG" = x; then
58256     PKG_CONFIG=""
58257   else
58258     case $cross_compiling:$ac_tool_warned in
58259 yes:)
58260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
58261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
58262 ac_tool_warned=yes ;;
58263 esac
58264     PKG_CONFIG=$ac_pt_PKG_CONFIG
58265   fi
58266 else
58267   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
58268 fi
58269
58270 fi
58271 if test -n "$PKG_CONFIG"; then
58272         _pkg_min_version=0.7
58273         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
58274 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
58275         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
58276                 { $as_echo "$as_me:$LINENO: result: yes" >&5
58277 $as_echo "yes" >&6; }
58278         else
58279                 { $as_echo "$as_me:$LINENO: result: no" >&5
58280 $as_echo "no" >&6; }
58281                 PKG_CONFIG=""
58282         fi
58283
58284 fi
58285
58286   no_glib=""
58287
58288   if test "x$PKG_CONFIG" = x ; then
58289     no_glib=yes
58290     PKG_CONFIG=no
58291   fi
58292
58293   min_glib_version=2.2.0
58294   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
58295 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
58296
58297   if test x$PKG_CONFIG != xno ; then
58298     ## don't try to run the test against uninstalled libtool libs
58299     if $PKG_CONFIG --uninstalled $pkg_config_args; then
58300           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
58301           enable_glibtest=no
58302     fi
58303
58304     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
58305           :
58306     else
58307           no_glib=yes
58308     fi
58309   fi
58310
58311   if test x"$no_glib" = x ; then
58312     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
58313     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
58314     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
58315
58316     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
58317     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
58318     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
58319            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
58320     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
58321            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
58322     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
58323            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
58324     if test "x$enable_glibtest" = "xyes" ; then
58325       ac_save_CFLAGS="$CFLAGS"
58326       ac_save_LIBS="$LIBS"
58327       CFLAGS="$CFLAGS $GLIB_CFLAGS"
58328       LIBS="$GLIB_LIBS $LIBS"
58329       rm -f conf.glibtest
58330       if test "$cross_compiling" = yes; then
58331   echo $ac_n "cross compiling; assumed OK... $ac_c"
58332 else
58333   cat >conftest.$ac_ext <<_ACEOF
58334 /* confdefs.h.  */
58335 _ACEOF
58336 cat confdefs.h >>conftest.$ac_ext
58337 cat >>conftest.$ac_ext <<_ACEOF
58338 /* end confdefs.h.  */
58339
58340 #include <glib.h>
58341 #include <stdio.h>
58342 #include <stdlib.h>
58343
58344 int
58345 main ()
58346 {
58347   int major, minor, micro;
58348   char *tmp_version;
58349
58350   system ("touch conf.glibtest");
58351
58352   /* HP/UX 9 (%@#!) writes to sscanf strings */
58353   tmp_version = g_strdup("$min_glib_version");
58354   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
58355      printf("%s, bad version string\n", "$min_glib_version");
58356      exit(1);
58357    }
58358
58359   if ((glib_major_version != $glib_config_major_version) ||
58360       (glib_minor_version != $glib_config_minor_version) ||
58361       (glib_micro_version != $glib_config_micro_version))
58362     {
58363       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
58364              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
58365              glib_major_version, glib_minor_version, glib_micro_version);
58366       printf ("*** was found! If pkg-config was correct, then it is best\n");
58367       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
58368       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
58369       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
58370       printf("*** required on your system.\n");
58371       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
58372       printf("*** to point to the correct configuration files\n");
58373     }
58374   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
58375            (glib_minor_version != GLIB_MINOR_VERSION) ||
58376            (glib_micro_version != GLIB_MICRO_VERSION))
58377     {
58378       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
58379              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
58380       printf("*** library (version %d.%d.%d)\n",
58381              glib_major_version, glib_minor_version, glib_micro_version);
58382     }
58383   else
58384     {
58385       if ((glib_major_version > major) ||
58386         ((glib_major_version == major) && (glib_minor_version > minor)) ||
58387         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
58388       {
58389         return 0;
58390        }
58391      else
58392       {
58393         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
58394                glib_major_version, glib_minor_version, glib_micro_version);
58395         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
58396                major, minor, micro);
58397         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
58398         printf("***\n");
58399         printf("*** If you have already installed a sufficiently new version, this error\n");
58400         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
58401         printf("*** being found. The easiest way to fix this is to remove the old version\n");
58402         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
58403         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
58404         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
58405         printf("*** so that the correct libraries are found at run-time))\n");
58406       }
58407     }
58408   return 1;
58409 }
58410
58411 _ACEOF
58412 rm -f conftest$ac_exeext
58413 if { (ac_try="$ac_link"
58414 case "(($ac_try" in
58415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58416   *) ac_try_echo=$ac_try;;
58417 esac
58418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58419 $as_echo "$ac_try_echo") >&5
58420   (eval "$ac_link") 2>&5
58421   ac_status=$?
58422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58424   { (case "(($ac_try" in
58425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58426   *) ac_try_echo=$ac_try;;
58427 esac
58428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58429 $as_echo "$ac_try_echo") >&5
58430   (eval "$ac_try") 2>&5
58431   ac_status=$?
58432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58433   (exit $ac_status); }; }; then
58434   :
58435 else
58436   $as_echo "$as_me: program exited with status $ac_status" >&5
58437 $as_echo "$as_me: failed program was:" >&5
58438 sed 's/^/| /' conftest.$ac_ext >&5
58439
58440 ( exit $ac_status )
58441 no_glib=yes
58442 fi
58443 rm -rf conftest.dSYM
58444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58445 fi
58446
58447
58448        CFLAGS="$ac_save_CFLAGS"
58449        LIBS="$ac_save_LIBS"
58450      fi
58451   fi
58452   if test "x$no_glib" = x ; then
58453      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
58454 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
58455      :
58456   else
58457      { $as_echo "$as_me:$LINENO: result: no" >&5
58458 $as_echo "no" >&6; }
58459      if test "$PKG_CONFIG" = "no" ; then
58460        echo "*** A new enough version of pkg-config was not found."
58461        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
58462      else
58463        if test -f conf.glibtest ; then
58464         :
58465        else
58466           echo "*** Could not run GLIB test program, checking why..."
58467           ac_save_CFLAGS="$CFLAGS"
58468           ac_save_LIBS="$LIBS"
58469           CFLAGS="$CFLAGS $GLIB_CFLAGS"
58470           LIBS="$LIBS $GLIB_LIBS"
58471           cat >conftest.$ac_ext <<_ACEOF
58472 /* confdefs.h.  */
58473 _ACEOF
58474 cat confdefs.h >>conftest.$ac_ext
58475 cat >>conftest.$ac_ext <<_ACEOF
58476 /* end confdefs.h.  */
58477
58478 #include <glib.h>
58479 #include <stdio.h>
58480
58481 int
58482 main ()
58483 {
58484  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
58485   ;
58486   return 0;
58487 }
58488 _ACEOF
58489 rm -f conftest.$ac_objext conftest$ac_exeext
58490 if { (ac_try="$ac_link"
58491 case "(($ac_try" in
58492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58493   *) ac_try_echo=$ac_try;;
58494 esac
58495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58496 $as_echo "$ac_try_echo") >&5
58497   (eval "$ac_link") 2>conftest.er1
58498   ac_status=$?
58499   grep -v '^ *+' conftest.er1 >conftest.err
58500   rm -f conftest.er1
58501   cat conftest.err >&5
58502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58503   (exit $ac_status); } && {
58504          test -z "$ac_c_werror_flag" ||
58505          test ! -s conftest.err
58506        } && test -s conftest$ac_exeext && {
58507          test "$cross_compiling" = yes ||
58508          $as_test_x conftest$ac_exeext
58509        }; then
58510    echo "*** The test program compiled, but did not run. This usually means"
58511           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
58512           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
58513           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
58514           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
58515           echo "*** is required on your system"
58516           echo "***"
58517           echo "*** If you have an old version installed, it is best to remove it, although"
58518           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
58519 else
58520   $as_echo "$as_me: failed program was:" >&5
58521 sed 's/^/| /' conftest.$ac_ext >&5
58522
58523          echo "*** The test program failed to compile or link. See the file config.log for the"
58524           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
58525 fi
58526
58527 rm -rf conftest.dSYM
58528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58529       conftest$ac_exeext conftest.$ac_ext
58530           CFLAGS="$ac_save_CFLAGS"
58531           LIBS="$ac_save_LIBS"
58532        fi
58533      fi
58534      GLIB_CFLAGS=""
58535      GLIB_LIBS=""
58536      GLIB_GENMARSHAL=""
58537      GOBJECT_QUERY=""
58538      GLIB_MKENUMS=""
58539
58540             { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
58541 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
58542    { (exit 1); exit 1; }; }
58543
58544   fi
58545
58546
58547
58548
58549
58550   rm -f conf.glibtest
58551
58552     else
58553         { { $as_echo "$as_me:$LINENO: error: explicit glib" >&5
58554 $as_echo "$as_me: error: explicit glib" >&2;}
58555    { (exit 1); exit 1; }; }
58556     fi
58557
58558     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
58559     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
58560
58561     LIBS="$GLIB_LIBS $LIBS"
58562
58563
58564
58565
58566 # Check whether --with-readline was given.
58567 if test "${with_readline+set}" = set; then
58568   withval=$with_readline;
58569             case "$withval" in
58570                 y | ye | yes | n | no) : ;;
58571                 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
58572 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
58573    { (exit 1); exit 1; }; }
58574             esac
58575             want_readline="$withval"
58576
58577 else
58578
58579             want_readline="maybe" # meaning "only if we can find it"
58580
58581 fi
58582
58583
58584
58585   # unless the user said "no", look for readline.
58586   if test x"$want_readline" != x"no"; then
58587     { $as_echo "$as_me:$LINENO: checking for a readline compatible library" >&5
58588 $as_echo_n "checking for a readline compatible library... " >&6; }
58589 if test "${ax_cv_lib_readline+set}" = set; then
58590   $as_echo_n "(cached) " >&6
58591 else
58592
58593       ORIG_LIBS="$LIBS"
58594       for readline_lib in readline edit editline; do
58595         for termcap_lib in "" termcap curses ncurses; do
58596           if test -z "$termcap_lib"; then
58597             TRY_LIB="-l$readline_lib"
58598           else
58599             TRY_LIB="-l$readline_lib -l$termcap_lib"
58600           fi
58601           LIBS="$ORIG_LIBS $TRY_LIB"
58602           cat >conftest.$ac_ext <<_ACEOF
58603 /* confdefs.h.  */
58604 _ACEOF
58605 cat confdefs.h >>conftest.$ac_ext
58606 cat >>conftest.$ac_ext <<_ACEOF
58607 /* end confdefs.h.  */
58608
58609 /* Override any GCC internal prototype to avoid an error.
58610    Use char because int might match the return type of a GCC
58611    builtin and then its argument prototype would still apply.  */
58612 #ifdef __cplusplus
58613 extern "C"
58614 #endif
58615 char readline ();
58616 int
58617 main ()
58618 {
58619 return readline ();
58620   ;
58621   return 0;
58622 }
58623 _ACEOF
58624 rm -f conftest.$ac_objext conftest$ac_exeext
58625 if { (ac_try="$ac_link"
58626 case "(($ac_try" in
58627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58628   *) ac_try_echo=$ac_try;;
58629 esac
58630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58631 $as_echo "$ac_try_echo") >&5
58632   (eval "$ac_link") 2>conftest.er1
58633   ac_status=$?
58634   grep -v '^ *+' conftest.er1 >conftest.err
58635   rm -f conftest.er1
58636   cat conftest.err >&5
58637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58638   (exit $ac_status); } && {
58639          test -z "$ac_c_werror_flag" ||
58640          test ! -s conftest.err
58641        } && test -s conftest$ac_exeext && {
58642          test "$cross_compiling" = yes ||
58643          $as_test_x conftest$ac_exeext
58644        }; then
58645   ax_cv_lib_readline="$TRY_LIB"
58646 else
58647   $as_echo "$as_me: failed program was:" >&5
58648 sed 's/^/| /' conftest.$ac_ext >&5
58649
58650
58651 fi
58652
58653 rm -rf conftest.dSYM
58654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58655       conftest$ac_exeext conftest.$ac_ext
58656           if test -n "$ax_cv_lib_readline"; then
58657             break
58658           fi
58659         done
58660         if test -n "$ax_cv_lib_readline"; then
58661           break
58662         fi
58663       done
58664       if test -z "$ax_cv_lib_readline"; then
58665         ax_cv_lib_readline="no"
58666       fi
58667       LIBS="$ORIG_LIBS"
58668
58669 fi
58670 { $as_echo "$as_me:$LINENO: result: $ax_cv_lib_readline" >&5
58671 $as_echo "$ax_cv_lib_readline" >&6; }
58672
58673     if test "$ax_cv_lib_readline" != "no"; then
58674       ORIG_LIBS="$LIBS"
58675       LIBS="$LIBS $ax_cv_lib_readline"
58676       READLINE_LIBS="$ax_cv_lib_readline"
58677
58678 cat >>confdefs.h <<\_ACEOF
58679 #define HAVE_LIBREADLINE 1
58680 _ACEOF
58681
58682
58683
58684 for ac_header in readline.h readline/readline.h
58685 do
58686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58688   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58689 $as_echo_n "checking for $ac_header... " >&6; }
58690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58691   $as_echo_n "(cached) " >&6
58692 fi
58693 ac_res=`eval 'as_val=${'$as_ac_Header'}
58694                  $as_echo "$as_val"'`
58695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58696 $as_echo "$ac_res" >&6; }
58697 else
58698   # Is the header compilable?
58699 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
58700 $as_echo_n "checking $ac_header usability... " >&6; }
58701 cat >conftest.$ac_ext <<_ACEOF
58702 /* confdefs.h.  */
58703 _ACEOF
58704 cat confdefs.h >>conftest.$ac_ext
58705 cat >>conftest.$ac_ext <<_ACEOF
58706 /* end confdefs.h.  */
58707 $ac_includes_default
58708 #include <$ac_header>
58709 _ACEOF
58710 rm -f conftest.$ac_objext
58711 if { (ac_try="$ac_compile"
58712 case "(($ac_try" in
58713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58714   *) ac_try_echo=$ac_try;;
58715 esac
58716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58717 $as_echo "$ac_try_echo") >&5
58718   (eval "$ac_compile") 2>conftest.er1
58719   ac_status=$?
58720   grep -v '^ *+' conftest.er1 >conftest.err
58721   rm -f conftest.er1
58722   cat conftest.err >&5
58723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58724   (exit $ac_status); } && {
58725          test -z "$ac_c_werror_flag" ||
58726          test ! -s conftest.err
58727        } && test -s conftest.$ac_objext; then
58728   ac_header_compiler=yes
58729 else
58730   $as_echo "$as_me: failed program was:" >&5
58731 sed 's/^/| /' conftest.$ac_ext >&5
58732
58733         ac_header_compiler=no
58734 fi
58735
58736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58738 $as_echo "$ac_header_compiler" >&6; }
58739
58740 # Is the header present?
58741 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
58742 $as_echo_n "checking $ac_header presence... " >&6; }
58743 cat >conftest.$ac_ext <<_ACEOF
58744 /* confdefs.h.  */
58745 _ACEOF
58746 cat confdefs.h >>conftest.$ac_ext
58747 cat >>conftest.$ac_ext <<_ACEOF
58748 /* end confdefs.h.  */
58749 #include <$ac_header>
58750 _ACEOF
58751 if { (ac_try="$ac_cpp conftest.$ac_ext"
58752 case "(($ac_try" in
58753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58754   *) ac_try_echo=$ac_try;;
58755 esac
58756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58757 $as_echo "$ac_try_echo") >&5
58758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58759   ac_status=$?
58760   grep -v '^ *+' conftest.er1 >conftest.err
58761   rm -f conftest.er1
58762   cat conftest.err >&5
58763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58764   (exit $ac_status); } >/dev/null && {
58765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58766          test ! -s conftest.err
58767        }; then
58768   ac_header_preproc=yes
58769 else
58770   $as_echo "$as_me: failed program was:" >&5
58771 sed 's/^/| /' conftest.$ac_ext >&5
58772
58773   ac_header_preproc=no
58774 fi
58775
58776 rm -f conftest.err conftest.$ac_ext
58777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58778 $as_echo "$ac_header_preproc" >&6; }
58779
58780 # So?  What about this header?
58781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58782   yes:no: )
58783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58784 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58787     ac_header_preproc=yes
58788     ;;
58789   no:yes:* )
58790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58791 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58793 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58795 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58797 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58799 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58801 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58802
58803     ;;
58804 esac
58805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58806 $as_echo_n "checking for $ac_header... " >&6; }
58807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58808   $as_echo_n "(cached) " >&6
58809 else
58810   eval "$as_ac_Header=\$ac_header_preproc"
58811 fi
58812 ac_res=`eval 'as_val=${'$as_ac_Header'}
58813                  $as_echo "$as_val"'`
58814                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58815 $as_echo "$ac_res" >&6; }
58816
58817 fi
58818 as_val=`eval 'as_val=${'$as_ac_Header'}
58819                  $as_echo "$as_val"'`
58820    if test "x$as_val" = x""yes; then
58821   cat >>confdefs.h <<_ACEOF
58822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
58823 _ACEOF
58824
58825 fi
58826
58827 done
58828
58829       { $as_echo "$as_me:$LINENO: checking whether readline supports history" >&5
58830 $as_echo_n "checking whether readline supports history... " >&6; }
58831 if test "${ax_cv_lib_readline_history+set}" = set; then
58832   $as_echo_n "(cached) " >&6
58833 else
58834
58835         ax_cv_lib_readline_history="no"
58836         cat >conftest.$ac_ext <<_ACEOF
58837 /* confdefs.h.  */
58838 _ACEOF
58839 cat confdefs.h >>conftest.$ac_ext
58840 cat >>conftest.$ac_ext <<_ACEOF
58841 /* end confdefs.h.  */
58842
58843 /* Override any GCC internal prototype to avoid an error.
58844    Use char because int might match the return type of a GCC
58845    builtin and then its argument prototype would still apply.  */
58846 #ifdef __cplusplus
58847 extern "C"
58848 #endif
58849 char add_history ();
58850 int
58851 main ()
58852 {
58853 return add_history ();
58854   ;
58855   return 0;
58856 }
58857 _ACEOF
58858 rm -f conftest.$ac_objext conftest$ac_exeext
58859 if { (ac_try="$ac_link"
58860 case "(($ac_try" in
58861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58862   *) ac_try_echo=$ac_try;;
58863 esac
58864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58865 $as_echo "$ac_try_echo") >&5
58866   (eval "$ac_link") 2>conftest.er1
58867   ac_status=$?
58868   grep -v '^ *+' conftest.er1 >conftest.err
58869   rm -f conftest.er1
58870   cat conftest.err >&5
58871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58872   (exit $ac_status); } && {
58873          test -z "$ac_c_werror_flag" ||
58874          test ! -s conftest.err
58875        } && test -s conftest$ac_exeext && {
58876          test "$cross_compiling" = yes ||
58877          $as_test_x conftest$ac_exeext
58878        }; then
58879   ax_cv_lib_readline_history="yes"
58880 else
58881   $as_echo "$as_me: failed program was:" >&5
58882 sed 's/^/| /' conftest.$ac_ext >&5
58883
58884
58885 fi
58886
58887 rm -rf conftest.dSYM
58888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58889       conftest$ac_exeext conftest.$ac_ext
58890
58891 fi
58892 { $as_echo "$as_me:$LINENO: result: $ax_cv_lib_readline_history" >&5
58893 $as_echo "$ax_cv_lib_readline_history" >&6; }
58894       if test "$ax_cv_lib_readline_history" = "yes"; then
58895
58896 cat >>confdefs.h <<\_ACEOF
58897 #define HAVE_READLINE_HISTORY 1
58898 _ACEOF
58899
58900
58901
58902 for ac_header in history.h readline/history.h
58903 do
58904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58906   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58907 $as_echo_n "checking for $ac_header... " >&6; }
58908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58909   $as_echo_n "(cached) " >&6
58910 fi
58911 ac_res=`eval 'as_val=${'$as_ac_Header'}
58912                  $as_echo "$as_val"'`
58913                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58914 $as_echo "$ac_res" >&6; }
58915 else
58916   # Is the header compilable?
58917 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
58918 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
58926 #include <$ac_header>
58927 _ACEOF
58928 rm -f conftest.$ac_objext
58929 if { (ac_try="$ac_compile"
58930 case "(($ac_try" in
58931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58932   *) ac_try_echo=$ac_try;;
58933 esac
58934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58935 $as_echo "$ac_try_echo") >&5
58936   (eval "$ac_compile") 2>conftest.er1
58937   ac_status=$?
58938   grep -v '^ *+' conftest.er1 >conftest.err
58939   rm -f conftest.er1
58940   cat conftest.err >&5
58941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58942   (exit $ac_status); } && {
58943          test -z "$ac_c_werror_flag" ||
58944          test ! -s conftest.err
58945        } && test -s conftest.$ac_objext; then
58946   ac_header_compiler=yes
58947 else
58948   $as_echo "$as_me: failed program was:" >&5
58949 sed 's/^/| /' conftest.$ac_ext >&5
58950
58951         ac_header_compiler=no
58952 fi
58953
58954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58955 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58956 $as_echo "$ac_header_compiler" >&6; }
58957
58958 # Is the header present?
58959 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
58960 $as_echo_n "checking $ac_header presence... " >&6; }
58961 cat >conftest.$ac_ext <<_ACEOF
58962 /* confdefs.h.  */
58963 _ACEOF
58964 cat confdefs.h >>conftest.$ac_ext
58965 cat >>conftest.$ac_ext <<_ACEOF
58966 /* end confdefs.h.  */
58967 #include <$ac_header>
58968 _ACEOF
58969 if { (ac_try="$ac_cpp conftest.$ac_ext"
58970 case "(($ac_try" in
58971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58972   *) ac_try_echo=$ac_try;;
58973 esac
58974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58975 $as_echo "$ac_try_echo") >&5
58976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58977   ac_status=$?
58978   grep -v '^ *+' conftest.er1 >conftest.err
58979   rm -f conftest.er1
58980   cat conftest.err >&5
58981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58982   (exit $ac_status); } >/dev/null && {
58983          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58984          test ! -s conftest.err
58985        }; then
58986   ac_header_preproc=yes
58987 else
58988   $as_echo "$as_me: failed program was:" >&5
58989 sed 's/^/| /' conftest.$ac_ext >&5
58990
58991   ac_header_preproc=no
58992 fi
58993
58994 rm -f conftest.err conftest.$ac_ext
58995 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58996 $as_echo "$ac_header_preproc" >&6; }
58997
58998 # So?  What about this header?
58999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59000   yes:no: )
59001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59002 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59004 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59005     ac_header_preproc=yes
59006     ;;
59007   no:yes:* )
59008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59009 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59011 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59013 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59015 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59017 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59018     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59019 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59020
59021     ;;
59022 esac
59023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
59024 $as_echo_n "checking for $ac_header... " >&6; }
59025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59026   $as_echo_n "(cached) " >&6
59027 else
59028   eval "$as_ac_Header=\$ac_header_preproc"
59029 fi
59030 ac_res=`eval 'as_val=${'$as_ac_Header'}
59031                  $as_echo "$as_val"'`
59032                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59033 $as_echo "$ac_res" >&6; }
59034
59035 fi
59036 as_val=`eval 'as_val=${'$as_ac_Header'}
59037                  $as_echo "$as_val"'`
59038    if test "x$as_val" = x""yes; then
59039   cat >>confdefs.h <<_ACEOF
59040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59041 _ACEOF
59042
59043 fi
59044
59045 done
59046
59047       fi
59048       LIBS="$ORIG_LIBS"
59049
59050     else
59051       # no readline.  if the user *really* wanted it, bail out.
59052       if test x"$want_readline" = x"yes"; then
59053         { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
59054 $as_echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
59055    { (exit 1); exit 1; }; }
59056       fi
59057       READLINE_LIBS=""
59058     fi
59059   fi
59060
59061
59062
59063 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
59064 $as_echo_n "checking for modf in -lm... " >&6; }
59065 if test "${ac_cv_lib_m_modf+set}" = set; then
59066   $as_echo_n "(cached) " >&6
59067 else
59068   ac_check_lib_save_LIBS=$LIBS
59069 LIBS="-lm  $LIBS"
59070 cat >conftest.$ac_ext <<_ACEOF
59071 /* confdefs.h.  */
59072 _ACEOF
59073 cat confdefs.h >>conftest.$ac_ext
59074 cat >>conftest.$ac_ext <<_ACEOF
59075 /* end confdefs.h.  */
59076
59077 /* Override any GCC internal prototype to avoid an error.
59078    Use char because int might match the return type of a GCC
59079    builtin and then its argument prototype would still apply.  */
59080 #ifdef __cplusplus
59081 extern "C"
59082 #endif
59083 char modf ();
59084 int
59085 main ()
59086 {
59087 return modf ();
59088   ;
59089   return 0;
59090 }
59091 _ACEOF
59092 rm -f conftest.$ac_objext conftest$ac_exeext
59093 if { (ac_try="$ac_link"
59094 case "(($ac_try" in
59095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59096   *) ac_try_echo=$ac_try;;
59097 esac
59098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59099 $as_echo "$ac_try_echo") >&5
59100   (eval "$ac_link") 2>conftest.er1
59101   ac_status=$?
59102   grep -v '^ *+' conftest.er1 >conftest.err
59103   rm -f conftest.er1
59104   cat conftest.err >&5
59105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59106   (exit $ac_status); } && {
59107          test -z "$ac_c_werror_flag" ||
59108          test ! -s conftest.err
59109        } && test -s conftest$ac_exeext && {
59110          test "$cross_compiling" = yes ||
59111          $as_test_x conftest$ac_exeext
59112        }; then
59113   ac_cv_lib_m_modf=yes
59114 else
59115   $as_echo "$as_me: failed program was:" >&5
59116 sed 's/^/| /' conftest.$ac_ext >&5
59117
59118         ac_cv_lib_m_modf=no
59119 fi
59120
59121 rm -rf conftest.dSYM
59122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59123       conftest$ac_exeext conftest.$ac_ext
59124 LIBS=$ac_check_lib_save_LIBS
59125 fi
59126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
59127 $as_echo "$ac_cv_lib_m_modf" >&6; }
59128 if test "x$ac_cv_lib_m_modf" = x""yes; then
59129   cat >>confdefs.h <<_ACEOF
59130 #define HAVE_LIBM 1
59131 _ACEOF
59132
59133   LIBS="-lm $LIBS"
59134
59135 fi
59136
59137
59138     if test "${ac_cv_header_execinfo_h+set}" = set; then
59139   { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
59140 $as_echo_n "checking for execinfo.h... " >&6; }
59141 if test "${ac_cv_header_execinfo_h+set}" = set; then
59142   $as_echo_n "(cached) " >&6
59143 fi
59144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
59145 $as_echo "$ac_cv_header_execinfo_h" >&6; }
59146 else
59147   # Is the header compilable?
59148 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
59149 $as_echo_n "checking execinfo.h usability... " >&6; }
59150 cat >conftest.$ac_ext <<_ACEOF
59151 /* confdefs.h.  */
59152 _ACEOF
59153 cat confdefs.h >>conftest.$ac_ext
59154 cat >>conftest.$ac_ext <<_ACEOF
59155 /* end confdefs.h.  */
59156 $ac_includes_default
59157 #include <execinfo.h>
59158 _ACEOF
59159 rm -f conftest.$ac_objext
59160 if { (ac_try="$ac_compile"
59161 case "(($ac_try" in
59162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59163   *) ac_try_echo=$ac_try;;
59164 esac
59165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59166 $as_echo "$ac_try_echo") >&5
59167   (eval "$ac_compile") 2>conftest.er1
59168   ac_status=$?
59169   grep -v '^ *+' conftest.er1 >conftest.err
59170   rm -f conftest.er1
59171   cat conftest.err >&5
59172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59173   (exit $ac_status); } && {
59174          test -z "$ac_c_werror_flag" ||
59175          test ! -s conftest.err
59176        } && test -s conftest.$ac_objext; then
59177   ac_header_compiler=yes
59178 else
59179   $as_echo "$as_me: failed program was:" >&5
59180 sed 's/^/| /' conftest.$ac_ext >&5
59181
59182         ac_header_compiler=no
59183 fi
59184
59185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59186 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59187 $as_echo "$ac_header_compiler" >&6; }
59188
59189 # Is the header present?
59190 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
59191 $as_echo_n "checking execinfo.h presence... " >&6; }
59192 cat >conftest.$ac_ext <<_ACEOF
59193 /* confdefs.h.  */
59194 _ACEOF
59195 cat confdefs.h >>conftest.$ac_ext
59196 cat >>conftest.$ac_ext <<_ACEOF
59197 /* end confdefs.h.  */
59198 #include <execinfo.h>
59199 _ACEOF
59200 if { (ac_try="$ac_cpp conftest.$ac_ext"
59201 case "(($ac_try" in
59202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59203   *) ac_try_echo=$ac_try;;
59204 esac
59205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59206 $as_echo "$ac_try_echo") >&5
59207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59208   ac_status=$?
59209   grep -v '^ *+' conftest.er1 >conftest.err
59210   rm -f conftest.er1
59211   cat conftest.err >&5
59212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59213   (exit $ac_status); } >/dev/null && {
59214          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
59215          test ! -s conftest.err
59216        }; then
59217   ac_header_preproc=yes
59218 else
59219   $as_echo "$as_me: failed program was:" >&5
59220 sed 's/^/| /' conftest.$ac_ext >&5
59221
59222   ac_header_preproc=no
59223 fi
59224
59225 rm -f conftest.err conftest.$ac_ext
59226 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59227 $as_echo "$ac_header_preproc" >&6; }
59228
59229 # So?  What about this header?
59230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59231   yes:no: )
59232     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59233 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59234     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
59235 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
59236     ac_header_preproc=yes
59237     ;;
59238   no:yes:* )
59239     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
59240 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
59241     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
59242 $as_echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
59243     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
59244 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
59245     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
59246 $as_echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
59247     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
59248 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
59249     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
59250 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
59251
59252     ;;
59253 esac
59254 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
59255 $as_echo_n "checking for execinfo.h... " >&6; }
59256 if test "${ac_cv_header_execinfo_h+set}" = set; then
59257   $as_echo_n "(cached) " >&6
59258 else
59259   ac_cv_header_execinfo_h=$ac_header_preproc
59260 fi
59261 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
59262 $as_echo "$ac_cv_header_execinfo_h" >&6; }
59263
59264 fi
59265 if test "x$ac_cv_header_execinfo_h" = x""yes; then
59266
59267         { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
59268 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
59269 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
59270   $as_echo_n "(cached) " >&6
59271 else
59272   cat >conftest.$ac_ext <<_ACEOF
59273 /* confdefs.h.  */
59274 _ACEOF
59275 cat confdefs.h >>conftest.$ac_ext
59276 cat >>conftest.$ac_ext <<_ACEOF
59277 /* end confdefs.h.  */
59278 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
59279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59280 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
59281
59282 /* System header to define __stub macros and hopefully few prototypes,
59283     which can conflict with char backtrace_symbols_fd (); below.
59284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59285     <limits.h> exists even on freestanding compilers.  */
59286
59287 #ifdef __STDC__
59288 # include <limits.h>
59289 #else
59290 # include <assert.h>
59291 #endif
59292
59293 #undef backtrace_symbols_fd
59294
59295 /* Override any GCC internal prototype to avoid an error.
59296    Use char because int might match the return type of a GCC
59297    builtin and then its argument prototype would still apply.  */
59298 #ifdef __cplusplus
59299 extern "C"
59300 #endif
59301 char backtrace_symbols_fd ();
59302 /* The GNU C library defines this for functions which it implements
59303     to always fail with ENOSYS.  Some functions are actually named
59304     something starting with __ and the normal name is an alias.  */
59305 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
59306 choke me
59307 #endif
59308
59309 int
59310 main ()
59311 {
59312 return backtrace_symbols_fd ();
59313   ;
59314   return 0;
59315 }
59316 _ACEOF
59317 rm -f conftest.$ac_objext conftest$ac_exeext
59318 if { (ac_try="$ac_link"
59319 case "(($ac_try" in
59320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59321   *) ac_try_echo=$ac_try;;
59322 esac
59323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59324 $as_echo "$ac_try_echo") >&5
59325   (eval "$ac_link") 2>conftest.er1
59326   ac_status=$?
59327   grep -v '^ *+' conftest.er1 >conftest.err
59328   rm -f conftest.er1
59329   cat conftest.err >&5
59330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59331   (exit $ac_status); } && {
59332          test -z "$ac_c_werror_flag" ||
59333          test ! -s conftest.err
59334        } && test -s conftest$ac_exeext && {
59335          test "$cross_compiling" = yes ||
59336          $as_test_x conftest$ac_exeext
59337        }; then
59338   ac_cv_func_backtrace_symbols_fd=yes
59339 else
59340   $as_echo "$as_me: failed program was:" >&5
59341 sed 's/^/| /' conftest.$ac_ext >&5
59342
59343         ac_cv_func_backtrace_symbols_fd=no
59344 fi
59345
59346 rm -rf conftest.dSYM
59347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59348       conftest$ac_exeext conftest.$ac_ext
59349 fi
59350 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
59351 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
59352 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
59353
59354
59355 cat >>confdefs.h <<\_ACEOF
59356 #define HAVE_GLIBC_BACKTRACE 1
59357 _ACEOF
59358
59359
59360 fi
59361
59362
59363 fi
59364
59365
59366
59367
59368 #
59369 # Declarations
59370 #
59371 # Checks for library functions and if the function is declared in
59372 # an appropriate header file.  Functions which exist, but for which
59373 # no declaration is available, are declared in common-src/amanda.h.
59374 # It's not clear that any existing system implements but does not
59375 # declare common functions such as these.
59376 #
59377
59378 ice_have_accept=no
59379
59380 for ac_func in accept
59381 do
59382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59383 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59384 $as_echo_n "checking for $ac_func... " >&6; }
59385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59386   $as_echo_n "(cached) " >&6
59387 else
59388   cat >conftest.$ac_ext <<_ACEOF
59389 /* confdefs.h.  */
59390 _ACEOF
59391 cat confdefs.h >>conftest.$ac_ext
59392 cat >>conftest.$ac_ext <<_ACEOF
59393 /* end confdefs.h.  */
59394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59396 #define $ac_func innocuous_$ac_func
59397
59398 /* System header to define __stub macros and hopefully few prototypes,
59399     which can conflict with char $ac_func (); below.
59400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59401     <limits.h> exists even on freestanding compilers.  */
59402
59403 #ifdef __STDC__
59404 # include <limits.h>
59405 #else
59406 # include <assert.h>
59407 #endif
59408
59409 #undef $ac_func
59410
59411 /* Override any GCC internal prototype to avoid an error.
59412    Use char because int might match the return type of a GCC
59413    builtin and then its argument prototype would still apply.  */
59414 #ifdef __cplusplus
59415 extern "C"
59416 #endif
59417 char $ac_func ();
59418 /* The GNU C library defines this for functions which it implements
59419     to always fail with ENOSYS.  Some functions are actually named
59420     something starting with __ and the normal name is an alias.  */
59421 #if defined __stub_$ac_func || defined __stub___$ac_func
59422 choke me
59423 #endif
59424
59425 int
59426 main ()
59427 {
59428 return $ac_func ();
59429   ;
59430   return 0;
59431 }
59432 _ACEOF
59433 rm -f conftest.$ac_objext conftest$ac_exeext
59434 if { (ac_try="$ac_link"
59435 case "(($ac_try" in
59436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59437   *) ac_try_echo=$ac_try;;
59438 esac
59439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59440 $as_echo "$ac_try_echo") >&5
59441   (eval "$ac_link") 2>conftest.er1
59442   ac_status=$?
59443   grep -v '^ *+' conftest.er1 >conftest.err
59444   rm -f conftest.er1
59445   cat conftest.err >&5
59446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59447   (exit $ac_status); } && {
59448          test -z "$ac_c_werror_flag" ||
59449          test ! -s conftest.err
59450        } && test -s conftest$ac_exeext && {
59451          test "$cross_compiling" = yes ||
59452          $as_test_x conftest$ac_exeext
59453        }; then
59454   eval "$as_ac_var=yes"
59455 else
59456   $as_echo "$as_me: failed program was:" >&5
59457 sed 's/^/| /' conftest.$ac_ext >&5
59458
59459         eval "$as_ac_var=no"
59460 fi
59461
59462 rm -rf conftest.dSYM
59463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59464       conftest$ac_exeext conftest.$ac_ext
59465 fi
59466 ac_res=`eval 'as_val=${'$as_ac_var'}
59467                  $as_echo "$as_val"'`
59468                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59469 $as_echo "$ac_res" >&6; }
59470 as_val=`eval 'as_val=${'$as_ac_var'}
59471                  $as_echo "$as_val"'`
59472    if test "x$as_val" = x""yes; then
59473   cat >>confdefs.h <<_ACEOF
59474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59475 _ACEOF
59476  ice_have_accept=yes
59477 fi
59478 done
59479
59480 if test "${ice_have_accept}" = yes; then
59481 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
59482 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
59483 if test "${ice_cv_have_accept_decl+set}" = set; then
59484   $as_echo_n "(cached) " >&6
59485 else
59486
59487 ice_cv_have_accept_decl=no
59488 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59489 ice_re_word='(^|[^a-zA-Z0-9_])'
59490 for header in sys/types.h sys/socket.h; do
59491 # Check for ordinary declaration
59492 cat >conftest.$ac_ext <<_ACEOF
59493 /* confdefs.h.  */
59494 _ACEOF
59495 cat confdefs.h >>conftest.$ac_ext
59496 cat >>conftest.$ac_ext <<_ACEOF
59497 /* end confdefs.h.  */
59498 #include <$header>
59499
59500 _ACEOF
59501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59502   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
59503   ice_cv_have_accept_decl=yes
59504 fi
59505 rm -f conftest*
59506
59507 if test "$ice_cv_have_accept_decl" = yes; then
59508         break
59509 fi
59510 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59511 cat >conftest.$ac_ext <<_ACEOF
59512 /* confdefs.h.  */
59513 _ACEOF
59514 cat confdefs.h >>conftest.$ac_ext
59515 cat >>conftest.$ac_ext <<_ACEOF
59516 /* end confdefs.h.  */
59517 #include <$header>
59518
59519 _ACEOF
59520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59521   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59522   ice_cv_have_accept_decl=yes
59523 fi
59524 rm -f conftest*
59525
59526 if test "$ice_cv_have_accept_decl" = yes; then
59527         break
59528 fi
59529 done
59530
59531 fi
59532
59533 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
59534 $as_echo "$ice_cv_have_accept_decl" >&6; }
59535 if test "$ice_cv_have_accept_decl" = yes; then
59536
59537 cat >>confdefs.h <<_ACEOF
59538 #define HAVE_ACCEPT_DECL 1
59539 _ACEOF
59540
59541 fi
59542 fi
59543
59544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
59545 # for constant arguments.  Useless!
59546 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
59547 $as_echo_n "checking for working alloca.h... " >&6; }
59548 if test "${ac_cv_working_alloca_h+set}" = set; then
59549   $as_echo_n "(cached) " >&6
59550 else
59551   cat >conftest.$ac_ext <<_ACEOF
59552 /* confdefs.h.  */
59553 _ACEOF
59554 cat confdefs.h >>conftest.$ac_ext
59555 cat >>conftest.$ac_ext <<_ACEOF
59556 /* end confdefs.h.  */
59557 #include <alloca.h>
59558 int
59559 main ()
59560 {
59561 char *p = (char *) alloca (2 * sizeof (int));
59562                           if (p) return 0;
59563   ;
59564   return 0;
59565 }
59566 _ACEOF
59567 rm -f conftest.$ac_objext conftest$ac_exeext
59568 if { (ac_try="$ac_link"
59569 case "(($ac_try" in
59570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59571   *) ac_try_echo=$ac_try;;
59572 esac
59573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59574 $as_echo "$ac_try_echo") >&5
59575   (eval "$ac_link") 2>conftest.er1
59576   ac_status=$?
59577   grep -v '^ *+' conftest.er1 >conftest.err
59578   rm -f conftest.er1
59579   cat conftest.err >&5
59580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59581   (exit $ac_status); } && {
59582          test -z "$ac_c_werror_flag" ||
59583          test ! -s conftest.err
59584        } && test -s conftest$ac_exeext && {
59585          test "$cross_compiling" = yes ||
59586          $as_test_x conftest$ac_exeext
59587        }; then
59588   ac_cv_working_alloca_h=yes
59589 else
59590   $as_echo "$as_me: failed program was:" >&5
59591 sed 's/^/| /' conftest.$ac_ext >&5
59592
59593         ac_cv_working_alloca_h=no
59594 fi
59595
59596 rm -rf conftest.dSYM
59597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59598       conftest$ac_exeext conftest.$ac_ext
59599 fi
59600 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
59601 $as_echo "$ac_cv_working_alloca_h" >&6; }
59602 if test $ac_cv_working_alloca_h = yes; then
59603
59604 cat >>confdefs.h <<\_ACEOF
59605 #define HAVE_ALLOCA_H 1
59606 _ACEOF
59607
59608 fi
59609
59610 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
59611 $as_echo_n "checking for alloca... " >&6; }
59612 if test "${ac_cv_func_alloca_works+set}" = set; then
59613   $as_echo_n "(cached) " >&6
59614 else
59615   cat >conftest.$ac_ext <<_ACEOF
59616 /* confdefs.h.  */
59617 _ACEOF
59618 cat confdefs.h >>conftest.$ac_ext
59619 cat >>conftest.$ac_ext <<_ACEOF
59620 /* end confdefs.h.  */
59621 #ifdef __GNUC__
59622 # define alloca __builtin_alloca
59623 #else
59624 # ifdef _MSC_VER
59625 #  include <malloc.h>
59626 #  define alloca _alloca
59627 # else
59628 #  ifdef HAVE_ALLOCA_H
59629 #   include <alloca.h>
59630 #  else
59631 #   ifdef _AIX
59632  #pragma alloca
59633 #   else
59634 #    ifndef alloca /* predefined by HP cc +Olibcalls */
59635 char *alloca ();
59636 #    endif
59637 #   endif
59638 #  endif
59639 # endif
59640 #endif
59641
59642 int
59643 main ()
59644 {
59645 char *p = (char *) alloca (1);
59646                                     if (p) return 0;
59647   ;
59648   return 0;
59649 }
59650 _ACEOF
59651 rm -f conftest.$ac_objext conftest$ac_exeext
59652 if { (ac_try="$ac_link"
59653 case "(($ac_try" in
59654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59655   *) ac_try_echo=$ac_try;;
59656 esac
59657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59658 $as_echo "$ac_try_echo") >&5
59659   (eval "$ac_link") 2>conftest.er1
59660   ac_status=$?
59661   grep -v '^ *+' conftest.er1 >conftest.err
59662   rm -f conftest.er1
59663   cat conftest.err >&5
59664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59665   (exit $ac_status); } && {
59666          test -z "$ac_c_werror_flag" ||
59667          test ! -s conftest.err
59668        } && test -s conftest$ac_exeext && {
59669          test "$cross_compiling" = yes ||
59670          $as_test_x conftest$ac_exeext
59671        }; then
59672   ac_cv_func_alloca_works=yes
59673 else
59674   $as_echo "$as_me: failed program was:" >&5
59675 sed 's/^/| /' conftest.$ac_ext >&5
59676
59677         ac_cv_func_alloca_works=no
59678 fi
59679
59680 rm -rf conftest.dSYM
59681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59682       conftest$ac_exeext conftest.$ac_ext
59683 fi
59684 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
59685 $as_echo "$ac_cv_func_alloca_works" >&6; }
59686
59687 if test $ac_cv_func_alloca_works = yes; then
59688
59689 cat >>confdefs.h <<\_ACEOF
59690 #define HAVE_ALLOCA 1
59691 _ACEOF
59692
59693 else
59694   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
59695 # that cause trouble.  Some versions do not even contain alloca or
59696 # contain a buggy version.  If you still want to use their alloca,
59697 # use ar to extract alloca.o from them instead of compiling alloca.c.
59698
59699 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
59700
59701 cat >>confdefs.h <<\_ACEOF
59702 #define C_ALLOCA 1
59703 _ACEOF
59704
59705
59706 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
59707 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
59708 if test "${ac_cv_os_cray+set}" = set; then
59709   $as_echo_n "(cached) " >&6
59710 else
59711   cat >conftest.$ac_ext <<_ACEOF
59712 /* confdefs.h.  */
59713 _ACEOF
59714 cat confdefs.h >>conftest.$ac_ext
59715 cat >>conftest.$ac_ext <<_ACEOF
59716 /* end confdefs.h.  */
59717 #if defined CRAY && ! defined CRAY2
59718 webecray
59719 #else
59720 wenotbecray
59721 #endif
59722
59723 _ACEOF
59724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59725   $EGREP "webecray" >/dev/null 2>&1; then
59726   ac_cv_os_cray=yes
59727 else
59728   ac_cv_os_cray=no
59729 fi
59730 rm -f conftest*
59731
59732 fi
59733 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
59734 $as_echo "$ac_cv_os_cray" >&6; }
59735 if test $ac_cv_os_cray = yes; then
59736   for ac_func in _getb67 GETB67 getb67; do
59737     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59739 $as_echo_n "checking for $ac_func... " >&6; }
59740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59741   $as_echo_n "(cached) " >&6
59742 else
59743   cat >conftest.$ac_ext <<_ACEOF
59744 /* confdefs.h.  */
59745 _ACEOF
59746 cat confdefs.h >>conftest.$ac_ext
59747 cat >>conftest.$ac_ext <<_ACEOF
59748 /* end confdefs.h.  */
59749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59751 #define $ac_func innocuous_$ac_func
59752
59753 /* System header to define __stub macros and hopefully few prototypes,
59754     which can conflict with char $ac_func (); below.
59755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59756     <limits.h> exists even on freestanding compilers.  */
59757
59758 #ifdef __STDC__
59759 # include <limits.h>
59760 #else
59761 # include <assert.h>
59762 #endif
59763
59764 #undef $ac_func
59765
59766 /* Override any GCC internal prototype to avoid an error.
59767    Use char because int might match the return type of a GCC
59768    builtin and then its argument prototype would still apply.  */
59769 #ifdef __cplusplus
59770 extern "C"
59771 #endif
59772 char $ac_func ();
59773 /* The GNU C library defines this for functions which it implements
59774     to always fail with ENOSYS.  Some functions are actually named
59775     something starting with __ and the normal name is an alias.  */
59776 #if defined __stub_$ac_func || defined __stub___$ac_func
59777 choke me
59778 #endif
59779
59780 int
59781 main ()
59782 {
59783 return $ac_func ();
59784   ;
59785   return 0;
59786 }
59787 _ACEOF
59788 rm -f conftest.$ac_objext conftest$ac_exeext
59789 if { (ac_try="$ac_link"
59790 case "(($ac_try" in
59791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59792   *) ac_try_echo=$ac_try;;
59793 esac
59794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59795 $as_echo "$ac_try_echo") >&5
59796   (eval "$ac_link") 2>conftest.er1
59797   ac_status=$?
59798   grep -v '^ *+' conftest.er1 >conftest.err
59799   rm -f conftest.er1
59800   cat conftest.err >&5
59801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59802   (exit $ac_status); } && {
59803          test -z "$ac_c_werror_flag" ||
59804          test ! -s conftest.err
59805        } && test -s conftest$ac_exeext && {
59806          test "$cross_compiling" = yes ||
59807          $as_test_x conftest$ac_exeext
59808        }; then
59809   eval "$as_ac_var=yes"
59810 else
59811   $as_echo "$as_me: failed program was:" >&5
59812 sed 's/^/| /' conftest.$ac_ext >&5
59813
59814         eval "$as_ac_var=no"
59815 fi
59816
59817 rm -rf conftest.dSYM
59818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59819       conftest$ac_exeext conftest.$ac_ext
59820 fi
59821 ac_res=`eval 'as_val=${'$as_ac_var'}
59822                  $as_echo "$as_val"'`
59823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59824 $as_echo "$ac_res" >&6; }
59825 as_val=`eval 'as_val=${'$as_ac_var'}
59826                  $as_echo "$as_val"'`
59827    if test "x$as_val" = x""yes; then
59828
59829 cat >>confdefs.h <<_ACEOF
59830 #define CRAY_STACKSEG_END $ac_func
59831 _ACEOF
59832
59833     break
59834 fi
59835
59836   done
59837 fi
59838
59839 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
59840 $as_echo_n "checking stack direction for C alloca... " >&6; }
59841 if test "${ac_cv_c_stack_direction+set}" = set; then
59842   $as_echo_n "(cached) " >&6
59843 else
59844   if test "$cross_compiling" = yes; then
59845   ac_cv_c_stack_direction=0
59846 else
59847   cat >conftest.$ac_ext <<_ACEOF
59848 /* confdefs.h.  */
59849 _ACEOF
59850 cat confdefs.h >>conftest.$ac_ext
59851 cat >>conftest.$ac_ext <<_ACEOF
59852 /* end confdefs.h.  */
59853 $ac_includes_default
59854 int
59855 find_stack_direction ()
59856 {
59857   static char *addr = 0;
59858   auto char dummy;
59859   if (addr == 0)
59860     {
59861       addr = &dummy;
59862       return find_stack_direction ();
59863     }
59864   else
59865     return (&dummy > addr) ? 1 : -1;
59866 }
59867
59868 int
59869 main ()
59870 {
59871   return find_stack_direction () < 0;
59872 }
59873 _ACEOF
59874 rm -f conftest$ac_exeext
59875 if { (ac_try="$ac_link"
59876 case "(($ac_try" in
59877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59878   *) ac_try_echo=$ac_try;;
59879 esac
59880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59881 $as_echo "$ac_try_echo") >&5
59882   (eval "$ac_link") 2>&5
59883   ac_status=$?
59884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59886   { (case "(($ac_try" in
59887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59888   *) ac_try_echo=$ac_try;;
59889 esac
59890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59891 $as_echo "$ac_try_echo") >&5
59892   (eval "$ac_try") 2>&5
59893   ac_status=$?
59894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59895   (exit $ac_status); }; }; then
59896   ac_cv_c_stack_direction=1
59897 else
59898   $as_echo "$as_me: program exited with status $ac_status" >&5
59899 $as_echo "$as_me: failed program was:" >&5
59900 sed 's/^/| /' conftest.$ac_ext >&5
59901
59902 ( exit $ac_status )
59903 ac_cv_c_stack_direction=-1
59904 fi
59905 rm -rf conftest.dSYM
59906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59907 fi
59908
59909
59910 fi
59911 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
59912 $as_echo "$ac_cv_c_stack_direction" >&6; }
59913
59914 cat >>confdefs.h <<_ACEOF
59915 #define STACK_DIRECTION $ac_cv_c_stack_direction
59916 _ACEOF
59917
59918
59919 fi
59920
59921
59922 for ac_func in atexit
59923 do
59924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59925 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59926 $as_echo_n "checking for $ac_func... " >&6; }
59927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59928   $as_echo_n "(cached) " >&6
59929 else
59930   cat >conftest.$ac_ext <<_ACEOF
59931 /* confdefs.h.  */
59932 _ACEOF
59933 cat confdefs.h >>conftest.$ac_ext
59934 cat >>conftest.$ac_ext <<_ACEOF
59935 /* end confdefs.h.  */
59936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59938 #define $ac_func innocuous_$ac_func
59939
59940 /* System header to define __stub macros and hopefully few prototypes,
59941     which can conflict with char $ac_func (); below.
59942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59943     <limits.h> exists even on freestanding compilers.  */
59944
59945 #ifdef __STDC__
59946 # include <limits.h>
59947 #else
59948 # include <assert.h>
59949 #endif
59950
59951 #undef $ac_func
59952
59953 /* Override any GCC internal prototype to avoid an error.
59954    Use char because int might match the return type of a GCC
59955    builtin and then its argument prototype would still apply.  */
59956 #ifdef __cplusplus
59957 extern "C"
59958 #endif
59959 char $ac_func ();
59960 /* The GNU C library defines this for functions which it implements
59961     to always fail with ENOSYS.  Some functions are actually named
59962     something starting with __ and the normal name is an alias.  */
59963 #if defined __stub_$ac_func || defined __stub___$ac_func
59964 choke me
59965 #endif
59966
59967 int
59968 main ()
59969 {
59970 return $ac_func ();
59971   ;
59972   return 0;
59973 }
59974 _ACEOF
59975 rm -f conftest.$ac_objext conftest$ac_exeext
59976 if { (ac_try="$ac_link"
59977 case "(($ac_try" in
59978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59979   *) ac_try_echo=$ac_try;;
59980 esac
59981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59982 $as_echo "$ac_try_echo") >&5
59983   (eval "$ac_link") 2>conftest.er1
59984   ac_status=$?
59985   grep -v '^ *+' conftest.er1 >conftest.err
59986   rm -f conftest.er1
59987   cat conftest.err >&5
59988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59989   (exit $ac_status); } && {
59990          test -z "$ac_c_werror_flag" ||
59991          test ! -s conftest.err
59992        } && test -s conftest$ac_exeext && {
59993          test "$cross_compiling" = yes ||
59994          $as_test_x conftest$ac_exeext
59995        }; then
59996   eval "$as_ac_var=yes"
59997 else
59998   $as_echo "$as_me: failed program was:" >&5
59999 sed 's/^/| /' conftest.$ac_ext >&5
60000
60001         eval "$as_ac_var=no"
60002 fi
60003
60004 rm -rf conftest.dSYM
60005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60006       conftest$ac_exeext conftest.$ac_ext
60007 fi
60008 ac_res=`eval 'as_val=${'$as_ac_var'}
60009                  $as_echo "$as_val"'`
60010                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60011 $as_echo "$ac_res" >&6; }
60012 as_val=`eval 'as_val=${'$as_ac_var'}
60013                  $as_echo "$as_val"'`
60014    if test "x$as_val" = x""yes; then
60015   cat >>confdefs.h <<_ACEOF
60016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60017 _ACEOF
60018
60019 fi
60020 done
60021
60022
60023 ice_have_atof=no
60024
60025 for ac_func in atof
60026 do
60027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60028 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60029 $as_echo_n "checking for $ac_func... " >&6; }
60030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60031   $as_echo_n "(cached) " >&6
60032 else
60033   cat >conftest.$ac_ext <<_ACEOF
60034 /* confdefs.h.  */
60035 _ACEOF
60036 cat confdefs.h >>conftest.$ac_ext
60037 cat >>conftest.$ac_ext <<_ACEOF
60038 /* end confdefs.h.  */
60039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60041 #define $ac_func innocuous_$ac_func
60042
60043 /* System header to define __stub macros and hopefully few prototypes,
60044     which can conflict with char $ac_func (); below.
60045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60046     <limits.h> exists even on freestanding compilers.  */
60047
60048 #ifdef __STDC__
60049 # include <limits.h>
60050 #else
60051 # include <assert.h>
60052 #endif
60053
60054 #undef $ac_func
60055
60056 /* Override any GCC internal prototype to avoid an error.
60057    Use char because int might match the return type of a GCC
60058    builtin and then its argument prototype would still apply.  */
60059 #ifdef __cplusplus
60060 extern "C"
60061 #endif
60062 char $ac_func ();
60063 /* The GNU C library defines this for functions which it implements
60064     to always fail with ENOSYS.  Some functions are actually named
60065     something starting with __ and the normal name is an alias.  */
60066 #if defined __stub_$ac_func || defined __stub___$ac_func
60067 choke me
60068 #endif
60069
60070 int
60071 main ()
60072 {
60073 return $ac_func ();
60074   ;
60075   return 0;
60076 }
60077 _ACEOF
60078 rm -f conftest.$ac_objext conftest$ac_exeext
60079 if { (ac_try="$ac_link"
60080 case "(($ac_try" in
60081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60082   *) ac_try_echo=$ac_try;;
60083 esac
60084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60085 $as_echo "$ac_try_echo") >&5
60086   (eval "$ac_link") 2>conftest.er1
60087   ac_status=$?
60088   grep -v '^ *+' conftest.er1 >conftest.err
60089   rm -f conftest.er1
60090   cat conftest.err >&5
60091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60092   (exit $ac_status); } && {
60093          test -z "$ac_c_werror_flag" ||
60094          test ! -s conftest.err
60095        } && test -s conftest$ac_exeext && {
60096          test "$cross_compiling" = yes ||
60097          $as_test_x conftest$ac_exeext
60098        }; then
60099   eval "$as_ac_var=yes"
60100 else
60101   $as_echo "$as_me: failed program was:" >&5
60102 sed 's/^/| /' conftest.$ac_ext >&5
60103
60104         eval "$as_ac_var=no"
60105 fi
60106
60107 rm -rf conftest.dSYM
60108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60109       conftest$ac_exeext conftest.$ac_ext
60110 fi
60111 ac_res=`eval 'as_val=${'$as_ac_var'}
60112                  $as_echo "$as_val"'`
60113                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60114 $as_echo "$ac_res" >&6; }
60115 as_val=`eval 'as_val=${'$as_ac_var'}
60116                  $as_echo "$as_val"'`
60117    if test "x$as_val" = x""yes; then
60118   cat >>confdefs.h <<_ACEOF
60119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60120 _ACEOF
60121  ice_have_atof=yes
60122 fi
60123 done
60124
60125 if test "${ice_have_atof}" = yes; then
60126 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
60127 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
60128 if test "${ice_cv_have_atof_decl+set}" = set; then
60129   $as_echo_n "(cached) " >&6
60130 else
60131
60132 ice_cv_have_atof_decl=no
60133 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60134 ice_re_word='(^|[^a-zA-Z0-9_])'
60135 for header in stdlib.h; do
60136 # Check for ordinary declaration
60137 cat >conftest.$ac_ext <<_ACEOF
60138 /* confdefs.h.  */
60139 _ACEOF
60140 cat confdefs.h >>conftest.$ac_ext
60141 cat >>conftest.$ac_ext <<_ACEOF
60142 /* end confdefs.h.  */
60143 #include <$header>
60144
60145 _ACEOF
60146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60147   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
60148   ice_cv_have_atof_decl=yes
60149 fi
60150 rm -f conftest*
60151
60152 if test "$ice_cv_have_atof_decl" = yes; then
60153         break
60154 fi
60155 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60156 cat >conftest.$ac_ext <<_ACEOF
60157 /* confdefs.h.  */
60158 _ACEOF
60159 cat confdefs.h >>conftest.$ac_ext
60160 cat >>conftest.$ac_ext <<_ACEOF
60161 /* end confdefs.h.  */
60162 #include <$header>
60163
60164 _ACEOF
60165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60166   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60167   ice_cv_have_atof_decl=yes
60168 fi
60169 rm -f conftest*
60170
60171 if test "$ice_cv_have_atof_decl" = yes; then
60172         break
60173 fi
60174 done
60175
60176 fi
60177
60178 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
60179 $as_echo "$ice_cv_have_atof_decl" >&6; }
60180 if test "$ice_cv_have_atof_decl" = yes; then
60181
60182 cat >>confdefs.h <<_ACEOF
60183 #define HAVE_ATOF_DECL 1
60184 _ACEOF
60185
60186 fi
60187 fi
60188
60189
60190 ice_have_atol=no
60191
60192 for ac_func in atol
60193 do
60194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60196 $as_echo_n "checking for $ac_func... " >&6; }
60197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60198   $as_echo_n "(cached) " >&6
60199 else
60200   cat >conftest.$ac_ext <<_ACEOF
60201 /* confdefs.h.  */
60202 _ACEOF
60203 cat confdefs.h >>conftest.$ac_ext
60204 cat >>conftest.$ac_ext <<_ACEOF
60205 /* end confdefs.h.  */
60206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60208 #define $ac_func innocuous_$ac_func
60209
60210 /* System header to define __stub macros and hopefully few prototypes,
60211     which can conflict with char $ac_func (); below.
60212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60213     <limits.h> exists even on freestanding compilers.  */
60214
60215 #ifdef __STDC__
60216 # include <limits.h>
60217 #else
60218 # include <assert.h>
60219 #endif
60220
60221 #undef $ac_func
60222
60223 /* Override any GCC internal prototype to avoid an error.
60224    Use char because int might match the return type of a GCC
60225    builtin and then its argument prototype would still apply.  */
60226 #ifdef __cplusplus
60227 extern "C"
60228 #endif
60229 char $ac_func ();
60230 /* The GNU C library defines this for functions which it implements
60231     to always fail with ENOSYS.  Some functions are actually named
60232     something starting with __ and the normal name is an alias.  */
60233 #if defined __stub_$ac_func || defined __stub___$ac_func
60234 choke me
60235 #endif
60236
60237 int
60238 main ()
60239 {
60240 return $ac_func ();
60241   ;
60242   return 0;
60243 }
60244 _ACEOF
60245 rm -f conftest.$ac_objext conftest$ac_exeext
60246 if { (ac_try="$ac_link"
60247 case "(($ac_try" in
60248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60249   *) ac_try_echo=$ac_try;;
60250 esac
60251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60252 $as_echo "$ac_try_echo") >&5
60253   (eval "$ac_link") 2>conftest.er1
60254   ac_status=$?
60255   grep -v '^ *+' conftest.er1 >conftest.err
60256   rm -f conftest.er1
60257   cat conftest.err >&5
60258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60259   (exit $ac_status); } && {
60260          test -z "$ac_c_werror_flag" ||
60261          test ! -s conftest.err
60262        } && test -s conftest$ac_exeext && {
60263          test "$cross_compiling" = yes ||
60264          $as_test_x conftest$ac_exeext
60265        }; then
60266   eval "$as_ac_var=yes"
60267 else
60268   $as_echo "$as_me: failed program was:" >&5
60269 sed 's/^/| /' conftest.$ac_ext >&5
60270
60271         eval "$as_ac_var=no"
60272 fi
60273
60274 rm -rf conftest.dSYM
60275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60276       conftest$ac_exeext conftest.$ac_ext
60277 fi
60278 ac_res=`eval 'as_val=${'$as_ac_var'}
60279                  $as_echo "$as_val"'`
60280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60281 $as_echo "$ac_res" >&6; }
60282 as_val=`eval 'as_val=${'$as_ac_var'}
60283                  $as_echo "$as_val"'`
60284    if test "x$as_val" = x""yes; then
60285   cat >>confdefs.h <<_ACEOF
60286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60287 _ACEOF
60288  ice_have_atol=yes
60289 fi
60290 done
60291
60292 if test "${ice_have_atol}" = yes; then
60293 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
60294 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
60295 if test "${ice_cv_have_atol_decl+set}" = set; then
60296   $as_echo_n "(cached) " >&6
60297 else
60298
60299 ice_cv_have_atol_decl=no
60300 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60301 ice_re_word='(^|[^a-zA-Z0-9_])'
60302 for header in stdlib.h; do
60303 # Check for ordinary declaration
60304 cat >conftest.$ac_ext <<_ACEOF
60305 /* confdefs.h.  */
60306 _ACEOF
60307 cat confdefs.h >>conftest.$ac_ext
60308 cat >>conftest.$ac_ext <<_ACEOF
60309 /* end confdefs.h.  */
60310 #include <$header>
60311
60312 _ACEOF
60313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60314   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
60315   ice_cv_have_atol_decl=yes
60316 fi
60317 rm -f conftest*
60318
60319 if test "$ice_cv_have_atol_decl" = yes; then
60320         break
60321 fi
60322 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60323 cat >conftest.$ac_ext <<_ACEOF
60324 /* confdefs.h.  */
60325 _ACEOF
60326 cat confdefs.h >>conftest.$ac_ext
60327 cat >>conftest.$ac_ext <<_ACEOF
60328 /* end confdefs.h.  */
60329 #include <$header>
60330
60331 _ACEOF
60332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60333   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60334   ice_cv_have_atol_decl=yes
60335 fi
60336 rm -f conftest*
60337
60338 if test "$ice_cv_have_atol_decl" = yes; then
60339         break
60340 fi
60341 done
60342
60343 fi
60344
60345 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
60346 $as_echo "$ice_cv_have_atol_decl" >&6; }
60347 if test "$ice_cv_have_atol_decl" = yes; then
60348
60349 cat >>confdefs.h <<_ACEOF
60350 #define HAVE_ATOL_DECL 1
60351 _ACEOF
60352
60353 fi
60354 fi
60355
60356
60357 ice_have_atoll=no
60358
60359 for ac_func in atoll
60360 do
60361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60362 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60363 $as_echo_n "checking for $ac_func... " >&6; }
60364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60365   $as_echo_n "(cached) " >&6
60366 else
60367   cat >conftest.$ac_ext <<_ACEOF
60368 /* confdefs.h.  */
60369 _ACEOF
60370 cat confdefs.h >>conftest.$ac_ext
60371 cat >>conftest.$ac_ext <<_ACEOF
60372 /* end confdefs.h.  */
60373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60375 #define $ac_func innocuous_$ac_func
60376
60377 /* System header to define __stub macros and hopefully few prototypes,
60378     which can conflict with char $ac_func (); below.
60379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60380     <limits.h> exists even on freestanding compilers.  */
60381
60382 #ifdef __STDC__
60383 # include <limits.h>
60384 #else
60385 # include <assert.h>
60386 #endif
60387
60388 #undef $ac_func
60389
60390 /* Override any GCC internal prototype to avoid an error.
60391    Use char because int might match the return type of a GCC
60392    builtin and then its argument prototype would still apply.  */
60393 #ifdef __cplusplus
60394 extern "C"
60395 #endif
60396 char $ac_func ();
60397 /* The GNU C library defines this for functions which it implements
60398     to always fail with ENOSYS.  Some functions are actually named
60399     something starting with __ and the normal name is an alias.  */
60400 #if defined __stub_$ac_func || defined __stub___$ac_func
60401 choke me
60402 #endif
60403
60404 int
60405 main ()
60406 {
60407 return $ac_func ();
60408   ;
60409   return 0;
60410 }
60411 _ACEOF
60412 rm -f conftest.$ac_objext conftest$ac_exeext
60413 if { (ac_try="$ac_link"
60414 case "(($ac_try" in
60415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60416   *) ac_try_echo=$ac_try;;
60417 esac
60418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60419 $as_echo "$ac_try_echo") >&5
60420   (eval "$ac_link") 2>conftest.er1
60421   ac_status=$?
60422   grep -v '^ *+' conftest.er1 >conftest.err
60423   rm -f conftest.er1
60424   cat conftest.err >&5
60425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60426   (exit $ac_status); } && {
60427          test -z "$ac_c_werror_flag" ||
60428          test ! -s conftest.err
60429        } && test -s conftest$ac_exeext && {
60430          test "$cross_compiling" = yes ||
60431          $as_test_x conftest$ac_exeext
60432        }; then
60433   eval "$as_ac_var=yes"
60434 else
60435   $as_echo "$as_me: failed program was:" >&5
60436 sed 's/^/| /' conftest.$ac_ext >&5
60437
60438         eval "$as_ac_var=no"
60439 fi
60440
60441 rm -rf conftest.dSYM
60442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60443       conftest$ac_exeext conftest.$ac_ext
60444 fi
60445 ac_res=`eval 'as_val=${'$as_ac_var'}
60446                  $as_echo "$as_val"'`
60447                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60448 $as_echo "$ac_res" >&6; }
60449 as_val=`eval 'as_val=${'$as_ac_var'}
60450                  $as_echo "$as_val"'`
60451    if test "x$as_val" = x""yes; then
60452   cat >>confdefs.h <<_ACEOF
60453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60454 _ACEOF
60455  ice_have_atoll=yes
60456 fi
60457 done
60458
60459 if test "${ice_have_atoll}" = yes; then
60460 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
60461 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
60462 if test "${ice_cv_have_atoll_decl+set}" = set; then
60463   $as_echo_n "(cached) " >&6
60464 else
60465
60466 ice_cv_have_atoll_decl=no
60467 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60468 ice_re_word='(^|[^a-zA-Z0-9_])'
60469 for header in stdlib.h; do
60470 # Check for ordinary declaration
60471 cat >conftest.$ac_ext <<_ACEOF
60472 /* confdefs.h.  */
60473 _ACEOF
60474 cat confdefs.h >>conftest.$ac_ext
60475 cat >>conftest.$ac_ext <<_ACEOF
60476 /* end confdefs.h.  */
60477 #include <$header>
60478
60479 _ACEOF
60480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60481   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
60482   ice_cv_have_atoll_decl=yes
60483 fi
60484 rm -f conftest*
60485
60486 if test "$ice_cv_have_atoll_decl" = yes; then
60487         break
60488 fi
60489 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60490 cat >conftest.$ac_ext <<_ACEOF
60491 /* confdefs.h.  */
60492 _ACEOF
60493 cat confdefs.h >>conftest.$ac_ext
60494 cat >>conftest.$ac_ext <<_ACEOF
60495 /* end confdefs.h.  */
60496 #include <$header>
60497
60498 _ACEOF
60499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60500   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60501   ice_cv_have_atoll_decl=yes
60502 fi
60503 rm -f conftest*
60504
60505 if test "$ice_cv_have_atoll_decl" = yes; then
60506         break
60507 fi
60508 done
60509
60510 fi
60511
60512 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
60513 $as_echo "$ice_cv_have_atoll_decl" >&6; }
60514 if test "$ice_cv_have_atoll_decl" = yes; then
60515
60516 cat >>confdefs.h <<_ACEOF
60517 #define HAVE_ATOLL_DECL 1
60518 _ACEOF
60519
60520 fi
60521 fi
60522
60523
60524 ice_have_strtol=no
60525
60526 for ac_func in strtol
60527 do
60528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60530 $as_echo_n "checking for $ac_func... " >&6; }
60531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60532   $as_echo_n "(cached) " >&6
60533 else
60534   cat >conftest.$ac_ext <<_ACEOF
60535 /* confdefs.h.  */
60536 _ACEOF
60537 cat confdefs.h >>conftest.$ac_ext
60538 cat >>conftest.$ac_ext <<_ACEOF
60539 /* end confdefs.h.  */
60540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60542 #define $ac_func innocuous_$ac_func
60543
60544 /* System header to define __stub macros and hopefully few prototypes,
60545     which can conflict with char $ac_func (); below.
60546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60547     <limits.h> exists even on freestanding compilers.  */
60548
60549 #ifdef __STDC__
60550 # include <limits.h>
60551 #else
60552 # include <assert.h>
60553 #endif
60554
60555 #undef $ac_func
60556
60557 /* Override any GCC internal prototype to avoid an error.
60558    Use char because int might match the return type of a GCC
60559    builtin and then its argument prototype would still apply.  */
60560 #ifdef __cplusplus
60561 extern "C"
60562 #endif
60563 char $ac_func ();
60564 /* The GNU C library defines this for functions which it implements
60565     to always fail with ENOSYS.  Some functions are actually named
60566     something starting with __ and the normal name is an alias.  */
60567 #if defined __stub_$ac_func || defined __stub___$ac_func
60568 choke me
60569 #endif
60570
60571 int
60572 main ()
60573 {
60574 return $ac_func ();
60575   ;
60576   return 0;
60577 }
60578 _ACEOF
60579 rm -f conftest.$ac_objext conftest$ac_exeext
60580 if { (ac_try="$ac_link"
60581 case "(($ac_try" in
60582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60583   *) ac_try_echo=$ac_try;;
60584 esac
60585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60586 $as_echo "$ac_try_echo") >&5
60587   (eval "$ac_link") 2>conftest.er1
60588   ac_status=$?
60589   grep -v '^ *+' conftest.er1 >conftest.err
60590   rm -f conftest.er1
60591   cat conftest.err >&5
60592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60593   (exit $ac_status); } && {
60594          test -z "$ac_c_werror_flag" ||
60595          test ! -s conftest.err
60596        } && test -s conftest$ac_exeext && {
60597          test "$cross_compiling" = yes ||
60598          $as_test_x conftest$ac_exeext
60599        }; then
60600   eval "$as_ac_var=yes"
60601 else
60602   $as_echo "$as_me: failed program was:" >&5
60603 sed 's/^/| /' conftest.$ac_ext >&5
60604
60605         eval "$as_ac_var=no"
60606 fi
60607
60608 rm -rf conftest.dSYM
60609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60610       conftest$ac_exeext conftest.$ac_ext
60611 fi
60612 ac_res=`eval 'as_val=${'$as_ac_var'}
60613                  $as_echo "$as_val"'`
60614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60615 $as_echo "$ac_res" >&6; }
60616 as_val=`eval 'as_val=${'$as_ac_var'}
60617                  $as_echo "$as_val"'`
60618    if test "x$as_val" = x""yes; then
60619   cat >>confdefs.h <<_ACEOF
60620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60621 _ACEOF
60622  ice_have_strtol=yes
60623 fi
60624 done
60625
60626 if test "${ice_have_strtol}" = yes; then
60627 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
60628 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
60629 if test "${ice_cv_have_strtol_decl+set}" = set; then
60630   $as_echo_n "(cached) " >&6
60631 else
60632
60633 ice_cv_have_strtol_decl=no
60634 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60635 ice_re_word='(^|[^a-zA-Z0-9_])'
60636 for header in stdlib.h; do
60637 # Check for ordinary declaration
60638 cat >conftest.$ac_ext <<_ACEOF
60639 /* confdefs.h.  */
60640 _ACEOF
60641 cat confdefs.h >>conftest.$ac_ext
60642 cat >>conftest.$ac_ext <<_ACEOF
60643 /* end confdefs.h.  */
60644 #include <$header>
60645
60646 _ACEOF
60647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60648   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
60649   ice_cv_have_strtol_decl=yes
60650 fi
60651 rm -f conftest*
60652
60653 if test "$ice_cv_have_strtol_decl" = yes; then
60654         break
60655 fi
60656 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60657 cat >conftest.$ac_ext <<_ACEOF
60658 /* confdefs.h.  */
60659 _ACEOF
60660 cat confdefs.h >>conftest.$ac_ext
60661 cat >>conftest.$ac_ext <<_ACEOF
60662 /* end confdefs.h.  */
60663 #include <$header>
60664
60665 _ACEOF
60666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60667   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60668   ice_cv_have_strtol_decl=yes
60669 fi
60670 rm -f conftest*
60671
60672 if test "$ice_cv_have_strtol_decl" = yes; then
60673         break
60674 fi
60675 done
60676
60677 fi
60678
60679 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
60680 $as_echo "$ice_cv_have_strtol_decl" >&6; }
60681 if test "$ice_cv_have_strtol_decl" = yes; then
60682
60683 cat >>confdefs.h <<_ACEOF
60684 #define HAVE_STRTOL_DECL 1
60685 _ACEOF
60686
60687 fi
60688 fi
60689
60690
60691 ice_have_strtoll=no
60692
60693 for ac_func in strtoll
60694 do
60695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60696 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60697 $as_echo_n "checking for $ac_func... " >&6; }
60698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60699   $as_echo_n "(cached) " >&6
60700 else
60701   cat >conftest.$ac_ext <<_ACEOF
60702 /* confdefs.h.  */
60703 _ACEOF
60704 cat confdefs.h >>conftest.$ac_ext
60705 cat >>conftest.$ac_ext <<_ACEOF
60706 /* end confdefs.h.  */
60707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60709 #define $ac_func innocuous_$ac_func
60710
60711 /* System header to define __stub macros and hopefully few prototypes,
60712     which can conflict with char $ac_func (); below.
60713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60714     <limits.h> exists even on freestanding compilers.  */
60715
60716 #ifdef __STDC__
60717 # include <limits.h>
60718 #else
60719 # include <assert.h>
60720 #endif
60721
60722 #undef $ac_func
60723
60724 /* Override any GCC internal prototype to avoid an error.
60725    Use char because int might match the return type of a GCC
60726    builtin and then its argument prototype would still apply.  */
60727 #ifdef __cplusplus
60728 extern "C"
60729 #endif
60730 char $ac_func ();
60731 /* The GNU C library defines this for functions which it implements
60732     to always fail with ENOSYS.  Some functions are actually named
60733     something starting with __ and the normal name is an alias.  */
60734 #if defined __stub_$ac_func || defined __stub___$ac_func
60735 choke me
60736 #endif
60737
60738 int
60739 main ()
60740 {
60741 return $ac_func ();
60742   ;
60743   return 0;
60744 }
60745 _ACEOF
60746 rm -f conftest.$ac_objext conftest$ac_exeext
60747 if { (ac_try="$ac_link"
60748 case "(($ac_try" in
60749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60750   *) ac_try_echo=$ac_try;;
60751 esac
60752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60753 $as_echo "$ac_try_echo") >&5
60754   (eval "$ac_link") 2>conftest.er1
60755   ac_status=$?
60756   grep -v '^ *+' conftest.er1 >conftest.err
60757   rm -f conftest.er1
60758   cat conftest.err >&5
60759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60760   (exit $ac_status); } && {
60761          test -z "$ac_c_werror_flag" ||
60762          test ! -s conftest.err
60763        } && test -s conftest$ac_exeext && {
60764          test "$cross_compiling" = yes ||
60765          $as_test_x conftest$ac_exeext
60766        }; then
60767   eval "$as_ac_var=yes"
60768 else
60769   $as_echo "$as_me: failed program was:" >&5
60770 sed 's/^/| /' conftest.$ac_ext >&5
60771
60772         eval "$as_ac_var=no"
60773 fi
60774
60775 rm -rf conftest.dSYM
60776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60777       conftest$ac_exeext conftest.$ac_ext
60778 fi
60779 ac_res=`eval 'as_val=${'$as_ac_var'}
60780                  $as_echo "$as_val"'`
60781                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60782 $as_echo "$ac_res" >&6; }
60783 as_val=`eval 'as_val=${'$as_ac_var'}
60784                  $as_echo "$as_val"'`
60785    if test "x$as_val" = x""yes; then
60786   cat >>confdefs.h <<_ACEOF
60787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60788 _ACEOF
60789  ice_have_strtoll=yes
60790 fi
60791 done
60792
60793 if test "${ice_have_strtoll}" = yes; then
60794 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
60795 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
60796 if test "${ice_cv_have_strtoll_decl+set}" = set; then
60797   $as_echo_n "(cached) " >&6
60798 else
60799
60800 ice_cv_have_strtoll_decl=no
60801 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60802 ice_re_word='(^|[^a-zA-Z0-9_])'
60803 for header in stdlib.h; do
60804 # Check for ordinary declaration
60805 cat >conftest.$ac_ext <<_ACEOF
60806 /* confdefs.h.  */
60807 _ACEOF
60808 cat confdefs.h >>conftest.$ac_ext
60809 cat >>conftest.$ac_ext <<_ACEOF
60810 /* end confdefs.h.  */
60811 #include <$header>
60812
60813 _ACEOF
60814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60815   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
60816   ice_cv_have_strtoll_decl=yes
60817 fi
60818 rm -f conftest*
60819
60820 if test "$ice_cv_have_strtoll_decl" = yes; then
60821         break
60822 fi
60823 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60824 cat >conftest.$ac_ext <<_ACEOF
60825 /* confdefs.h.  */
60826 _ACEOF
60827 cat confdefs.h >>conftest.$ac_ext
60828 cat >>conftest.$ac_ext <<_ACEOF
60829 /* end confdefs.h.  */
60830 #include <$header>
60831
60832 _ACEOF
60833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60834   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60835   ice_cv_have_strtoll_decl=yes
60836 fi
60837 rm -f conftest*
60838
60839 if test "$ice_cv_have_strtoll_decl" = yes; then
60840         break
60841 fi
60842 done
60843
60844 fi
60845
60846 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
60847 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
60848 if test "$ice_cv_have_strtoll_decl" = yes; then
60849
60850 cat >>confdefs.h <<_ACEOF
60851 #define HAVE_STRTOLL_DECL 1
60852 _ACEOF
60853
60854 fi
60855 fi
60856
60857
60858 for ac_func in basename
60859 do
60860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60861 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60862 $as_echo_n "checking for $ac_func... " >&6; }
60863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60864   $as_echo_n "(cached) " >&6
60865 else
60866   cat >conftest.$ac_ext <<_ACEOF
60867 /* confdefs.h.  */
60868 _ACEOF
60869 cat confdefs.h >>conftest.$ac_ext
60870 cat >>conftest.$ac_ext <<_ACEOF
60871 /* end confdefs.h.  */
60872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60874 #define $ac_func innocuous_$ac_func
60875
60876 /* System header to define __stub macros and hopefully few prototypes,
60877     which can conflict with char $ac_func (); below.
60878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60879     <limits.h> exists even on freestanding compilers.  */
60880
60881 #ifdef __STDC__
60882 # include <limits.h>
60883 #else
60884 # include <assert.h>
60885 #endif
60886
60887 #undef $ac_func
60888
60889 /* Override any GCC internal prototype to avoid an error.
60890    Use char because int might match the return type of a GCC
60891    builtin and then its argument prototype would still apply.  */
60892 #ifdef __cplusplus
60893 extern "C"
60894 #endif
60895 char $ac_func ();
60896 /* The GNU C library defines this for functions which it implements
60897     to always fail with ENOSYS.  Some functions are actually named
60898     something starting with __ and the normal name is an alias.  */
60899 #if defined __stub_$ac_func || defined __stub___$ac_func
60900 choke me
60901 #endif
60902
60903 int
60904 main ()
60905 {
60906 return $ac_func ();
60907   ;
60908   return 0;
60909 }
60910 _ACEOF
60911 rm -f conftest.$ac_objext conftest$ac_exeext
60912 if { (ac_try="$ac_link"
60913 case "(($ac_try" in
60914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60915   *) ac_try_echo=$ac_try;;
60916 esac
60917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60918 $as_echo "$ac_try_echo") >&5
60919   (eval "$ac_link") 2>conftest.er1
60920   ac_status=$?
60921   grep -v '^ *+' conftest.er1 >conftest.err
60922   rm -f conftest.er1
60923   cat conftest.err >&5
60924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60925   (exit $ac_status); } && {
60926          test -z "$ac_c_werror_flag" ||
60927          test ! -s conftest.err
60928        } && test -s conftest$ac_exeext && {
60929          test "$cross_compiling" = yes ||
60930          $as_test_x conftest$ac_exeext
60931        }; then
60932   eval "$as_ac_var=yes"
60933 else
60934   $as_echo "$as_me: failed program was:" >&5
60935 sed 's/^/| /' conftest.$ac_ext >&5
60936
60937         eval "$as_ac_var=no"
60938 fi
60939
60940 rm -rf conftest.dSYM
60941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60942       conftest$ac_exeext conftest.$ac_ext
60943 fi
60944 ac_res=`eval 'as_val=${'$as_ac_var'}
60945                  $as_echo "$as_val"'`
60946                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60947 $as_echo "$ac_res" >&6; }
60948 as_val=`eval 'as_val=${'$as_ac_var'}
60949                  $as_echo "$as_val"'`
60950    if test "x$as_val" = x""yes; then
60951   cat >>confdefs.h <<_ACEOF
60952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60953 _ACEOF
60954
60955 fi
60956 done
60957
60958
60959 ice_have_bind=no
60960
60961 for ac_func in bind
60962 do
60963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60964 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60965 $as_echo_n "checking for $ac_func... " >&6; }
60966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60967   $as_echo_n "(cached) " >&6
60968 else
60969   cat >conftest.$ac_ext <<_ACEOF
60970 /* confdefs.h.  */
60971 _ACEOF
60972 cat confdefs.h >>conftest.$ac_ext
60973 cat >>conftest.$ac_ext <<_ACEOF
60974 /* end confdefs.h.  */
60975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60977 #define $ac_func innocuous_$ac_func
60978
60979 /* System header to define __stub macros and hopefully few prototypes,
60980     which can conflict with char $ac_func (); below.
60981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60982     <limits.h> exists even on freestanding compilers.  */
60983
60984 #ifdef __STDC__
60985 # include <limits.h>
60986 #else
60987 # include <assert.h>
60988 #endif
60989
60990 #undef $ac_func
60991
60992 /* Override any GCC internal prototype to avoid an error.
60993    Use char because int might match the return type of a GCC
60994    builtin and then its argument prototype would still apply.  */
60995 #ifdef __cplusplus
60996 extern "C"
60997 #endif
60998 char $ac_func ();
60999 /* The GNU C library defines this for functions which it implements
61000     to always fail with ENOSYS.  Some functions are actually named
61001     something starting with __ and the normal name is an alias.  */
61002 #if defined __stub_$ac_func || defined __stub___$ac_func
61003 choke me
61004 #endif
61005
61006 int
61007 main ()
61008 {
61009 return $ac_func ();
61010   ;
61011   return 0;
61012 }
61013 _ACEOF
61014 rm -f conftest.$ac_objext conftest$ac_exeext
61015 if { (ac_try="$ac_link"
61016 case "(($ac_try" in
61017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61018   *) ac_try_echo=$ac_try;;
61019 esac
61020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61021 $as_echo "$ac_try_echo") >&5
61022   (eval "$ac_link") 2>conftest.er1
61023   ac_status=$?
61024   grep -v '^ *+' conftest.er1 >conftest.err
61025   rm -f conftest.er1
61026   cat conftest.err >&5
61027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61028   (exit $ac_status); } && {
61029          test -z "$ac_c_werror_flag" ||
61030          test ! -s conftest.err
61031        } && test -s conftest$ac_exeext && {
61032          test "$cross_compiling" = yes ||
61033          $as_test_x conftest$ac_exeext
61034        }; then
61035   eval "$as_ac_var=yes"
61036 else
61037   $as_echo "$as_me: failed program was:" >&5
61038 sed 's/^/| /' conftest.$ac_ext >&5
61039
61040         eval "$as_ac_var=no"
61041 fi
61042
61043 rm -rf conftest.dSYM
61044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61045       conftest$ac_exeext conftest.$ac_ext
61046 fi
61047 ac_res=`eval 'as_val=${'$as_ac_var'}
61048                  $as_echo "$as_val"'`
61049                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61050 $as_echo "$ac_res" >&6; }
61051 as_val=`eval 'as_val=${'$as_ac_var'}
61052                  $as_echo "$as_val"'`
61053    if test "x$as_val" = x""yes; then
61054   cat >>confdefs.h <<_ACEOF
61055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61056 _ACEOF
61057  ice_have_bind=yes
61058 fi
61059 done
61060
61061 if test "${ice_have_bind}" = yes; then
61062 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
61063 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
61064 if test "${ice_cv_have_bind_decl+set}" = set; then
61065   $as_echo_n "(cached) " >&6
61066 else
61067
61068 ice_cv_have_bind_decl=no
61069 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61070 ice_re_word='(^|[^a-zA-Z0-9_])'
61071 for header in sys/types.h sys/socket.h; do
61072 # Check for ordinary declaration
61073 cat >conftest.$ac_ext <<_ACEOF
61074 /* confdefs.h.  */
61075 _ACEOF
61076 cat confdefs.h >>conftest.$ac_ext
61077 cat >>conftest.$ac_ext <<_ACEOF
61078 /* end confdefs.h.  */
61079 #include <$header>
61080
61081 _ACEOF
61082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61083   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
61084   ice_cv_have_bind_decl=yes
61085 fi
61086 rm -f conftest*
61087
61088 if test "$ice_cv_have_bind_decl" = yes; then
61089         break
61090 fi
61091 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61092 cat >conftest.$ac_ext <<_ACEOF
61093 /* confdefs.h.  */
61094 _ACEOF
61095 cat confdefs.h >>conftest.$ac_ext
61096 cat >>conftest.$ac_ext <<_ACEOF
61097 /* end confdefs.h.  */
61098 #include <$header>
61099
61100 _ACEOF
61101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61102   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61103   ice_cv_have_bind_decl=yes
61104 fi
61105 rm -f conftest*
61106
61107 if test "$ice_cv_have_bind_decl" = yes; then
61108         break
61109 fi
61110 done
61111
61112 fi
61113
61114 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
61115 $as_echo "$ice_cv_have_bind_decl" >&6; }
61116 if test "$ice_cv_have_bind_decl" = yes; then
61117
61118 cat >>confdefs.h <<_ACEOF
61119 #define HAVE_BIND_DECL 1
61120 _ACEOF
61121
61122 fi
61123 fi
61124
61125
61126 ice_have_bcopy=no
61127
61128 for ac_func in bcopy
61129 do
61130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61132 $as_echo_n "checking for $ac_func... " >&6; }
61133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61134   $as_echo_n "(cached) " >&6
61135 else
61136   cat >conftest.$ac_ext <<_ACEOF
61137 /* confdefs.h.  */
61138 _ACEOF
61139 cat confdefs.h >>conftest.$ac_ext
61140 cat >>conftest.$ac_ext <<_ACEOF
61141 /* end confdefs.h.  */
61142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61144 #define $ac_func innocuous_$ac_func
61145
61146 /* System header to define __stub macros and hopefully few prototypes,
61147     which can conflict with char $ac_func (); below.
61148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61149     <limits.h> exists even on freestanding compilers.  */
61150
61151 #ifdef __STDC__
61152 # include <limits.h>
61153 #else
61154 # include <assert.h>
61155 #endif
61156
61157 #undef $ac_func
61158
61159 /* Override any GCC internal prototype to avoid an error.
61160    Use char because int might match the return type of a GCC
61161    builtin and then its argument prototype would still apply.  */
61162 #ifdef __cplusplus
61163 extern "C"
61164 #endif
61165 char $ac_func ();
61166 /* The GNU C library defines this for functions which it implements
61167     to always fail with ENOSYS.  Some functions are actually named
61168     something starting with __ and the normal name is an alias.  */
61169 #if defined __stub_$ac_func || defined __stub___$ac_func
61170 choke me
61171 #endif
61172
61173 int
61174 main ()
61175 {
61176 return $ac_func ();
61177   ;
61178   return 0;
61179 }
61180 _ACEOF
61181 rm -f conftest.$ac_objext conftest$ac_exeext
61182 if { (ac_try="$ac_link"
61183 case "(($ac_try" in
61184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61185   *) ac_try_echo=$ac_try;;
61186 esac
61187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61188 $as_echo "$ac_try_echo") >&5
61189   (eval "$ac_link") 2>conftest.er1
61190   ac_status=$?
61191   grep -v '^ *+' conftest.er1 >conftest.err
61192   rm -f conftest.er1
61193   cat conftest.err >&5
61194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61195   (exit $ac_status); } && {
61196          test -z "$ac_c_werror_flag" ||
61197          test ! -s conftest.err
61198        } && test -s conftest$ac_exeext && {
61199          test "$cross_compiling" = yes ||
61200          $as_test_x conftest$ac_exeext
61201        }; then
61202   eval "$as_ac_var=yes"
61203 else
61204   $as_echo "$as_me: failed program was:" >&5
61205 sed 's/^/| /' conftest.$ac_ext >&5
61206
61207         eval "$as_ac_var=no"
61208 fi
61209
61210 rm -rf conftest.dSYM
61211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61212       conftest$ac_exeext conftest.$ac_ext
61213 fi
61214 ac_res=`eval 'as_val=${'$as_ac_var'}
61215                  $as_echo "$as_val"'`
61216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61217 $as_echo "$ac_res" >&6; }
61218 as_val=`eval 'as_val=${'$as_ac_var'}
61219                  $as_echo "$as_val"'`
61220    if test "x$as_val" = x""yes; then
61221   cat >>confdefs.h <<_ACEOF
61222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61223 _ACEOF
61224  ice_have_bcopy=yes
61225 fi
61226 done
61227
61228 if test "${ice_have_bcopy}" = yes; then
61229 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
61230 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
61231 if test "${ice_cv_have_bcopy_decl+set}" = set; then
61232   $as_echo_n "(cached) " >&6
61233 else
61234
61235 ice_cv_have_bcopy_decl=no
61236 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61237 ice_re_word='(^|[^a-zA-Z0-9_])'
61238 for header in string.h strings.h stdlib.h; do
61239 # Check for ordinary declaration
61240 cat >conftest.$ac_ext <<_ACEOF
61241 /* confdefs.h.  */
61242 _ACEOF
61243 cat confdefs.h >>conftest.$ac_ext
61244 cat >>conftest.$ac_ext <<_ACEOF
61245 /* end confdefs.h.  */
61246 #include <$header>
61247
61248 _ACEOF
61249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61250   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
61251   ice_cv_have_bcopy_decl=yes
61252 fi
61253 rm -f conftest*
61254
61255 if test "$ice_cv_have_bcopy_decl" = yes; then
61256         break
61257 fi
61258 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61259 cat >conftest.$ac_ext <<_ACEOF
61260 /* confdefs.h.  */
61261 _ACEOF
61262 cat confdefs.h >>conftest.$ac_ext
61263 cat >>conftest.$ac_ext <<_ACEOF
61264 /* end confdefs.h.  */
61265 #include <$header>
61266
61267 _ACEOF
61268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61269   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61270   ice_cv_have_bcopy_decl=yes
61271 fi
61272 rm -f conftest*
61273
61274 if test "$ice_cv_have_bcopy_decl" = yes; then
61275         break
61276 fi
61277 done
61278
61279 fi
61280
61281 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
61282 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
61283 if test "$ice_cv_have_bcopy_decl" = yes; then
61284
61285 cat >>confdefs.h <<_ACEOF
61286 #define HAVE_BCOPY_DECL 1
61287 _ACEOF
61288
61289 fi
61290 fi
61291
61292
61293 ice_have_bzero=no
61294
61295 for ac_func in bzero
61296 do
61297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61299 $as_echo_n "checking for $ac_func... " >&6; }
61300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61301   $as_echo_n "(cached) " >&6
61302 else
61303   cat >conftest.$ac_ext <<_ACEOF
61304 /* confdefs.h.  */
61305 _ACEOF
61306 cat confdefs.h >>conftest.$ac_ext
61307 cat >>conftest.$ac_ext <<_ACEOF
61308 /* end confdefs.h.  */
61309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61311 #define $ac_func innocuous_$ac_func
61312
61313 /* System header to define __stub macros and hopefully few prototypes,
61314     which can conflict with char $ac_func (); below.
61315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61316     <limits.h> exists even on freestanding compilers.  */
61317
61318 #ifdef __STDC__
61319 # include <limits.h>
61320 #else
61321 # include <assert.h>
61322 #endif
61323
61324 #undef $ac_func
61325
61326 /* Override any GCC internal prototype to avoid an error.
61327    Use char because int might match the return type of a GCC
61328    builtin and then its argument prototype would still apply.  */
61329 #ifdef __cplusplus
61330 extern "C"
61331 #endif
61332 char $ac_func ();
61333 /* The GNU C library defines this for functions which it implements
61334     to always fail with ENOSYS.  Some functions are actually named
61335     something starting with __ and the normal name is an alias.  */
61336 #if defined __stub_$ac_func || defined __stub___$ac_func
61337 choke me
61338 #endif
61339
61340 int
61341 main ()
61342 {
61343 return $ac_func ();
61344   ;
61345   return 0;
61346 }
61347 _ACEOF
61348 rm -f conftest.$ac_objext conftest$ac_exeext
61349 if { (ac_try="$ac_link"
61350 case "(($ac_try" in
61351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61352   *) ac_try_echo=$ac_try;;
61353 esac
61354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61355 $as_echo "$ac_try_echo") >&5
61356   (eval "$ac_link") 2>conftest.er1
61357   ac_status=$?
61358   grep -v '^ *+' conftest.er1 >conftest.err
61359   rm -f conftest.er1
61360   cat conftest.err >&5
61361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61362   (exit $ac_status); } && {
61363          test -z "$ac_c_werror_flag" ||
61364          test ! -s conftest.err
61365        } && test -s conftest$ac_exeext && {
61366          test "$cross_compiling" = yes ||
61367          $as_test_x conftest$ac_exeext
61368        }; then
61369   eval "$as_ac_var=yes"
61370 else
61371   $as_echo "$as_me: failed program was:" >&5
61372 sed 's/^/| /' conftest.$ac_ext >&5
61373
61374         eval "$as_ac_var=no"
61375 fi
61376
61377 rm -rf conftest.dSYM
61378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61379       conftest$ac_exeext conftest.$ac_ext
61380 fi
61381 ac_res=`eval 'as_val=${'$as_ac_var'}
61382                  $as_echo "$as_val"'`
61383                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61384 $as_echo "$ac_res" >&6; }
61385 as_val=`eval 'as_val=${'$as_ac_var'}
61386                  $as_echo "$as_val"'`
61387    if test "x$as_val" = x""yes; then
61388   cat >>confdefs.h <<_ACEOF
61389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61390 _ACEOF
61391  ice_have_bzero=yes
61392 fi
61393 done
61394
61395 if test "${ice_have_bzero}" = yes; then
61396 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
61397 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
61398 if test "${ice_cv_have_bzero_decl+set}" = set; then
61399   $as_echo_n "(cached) " >&6
61400 else
61401
61402 ice_cv_have_bzero_decl=no
61403 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61404 ice_re_word='(^|[^a-zA-Z0-9_])'
61405 for header in string.h strings.h stdlib.h; do
61406 # Check for ordinary declaration
61407 cat >conftest.$ac_ext <<_ACEOF
61408 /* confdefs.h.  */
61409 _ACEOF
61410 cat confdefs.h >>conftest.$ac_ext
61411 cat >>conftest.$ac_ext <<_ACEOF
61412 /* end confdefs.h.  */
61413 #include <$header>
61414
61415 _ACEOF
61416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61417   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
61418   ice_cv_have_bzero_decl=yes
61419 fi
61420 rm -f conftest*
61421
61422 if test "$ice_cv_have_bzero_decl" = yes; then
61423         break
61424 fi
61425 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61426 cat >conftest.$ac_ext <<_ACEOF
61427 /* confdefs.h.  */
61428 _ACEOF
61429 cat confdefs.h >>conftest.$ac_ext
61430 cat >>conftest.$ac_ext <<_ACEOF
61431 /* end confdefs.h.  */
61432 #include <$header>
61433
61434 _ACEOF
61435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61436   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61437   ice_cv_have_bzero_decl=yes
61438 fi
61439 rm -f conftest*
61440
61441 if test "$ice_cv_have_bzero_decl" = yes; then
61442         break
61443 fi
61444 done
61445
61446 fi
61447
61448 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
61449 $as_echo "$ice_cv_have_bzero_decl" >&6; }
61450 if test "$ice_cv_have_bzero_decl" = yes; then
61451
61452 cat >>confdefs.h <<_ACEOF
61453 #define HAVE_BZERO_DECL 1
61454 _ACEOF
61455
61456 fi
61457 fi
61458
61459 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
61460 $as_echo_n "checking whether closedir returns void... " >&6; }
61461 if test "${ac_cv_func_closedir_void+set}" = set; then
61462   $as_echo_n "(cached) " >&6
61463 else
61464   if test "$cross_compiling" = yes; then
61465   ac_cv_func_closedir_void=yes
61466 else
61467   cat >conftest.$ac_ext <<_ACEOF
61468 /* confdefs.h.  */
61469 _ACEOF
61470 cat confdefs.h >>conftest.$ac_ext
61471 cat >>conftest.$ac_ext <<_ACEOF
61472 /* end confdefs.h.  */
61473 $ac_includes_default
61474 #include <$ac_header_dirent>
61475 #ifndef __cplusplus
61476 int closedir ();
61477 #endif
61478
61479 int
61480 main ()
61481 {
61482 return closedir (opendir (".")) != 0;
61483   ;
61484   return 0;
61485 }
61486 _ACEOF
61487 rm -f conftest$ac_exeext
61488 if { (ac_try="$ac_link"
61489 case "(($ac_try" in
61490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61491   *) ac_try_echo=$ac_try;;
61492 esac
61493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61494 $as_echo "$ac_try_echo") >&5
61495   (eval "$ac_link") 2>&5
61496   ac_status=$?
61497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61499   { (case "(($ac_try" in
61500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61501   *) ac_try_echo=$ac_try;;
61502 esac
61503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61504 $as_echo "$ac_try_echo") >&5
61505   (eval "$ac_try") 2>&5
61506   ac_status=$?
61507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61508   (exit $ac_status); }; }; then
61509   ac_cv_func_closedir_void=no
61510 else
61511   $as_echo "$as_me: program exited with status $ac_status" >&5
61512 $as_echo "$as_me: failed program was:" >&5
61513 sed 's/^/| /' conftest.$ac_ext >&5
61514
61515 ( exit $ac_status )
61516 ac_cv_func_closedir_void=yes
61517 fi
61518 rm -rf conftest.dSYM
61519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61520 fi
61521
61522
61523 fi
61524 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
61525 $as_echo "$ac_cv_func_closedir_void" >&6; }
61526 if test $ac_cv_func_closedir_void = yes; then
61527
61528 cat >>confdefs.h <<\_ACEOF
61529 #define CLOSEDIR_VOID 1
61530 _ACEOF
61531
61532 fi
61533
61534
61535 ice_have_closelog=no
61536
61537 for ac_func in closelog
61538 do
61539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61540 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61541 $as_echo_n "checking for $ac_func... " >&6; }
61542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61543   $as_echo_n "(cached) " >&6
61544 else
61545   cat >conftest.$ac_ext <<_ACEOF
61546 /* confdefs.h.  */
61547 _ACEOF
61548 cat confdefs.h >>conftest.$ac_ext
61549 cat >>conftest.$ac_ext <<_ACEOF
61550 /* end confdefs.h.  */
61551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61553 #define $ac_func innocuous_$ac_func
61554
61555 /* System header to define __stub macros and hopefully few prototypes,
61556     which can conflict with char $ac_func (); below.
61557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61558     <limits.h> exists even on freestanding compilers.  */
61559
61560 #ifdef __STDC__
61561 # include <limits.h>
61562 #else
61563 # include <assert.h>
61564 #endif
61565
61566 #undef $ac_func
61567
61568 /* Override any GCC internal prototype to avoid an error.
61569    Use char because int might match the return type of a GCC
61570    builtin and then its argument prototype would still apply.  */
61571 #ifdef __cplusplus
61572 extern "C"
61573 #endif
61574 char $ac_func ();
61575 /* The GNU C library defines this for functions which it implements
61576     to always fail with ENOSYS.  Some functions are actually named
61577     something starting with __ and the normal name is an alias.  */
61578 #if defined __stub_$ac_func || defined __stub___$ac_func
61579 choke me
61580 #endif
61581
61582 int
61583 main ()
61584 {
61585 return $ac_func ();
61586   ;
61587   return 0;
61588 }
61589 _ACEOF
61590 rm -f conftest.$ac_objext conftest$ac_exeext
61591 if { (ac_try="$ac_link"
61592 case "(($ac_try" in
61593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61594   *) ac_try_echo=$ac_try;;
61595 esac
61596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61597 $as_echo "$ac_try_echo") >&5
61598   (eval "$ac_link") 2>conftest.er1
61599   ac_status=$?
61600   grep -v '^ *+' conftest.er1 >conftest.err
61601   rm -f conftest.er1
61602   cat conftest.err >&5
61603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61604   (exit $ac_status); } && {
61605          test -z "$ac_c_werror_flag" ||
61606          test ! -s conftest.err
61607        } && test -s conftest$ac_exeext && {
61608          test "$cross_compiling" = yes ||
61609          $as_test_x conftest$ac_exeext
61610        }; then
61611   eval "$as_ac_var=yes"
61612 else
61613   $as_echo "$as_me: failed program was:" >&5
61614 sed 's/^/| /' conftest.$ac_ext >&5
61615
61616         eval "$as_ac_var=no"
61617 fi
61618
61619 rm -rf conftest.dSYM
61620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61621       conftest$ac_exeext conftest.$ac_ext
61622 fi
61623 ac_res=`eval 'as_val=${'$as_ac_var'}
61624                  $as_echo "$as_val"'`
61625                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61626 $as_echo "$ac_res" >&6; }
61627 as_val=`eval 'as_val=${'$as_ac_var'}
61628                  $as_echo "$as_val"'`
61629    if test "x$as_val" = x""yes; then
61630   cat >>confdefs.h <<_ACEOF
61631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61632 _ACEOF
61633  ice_have_closelog=yes
61634 fi
61635 done
61636
61637 if test "${ice_have_closelog}" = yes; then
61638 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
61639 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
61640 if test "${ice_cv_have_closelog_decl+set}" = set; then
61641   $as_echo_n "(cached) " >&6
61642 else
61643
61644 ice_cv_have_closelog_decl=no
61645 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61646 ice_re_word='(^|[^a-zA-Z0-9_])'
61647 for header in syslog.h; do
61648 # Check for ordinary declaration
61649 cat >conftest.$ac_ext <<_ACEOF
61650 /* confdefs.h.  */
61651 _ACEOF
61652 cat confdefs.h >>conftest.$ac_ext
61653 cat >>conftest.$ac_ext <<_ACEOF
61654 /* end confdefs.h.  */
61655 #include <$header>
61656
61657 _ACEOF
61658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61659   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
61660   ice_cv_have_closelog_decl=yes
61661 fi
61662 rm -f conftest*
61663
61664 if test "$ice_cv_have_closelog_decl" = yes; then
61665         break
61666 fi
61667 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61668 cat >conftest.$ac_ext <<_ACEOF
61669 /* confdefs.h.  */
61670 _ACEOF
61671 cat confdefs.h >>conftest.$ac_ext
61672 cat >>conftest.$ac_ext <<_ACEOF
61673 /* end confdefs.h.  */
61674 #include <$header>
61675
61676 _ACEOF
61677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61678   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61679   ice_cv_have_closelog_decl=yes
61680 fi
61681 rm -f conftest*
61682
61683 if test "$ice_cv_have_closelog_decl" = yes; then
61684         break
61685 fi
61686 done
61687
61688 fi
61689
61690 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
61691 $as_echo "$ice_cv_have_closelog_decl" >&6; }
61692 if test "$ice_cv_have_closelog_decl" = yes; then
61693
61694 cat >>confdefs.h <<_ACEOF
61695 #define HAVE_CLOSELOG_DECL 1
61696 _ACEOF
61697
61698 fi
61699 fi
61700
61701
61702 ice_have_connect=no
61703
61704 for ac_func in connect
61705 do
61706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61708 $as_echo_n "checking for $ac_func... " >&6; }
61709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61710   $as_echo_n "(cached) " >&6
61711 else
61712   cat >conftest.$ac_ext <<_ACEOF
61713 /* confdefs.h.  */
61714 _ACEOF
61715 cat confdefs.h >>conftest.$ac_ext
61716 cat >>conftest.$ac_ext <<_ACEOF
61717 /* end confdefs.h.  */
61718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61720 #define $ac_func innocuous_$ac_func
61721
61722 /* System header to define __stub macros and hopefully few prototypes,
61723     which can conflict with char $ac_func (); below.
61724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61725     <limits.h> exists even on freestanding compilers.  */
61726
61727 #ifdef __STDC__
61728 # include <limits.h>
61729 #else
61730 # include <assert.h>
61731 #endif
61732
61733 #undef $ac_func
61734
61735 /* Override any GCC internal prototype to avoid an error.
61736    Use char because int might match the return type of a GCC
61737    builtin and then its argument prototype would still apply.  */
61738 #ifdef __cplusplus
61739 extern "C"
61740 #endif
61741 char $ac_func ();
61742 /* The GNU C library defines this for functions which it implements
61743     to always fail with ENOSYS.  Some functions are actually named
61744     something starting with __ and the normal name is an alias.  */
61745 #if defined __stub_$ac_func || defined __stub___$ac_func
61746 choke me
61747 #endif
61748
61749 int
61750 main ()
61751 {
61752 return $ac_func ();
61753   ;
61754   return 0;
61755 }
61756 _ACEOF
61757 rm -f conftest.$ac_objext conftest$ac_exeext
61758 if { (ac_try="$ac_link"
61759 case "(($ac_try" in
61760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61761   *) ac_try_echo=$ac_try;;
61762 esac
61763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61764 $as_echo "$ac_try_echo") >&5
61765   (eval "$ac_link") 2>conftest.er1
61766   ac_status=$?
61767   grep -v '^ *+' conftest.er1 >conftest.err
61768   rm -f conftest.er1
61769   cat conftest.err >&5
61770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61771   (exit $ac_status); } && {
61772          test -z "$ac_c_werror_flag" ||
61773          test ! -s conftest.err
61774        } && test -s conftest$ac_exeext && {
61775          test "$cross_compiling" = yes ||
61776          $as_test_x conftest$ac_exeext
61777        }; then
61778   eval "$as_ac_var=yes"
61779 else
61780   $as_echo "$as_me: failed program was:" >&5
61781 sed 's/^/| /' conftest.$ac_ext >&5
61782
61783         eval "$as_ac_var=no"
61784 fi
61785
61786 rm -rf conftest.dSYM
61787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61788       conftest$ac_exeext conftest.$ac_ext
61789 fi
61790 ac_res=`eval 'as_val=${'$as_ac_var'}
61791                  $as_echo "$as_val"'`
61792                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61793 $as_echo "$ac_res" >&6; }
61794 as_val=`eval 'as_val=${'$as_ac_var'}
61795                  $as_echo "$as_val"'`
61796    if test "x$as_val" = x""yes; then
61797   cat >>confdefs.h <<_ACEOF
61798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61799 _ACEOF
61800  ice_have_connect=yes
61801 fi
61802 done
61803
61804 if test "${ice_have_connect}" = yes; then
61805 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
61806 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
61807 if test "${ice_cv_have_connect_decl+set}" = set; then
61808   $as_echo_n "(cached) " >&6
61809 else
61810
61811 ice_cv_have_connect_decl=no
61812 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61813 ice_re_word='(^|[^a-zA-Z0-9_])'
61814 for header in sys/types.h sys/socket.h; do
61815 # Check for ordinary declaration
61816 cat >conftest.$ac_ext <<_ACEOF
61817 /* confdefs.h.  */
61818 _ACEOF
61819 cat confdefs.h >>conftest.$ac_ext
61820 cat >>conftest.$ac_ext <<_ACEOF
61821 /* end confdefs.h.  */
61822 #include <$header>
61823
61824 _ACEOF
61825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61826   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
61827   ice_cv_have_connect_decl=yes
61828 fi
61829 rm -f conftest*
61830
61831 if test "$ice_cv_have_connect_decl" = yes; then
61832         break
61833 fi
61834 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61835 cat >conftest.$ac_ext <<_ACEOF
61836 /* confdefs.h.  */
61837 _ACEOF
61838 cat confdefs.h >>conftest.$ac_ext
61839 cat >>conftest.$ac_ext <<_ACEOF
61840 /* end confdefs.h.  */
61841 #include <$header>
61842
61843 _ACEOF
61844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61845   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61846   ice_cv_have_connect_decl=yes
61847 fi
61848 rm -f conftest*
61849
61850 if test "$ice_cv_have_connect_decl" = yes; then
61851         break
61852 fi
61853 done
61854
61855 fi
61856
61857 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
61858 $as_echo "$ice_cv_have_connect_decl" >&6; }
61859 if test "$ice_cv_have_connect_decl" = yes; then
61860
61861 cat >>confdefs.h <<_ACEOF
61862 #define HAVE_CONNECT_DECL 1
61863 _ACEOF
61864
61865 fi
61866 fi
61867
61868
61869 ice_have_fclose=no
61870
61871 for ac_func in fclose
61872 do
61873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61875 $as_echo_n "checking for $ac_func... " >&6; }
61876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61877   $as_echo_n "(cached) " >&6
61878 else
61879   cat >conftest.$ac_ext <<_ACEOF
61880 /* confdefs.h.  */
61881 _ACEOF
61882 cat confdefs.h >>conftest.$ac_ext
61883 cat >>conftest.$ac_ext <<_ACEOF
61884 /* end confdefs.h.  */
61885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61887 #define $ac_func innocuous_$ac_func
61888
61889 /* System header to define __stub macros and hopefully few prototypes,
61890     which can conflict with char $ac_func (); below.
61891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61892     <limits.h> exists even on freestanding compilers.  */
61893
61894 #ifdef __STDC__
61895 # include <limits.h>
61896 #else
61897 # include <assert.h>
61898 #endif
61899
61900 #undef $ac_func
61901
61902 /* Override any GCC internal prototype to avoid an error.
61903    Use char because int might match the return type of a GCC
61904    builtin and then its argument prototype would still apply.  */
61905 #ifdef __cplusplus
61906 extern "C"
61907 #endif
61908 char $ac_func ();
61909 /* The GNU C library defines this for functions which it implements
61910     to always fail with ENOSYS.  Some functions are actually named
61911     something starting with __ and the normal name is an alias.  */
61912 #if defined __stub_$ac_func || defined __stub___$ac_func
61913 choke me
61914 #endif
61915
61916 int
61917 main ()
61918 {
61919 return $ac_func ();
61920   ;
61921   return 0;
61922 }
61923 _ACEOF
61924 rm -f conftest.$ac_objext conftest$ac_exeext
61925 if { (ac_try="$ac_link"
61926 case "(($ac_try" in
61927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61928   *) ac_try_echo=$ac_try;;
61929 esac
61930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61931 $as_echo "$ac_try_echo") >&5
61932   (eval "$ac_link") 2>conftest.er1
61933   ac_status=$?
61934   grep -v '^ *+' conftest.er1 >conftest.err
61935   rm -f conftest.er1
61936   cat conftest.err >&5
61937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61938   (exit $ac_status); } && {
61939          test -z "$ac_c_werror_flag" ||
61940          test ! -s conftest.err
61941        } && test -s conftest$ac_exeext && {
61942          test "$cross_compiling" = yes ||
61943          $as_test_x conftest$ac_exeext
61944        }; then
61945   eval "$as_ac_var=yes"
61946 else
61947   $as_echo "$as_me: failed program was:" >&5
61948 sed 's/^/| /' conftest.$ac_ext >&5
61949
61950         eval "$as_ac_var=no"
61951 fi
61952
61953 rm -rf conftest.dSYM
61954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61955       conftest$ac_exeext conftest.$ac_ext
61956 fi
61957 ac_res=`eval 'as_val=${'$as_ac_var'}
61958                  $as_echo "$as_val"'`
61959                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61960 $as_echo "$ac_res" >&6; }
61961 as_val=`eval 'as_val=${'$as_ac_var'}
61962                  $as_echo "$as_val"'`
61963    if test "x$as_val" = x""yes; then
61964   cat >>confdefs.h <<_ACEOF
61965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61966 _ACEOF
61967  ice_have_fclose=yes
61968 fi
61969 done
61970
61971 if test "${ice_have_fclose}" = yes; then
61972 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
61973 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
61974 if test "${ice_cv_have_fclose_decl+set}" = set; then
61975   $as_echo_n "(cached) " >&6
61976 else
61977
61978 ice_cv_have_fclose_decl=no
61979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61980 ice_re_word='(^|[^a-zA-Z0-9_])'
61981 for header in stdio.h; do
61982 # Check for ordinary declaration
61983 cat >conftest.$ac_ext <<_ACEOF
61984 /* confdefs.h.  */
61985 _ACEOF
61986 cat confdefs.h >>conftest.$ac_ext
61987 cat >>conftest.$ac_ext <<_ACEOF
61988 /* end confdefs.h.  */
61989 #include <$header>
61990
61991 _ACEOF
61992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61993   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
61994   ice_cv_have_fclose_decl=yes
61995 fi
61996 rm -f conftest*
61997
61998 if test "$ice_cv_have_fclose_decl" = yes; then
61999         break
62000 fi
62001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62002 cat >conftest.$ac_ext <<_ACEOF
62003 /* confdefs.h.  */
62004 _ACEOF
62005 cat confdefs.h >>conftest.$ac_ext
62006 cat >>conftest.$ac_ext <<_ACEOF
62007 /* end confdefs.h.  */
62008 #include <$header>
62009
62010 _ACEOF
62011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62012   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62013   ice_cv_have_fclose_decl=yes
62014 fi
62015 rm -f conftest*
62016
62017 if test "$ice_cv_have_fclose_decl" = yes; then
62018         break
62019 fi
62020 done
62021
62022 fi
62023
62024 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
62025 $as_echo "$ice_cv_have_fclose_decl" >&6; }
62026 if test "$ice_cv_have_fclose_decl" = yes; then
62027
62028 cat >>confdefs.h <<_ACEOF
62029 #define HAVE_FCLOSE_DECL 1
62030 _ACEOF
62031
62032 fi
62033 fi
62034
62035
62036 ice_have_fflush=no
62037
62038 for ac_func in fflush
62039 do
62040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62042 $as_echo_n "checking for $ac_func... " >&6; }
62043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62044   $as_echo_n "(cached) " >&6
62045 else
62046   cat >conftest.$ac_ext <<_ACEOF
62047 /* confdefs.h.  */
62048 _ACEOF
62049 cat confdefs.h >>conftest.$ac_ext
62050 cat >>conftest.$ac_ext <<_ACEOF
62051 /* end confdefs.h.  */
62052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62054 #define $ac_func innocuous_$ac_func
62055
62056 /* System header to define __stub macros and hopefully few prototypes,
62057     which can conflict with char $ac_func (); below.
62058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62059     <limits.h> exists even on freestanding compilers.  */
62060
62061 #ifdef __STDC__
62062 # include <limits.h>
62063 #else
62064 # include <assert.h>
62065 #endif
62066
62067 #undef $ac_func
62068
62069 /* Override any GCC internal prototype to avoid an error.
62070    Use char because int might match the return type of a GCC
62071    builtin and then its argument prototype would still apply.  */
62072 #ifdef __cplusplus
62073 extern "C"
62074 #endif
62075 char $ac_func ();
62076 /* The GNU C library defines this for functions which it implements
62077     to always fail with ENOSYS.  Some functions are actually named
62078     something starting with __ and the normal name is an alias.  */
62079 #if defined __stub_$ac_func || defined __stub___$ac_func
62080 choke me
62081 #endif
62082
62083 int
62084 main ()
62085 {
62086 return $ac_func ();
62087   ;
62088   return 0;
62089 }
62090 _ACEOF
62091 rm -f conftest.$ac_objext conftest$ac_exeext
62092 if { (ac_try="$ac_link"
62093 case "(($ac_try" in
62094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62095   *) ac_try_echo=$ac_try;;
62096 esac
62097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62098 $as_echo "$ac_try_echo") >&5
62099   (eval "$ac_link") 2>conftest.er1
62100   ac_status=$?
62101   grep -v '^ *+' conftest.er1 >conftest.err
62102   rm -f conftest.er1
62103   cat conftest.err >&5
62104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62105   (exit $ac_status); } && {
62106          test -z "$ac_c_werror_flag" ||
62107          test ! -s conftest.err
62108        } && test -s conftest$ac_exeext && {
62109          test "$cross_compiling" = yes ||
62110          $as_test_x conftest$ac_exeext
62111        }; then
62112   eval "$as_ac_var=yes"
62113 else
62114   $as_echo "$as_me: failed program was:" >&5
62115 sed 's/^/| /' conftest.$ac_ext >&5
62116
62117         eval "$as_ac_var=no"
62118 fi
62119
62120 rm -rf conftest.dSYM
62121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62122       conftest$ac_exeext conftest.$ac_ext
62123 fi
62124 ac_res=`eval 'as_val=${'$as_ac_var'}
62125                  $as_echo "$as_val"'`
62126                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62127 $as_echo "$ac_res" >&6; }
62128 as_val=`eval 'as_val=${'$as_ac_var'}
62129                  $as_echo "$as_val"'`
62130    if test "x$as_val" = x""yes; then
62131   cat >>confdefs.h <<_ACEOF
62132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62133 _ACEOF
62134  ice_have_fflush=yes
62135 fi
62136 done
62137
62138 if test "${ice_have_fflush}" = yes; then
62139 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
62140 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
62141 if test "${ice_cv_have_fflush_decl+set}" = set; then
62142   $as_echo_n "(cached) " >&6
62143 else
62144
62145 ice_cv_have_fflush_decl=no
62146 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62147 ice_re_word='(^|[^a-zA-Z0-9_])'
62148 for header in stdio.h; do
62149 # Check for ordinary declaration
62150 cat >conftest.$ac_ext <<_ACEOF
62151 /* confdefs.h.  */
62152 _ACEOF
62153 cat confdefs.h >>conftest.$ac_ext
62154 cat >>conftest.$ac_ext <<_ACEOF
62155 /* end confdefs.h.  */
62156 #include <$header>
62157
62158 _ACEOF
62159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62160   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
62161   ice_cv_have_fflush_decl=yes
62162 fi
62163 rm -f conftest*
62164
62165 if test "$ice_cv_have_fflush_decl" = yes; then
62166         break
62167 fi
62168 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62169 cat >conftest.$ac_ext <<_ACEOF
62170 /* confdefs.h.  */
62171 _ACEOF
62172 cat confdefs.h >>conftest.$ac_ext
62173 cat >>conftest.$ac_ext <<_ACEOF
62174 /* end confdefs.h.  */
62175 #include <$header>
62176
62177 _ACEOF
62178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62179   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62180   ice_cv_have_fflush_decl=yes
62181 fi
62182 rm -f conftest*
62183
62184 if test "$ice_cv_have_fflush_decl" = yes; then
62185         break
62186 fi
62187 done
62188
62189 fi
62190
62191 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
62192 $as_echo "$ice_cv_have_fflush_decl" >&6; }
62193 if test "$ice_cv_have_fflush_decl" = yes; then
62194
62195 cat >>confdefs.h <<_ACEOF
62196 #define HAVE_FFLUSH_DECL 1
62197 _ACEOF
62198
62199 fi
62200 fi
62201
62202
62203 ice_have_fprintf=no
62204
62205 for ac_func in fprintf
62206 do
62207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62208 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62209 $as_echo_n "checking for $ac_func... " >&6; }
62210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62211   $as_echo_n "(cached) " >&6
62212 else
62213   cat >conftest.$ac_ext <<_ACEOF
62214 /* confdefs.h.  */
62215 _ACEOF
62216 cat confdefs.h >>conftest.$ac_ext
62217 cat >>conftest.$ac_ext <<_ACEOF
62218 /* end confdefs.h.  */
62219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62221 #define $ac_func innocuous_$ac_func
62222
62223 /* System header to define __stub macros and hopefully few prototypes,
62224     which can conflict with char $ac_func (); below.
62225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62226     <limits.h> exists even on freestanding compilers.  */
62227
62228 #ifdef __STDC__
62229 # include <limits.h>
62230 #else
62231 # include <assert.h>
62232 #endif
62233
62234 #undef $ac_func
62235
62236 /* Override any GCC internal prototype to avoid an error.
62237    Use char because int might match the return type of a GCC
62238    builtin and then its argument prototype would still apply.  */
62239 #ifdef __cplusplus
62240 extern "C"
62241 #endif
62242 char $ac_func ();
62243 /* The GNU C library defines this for functions which it implements
62244     to always fail with ENOSYS.  Some functions are actually named
62245     something starting with __ and the normal name is an alias.  */
62246 #if defined __stub_$ac_func || defined __stub___$ac_func
62247 choke me
62248 #endif
62249
62250 int
62251 main ()
62252 {
62253 return $ac_func ();
62254   ;
62255   return 0;
62256 }
62257 _ACEOF
62258 rm -f conftest.$ac_objext conftest$ac_exeext
62259 if { (ac_try="$ac_link"
62260 case "(($ac_try" in
62261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62262   *) ac_try_echo=$ac_try;;
62263 esac
62264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62265 $as_echo "$ac_try_echo") >&5
62266   (eval "$ac_link") 2>conftest.er1
62267   ac_status=$?
62268   grep -v '^ *+' conftest.er1 >conftest.err
62269   rm -f conftest.er1
62270   cat conftest.err >&5
62271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62272   (exit $ac_status); } && {
62273          test -z "$ac_c_werror_flag" ||
62274          test ! -s conftest.err
62275        } && test -s conftest$ac_exeext && {
62276          test "$cross_compiling" = yes ||
62277          $as_test_x conftest$ac_exeext
62278        }; then
62279   eval "$as_ac_var=yes"
62280 else
62281   $as_echo "$as_me: failed program was:" >&5
62282 sed 's/^/| /' conftest.$ac_ext >&5
62283
62284         eval "$as_ac_var=no"
62285 fi
62286
62287 rm -rf conftest.dSYM
62288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62289       conftest$ac_exeext conftest.$ac_ext
62290 fi
62291 ac_res=`eval 'as_val=${'$as_ac_var'}
62292                  $as_echo "$as_val"'`
62293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62294 $as_echo "$ac_res" >&6; }
62295 as_val=`eval 'as_val=${'$as_ac_var'}
62296                  $as_echo "$as_val"'`
62297    if test "x$as_val" = x""yes; then
62298   cat >>confdefs.h <<_ACEOF
62299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62300 _ACEOF
62301  ice_have_fprintf=yes
62302 fi
62303 done
62304
62305 if test "${ice_have_fprintf}" = yes; then
62306 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
62307 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
62308 if test "${ice_cv_have_fprintf_decl+set}" = set; then
62309   $as_echo_n "(cached) " >&6
62310 else
62311
62312 ice_cv_have_fprintf_decl=no
62313 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62314 ice_re_word='(^|[^a-zA-Z0-9_])'
62315 for header in stdio.h; do
62316 # Check for ordinary declaration
62317 cat >conftest.$ac_ext <<_ACEOF
62318 /* confdefs.h.  */
62319 _ACEOF
62320 cat confdefs.h >>conftest.$ac_ext
62321 cat >>conftest.$ac_ext <<_ACEOF
62322 /* end confdefs.h.  */
62323 #include <$header>
62324
62325 _ACEOF
62326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62327   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
62328   ice_cv_have_fprintf_decl=yes
62329 fi
62330 rm -f conftest*
62331
62332 if test "$ice_cv_have_fprintf_decl" = yes; then
62333         break
62334 fi
62335 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62336 cat >conftest.$ac_ext <<_ACEOF
62337 /* confdefs.h.  */
62338 _ACEOF
62339 cat confdefs.h >>conftest.$ac_ext
62340 cat >>conftest.$ac_ext <<_ACEOF
62341 /* end confdefs.h.  */
62342 #include <$header>
62343
62344 _ACEOF
62345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62346   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62347   ice_cv_have_fprintf_decl=yes
62348 fi
62349 rm -f conftest*
62350
62351 if test "$ice_cv_have_fprintf_decl" = yes; then
62352         break
62353 fi
62354 done
62355
62356 fi
62357
62358 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
62359 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
62360 if test "$ice_cv_have_fprintf_decl" = yes; then
62361
62362 cat >>confdefs.h <<_ACEOF
62363 #define HAVE_FPRINTF_DECL 1
62364 _ACEOF
62365
62366 fi
62367 fi
62368
62369
62370 ice_have_fputc=no
62371
62372 for ac_func in fputc
62373 do
62374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62375 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62376 $as_echo_n "checking for $ac_func... " >&6; }
62377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62378   $as_echo_n "(cached) " >&6
62379 else
62380   cat >conftest.$ac_ext <<_ACEOF
62381 /* confdefs.h.  */
62382 _ACEOF
62383 cat confdefs.h >>conftest.$ac_ext
62384 cat >>conftest.$ac_ext <<_ACEOF
62385 /* end confdefs.h.  */
62386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62388 #define $ac_func innocuous_$ac_func
62389
62390 /* System header to define __stub macros and hopefully few prototypes,
62391     which can conflict with char $ac_func (); below.
62392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62393     <limits.h> exists even on freestanding compilers.  */
62394
62395 #ifdef __STDC__
62396 # include <limits.h>
62397 #else
62398 # include <assert.h>
62399 #endif
62400
62401 #undef $ac_func
62402
62403 /* Override any GCC internal prototype to avoid an error.
62404    Use char because int might match the return type of a GCC
62405    builtin and then its argument prototype would still apply.  */
62406 #ifdef __cplusplus
62407 extern "C"
62408 #endif
62409 char $ac_func ();
62410 /* The GNU C library defines this for functions which it implements
62411     to always fail with ENOSYS.  Some functions are actually named
62412     something starting with __ and the normal name is an alias.  */
62413 #if defined __stub_$ac_func || defined __stub___$ac_func
62414 choke me
62415 #endif
62416
62417 int
62418 main ()
62419 {
62420 return $ac_func ();
62421   ;
62422   return 0;
62423 }
62424 _ACEOF
62425 rm -f conftest.$ac_objext conftest$ac_exeext
62426 if { (ac_try="$ac_link"
62427 case "(($ac_try" in
62428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62429   *) ac_try_echo=$ac_try;;
62430 esac
62431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62432 $as_echo "$ac_try_echo") >&5
62433   (eval "$ac_link") 2>conftest.er1
62434   ac_status=$?
62435   grep -v '^ *+' conftest.er1 >conftest.err
62436   rm -f conftest.er1
62437   cat conftest.err >&5
62438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62439   (exit $ac_status); } && {
62440          test -z "$ac_c_werror_flag" ||
62441          test ! -s conftest.err
62442        } && test -s conftest$ac_exeext && {
62443          test "$cross_compiling" = yes ||
62444          $as_test_x conftest$ac_exeext
62445        }; then
62446   eval "$as_ac_var=yes"
62447 else
62448   $as_echo "$as_me: failed program was:" >&5
62449 sed 's/^/| /' conftest.$ac_ext >&5
62450
62451         eval "$as_ac_var=no"
62452 fi
62453
62454 rm -rf conftest.dSYM
62455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62456       conftest$ac_exeext conftest.$ac_ext
62457 fi
62458 ac_res=`eval 'as_val=${'$as_ac_var'}
62459                  $as_echo "$as_val"'`
62460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62461 $as_echo "$ac_res" >&6; }
62462 as_val=`eval 'as_val=${'$as_ac_var'}
62463                  $as_echo "$as_val"'`
62464    if test "x$as_val" = x""yes; then
62465   cat >>confdefs.h <<_ACEOF
62466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62467 _ACEOF
62468  ice_have_fputc=yes
62469 fi
62470 done
62471
62472 if test "${ice_have_fputc}" = yes; then
62473 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
62474 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
62475 if test "${ice_cv_have_fputc_decl+set}" = set; then
62476   $as_echo_n "(cached) " >&6
62477 else
62478
62479 ice_cv_have_fputc_decl=no
62480 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62481 ice_re_word='(^|[^a-zA-Z0-9_])'
62482 for header in stdio.h; do
62483 # Check for ordinary declaration
62484 cat >conftest.$ac_ext <<_ACEOF
62485 /* confdefs.h.  */
62486 _ACEOF
62487 cat confdefs.h >>conftest.$ac_ext
62488 cat >>conftest.$ac_ext <<_ACEOF
62489 /* end confdefs.h.  */
62490 #include <$header>
62491
62492 _ACEOF
62493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62494   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
62495   ice_cv_have_fputc_decl=yes
62496 fi
62497 rm -f conftest*
62498
62499 if test "$ice_cv_have_fputc_decl" = yes; then
62500         break
62501 fi
62502 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62503 cat >conftest.$ac_ext <<_ACEOF
62504 /* confdefs.h.  */
62505 _ACEOF
62506 cat confdefs.h >>conftest.$ac_ext
62507 cat >>conftest.$ac_ext <<_ACEOF
62508 /* end confdefs.h.  */
62509 #include <$header>
62510
62511 _ACEOF
62512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62513   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62514   ice_cv_have_fputc_decl=yes
62515 fi
62516 rm -f conftest*
62517
62518 if test "$ice_cv_have_fputc_decl" = yes; then
62519         break
62520 fi
62521 done
62522
62523 fi
62524
62525 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
62526 $as_echo "$ice_cv_have_fputc_decl" >&6; }
62527 if test "$ice_cv_have_fputc_decl" = yes; then
62528
62529 cat >>confdefs.h <<_ACEOF
62530 #define HAVE_FPUTC_DECL 1
62531 _ACEOF
62532
62533 fi
62534 fi
62535
62536
62537 ice_have_fputs=no
62538
62539 for ac_func in fputs
62540 do
62541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62542 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62543 $as_echo_n "checking for $ac_func... " >&6; }
62544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62545   $as_echo_n "(cached) " >&6
62546 else
62547   cat >conftest.$ac_ext <<_ACEOF
62548 /* confdefs.h.  */
62549 _ACEOF
62550 cat confdefs.h >>conftest.$ac_ext
62551 cat >>conftest.$ac_ext <<_ACEOF
62552 /* end confdefs.h.  */
62553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62555 #define $ac_func innocuous_$ac_func
62556
62557 /* System header to define __stub macros and hopefully few prototypes,
62558     which can conflict with char $ac_func (); below.
62559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62560     <limits.h> exists even on freestanding compilers.  */
62561
62562 #ifdef __STDC__
62563 # include <limits.h>
62564 #else
62565 # include <assert.h>
62566 #endif
62567
62568 #undef $ac_func
62569
62570 /* Override any GCC internal prototype to avoid an error.
62571    Use char because int might match the return type of a GCC
62572    builtin and then its argument prototype would still apply.  */
62573 #ifdef __cplusplus
62574 extern "C"
62575 #endif
62576 char $ac_func ();
62577 /* The GNU C library defines this for functions which it implements
62578     to always fail with ENOSYS.  Some functions are actually named
62579     something starting with __ and the normal name is an alias.  */
62580 #if defined __stub_$ac_func || defined __stub___$ac_func
62581 choke me
62582 #endif
62583
62584 int
62585 main ()
62586 {
62587 return $ac_func ();
62588   ;
62589   return 0;
62590 }
62591 _ACEOF
62592 rm -f conftest.$ac_objext conftest$ac_exeext
62593 if { (ac_try="$ac_link"
62594 case "(($ac_try" in
62595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62596   *) ac_try_echo=$ac_try;;
62597 esac
62598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62599 $as_echo "$ac_try_echo") >&5
62600   (eval "$ac_link") 2>conftest.er1
62601   ac_status=$?
62602   grep -v '^ *+' conftest.er1 >conftest.err
62603   rm -f conftest.er1
62604   cat conftest.err >&5
62605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62606   (exit $ac_status); } && {
62607          test -z "$ac_c_werror_flag" ||
62608          test ! -s conftest.err
62609        } && test -s conftest$ac_exeext && {
62610          test "$cross_compiling" = yes ||
62611          $as_test_x conftest$ac_exeext
62612        }; then
62613   eval "$as_ac_var=yes"
62614 else
62615   $as_echo "$as_me: failed program was:" >&5
62616 sed 's/^/| /' conftest.$ac_ext >&5
62617
62618         eval "$as_ac_var=no"
62619 fi
62620
62621 rm -rf conftest.dSYM
62622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62623       conftest$ac_exeext conftest.$ac_ext
62624 fi
62625 ac_res=`eval 'as_val=${'$as_ac_var'}
62626                  $as_echo "$as_val"'`
62627                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62628 $as_echo "$ac_res" >&6; }
62629 as_val=`eval 'as_val=${'$as_ac_var'}
62630                  $as_echo "$as_val"'`
62631    if test "x$as_val" = x""yes; then
62632   cat >>confdefs.h <<_ACEOF
62633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62634 _ACEOF
62635  ice_have_fputs=yes
62636 fi
62637 done
62638
62639 if test "${ice_have_fputs}" = yes; then
62640 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
62641 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
62642 if test "${ice_cv_have_fputs_decl+set}" = set; then
62643   $as_echo_n "(cached) " >&6
62644 else
62645
62646 ice_cv_have_fputs_decl=no
62647 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62648 ice_re_word='(^|[^a-zA-Z0-9_])'
62649 for header in stdio.h; do
62650 # Check for ordinary declaration
62651 cat >conftest.$ac_ext <<_ACEOF
62652 /* confdefs.h.  */
62653 _ACEOF
62654 cat confdefs.h >>conftest.$ac_ext
62655 cat >>conftest.$ac_ext <<_ACEOF
62656 /* end confdefs.h.  */
62657 #include <$header>
62658
62659 _ACEOF
62660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62661   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
62662   ice_cv_have_fputs_decl=yes
62663 fi
62664 rm -f conftest*
62665
62666 if test "$ice_cv_have_fputs_decl" = yes; then
62667         break
62668 fi
62669 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62670 cat >conftest.$ac_ext <<_ACEOF
62671 /* confdefs.h.  */
62672 _ACEOF
62673 cat confdefs.h >>conftest.$ac_ext
62674 cat >>conftest.$ac_ext <<_ACEOF
62675 /* end confdefs.h.  */
62676 #include <$header>
62677
62678 _ACEOF
62679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62680   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62681   ice_cv_have_fputs_decl=yes
62682 fi
62683 rm -f conftest*
62684
62685 if test "$ice_cv_have_fputs_decl" = yes; then
62686         break
62687 fi
62688 done
62689
62690 fi
62691
62692 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
62693 $as_echo "$ice_cv_have_fputs_decl" >&6; }
62694 if test "$ice_cv_have_fputs_decl" = yes; then
62695
62696 cat >>confdefs.h <<_ACEOF
62697 #define HAVE_FPUTS_DECL 1
62698 _ACEOF
62699
62700 fi
62701 fi
62702
62703
62704 ice_have_fread=no
62705
62706 for ac_func in fread
62707 do
62708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62709 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62710 $as_echo_n "checking for $ac_func... " >&6; }
62711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62712   $as_echo_n "(cached) " >&6
62713 else
62714   cat >conftest.$ac_ext <<_ACEOF
62715 /* confdefs.h.  */
62716 _ACEOF
62717 cat confdefs.h >>conftest.$ac_ext
62718 cat >>conftest.$ac_ext <<_ACEOF
62719 /* end confdefs.h.  */
62720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62722 #define $ac_func innocuous_$ac_func
62723
62724 /* System header to define __stub macros and hopefully few prototypes,
62725     which can conflict with char $ac_func (); below.
62726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62727     <limits.h> exists even on freestanding compilers.  */
62728
62729 #ifdef __STDC__
62730 # include <limits.h>
62731 #else
62732 # include <assert.h>
62733 #endif
62734
62735 #undef $ac_func
62736
62737 /* Override any GCC internal prototype to avoid an error.
62738    Use char because int might match the return type of a GCC
62739    builtin and then its argument prototype would still apply.  */
62740 #ifdef __cplusplus
62741 extern "C"
62742 #endif
62743 char $ac_func ();
62744 /* The GNU C library defines this for functions which it implements
62745     to always fail with ENOSYS.  Some functions are actually named
62746     something starting with __ and the normal name is an alias.  */
62747 #if defined __stub_$ac_func || defined __stub___$ac_func
62748 choke me
62749 #endif
62750
62751 int
62752 main ()
62753 {
62754 return $ac_func ();
62755   ;
62756   return 0;
62757 }
62758 _ACEOF
62759 rm -f conftest.$ac_objext conftest$ac_exeext
62760 if { (ac_try="$ac_link"
62761 case "(($ac_try" in
62762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62763   *) ac_try_echo=$ac_try;;
62764 esac
62765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62766 $as_echo "$ac_try_echo") >&5
62767   (eval "$ac_link") 2>conftest.er1
62768   ac_status=$?
62769   grep -v '^ *+' conftest.er1 >conftest.err
62770   rm -f conftest.er1
62771   cat conftest.err >&5
62772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62773   (exit $ac_status); } && {
62774          test -z "$ac_c_werror_flag" ||
62775          test ! -s conftest.err
62776        } && test -s conftest$ac_exeext && {
62777          test "$cross_compiling" = yes ||
62778          $as_test_x conftest$ac_exeext
62779        }; then
62780   eval "$as_ac_var=yes"
62781 else
62782   $as_echo "$as_me: failed program was:" >&5
62783 sed 's/^/| /' conftest.$ac_ext >&5
62784
62785         eval "$as_ac_var=no"
62786 fi
62787
62788 rm -rf conftest.dSYM
62789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62790       conftest$ac_exeext conftest.$ac_ext
62791 fi
62792 ac_res=`eval 'as_val=${'$as_ac_var'}
62793                  $as_echo "$as_val"'`
62794                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62795 $as_echo "$ac_res" >&6; }
62796 as_val=`eval 'as_val=${'$as_ac_var'}
62797                  $as_echo "$as_val"'`
62798    if test "x$as_val" = x""yes; then
62799   cat >>confdefs.h <<_ACEOF
62800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62801 _ACEOF
62802  ice_have_fread=yes
62803 fi
62804 done
62805
62806 if test "${ice_have_fread}" = yes; then
62807 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
62808 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
62809 if test "${ice_cv_have_fread_decl+set}" = set; then
62810   $as_echo_n "(cached) " >&6
62811 else
62812
62813 ice_cv_have_fread_decl=no
62814 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62815 ice_re_word='(^|[^a-zA-Z0-9_])'
62816 for header in stdio.h stdlib.h; do
62817 # Check for ordinary declaration
62818 cat >conftest.$ac_ext <<_ACEOF
62819 /* confdefs.h.  */
62820 _ACEOF
62821 cat confdefs.h >>conftest.$ac_ext
62822 cat >>conftest.$ac_ext <<_ACEOF
62823 /* end confdefs.h.  */
62824 #include <$header>
62825
62826 _ACEOF
62827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62828   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
62829   ice_cv_have_fread_decl=yes
62830 fi
62831 rm -f conftest*
62832
62833 if test "$ice_cv_have_fread_decl" = yes; then
62834         break
62835 fi
62836 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62837 cat >conftest.$ac_ext <<_ACEOF
62838 /* confdefs.h.  */
62839 _ACEOF
62840 cat confdefs.h >>conftest.$ac_ext
62841 cat >>conftest.$ac_ext <<_ACEOF
62842 /* end confdefs.h.  */
62843 #include <$header>
62844
62845 _ACEOF
62846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62847   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62848   ice_cv_have_fread_decl=yes
62849 fi
62850 rm -f conftest*
62851
62852 if test "$ice_cv_have_fread_decl" = yes; then
62853         break
62854 fi
62855 done
62856
62857 fi
62858
62859 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
62860 $as_echo "$ice_cv_have_fread_decl" >&6; }
62861 if test "$ice_cv_have_fread_decl" = yes; then
62862
62863 cat >>confdefs.h <<_ACEOF
62864 #define HAVE_FREAD_DECL 1
62865 _ACEOF
62866
62867 fi
62868 fi
62869
62870
62871 ice_have_fseek=no
62872
62873 for ac_func in fseek
62874 do
62875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62877 $as_echo_n "checking for $ac_func... " >&6; }
62878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62879   $as_echo_n "(cached) " >&6
62880 else
62881   cat >conftest.$ac_ext <<_ACEOF
62882 /* confdefs.h.  */
62883 _ACEOF
62884 cat confdefs.h >>conftest.$ac_ext
62885 cat >>conftest.$ac_ext <<_ACEOF
62886 /* end confdefs.h.  */
62887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62889 #define $ac_func innocuous_$ac_func
62890
62891 /* System header to define __stub macros and hopefully few prototypes,
62892     which can conflict with char $ac_func (); below.
62893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62894     <limits.h> exists even on freestanding compilers.  */
62895
62896 #ifdef __STDC__
62897 # include <limits.h>
62898 #else
62899 # include <assert.h>
62900 #endif
62901
62902 #undef $ac_func
62903
62904 /* Override any GCC internal prototype to avoid an error.
62905    Use char because int might match the return type of a GCC
62906    builtin and then its argument prototype would still apply.  */
62907 #ifdef __cplusplus
62908 extern "C"
62909 #endif
62910 char $ac_func ();
62911 /* The GNU C library defines this for functions which it implements
62912     to always fail with ENOSYS.  Some functions are actually named
62913     something starting with __ and the normal name is an alias.  */
62914 #if defined __stub_$ac_func || defined __stub___$ac_func
62915 choke me
62916 #endif
62917
62918 int
62919 main ()
62920 {
62921 return $ac_func ();
62922   ;
62923   return 0;
62924 }
62925 _ACEOF
62926 rm -f conftest.$ac_objext conftest$ac_exeext
62927 if { (ac_try="$ac_link"
62928 case "(($ac_try" in
62929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62930   *) ac_try_echo=$ac_try;;
62931 esac
62932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62933 $as_echo "$ac_try_echo") >&5
62934   (eval "$ac_link") 2>conftest.er1
62935   ac_status=$?
62936   grep -v '^ *+' conftest.er1 >conftest.err
62937   rm -f conftest.er1
62938   cat conftest.err >&5
62939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62940   (exit $ac_status); } && {
62941          test -z "$ac_c_werror_flag" ||
62942          test ! -s conftest.err
62943        } && test -s conftest$ac_exeext && {
62944          test "$cross_compiling" = yes ||
62945          $as_test_x conftest$ac_exeext
62946        }; then
62947   eval "$as_ac_var=yes"
62948 else
62949   $as_echo "$as_me: failed program was:" >&5
62950 sed 's/^/| /' conftest.$ac_ext >&5
62951
62952         eval "$as_ac_var=no"
62953 fi
62954
62955 rm -rf conftest.dSYM
62956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62957       conftest$ac_exeext conftest.$ac_ext
62958 fi
62959 ac_res=`eval 'as_val=${'$as_ac_var'}
62960                  $as_echo "$as_val"'`
62961                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62962 $as_echo "$ac_res" >&6; }
62963 as_val=`eval 'as_val=${'$as_ac_var'}
62964                  $as_echo "$as_val"'`
62965    if test "x$as_val" = x""yes; then
62966   cat >>confdefs.h <<_ACEOF
62967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62968 _ACEOF
62969  ice_have_fseek=yes
62970 fi
62971 done
62972
62973 if test "${ice_have_fseek}" = yes; then
62974 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
62975 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
62976 if test "${ice_cv_have_fseek_decl+set}" = set; then
62977   $as_echo_n "(cached) " >&6
62978 else
62979
62980 ice_cv_have_fseek_decl=no
62981 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62982 ice_re_word='(^|[^a-zA-Z0-9_])'
62983 for header in stdio.h; do
62984 # Check for ordinary declaration
62985 cat >conftest.$ac_ext <<_ACEOF
62986 /* confdefs.h.  */
62987 _ACEOF
62988 cat confdefs.h >>conftest.$ac_ext
62989 cat >>conftest.$ac_ext <<_ACEOF
62990 /* end confdefs.h.  */
62991 #include <$header>
62992
62993 _ACEOF
62994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62995   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
62996   ice_cv_have_fseek_decl=yes
62997 fi
62998 rm -f conftest*
62999
63000 if test "$ice_cv_have_fseek_decl" = yes; then
63001         break
63002 fi
63003 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63004 cat >conftest.$ac_ext <<_ACEOF
63005 /* confdefs.h.  */
63006 _ACEOF
63007 cat confdefs.h >>conftest.$ac_ext
63008 cat >>conftest.$ac_ext <<_ACEOF
63009 /* end confdefs.h.  */
63010 #include <$header>
63011
63012 _ACEOF
63013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63014   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63015   ice_cv_have_fseek_decl=yes
63016 fi
63017 rm -f conftest*
63018
63019 if test "$ice_cv_have_fseek_decl" = yes; then
63020         break
63021 fi
63022 done
63023
63024 fi
63025
63026 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
63027 $as_echo "$ice_cv_have_fseek_decl" >&6; }
63028 if test "$ice_cv_have_fseek_decl" = yes; then
63029
63030 cat >>confdefs.h <<_ACEOF
63031 #define HAVE_FSEEK_DECL 1
63032 _ACEOF
63033
63034 fi
63035 fi
63036
63037
63038 ice_have_fwrite=no
63039
63040 for ac_func in fwrite
63041 do
63042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63044 $as_echo_n "checking for $ac_func... " >&6; }
63045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63046   $as_echo_n "(cached) " >&6
63047 else
63048   cat >conftest.$ac_ext <<_ACEOF
63049 /* confdefs.h.  */
63050 _ACEOF
63051 cat confdefs.h >>conftest.$ac_ext
63052 cat >>conftest.$ac_ext <<_ACEOF
63053 /* end confdefs.h.  */
63054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63056 #define $ac_func innocuous_$ac_func
63057
63058 /* System header to define __stub macros and hopefully few prototypes,
63059     which can conflict with char $ac_func (); below.
63060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63061     <limits.h> exists even on freestanding compilers.  */
63062
63063 #ifdef __STDC__
63064 # include <limits.h>
63065 #else
63066 # include <assert.h>
63067 #endif
63068
63069 #undef $ac_func
63070
63071 /* Override any GCC internal prototype to avoid an error.
63072    Use char because int might match the return type of a GCC
63073    builtin and then its argument prototype would still apply.  */
63074 #ifdef __cplusplus
63075 extern "C"
63076 #endif
63077 char $ac_func ();
63078 /* The GNU C library defines this for functions which it implements
63079     to always fail with ENOSYS.  Some functions are actually named
63080     something starting with __ and the normal name is an alias.  */
63081 #if defined __stub_$ac_func || defined __stub___$ac_func
63082 choke me
63083 #endif
63084
63085 int
63086 main ()
63087 {
63088 return $ac_func ();
63089   ;
63090   return 0;
63091 }
63092 _ACEOF
63093 rm -f conftest.$ac_objext conftest$ac_exeext
63094 if { (ac_try="$ac_link"
63095 case "(($ac_try" in
63096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63097   *) ac_try_echo=$ac_try;;
63098 esac
63099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63100 $as_echo "$ac_try_echo") >&5
63101   (eval "$ac_link") 2>conftest.er1
63102   ac_status=$?
63103   grep -v '^ *+' conftest.er1 >conftest.err
63104   rm -f conftest.er1
63105   cat conftest.err >&5
63106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63107   (exit $ac_status); } && {
63108          test -z "$ac_c_werror_flag" ||
63109          test ! -s conftest.err
63110        } && test -s conftest$ac_exeext && {
63111          test "$cross_compiling" = yes ||
63112          $as_test_x conftest$ac_exeext
63113        }; then
63114   eval "$as_ac_var=yes"
63115 else
63116   $as_echo "$as_me: failed program was:" >&5
63117 sed 's/^/| /' conftest.$ac_ext >&5
63118
63119         eval "$as_ac_var=no"
63120 fi
63121
63122 rm -rf conftest.dSYM
63123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63124       conftest$ac_exeext conftest.$ac_ext
63125 fi
63126 ac_res=`eval 'as_val=${'$as_ac_var'}
63127                  $as_echo "$as_val"'`
63128                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63129 $as_echo "$ac_res" >&6; }
63130 as_val=`eval 'as_val=${'$as_ac_var'}
63131                  $as_echo "$as_val"'`
63132    if test "x$as_val" = x""yes; then
63133   cat >>confdefs.h <<_ACEOF
63134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63135 _ACEOF
63136  ice_have_fwrite=yes
63137 fi
63138 done
63139
63140 if test "${ice_have_fwrite}" = yes; then
63141 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
63142 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
63143 if test "${ice_cv_have_fwrite_decl+set}" = set; then
63144   $as_echo_n "(cached) " >&6
63145 else
63146
63147 ice_cv_have_fwrite_decl=no
63148 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63149 ice_re_word='(^|[^a-zA-Z0-9_])'
63150 for header in stdio.h stdlib.h; do
63151 # Check for ordinary declaration
63152 cat >conftest.$ac_ext <<_ACEOF
63153 /* confdefs.h.  */
63154 _ACEOF
63155 cat confdefs.h >>conftest.$ac_ext
63156 cat >>conftest.$ac_ext <<_ACEOF
63157 /* end confdefs.h.  */
63158 #include <$header>
63159
63160 _ACEOF
63161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63162   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
63163   ice_cv_have_fwrite_decl=yes
63164 fi
63165 rm -f conftest*
63166
63167 if test "$ice_cv_have_fwrite_decl" = yes; then
63168         break
63169 fi
63170 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63171 cat >conftest.$ac_ext <<_ACEOF
63172 /* confdefs.h.  */
63173 _ACEOF
63174 cat confdefs.h >>conftest.$ac_ext
63175 cat >>conftest.$ac_ext <<_ACEOF
63176 /* end confdefs.h.  */
63177 #include <$header>
63178
63179 _ACEOF
63180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63181   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63182   ice_cv_have_fwrite_decl=yes
63183 fi
63184 rm -f conftest*
63185
63186 if test "$ice_cv_have_fwrite_decl" = yes; then
63187         break
63188 fi
63189 done
63190
63191 fi
63192
63193 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
63194 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
63195 if test "$ice_cv_have_fwrite_decl" = yes; then
63196
63197 cat >>confdefs.h <<_ACEOF
63198 #define HAVE_FWRITE_DECL 1
63199 _ACEOF
63200
63201 fi
63202 fi
63203
63204
63205 for ac_func in getgrgid_r
63206 do
63207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63208 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63209 $as_echo_n "checking for $ac_func... " >&6; }
63210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63211   $as_echo_n "(cached) " >&6
63212 else
63213   cat >conftest.$ac_ext <<_ACEOF
63214 /* confdefs.h.  */
63215 _ACEOF
63216 cat confdefs.h >>conftest.$ac_ext
63217 cat >>conftest.$ac_ext <<_ACEOF
63218 /* end confdefs.h.  */
63219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63221 #define $ac_func innocuous_$ac_func
63222
63223 /* System header to define __stub macros and hopefully few prototypes,
63224     which can conflict with char $ac_func (); below.
63225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63226     <limits.h> exists even on freestanding compilers.  */
63227
63228 #ifdef __STDC__
63229 # include <limits.h>
63230 #else
63231 # include <assert.h>
63232 #endif
63233
63234 #undef $ac_func
63235
63236 /* Override any GCC internal prototype to avoid an error.
63237    Use char because int might match the return type of a GCC
63238    builtin and then its argument prototype would still apply.  */
63239 #ifdef __cplusplus
63240 extern "C"
63241 #endif
63242 char $ac_func ();
63243 /* The GNU C library defines this for functions which it implements
63244     to always fail with ENOSYS.  Some functions are actually named
63245     something starting with __ and the normal name is an alias.  */
63246 #if defined __stub_$ac_func || defined __stub___$ac_func
63247 choke me
63248 #endif
63249
63250 int
63251 main ()
63252 {
63253 return $ac_func ();
63254   ;
63255   return 0;
63256 }
63257 _ACEOF
63258 rm -f conftest.$ac_objext conftest$ac_exeext
63259 if { (ac_try="$ac_link"
63260 case "(($ac_try" in
63261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63262   *) ac_try_echo=$ac_try;;
63263 esac
63264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63265 $as_echo "$ac_try_echo") >&5
63266   (eval "$ac_link") 2>conftest.er1
63267   ac_status=$?
63268   grep -v '^ *+' conftest.er1 >conftest.err
63269   rm -f conftest.er1
63270   cat conftest.err >&5
63271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63272   (exit $ac_status); } && {
63273          test -z "$ac_c_werror_flag" ||
63274          test ! -s conftest.err
63275        } && test -s conftest$ac_exeext && {
63276          test "$cross_compiling" = yes ||
63277          $as_test_x conftest$ac_exeext
63278        }; then
63279   eval "$as_ac_var=yes"
63280 else
63281   $as_echo "$as_me: failed program was:" >&5
63282 sed 's/^/| /' conftest.$ac_ext >&5
63283
63284         eval "$as_ac_var=no"
63285 fi
63286
63287 rm -rf conftest.dSYM
63288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63289       conftest$ac_exeext conftest.$ac_ext
63290 fi
63291 ac_res=`eval 'as_val=${'$as_ac_var'}
63292                  $as_echo "$as_val"'`
63293                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63294 $as_echo "$ac_res" >&6; }
63295 as_val=`eval 'as_val=${'$as_ac_var'}
63296                  $as_echo "$as_val"'`
63297    if test "x$as_val" = x""yes; then
63298   cat >>confdefs.h <<_ACEOF
63299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63300 _ACEOF
63301
63302 fi
63303 done
63304
63305
63306 for ac_func in getpwuid_r
63307 do
63308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63310 $as_echo_n "checking for $ac_func... " >&6; }
63311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63312   $as_echo_n "(cached) " >&6
63313 else
63314   cat >conftest.$ac_ext <<_ACEOF
63315 /* confdefs.h.  */
63316 _ACEOF
63317 cat confdefs.h >>conftest.$ac_ext
63318 cat >>conftest.$ac_ext <<_ACEOF
63319 /* end confdefs.h.  */
63320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63322 #define $ac_func innocuous_$ac_func
63323
63324 /* System header to define __stub macros and hopefully few prototypes,
63325     which can conflict with char $ac_func (); below.
63326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63327     <limits.h> exists even on freestanding compilers.  */
63328
63329 #ifdef __STDC__
63330 # include <limits.h>
63331 #else
63332 # include <assert.h>
63333 #endif
63334
63335 #undef $ac_func
63336
63337 /* Override any GCC internal prototype to avoid an error.
63338    Use char because int might match the return type of a GCC
63339    builtin and then its argument prototype would still apply.  */
63340 #ifdef __cplusplus
63341 extern "C"
63342 #endif
63343 char $ac_func ();
63344 /* The GNU C library defines this for functions which it implements
63345     to always fail with ENOSYS.  Some functions are actually named
63346     something starting with __ and the normal name is an alias.  */
63347 #if defined __stub_$ac_func || defined __stub___$ac_func
63348 choke me
63349 #endif
63350
63351 int
63352 main ()
63353 {
63354 return $ac_func ();
63355   ;
63356   return 0;
63357 }
63358 _ACEOF
63359 rm -f conftest.$ac_objext conftest$ac_exeext
63360 if { (ac_try="$ac_link"
63361 case "(($ac_try" in
63362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63363   *) ac_try_echo=$ac_try;;
63364 esac
63365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63366 $as_echo "$ac_try_echo") >&5
63367   (eval "$ac_link") 2>conftest.er1
63368   ac_status=$?
63369   grep -v '^ *+' conftest.er1 >conftest.err
63370   rm -f conftest.er1
63371   cat conftest.err >&5
63372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63373   (exit $ac_status); } && {
63374          test -z "$ac_c_werror_flag" ||
63375          test ! -s conftest.err
63376        } && test -s conftest$ac_exeext && {
63377          test "$cross_compiling" = yes ||
63378          $as_test_x conftest$ac_exeext
63379        }; then
63380   eval "$as_ac_var=yes"
63381 else
63382   $as_echo "$as_me: failed program was:" >&5
63383 sed 's/^/| /' conftest.$ac_ext >&5
63384
63385         eval "$as_ac_var=no"
63386 fi
63387
63388 rm -rf conftest.dSYM
63389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63390       conftest$ac_exeext conftest.$ac_ext
63391 fi
63392 ac_res=`eval 'as_val=${'$as_ac_var'}
63393                  $as_echo "$as_val"'`
63394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63395 $as_echo "$ac_res" >&6; }
63396 as_val=`eval 'as_val=${'$as_ac_var'}
63397                  $as_echo "$as_val"'`
63398    if test "x$as_val" = x""yes; then
63399   cat >>confdefs.h <<_ACEOF
63400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63401 _ACEOF
63402
63403 fi
63404 done
63405
63406
63407 ice_have_gethostname=no
63408
63409 for ac_func in gethostname
63410 do
63411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63413 $as_echo_n "checking for $ac_func... " >&6; }
63414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63415   $as_echo_n "(cached) " >&6
63416 else
63417   cat >conftest.$ac_ext <<_ACEOF
63418 /* confdefs.h.  */
63419 _ACEOF
63420 cat confdefs.h >>conftest.$ac_ext
63421 cat >>conftest.$ac_ext <<_ACEOF
63422 /* end confdefs.h.  */
63423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63425 #define $ac_func innocuous_$ac_func
63426
63427 /* System header to define __stub macros and hopefully few prototypes,
63428     which can conflict with char $ac_func (); below.
63429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63430     <limits.h> exists even on freestanding compilers.  */
63431
63432 #ifdef __STDC__
63433 # include <limits.h>
63434 #else
63435 # include <assert.h>
63436 #endif
63437
63438 #undef $ac_func
63439
63440 /* Override any GCC internal prototype to avoid an error.
63441    Use char because int might match the return type of a GCC
63442    builtin and then its argument prototype would still apply.  */
63443 #ifdef __cplusplus
63444 extern "C"
63445 #endif
63446 char $ac_func ();
63447 /* The GNU C library defines this for functions which it implements
63448     to always fail with ENOSYS.  Some functions are actually named
63449     something starting with __ and the normal name is an alias.  */
63450 #if defined __stub_$ac_func || defined __stub___$ac_func
63451 choke me
63452 #endif
63453
63454 int
63455 main ()
63456 {
63457 return $ac_func ();
63458   ;
63459   return 0;
63460 }
63461 _ACEOF
63462 rm -f conftest.$ac_objext conftest$ac_exeext
63463 if { (ac_try="$ac_link"
63464 case "(($ac_try" in
63465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63466   *) ac_try_echo=$ac_try;;
63467 esac
63468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63469 $as_echo "$ac_try_echo") >&5
63470   (eval "$ac_link") 2>conftest.er1
63471   ac_status=$?
63472   grep -v '^ *+' conftest.er1 >conftest.err
63473   rm -f conftest.er1
63474   cat conftest.err >&5
63475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63476   (exit $ac_status); } && {
63477          test -z "$ac_c_werror_flag" ||
63478          test ! -s conftest.err
63479        } && test -s conftest$ac_exeext && {
63480          test "$cross_compiling" = yes ||
63481          $as_test_x conftest$ac_exeext
63482        }; then
63483   eval "$as_ac_var=yes"
63484 else
63485   $as_echo "$as_me: failed program was:" >&5
63486 sed 's/^/| /' conftest.$ac_ext >&5
63487
63488         eval "$as_ac_var=no"
63489 fi
63490
63491 rm -rf conftest.dSYM
63492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63493       conftest$ac_exeext conftest.$ac_ext
63494 fi
63495 ac_res=`eval 'as_val=${'$as_ac_var'}
63496                  $as_echo "$as_val"'`
63497                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63498 $as_echo "$ac_res" >&6; }
63499 as_val=`eval 'as_val=${'$as_ac_var'}
63500                  $as_echo "$as_val"'`
63501    if test "x$as_val" = x""yes; then
63502   cat >>confdefs.h <<_ACEOF
63503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63504 _ACEOF
63505  ice_have_gethostname=yes
63506 fi
63507 done
63508
63509 if test "${ice_have_gethostname}" = yes; then
63510 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
63511 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
63512 if test "${ice_cv_have_gethostname_decl+set}" = set; then
63513   $as_echo_n "(cached) " >&6
63514 else
63515
63516 ice_cv_have_gethostname_decl=no
63517 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63518 ice_re_word='(^|[^a-zA-Z0-9_])'
63519 for header in unistd.h; do
63520 # Check for ordinary declaration
63521 cat >conftest.$ac_ext <<_ACEOF
63522 /* confdefs.h.  */
63523 _ACEOF
63524 cat confdefs.h >>conftest.$ac_ext
63525 cat >>conftest.$ac_ext <<_ACEOF
63526 /* end confdefs.h.  */
63527 #include <$header>
63528
63529 _ACEOF
63530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63531   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
63532   ice_cv_have_gethostname_decl=yes
63533 fi
63534 rm -f conftest*
63535
63536 if test "$ice_cv_have_gethostname_decl" = yes; then
63537         break
63538 fi
63539 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63540 cat >conftest.$ac_ext <<_ACEOF
63541 /* confdefs.h.  */
63542 _ACEOF
63543 cat confdefs.h >>conftest.$ac_ext
63544 cat >>conftest.$ac_ext <<_ACEOF
63545 /* end confdefs.h.  */
63546 #include <$header>
63547
63548 _ACEOF
63549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63550   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63551   ice_cv_have_gethostname_decl=yes
63552 fi
63553 rm -f conftest*
63554
63555 if test "$ice_cv_have_gethostname_decl" = yes; then
63556         break
63557 fi
63558 done
63559
63560 fi
63561
63562 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
63563 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
63564 if test "$ice_cv_have_gethostname_decl" = yes; then
63565
63566 cat >>confdefs.h <<_ACEOF
63567 #define HAVE_GETHOSTNAME_DECL 1
63568 _ACEOF
63569
63570 fi
63571 fi
63572
63573
63574 ice_have_getopt=no
63575
63576 for ac_func in getopt
63577 do
63578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63580 $as_echo_n "checking for $ac_func... " >&6; }
63581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63582   $as_echo_n "(cached) " >&6
63583 else
63584   cat >conftest.$ac_ext <<_ACEOF
63585 /* confdefs.h.  */
63586 _ACEOF
63587 cat confdefs.h >>conftest.$ac_ext
63588 cat >>conftest.$ac_ext <<_ACEOF
63589 /* end confdefs.h.  */
63590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63592 #define $ac_func innocuous_$ac_func
63593
63594 /* System header to define __stub macros and hopefully few prototypes,
63595     which can conflict with char $ac_func (); below.
63596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63597     <limits.h> exists even on freestanding compilers.  */
63598
63599 #ifdef __STDC__
63600 # include <limits.h>
63601 #else
63602 # include <assert.h>
63603 #endif
63604
63605 #undef $ac_func
63606
63607 /* Override any GCC internal prototype to avoid an error.
63608    Use char because int might match the return type of a GCC
63609    builtin and then its argument prototype would still apply.  */
63610 #ifdef __cplusplus
63611 extern "C"
63612 #endif
63613 char $ac_func ();
63614 /* The GNU C library defines this for functions which it implements
63615     to always fail with ENOSYS.  Some functions are actually named
63616     something starting with __ and the normal name is an alias.  */
63617 #if defined __stub_$ac_func || defined __stub___$ac_func
63618 choke me
63619 #endif
63620
63621 int
63622 main ()
63623 {
63624 return $ac_func ();
63625   ;
63626   return 0;
63627 }
63628 _ACEOF
63629 rm -f conftest.$ac_objext conftest$ac_exeext
63630 if { (ac_try="$ac_link"
63631 case "(($ac_try" in
63632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63633   *) ac_try_echo=$ac_try;;
63634 esac
63635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63636 $as_echo "$ac_try_echo") >&5
63637   (eval "$ac_link") 2>conftest.er1
63638   ac_status=$?
63639   grep -v '^ *+' conftest.er1 >conftest.err
63640   rm -f conftest.er1
63641   cat conftest.err >&5
63642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63643   (exit $ac_status); } && {
63644          test -z "$ac_c_werror_flag" ||
63645          test ! -s conftest.err
63646        } && test -s conftest$ac_exeext && {
63647          test "$cross_compiling" = yes ||
63648          $as_test_x conftest$ac_exeext
63649        }; then
63650   eval "$as_ac_var=yes"
63651 else
63652   $as_echo "$as_me: failed program was:" >&5
63653 sed 's/^/| /' conftest.$ac_ext >&5
63654
63655         eval "$as_ac_var=no"
63656 fi
63657
63658 rm -rf conftest.dSYM
63659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63660       conftest$ac_exeext conftest.$ac_ext
63661 fi
63662 ac_res=`eval 'as_val=${'$as_ac_var'}
63663                  $as_echo "$as_val"'`
63664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63665 $as_echo "$ac_res" >&6; }
63666 as_val=`eval 'as_val=${'$as_ac_var'}
63667                  $as_echo "$as_val"'`
63668    if test "x$as_val" = x""yes; then
63669   cat >>confdefs.h <<_ACEOF
63670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63671 _ACEOF
63672  ice_have_getopt=yes
63673 fi
63674 done
63675
63676 if test "${ice_have_getopt}" = yes; then
63677 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
63678 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
63679 if test "${ice_cv_have_getopt_decl+set}" = set; then
63680   $as_echo_n "(cached) " >&6
63681 else
63682
63683 ice_cv_have_getopt_decl=no
63684 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63685 ice_re_word='(^|[^a-zA-Z0-9_])'
63686 for header in stdlib.h unistd.h libc.h; do
63687 # Check for ordinary declaration
63688 cat >conftest.$ac_ext <<_ACEOF
63689 /* confdefs.h.  */
63690 _ACEOF
63691 cat confdefs.h >>conftest.$ac_ext
63692 cat >>conftest.$ac_ext <<_ACEOF
63693 /* end confdefs.h.  */
63694 #include <$header>
63695
63696 _ACEOF
63697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63698   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
63699   ice_cv_have_getopt_decl=yes
63700 fi
63701 rm -f conftest*
63702
63703 if test "$ice_cv_have_getopt_decl" = yes; then
63704         break
63705 fi
63706 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63707 cat >conftest.$ac_ext <<_ACEOF
63708 /* confdefs.h.  */
63709 _ACEOF
63710 cat confdefs.h >>conftest.$ac_ext
63711 cat >>conftest.$ac_ext <<_ACEOF
63712 /* end confdefs.h.  */
63713 #include <$header>
63714
63715 _ACEOF
63716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63717   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63718   ice_cv_have_getopt_decl=yes
63719 fi
63720 rm -f conftest*
63721
63722 if test "$ice_cv_have_getopt_decl" = yes; then
63723         break
63724 fi
63725 done
63726
63727 fi
63728
63729 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
63730 $as_echo "$ice_cv_have_getopt_decl" >&6; }
63731 if test "$ice_cv_have_getopt_decl" = yes; then
63732
63733 cat >>confdefs.h <<_ACEOF
63734 #define HAVE_GETOPT_DECL 1
63735 _ACEOF
63736
63737 fi
63738 fi
63739
63740
63741 ice_have_getpeername=no
63742
63743 for ac_func in getpeername
63744 do
63745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63746 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63747 $as_echo_n "checking for $ac_func... " >&6; }
63748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63749   $as_echo_n "(cached) " >&6
63750 else
63751   cat >conftest.$ac_ext <<_ACEOF
63752 /* confdefs.h.  */
63753 _ACEOF
63754 cat confdefs.h >>conftest.$ac_ext
63755 cat >>conftest.$ac_ext <<_ACEOF
63756 /* end confdefs.h.  */
63757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63759 #define $ac_func innocuous_$ac_func
63760
63761 /* System header to define __stub macros and hopefully few prototypes,
63762     which can conflict with char $ac_func (); below.
63763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63764     <limits.h> exists even on freestanding compilers.  */
63765
63766 #ifdef __STDC__
63767 # include <limits.h>
63768 #else
63769 # include <assert.h>
63770 #endif
63771
63772 #undef $ac_func
63773
63774 /* Override any GCC internal prototype to avoid an error.
63775    Use char because int might match the return type of a GCC
63776    builtin and then its argument prototype would still apply.  */
63777 #ifdef __cplusplus
63778 extern "C"
63779 #endif
63780 char $ac_func ();
63781 /* The GNU C library defines this for functions which it implements
63782     to always fail with ENOSYS.  Some functions are actually named
63783     something starting with __ and the normal name is an alias.  */
63784 #if defined __stub_$ac_func || defined __stub___$ac_func
63785 choke me
63786 #endif
63787
63788 int
63789 main ()
63790 {
63791 return $ac_func ();
63792   ;
63793   return 0;
63794 }
63795 _ACEOF
63796 rm -f conftest.$ac_objext conftest$ac_exeext
63797 if { (ac_try="$ac_link"
63798 case "(($ac_try" in
63799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63800   *) ac_try_echo=$ac_try;;
63801 esac
63802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63803 $as_echo "$ac_try_echo") >&5
63804   (eval "$ac_link") 2>conftest.er1
63805   ac_status=$?
63806   grep -v '^ *+' conftest.er1 >conftest.err
63807   rm -f conftest.er1
63808   cat conftest.err >&5
63809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63810   (exit $ac_status); } && {
63811          test -z "$ac_c_werror_flag" ||
63812          test ! -s conftest.err
63813        } && test -s conftest$ac_exeext && {
63814          test "$cross_compiling" = yes ||
63815          $as_test_x conftest$ac_exeext
63816        }; then
63817   eval "$as_ac_var=yes"
63818 else
63819   $as_echo "$as_me: failed program was:" >&5
63820 sed 's/^/| /' conftest.$ac_ext >&5
63821
63822         eval "$as_ac_var=no"
63823 fi
63824
63825 rm -rf conftest.dSYM
63826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63827       conftest$ac_exeext conftest.$ac_ext
63828 fi
63829 ac_res=`eval 'as_val=${'$as_ac_var'}
63830                  $as_echo "$as_val"'`
63831                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63832 $as_echo "$ac_res" >&6; }
63833 as_val=`eval 'as_val=${'$as_ac_var'}
63834                  $as_echo "$as_val"'`
63835    if test "x$as_val" = x""yes; then
63836   cat >>confdefs.h <<_ACEOF
63837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63838 _ACEOF
63839  ice_have_getpeername=yes
63840 fi
63841 done
63842
63843 if test "${ice_have_getpeername}" = yes; then
63844 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
63845 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
63846 if test "${ice_cv_have_getpeername_decl+set}" = set; then
63847   $as_echo_n "(cached) " >&6
63848 else
63849
63850 ice_cv_have_getpeername_decl=no
63851 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63852 ice_re_word='(^|[^a-zA-Z0-9_])'
63853 for header in sys/types.h sys/socket.h; do
63854 # Check for ordinary declaration
63855 cat >conftest.$ac_ext <<_ACEOF
63856 /* confdefs.h.  */
63857 _ACEOF
63858 cat confdefs.h >>conftest.$ac_ext
63859 cat >>conftest.$ac_ext <<_ACEOF
63860 /* end confdefs.h.  */
63861 #include <$header>
63862
63863 _ACEOF
63864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63865   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
63866   ice_cv_have_getpeername_decl=yes
63867 fi
63868 rm -f conftest*
63869
63870 if test "$ice_cv_have_getpeername_decl" = yes; then
63871         break
63872 fi
63873 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63874 cat >conftest.$ac_ext <<_ACEOF
63875 /* confdefs.h.  */
63876 _ACEOF
63877 cat confdefs.h >>conftest.$ac_ext
63878 cat >>conftest.$ac_ext <<_ACEOF
63879 /* end confdefs.h.  */
63880 #include <$header>
63881
63882 _ACEOF
63883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63884   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63885   ice_cv_have_getpeername_decl=yes
63886 fi
63887 rm -f conftest*
63888
63889 if test "$ice_cv_have_getpeername_decl" = yes; then
63890         break
63891 fi
63892 done
63893
63894 fi
63895
63896 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
63897 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
63898 if test "$ice_cv_have_getpeername_decl" = yes; then
63899
63900 cat >>confdefs.h <<_ACEOF
63901 #define HAVE_GETPEERNAME_DECL 1
63902 _ACEOF
63903
63904 fi
63905 fi
63906
63907 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
63908 $as_echo_n "checking for getpgrp... " >&6; }
63909 if test "${ac_cv_func_getpgrp+set}" = set; then
63910   $as_echo_n "(cached) " >&6
63911 else
63912   cat >conftest.$ac_ext <<_ACEOF
63913 /* confdefs.h.  */
63914 _ACEOF
63915 cat confdefs.h >>conftest.$ac_ext
63916 cat >>conftest.$ac_ext <<_ACEOF
63917 /* end confdefs.h.  */
63918 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
63919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63920 #define getpgrp innocuous_getpgrp
63921
63922 /* System header to define __stub macros and hopefully few prototypes,
63923     which can conflict with char getpgrp (); below.
63924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63925     <limits.h> exists even on freestanding compilers.  */
63926
63927 #ifdef __STDC__
63928 # include <limits.h>
63929 #else
63930 # include <assert.h>
63931 #endif
63932
63933 #undef getpgrp
63934
63935 /* Override any GCC internal prototype to avoid an error.
63936    Use char because int might match the return type of a GCC
63937    builtin and then its argument prototype would still apply.  */
63938 #ifdef __cplusplus
63939 extern "C"
63940 #endif
63941 char getpgrp ();
63942 /* The GNU C library defines this for functions which it implements
63943     to always fail with ENOSYS.  Some functions are actually named
63944     something starting with __ and the normal name is an alias.  */
63945 #if defined __stub_getpgrp || defined __stub___getpgrp
63946 choke me
63947 #endif
63948
63949 int
63950 main ()
63951 {
63952 return getpgrp ();
63953   ;
63954   return 0;
63955 }
63956 _ACEOF
63957 rm -f conftest.$ac_objext conftest$ac_exeext
63958 if { (ac_try="$ac_link"
63959 case "(($ac_try" in
63960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63961   *) ac_try_echo=$ac_try;;
63962 esac
63963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63964 $as_echo "$ac_try_echo") >&5
63965   (eval "$ac_link") 2>conftest.er1
63966   ac_status=$?
63967   grep -v '^ *+' conftest.er1 >conftest.err
63968   rm -f conftest.er1
63969   cat conftest.err >&5
63970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63971   (exit $ac_status); } && {
63972          test -z "$ac_c_werror_flag" ||
63973          test ! -s conftest.err
63974        } && test -s conftest$ac_exeext && {
63975          test "$cross_compiling" = yes ||
63976          $as_test_x conftest$ac_exeext
63977        }; then
63978   ac_cv_func_getpgrp=yes
63979 else
63980   $as_echo "$as_me: failed program was:" >&5
63981 sed 's/^/| /' conftest.$ac_ext >&5
63982
63983         ac_cv_func_getpgrp=no
63984 fi
63985
63986 rm -rf conftest.dSYM
63987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63988       conftest$ac_exeext conftest.$ac_ext
63989 fi
63990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
63991 $as_echo "$ac_cv_func_getpgrp" >&6; }
63992
63993 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
63994 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
63995 if test "${ac_cv_func_getpgrp_void+set}" = set; then
63996   $as_echo_n "(cached) " >&6
63997 else
63998   # Use it with a single arg.
63999 cat >conftest.$ac_ext <<_ACEOF
64000 /* confdefs.h.  */
64001 _ACEOF
64002 cat confdefs.h >>conftest.$ac_ext
64003 cat >>conftest.$ac_ext <<_ACEOF
64004 /* end confdefs.h.  */
64005 $ac_includes_default
64006 int
64007 main ()
64008 {
64009 getpgrp (0);
64010   ;
64011   return 0;
64012 }
64013 _ACEOF
64014 rm -f conftest.$ac_objext
64015 if { (ac_try="$ac_compile"
64016 case "(($ac_try" in
64017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64018   *) ac_try_echo=$ac_try;;
64019 esac
64020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64021 $as_echo "$ac_try_echo") >&5
64022   (eval "$ac_compile") 2>conftest.er1
64023   ac_status=$?
64024   grep -v '^ *+' conftest.er1 >conftest.err
64025   rm -f conftest.er1
64026   cat conftest.err >&5
64027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64028   (exit $ac_status); } && {
64029          test -z "$ac_c_werror_flag" ||
64030          test ! -s conftest.err
64031        } && test -s conftest.$ac_objext; then
64032   ac_cv_func_getpgrp_void=no
64033 else
64034   $as_echo "$as_me: failed program was:" >&5
64035 sed 's/^/| /' conftest.$ac_ext >&5
64036
64037         ac_cv_func_getpgrp_void=yes
64038 fi
64039
64040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64041
64042 fi
64043 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
64044 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
64045 if test $ac_cv_func_getpgrp_void = yes; then
64046
64047 cat >>confdefs.h <<\_ACEOF
64048 #define GETPGRP_VOID 1
64049 _ACEOF
64050
64051 fi
64052
64053
64054 ice_have_getsockname=no
64055
64056 for ac_func in getsockname
64057 do
64058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64059 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64060 $as_echo_n "checking for $ac_func... " >&6; }
64061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64062   $as_echo_n "(cached) " >&6
64063 else
64064   cat >conftest.$ac_ext <<_ACEOF
64065 /* confdefs.h.  */
64066 _ACEOF
64067 cat confdefs.h >>conftest.$ac_ext
64068 cat >>conftest.$ac_ext <<_ACEOF
64069 /* end confdefs.h.  */
64070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64072 #define $ac_func innocuous_$ac_func
64073
64074 /* System header to define __stub macros and hopefully few prototypes,
64075     which can conflict with char $ac_func (); below.
64076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64077     <limits.h> exists even on freestanding compilers.  */
64078
64079 #ifdef __STDC__
64080 # include <limits.h>
64081 #else
64082 # include <assert.h>
64083 #endif
64084
64085 #undef $ac_func
64086
64087 /* Override any GCC internal prototype to avoid an error.
64088    Use char because int might match the return type of a GCC
64089    builtin and then its argument prototype would still apply.  */
64090 #ifdef __cplusplus
64091 extern "C"
64092 #endif
64093 char $ac_func ();
64094 /* The GNU C library defines this for functions which it implements
64095     to always fail with ENOSYS.  Some functions are actually named
64096     something starting with __ and the normal name is an alias.  */
64097 #if defined __stub_$ac_func || defined __stub___$ac_func
64098 choke me
64099 #endif
64100
64101 int
64102 main ()
64103 {
64104 return $ac_func ();
64105   ;
64106   return 0;
64107 }
64108 _ACEOF
64109 rm -f conftest.$ac_objext conftest$ac_exeext
64110 if { (ac_try="$ac_link"
64111 case "(($ac_try" in
64112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64113   *) ac_try_echo=$ac_try;;
64114 esac
64115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64116 $as_echo "$ac_try_echo") >&5
64117   (eval "$ac_link") 2>conftest.er1
64118   ac_status=$?
64119   grep -v '^ *+' conftest.er1 >conftest.err
64120   rm -f conftest.er1
64121   cat conftest.err >&5
64122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64123   (exit $ac_status); } && {
64124          test -z "$ac_c_werror_flag" ||
64125          test ! -s conftest.err
64126        } && test -s conftest$ac_exeext && {
64127          test "$cross_compiling" = yes ||
64128          $as_test_x conftest$ac_exeext
64129        }; then
64130   eval "$as_ac_var=yes"
64131 else
64132   $as_echo "$as_me: failed program was:" >&5
64133 sed 's/^/| /' conftest.$ac_ext >&5
64134
64135         eval "$as_ac_var=no"
64136 fi
64137
64138 rm -rf conftest.dSYM
64139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64140       conftest$ac_exeext conftest.$ac_ext
64141 fi
64142 ac_res=`eval 'as_val=${'$as_ac_var'}
64143                  $as_echo "$as_val"'`
64144                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64145 $as_echo "$ac_res" >&6; }
64146 as_val=`eval 'as_val=${'$as_ac_var'}
64147                  $as_echo "$as_val"'`
64148    if test "x$as_val" = x""yes; then
64149   cat >>confdefs.h <<_ACEOF
64150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64151 _ACEOF
64152  ice_have_getsockname=yes
64153 fi
64154 done
64155
64156 if test "${ice_have_getsockname}" = yes; then
64157 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
64158 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
64159 if test "${ice_cv_have_getsockname_decl+set}" = set; then
64160   $as_echo_n "(cached) " >&6
64161 else
64162
64163 ice_cv_have_getsockname_decl=no
64164 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64165 ice_re_word='(^|[^a-zA-Z0-9_])'
64166 for header in sys/types.h sys/socket.h; do
64167 # Check for ordinary declaration
64168 cat >conftest.$ac_ext <<_ACEOF
64169 /* confdefs.h.  */
64170 _ACEOF
64171 cat confdefs.h >>conftest.$ac_ext
64172 cat >>conftest.$ac_ext <<_ACEOF
64173 /* end confdefs.h.  */
64174 #include <$header>
64175
64176 _ACEOF
64177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64178   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
64179   ice_cv_have_getsockname_decl=yes
64180 fi
64181 rm -f conftest*
64182
64183 if test "$ice_cv_have_getsockname_decl" = yes; then
64184         break
64185 fi
64186 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64187 cat >conftest.$ac_ext <<_ACEOF
64188 /* confdefs.h.  */
64189 _ACEOF
64190 cat confdefs.h >>conftest.$ac_ext
64191 cat >>conftest.$ac_ext <<_ACEOF
64192 /* end confdefs.h.  */
64193 #include <$header>
64194
64195 _ACEOF
64196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64197   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64198   ice_cv_have_getsockname_decl=yes
64199 fi
64200 rm -f conftest*
64201
64202 if test "$ice_cv_have_getsockname_decl" = yes; then
64203         break
64204 fi
64205 done
64206
64207 fi
64208
64209 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
64210 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
64211 if test "$ice_cv_have_getsockname_decl" = yes; then
64212
64213 cat >>confdefs.h <<_ACEOF
64214 #define HAVE_GETSOCKNAME_DECL 1
64215 _ACEOF
64216
64217 fi
64218 fi
64219
64220
64221 ice_have_getsockopt=no
64222
64223 for ac_func in getsockopt
64224 do
64225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64226 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64227 $as_echo_n "checking for $ac_func... " >&6; }
64228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64229   $as_echo_n "(cached) " >&6
64230 else
64231   cat >conftest.$ac_ext <<_ACEOF
64232 /* confdefs.h.  */
64233 _ACEOF
64234 cat confdefs.h >>conftest.$ac_ext
64235 cat >>conftest.$ac_ext <<_ACEOF
64236 /* end confdefs.h.  */
64237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64239 #define $ac_func innocuous_$ac_func
64240
64241 /* System header to define __stub macros and hopefully few prototypes,
64242     which can conflict with char $ac_func (); below.
64243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64244     <limits.h> exists even on freestanding compilers.  */
64245
64246 #ifdef __STDC__
64247 # include <limits.h>
64248 #else
64249 # include <assert.h>
64250 #endif
64251
64252 #undef $ac_func
64253
64254 /* Override any GCC internal prototype to avoid an error.
64255    Use char because int might match the return type of a GCC
64256    builtin and then its argument prototype would still apply.  */
64257 #ifdef __cplusplus
64258 extern "C"
64259 #endif
64260 char $ac_func ();
64261 /* The GNU C library defines this for functions which it implements
64262     to always fail with ENOSYS.  Some functions are actually named
64263     something starting with __ and the normal name is an alias.  */
64264 #if defined __stub_$ac_func || defined __stub___$ac_func
64265 choke me
64266 #endif
64267
64268 int
64269 main ()
64270 {
64271 return $ac_func ();
64272   ;
64273   return 0;
64274 }
64275 _ACEOF
64276 rm -f conftest.$ac_objext conftest$ac_exeext
64277 if { (ac_try="$ac_link"
64278 case "(($ac_try" in
64279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64280   *) ac_try_echo=$ac_try;;
64281 esac
64282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64283 $as_echo "$ac_try_echo") >&5
64284   (eval "$ac_link") 2>conftest.er1
64285   ac_status=$?
64286   grep -v '^ *+' conftest.er1 >conftest.err
64287   rm -f conftest.er1
64288   cat conftest.err >&5
64289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64290   (exit $ac_status); } && {
64291          test -z "$ac_c_werror_flag" ||
64292          test ! -s conftest.err
64293        } && test -s conftest$ac_exeext && {
64294          test "$cross_compiling" = yes ||
64295          $as_test_x conftest$ac_exeext
64296        }; then
64297   eval "$as_ac_var=yes"
64298 else
64299   $as_echo "$as_me: failed program was:" >&5
64300 sed 's/^/| /' conftest.$ac_ext >&5
64301
64302         eval "$as_ac_var=no"
64303 fi
64304
64305 rm -rf conftest.dSYM
64306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64307       conftest$ac_exeext conftest.$ac_ext
64308 fi
64309 ac_res=`eval 'as_val=${'$as_ac_var'}
64310                  $as_echo "$as_val"'`
64311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64312 $as_echo "$ac_res" >&6; }
64313 as_val=`eval 'as_val=${'$as_ac_var'}
64314                  $as_echo "$as_val"'`
64315    if test "x$as_val" = x""yes; then
64316   cat >>confdefs.h <<_ACEOF
64317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64318 _ACEOF
64319  ice_have_getsockopt=yes
64320 fi
64321 done
64322
64323 if test "${ice_have_getsockopt}" = yes; then
64324 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
64325 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
64326 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
64327   $as_echo_n "(cached) " >&6
64328 else
64329
64330 ice_cv_have_getsockopt_decl=no
64331 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64332 ice_re_word='(^|[^a-zA-Z0-9_])'
64333 for header in sys/types.h sys/socket.h; do
64334 # Check for ordinary declaration
64335 cat >conftest.$ac_ext <<_ACEOF
64336 /* confdefs.h.  */
64337 _ACEOF
64338 cat confdefs.h >>conftest.$ac_ext
64339 cat >>conftest.$ac_ext <<_ACEOF
64340 /* end confdefs.h.  */
64341 #include <$header>
64342
64343 _ACEOF
64344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64345   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
64346   ice_cv_have_getsockopt_decl=yes
64347 fi
64348 rm -f conftest*
64349
64350 if test "$ice_cv_have_getsockopt_decl" = yes; then
64351         break
64352 fi
64353 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64354 cat >conftest.$ac_ext <<_ACEOF
64355 /* confdefs.h.  */
64356 _ACEOF
64357 cat confdefs.h >>conftest.$ac_ext
64358 cat >>conftest.$ac_ext <<_ACEOF
64359 /* end confdefs.h.  */
64360 #include <$header>
64361
64362 _ACEOF
64363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64364   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64365   ice_cv_have_getsockopt_decl=yes
64366 fi
64367 rm -f conftest*
64368
64369 if test "$ice_cv_have_getsockopt_decl" = yes; then
64370         break
64371 fi
64372 done
64373
64374 fi
64375
64376 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
64377 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
64378 if test "$ice_cv_have_getsockopt_decl" = yes; then
64379
64380 cat >>confdefs.h <<_ACEOF
64381 #define HAVE_GETSOCKOPT_DECL 1
64382 _ACEOF
64383
64384 fi
64385 fi
64386
64387
64388 ice_have_initgroups=no
64389
64390 for ac_func in initgroups
64391 do
64392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64394 $as_echo_n "checking for $ac_func... " >&6; }
64395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64396   $as_echo_n "(cached) " >&6
64397 else
64398   cat >conftest.$ac_ext <<_ACEOF
64399 /* confdefs.h.  */
64400 _ACEOF
64401 cat confdefs.h >>conftest.$ac_ext
64402 cat >>conftest.$ac_ext <<_ACEOF
64403 /* end confdefs.h.  */
64404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64406 #define $ac_func innocuous_$ac_func
64407
64408 /* System header to define __stub macros and hopefully few prototypes,
64409     which can conflict with char $ac_func (); below.
64410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64411     <limits.h> exists even on freestanding compilers.  */
64412
64413 #ifdef __STDC__
64414 # include <limits.h>
64415 #else
64416 # include <assert.h>
64417 #endif
64418
64419 #undef $ac_func
64420
64421 /* Override any GCC internal prototype to avoid an error.
64422    Use char because int might match the return type of a GCC
64423    builtin and then its argument prototype would still apply.  */
64424 #ifdef __cplusplus
64425 extern "C"
64426 #endif
64427 char $ac_func ();
64428 /* The GNU C library defines this for functions which it implements
64429     to always fail with ENOSYS.  Some functions are actually named
64430     something starting with __ and the normal name is an alias.  */
64431 #if defined __stub_$ac_func || defined __stub___$ac_func
64432 choke me
64433 #endif
64434
64435 int
64436 main ()
64437 {
64438 return $ac_func ();
64439   ;
64440   return 0;
64441 }
64442 _ACEOF
64443 rm -f conftest.$ac_objext conftest$ac_exeext
64444 if { (ac_try="$ac_link"
64445 case "(($ac_try" in
64446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64447   *) ac_try_echo=$ac_try;;
64448 esac
64449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64450 $as_echo "$ac_try_echo") >&5
64451   (eval "$ac_link") 2>conftest.er1
64452   ac_status=$?
64453   grep -v '^ *+' conftest.er1 >conftest.err
64454   rm -f conftest.er1
64455   cat conftest.err >&5
64456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64457   (exit $ac_status); } && {
64458          test -z "$ac_c_werror_flag" ||
64459          test ! -s conftest.err
64460        } && test -s conftest$ac_exeext && {
64461          test "$cross_compiling" = yes ||
64462          $as_test_x conftest$ac_exeext
64463        }; then
64464   eval "$as_ac_var=yes"
64465 else
64466   $as_echo "$as_me: failed program was:" >&5
64467 sed 's/^/| /' conftest.$ac_ext >&5
64468
64469         eval "$as_ac_var=no"
64470 fi
64471
64472 rm -rf conftest.dSYM
64473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64474       conftest$ac_exeext conftest.$ac_ext
64475 fi
64476 ac_res=`eval 'as_val=${'$as_ac_var'}
64477                  $as_echo "$as_val"'`
64478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64479 $as_echo "$ac_res" >&6; }
64480 as_val=`eval 'as_val=${'$as_ac_var'}
64481                  $as_echo "$as_val"'`
64482    if test "x$as_val" = x""yes; then
64483   cat >>confdefs.h <<_ACEOF
64484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64485 _ACEOF
64486  ice_have_initgroups=yes
64487 fi
64488 done
64489
64490 if test "${ice_have_initgroups}" = yes; then
64491 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
64492 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
64493 if test "${ice_cv_have_initgroups_decl+set}" = set; then
64494   $as_echo_n "(cached) " >&6
64495 else
64496
64497 ice_cv_have_initgroups_decl=no
64498 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64499 ice_re_word='(^|[^a-zA-Z0-9_])'
64500 for header in grp.h sys/types.h unistd.h libc.h; do
64501 # Check for ordinary declaration
64502 cat >conftest.$ac_ext <<_ACEOF
64503 /* confdefs.h.  */
64504 _ACEOF
64505 cat confdefs.h >>conftest.$ac_ext
64506 cat >>conftest.$ac_ext <<_ACEOF
64507 /* end confdefs.h.  */
64508 #include <$header>
64509
64510 _ACEOF
64511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64512   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
64513   ice_cv_have_initgroups_decl=yes
64514 fi
64515 rm -f conftest*
64516
64517 if test "$ice_cv_have_initgroups_decl" = yes; then
64518         break
64519 fi
64520 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64521 cat >conftest.$ac_ext <<_ACEOF
64522 /* confdefs.h.  */
64523 _ACEOF
64524 cat confdefs.h >>conftest.$ac_ext
64525 cat >>conftest.$ac_ext <<_ACEOF
64526 /* end confdefs.h.  */
64527 #include <$header>
64528
64529 _ACEOF
64530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64531   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64532   ice_cv_have_initgroups_decl=yes
64533 fi
64534 rm -f conftest*
64535
64536 if test "$ice_cv_have_initgroups_decl" = yes; then
64537         break
64538 fi
64539 done
64540
64541 fi
64542
64543 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
64544 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
64545 if test "$ice_cv_have_initgroups_decl" = yes; then
64546
64547 cat >>confdefs.h <<_ACEOF
64548 #define HAVE_INITGROUPS_DECL 1
64549 _ACEOF
64550
64551 fi
64552 fi
64553
64554
64555 ice_have_ioctl=no
64556
64557 for ac_func in ioctl
64558 do
64559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64561 $as_echo_n "checking for $ac_func... " >&6; }
64562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64563   $as_echo_n "(cached) " >&6
64564 else
64565   cat >conftest.$ac_ext <<_ACEOF
64566 /* confdefs.h.  */
64567 _ACEOF
64568 cat confdefs.h >>conftest.$ac_ext
64569 cat >>conftest.$ac_ext <<_ACEOF
64570 /* end confdefs.h.  */
64571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64573 #define $ac_func innocuous_$ac_func
64574
64575 /* System header to define __stub macros and hopefully few prototypes,
64576     which can conflict with char $ac_func (); below.
64577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64578     <limits.h> exists even on freestanding compilers.  */
64579
64580 #ifdef __STDC__
64581 # include <limits.h>
64582 #else
64583 # include <assert.h>
64584 #endif
64585
64586 #undef $ac_func
64587
64588 /* Override any GCC internal prototype to avoid an error.
64589    Use char because int might match the return type of a GCC
64590    builtin and then its argument prototype would still apply.  */
64591 #ifdef __cplusplus
64592 extern "C"
64593 #endif
64594 char $ac_func ();
64595 /* The GNU C library defines this for functions which it implements
64596     to always fail with ENOSYS.  Some functions are actually named
64597     something starting with __ and the normal name is an alias.  */
64598 #if defined __stub_$ac_func || defined __stub___$ac_func
64599 choke me
64600 #endif
64601
64602 int
64603 main ()
64604 {
64605 return $ac_func ();
64606   ;
64607   return 0;
64608 }
64609 _ACEOF
64610 rm -f conftest.$ac_objext conftest$ac_exeext
64611 if { (ac_try="$ac_link"
64612 case "(($ac_try" in
64613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64614   *) ac_try_echo=$ac_try;;
64615 esac
64616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64617 $as_echo "$ac_try_echo") >&5
64618   (eval "$ac_link") 2>conftest.er1
64619   ac_status=$?
64620   grep -v '^ *+' conftest.er1 >conftest.err
64621   rm -f conftest.er1
64622   cat conftest.err >&5
64623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64624   (exit $ac_status); } && {
64625          test -z "$ac_c_werror_flag" ||
64626          test ! -s conftest.err
64627        } && test -s conftest$ac_exeext && {
64628          test "$cross_compiling" = yes ||
64629          $as_test_x conftest$ac_exeext
64630        }; then
64631   eval "$as_ac_var=yes"
64632 else
64633   $as_echo "$as_me: failed program was:" >&5
64634 sed 's/^/| /' conftest.$ac_ext >&5
64635
64636         eval "$as_ac_var=no"
64637 fi
64638
64639 rm -rf conftest.dSYM
64640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64641       conftest$ac_exeext conftest.$ac_ext
64642 fi
64643 ac_res=`eval 'as_val=${'$as_ac_var'}
64644                  $as_echo "$as_val"'`
64645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64646 $as_echo "$ac_res" >&6; }
64647 as_val=`eval 'as_val=${'$as_ac_var'}
64648                  $as_echo "$as_val"'`
64649    if test "x$as_val" = x""yes; then
64650   cat >>confdefs.h <<_ACEOF
64651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64652 _ACEOF
64653  ice_have_ioctl=yes
64654 fi
64655 done
64656
64657 if test "${ice_have_ioctl}" = yes; then
64658 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
64659 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
64660 if test "${ice_cv_have_ioctl_decl+set}" = set; then
64661   $as_echo_n "(cached) " >&6
64662 else
64663
64664 ice_cv_have_ioctl_decl=no
64665 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64666 ice_re_word='(^|[^a-zA-Z0-9_])'
64667 for header in sys/ioctl.h unistd.h libc.h; do
64668 # Check for ordinary declaration
64669 cat >conftest.$ac_ext <<_ACEOF
64670 /* confdefs.h.  */
64671 _ACEOF
64672 cat confdefs.h >>conftest.$ac_ext
64673 cat >>conftest.$ac_ext <<_ACEOF
64674 /* end confdefs.h.  */
64675 #include <$header>
64676
64677 _ACEOF
64678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64679   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
64680   ice_cv_have_ioctl_decl=yes
64681 fi
64682 rm -f conftest*
64683
64684 if test "$ice_cv_have_ioctl_decl" = yes; then
64685         break
64686 fi
64687 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64688 cat >conftest.$ac_ext <<_ACEOF
64689 /* confdefs.h.  */
64690 _ACEOF
64691 cat confdefs.h >>conftest.$ac_ext
64692 cat >>conftest.$ac_ext <<_ACEOF
64693 /* end confdefs.h.  */
64694 #include <$header>
64695
64696 _ACEOF
64697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64698   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64699   ice_cv_have_ioctl_decl=yes
64700 fi
64701 rm -f conftest*
64702
64703 if test "$ice_cv_have_ioctl_decl" = yes; then
64704         break
64705 fi
64706 done
64707
64708 fi
64709
64710 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
64711 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
64712 if test "$ice_cv_have_ioctl_decl" = yes; then
64713
64714 cat >>confdefs.h <<_ACEOF
64715 #define HAVE_IOCTL_DECL 1
64716 _ACEOF
64717
64718 fi
64719 fi
64720
64721
64722 ice_have_isnormal=no
64723
64724 for ac_func in isnormal
64725 do
64726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64727 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64728 $as_echo_n "checking for $ac_func... " >&6; }
64729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64730   $as_echo_n "(cached) " >&6
64731 else
64732   cat >conftest.$ac_ext <<_ACEOF
64733 /* confdefs.h.  */
64734 _ACEOF
64735 cat confdefs.h >>conftest.$ac_ext
64736 cat >>conftest.$ac_ext <<_ACEOF
64737 /* end confdefs.h.  */
64738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64740 #define $ac_func innocuous_$ac_func
64741
64742 /* System header to define __stub macros and hopefully few prototypes,
64743     which can conflict with char $ac_func (); below.
64744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64745     <limits.h> exists even on freestanding compilers.  */
64746
64747 #ifdef __STDC__
64748 # include <limits.h>
64749 #else
64750 # include <assert.h>
64751 #endif
64752
64753 #undef $ac_func
64754
64755 /* Override any GCC internal prototype to avoid an error.
64756    Use char because int might match the return type of a GCC
64757    builtin and then its argument prototype would still apply.  */
64758 #ifdef __cplusplus
64759 extern "C"
64760 #endif
64761 char $ac_func ();
64762 /* The GNU C library defines this for functions which it implements
64763     to always fail with ENOSYS.  Some functions are actually named
64764     something starting with __ and the normal name is an alias.  */
64765 #if defined __stub_$ac_func || defined __stub___$ac_func
64766 choke me
64767 #endif
64768
64769 int
64770 main ()
64771 {
64772 return $ac_func ();
64773   ;
64774   return 0;
64775 }
64776 _ACEOF
64777 rm -f conftest.$ac_objext conftest$ac_exeext
64778 if { (ac_try="$ac_link"
64779 case "(($ac_try" in
64780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64781   *) ac_try_echo=$ac_try;;
64782 esac
64783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64784 $as_echo "$ac_try_echo") >&5
64785   (eval "$ac_link") 2>conftest.er1
64786   ac_status=$?
64787   grep -v '^ *+' conftest.er1 >conftest.err
64788   rm -f conftest.er1
64789   cat conftest.err >&5
64790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64791   (exit $ac_status); } && {
64792          test -z "$ac_c_werror_flag" ||
64793          test ! -s conftest.err
64794        } && test -s conftest$ac_exeext && {
64795          test "$cross_compiling" = yes ||
64796          $as_test_x conftest$ac_exeext
64797        }; then
64798   eval "$as_ac_var=yes"
64799 else
64800   $as_echo "$as_me: failed program was:" >&5
64801 sed 's/^/| /' conftest.$ac_ext >&5
64802
64803         eval "$as_ac_var=no"
64804 fi
64805
64806 rm -rf conftest.dSYM
64807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64808       conftest$ac_exeext conftest.$ac_ext
64809 fi
64810 ac_res=`eval 'as_val=${'$as_ac_var'}
64811                  $as_echo "$as_val"'`
64812                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64813 $as_echo "$ac_res" >&6; }
64814 as_val=`eval 'as_val=${'$as_ac_var'}
64815                  $as_echo "$as_val"'`
64816    if test "x$as_val" = x""yes; then
64817   cat >>confdefs.h <<_ACEOF
64818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64819 _ACEOF
64820  ice_have_isnormal=yes
64821 fi
64822 done
64823
64824 if test "${ice_have_isnormal}" = yes; then
64825 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
64826 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
64827 if test "${ice_cv_have_isnormal_decl+set}" = set; then
64828   $as_echo_n "(cached) " >&6
64829 else
64830
64831 ice_cv_have_isnormal_decl=no
64832 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64833 ice_re_word='(^|[^a-zA-Z0-9_])'
64834 for header in math.h; do
64835 # Check for ordinary declaration
64836 cat >conftest.$ac_ext <<_ACEOF
64837 /* confdefs.h.  */
64838 _ACEOF
64839 cat confdefs.h >>conftest.$ac_ext
64840 cat >>conftest.$ac_ext <<_ACEOF
64841 /* end confdefs.h.  */
64842 #include <$header>
64843
64844 _ACEOF
64845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64846   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
64847   ice_cv_have_isnormal_decl=yes
64848 fi
64849 rm -f conftest*
64850
64851 if test "$ice_cv_have_isnormal_decl" = yes; then
64852         break
64853 fi
64854 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64855 cat >conftest.$ac_ext <<_ACEOF
64856 /* confdefs.h.  */
64857 _ACEOF
64858 cat confdefs.h >>conftest.$ac_ext
64859 cat >>conftest.$ac_ext <<_ACEOF
64860 /* end confdefs.h.  */
64861 #include <$header>
64862
64863 _ACEOF
64864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64865   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64866   ice_cv_have_isnormal_decl=yes
64867 fi
64868 rm -f conftest*
64869
64870 if test "$ice_cv_have_isnormal_decl" = yes; then
64871         break
64872 fi
64873 done
64874
64875 fi
64876
64877 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
64878 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
64879 if test "$ice_cv_have_isnormal_decl" = yes; then
64880
64881 cat >>confdefs.h <<_ACEOF
64882 #define HAVE_ISNORMAL_DECL 1
64883 _ACEOF
64884
64885 fi
64886 fi
64887
64888
64889 ice_have_listen=no
64890
64891 for ac_func in listen
64892 do
64893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64895 $as_echo_n "checking for $ac_func... " >&6; }
64896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64897   $as_echo_n "(cached) " >&6
64898 else
64899   cat >conftest.$ac_ext <<_ACEOF
64900 /* confdefs.h.  */
64901 _ACEOF
64902 cat confdefs.h >>conftest.$ac_ext
64903 cat >>conftest.$ac_ext <<_ACEOF
64904 /* end confdefs.h.  */
64905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64907 #define $ac_func innocuous_$ac_func
64908
64909 /* System header to define __stub macros and hopefully few prototypes,
64910     which can conflict with char $ac_func (); below.
64911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64912     <limits.h> exists even on freestanding compilers.  */
64913
64914 #ifdef __STDC__
64915 # include <limits.h>
64916 #else
64917 # include <assert.h>
64918 #endif
64919
64920 #undef $ac_func
64921
64922 /* Override any GCC internal prototype to avoid an error.
64923    Use char because int might match the return type of a GCC
64924    builtin and then its argument prototype would still apply.  */
64925 #ifdef __cplusplus
64926 extern "C"
64927 #endif
64928 char $ac_func ();
64929 /* The GNU C library defines this for functions which it implements
64930     to always fail with ENOSYS.  Some functions are actually named
64931     something starting with __ and the normal name is an alias.  */
64932 #if defined __stub_$ac_func || defined __stub___$ac_func
64933 choke me
64934 #endif
64935
64936 int
64937 main ()
64938 {
64939 return $ac_func ();
64940   ;
64941   return 0;
64942 }
64943 _ACEOF
64944 rm -f conftest.$ac_objext conftest$ac_exeext
64945 if { (ac_try="$ac_link"
64946 case "(($ac_try" in
64947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64948   *) ac_try_echo=$ac_try;;
64949 esac
64950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64951 $as_echo "$ac_try_echo") >&5
64952   (eval "$ac_link") 2>conftest.er1
64953   ac_status=$?
64954   grep -v '^ *+' conftest.er1 >conftest.err
64955   rm -f conftest.er1
64956   cat conftest.err >&5
64957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64958   (exit $ac_status); } && {
64959          test -z "$ac_c_werror_flag" ||
64960          test ! -s conftest.err
64961        } && test -s conftest$ac_exeext && {
64962          test "$cross_compiling" = yes ||
64963          $as_test_x conftest$ac_exeext
64964        }; then
64965   eval "$as_ac_var=yes"
64966 else
64967   $as_echo "$as_me: failed program was:" >&5
64968 sed 's/^/| /' conftest.$ac_ext >&5
64969
64970         eval "$as_ac_var=no"
64971 fi
64972
64973 rm -rf conftest.dSYM
64974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64975       conftest$ac_exeext conftest.$ac_ext
64976 fi
64977 ac_res=`eval 'as_val=${'$as_ac_var'}
64978                  $as_echo "$as_val"'`
64979                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64980 $as_echo "$ac_res" >&6; }
64981 as_val=`eval 'as_val=${'$as_ac_var'}
64982                  $as_echo "$as_val"'`
64983    if test "x$as_val" = x""yes; then
64984   cat >>confdefs.h <<_ACEOF
64985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64986 _ACEOF
64987  ice_have_listen=yes
64988 fi
64989 done
64990
64991 if test "${ice_have_listen}" = yes; then
64992 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
64993 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
64994 if test "${ice_cv_have_listen_decl+set}" = set; then
64995   $as_echo_n "(cached) " >&6
64996 else
64997
64998 ice_cv_have_listen_decl=no
64999 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65000 ice_re_word='(^|[^a-zA-Z0-9_])'
65001 for header in sys/types.h sys/socket.h; do
65002 # Check for ordinary declaration
65003 cat >conftest.$ac_ext <<_ACEOF
65004 /* confdefs.h.  */
65005 _ACEOF
65006 cat confdefs.h >>conftest.$ac_ext
65007 cat >>conftest.$ac_ext <<_ACEOF
65008 /* end confdefs.h.  */
65009 #include <$header>
65010
65011 _ACEOF
65012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65013   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
65014   ice_cv_have_listen_decl=yes
65015 fi
65016 rm -f conftest*
65017
65018 if test "$ice_cv_have_listen_decl" = yes; then
65019         break
65020 fi
65021 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65022 cat >conftest.$ac_ext <<_ACEOF
65023 /* confdefs.h.  */
65024 _ACEOF
65025 cat confdefs.h >>conftest.$ac_ext
65026 cat >>conftest.$ac_ext <<_ACEOF
65027 /* end confdefs.h.  */
65028 #include <$header>
65029
65030 _ACEOF
65031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65032   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65033   ice_cv_have_listen_decl=yes
65034 fi
65035 rm -f conftest*
65036
65037 if test "$ice_cv_have_listen_decl" = yes; then
65038         break
65039 fi
65040 done
65041
65042 fi
65043
65044 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
65045 $as_echo "$ice_cv_have_listen_decl" >&6; }
65046 if test "$ice_cv_have_listen_decl" = yes; then
65047
65048 cat >>confdefs.h <<_ACEOF
65049 #define HAVE_LISTEN_DECL 1
65050 _ACEOF
65051
65052 fi
65053 fi
65054
65055
65056 ice_have_lstat=no
65057
65058 for ac_func in lstat
65059 do
65060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65061 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65062 $as_echo_n "checking for $ac_func... " >&6; }
65063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65064   $as_echo_n "(cached) " >&6
65065 else
65066   cat >conftest.$ac_ext <<_ACEOF
65067 /* confdefs.h.  */
65068 _ACEOF
65069 cat confdefs.h >>conftest.$ac_ext
65070 cat >>conftest.$ac_ext <<_ACEOF
65071 /* end confdefs.h.  */
65072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65074 #define $ac_func innocuous_$ac_func
65075
65076 /* System header to define __stub macros and hopefully few prototypes,
65077     which can conflict with char $ac_func (); below.
65078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65079     <limits.h> exists even on freestanding compilers.  */
65080
65081 #ifdef __STDC__
65082 # include <limits.h>
65083 #else
65084 # include <assert.h>
65085 #endif
65086
65087 #undef $ac_func
65088
65089 /* Override any GCC internal prototype to avoid an error.
65090    Use char because int might match the return type of a GCC
65091    builtin and then its argument prototype would still apply.  */
65092 #ifdef __cplusplus
65093 extern "C"
65094 #endif
65095 char $ac_func ();
65096 /* The GNU C library defines this for functions which it implements
65097     to always fail with ENOSYS.  Some functions are actually named
65098     something starting with __ and the normal name is an alias.  */
65099 #if defined __stub_$ac_func || defined __stub___$ac_func
65100 choke me
65101 #endif
65102
65103 int
65104 main ()
65105 {
65106 return $ac_func ();
65107   ;
65108   return 0;
65109 }
65110 _ACEOF
65111 rm -f conftest.$ac_objext conftest$ac_exeext
65112 if { (ac_try="$ac_link"
65113 case "(($ac_try" in
65114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65115   *) ac_try_echo=$ac_try;;
65116 esac
65117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65118 $as_echo "$ac_try_echo") >&5
65119   (eval "$ac_link") 2>conftest.er1
65120   ac_status=$?
65121   grep -v '^ *+' conftest.er1 >conftest.err
65122   rm -f conftest.er1
65123   cat conftest.err >&5
65124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65125   (exit $ac_status); } && {
65126          test -z "$ac_c_werror_flag" ||
65127          test ! -s conftest.err
65128        } && test -s conftest$ac_exeext && {
65129          test "$cross_compiling" = yes ||
65130          $as_test_x conftest$ac_exeext
65131        }; then
65132   eval "$as_ac_var=yes"
65133 else
65134   $as_echo "$as_me: failed program was:" >&5
65135 sed 's/^/| /' conftest.$ac_ext >&5
65136
65137         eval "$as_ac_var=no"
65138 fi
65139
65140 rm -rf conftest.dSYM
65141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65142       conftest$ac_exeext conftest.$ac_ext
65143 fi
65144 ac_res=`eval 'as_val=${'$as_ac_var'}
65145                  $as_echo "$as_val"'`
65146                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65147 $as_echo "$ac_res" >&6; }
65148 as_val=`eval 'as_val=${'$as_ac_var'}
65149                  $as_echo "$as_val"'`
65150    if test "x$as_val" = x""yes; then
65151   cat >>confdefs.h <<_ACEOF
65152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65153 _ACEOF
65154  ice_have_lstat=yes
65155 fi
65156 done
65157
65158 if test "${ice_have_lstat}" = yes; then
65159 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
65160 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
65161 if test "${ice_cv_have_lstat_decl+set}" = set; then
65162   $as_echo_n "(cached) " >&6
65163 else
65164
65165 ice_cv_have_lstat_decl=no
65166 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65167 ice_re_word='(^|[^a-zA-Z0-9_])'
65168 for header in sys/types.h sys/stat.h; do
65169 # Check for ordinary declaration
65170 cat >conftest.$ac_ext <<_ACEOF
65171 /* confdefs.h.  */
65172 _ACEOF
65173 cat confdefs.h >>conftest.$ac_ext
65174 cat >>conftest.$ac_ext <<_ACEOF
65175 /* end confdefs.h.  */
65176 #include <$header>
65177
65178 _ACEOF
65179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65180   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
65181   ice_cv_have_lstat_decl=yes
65182 fi
65183 rm -f conftest*
65184
65185 if test "$ice_cv_have_lstat_decl" = yes; then
65186         break
65187 fi
65188 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65189 cat >conftest.$ac_ext <<_ACEOF
65190 /* confdefs.h.  */
65191 _ACEOF
65192 cat confdefs.h >>conftest.$ac_ext
65193 cat >>conftest.$ac_ext <<_ACEOF
65194 /* end confdefs.h.  */
65195 #include <$header>
65196
65197 _ACEOF
65198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65199   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65200   ice_cv_have_lstat_decl=yes
65201 fi
65202 rm -f conftest*
65203
65204 if test "$ice_cv_have_lstat_decl" = yes; then
65205         break
65206 fi
65207 done
65208
65209 fi
65210
65211 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
65212 $as_echo "$ice_cv_have_lstat_decl" >&6; }
65213 if test "$ice_cv_have_lstat_decl" = yes; then
65214
65215 cat >>confdefs.h <<_ACEOF
65216 #define HAVE_LSTAT_DECL 1
65217 _ACEOF
65218
65219 fi
65220 fi
65221
65222
65223 ice_have_malloc=no
65224
65225 for ac_func in malloc
65226 do
65227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65228 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65229 $as_echo_n "checking for $ac_func... " >&6; }
65230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65231   $as_echo_n "(cached) " >&6
65232 else
65233   cat >conftest.$ac_ext <<_ACEOF
65234 /* confdefs.h.  */
65235 _ACEOF
65236 cat confdefs.h >>conftest.$ac_ext
65237 cat >>conftest.$ac_ext <<_ACEOF
65238 /* end confdefs.h.  */
65239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65241 #define $ac_func innocuous_$ac_func
65242
65243 /* System header to define __stub macros and hopefully few prototypes,
65244     which can conflict with char $ac_func (); below.
65245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65246     <limits.h> exists even on freestanding compilers.  */
65247
65248 #ifdef __STDC__
65249 # include <limits.h>
65250 #else
65251 # include <assert.h>
65252 #endif
65253
65254 #undef $ac_func
65255
65256 /* Override any GCC internal prototype to avoid an error.
65257    Use char because int might match the return type of a GCC
65258    builtin and then its argument prototype would still apply.  */
65259 #ifdef __cplusplus
65260 extern "C"
65261 #endif
65262 char $ac_func ();
65263 /* The GNU C library defines this for functions which it implements
65264     to always fail with ENOSYS.  Some functions are actually named
65265     something starting with __ and the normal name is an alias.  */
65266 #if defined __stub_$ac_func || defined __stub___$ac_func
65267 choke me
65268 #endif
65269
65270 int
65271 main ()
65272 {
65273 return $ac_func ();
65274   ;
65275   return 0;
65276 }
65277 _ACEOF
65278 rm -f conftest.$ac_objext conftest$ac_exeext
65279 if { (ac_try="$ac_link"
65280 case "(($ac_try" in
65281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65282   *) ac_try_echo=$ac_try;;
65283 esac
65284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65285 $as_echo "$ac_try_echo") >&5
65286   (eval "$ac_link") 2>conftest.er1
65287   ac_status=$?
65288   grep -v '^ *+' conftest.er1 >conftest.err
65289   rm -f conftest.er1
65290   cat conftest.err >&5
65291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65292   (exit $ac_status); } && {
65293          test -z "$ac_c_werror_flag" ||
65294          test ! -s conftest.err
65295        } && test -s conftest$ac_exeext && {
65296          test "$cross_compiling" = yes ||
65297          $as_test_x conftest$ac_exeext
65298        }; then
65299   eval "$as_ac_var=yes"
65300 else
65301   $as_echo "$as_me: failed program was:" >&5
65302 sed 's/^/| /' conftest.$ac_ext >&5
65303
65304         eval "$as_ac_var=no"
65305 fi
65306
65307 rm -rf conftest.dSYM
65308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65309       conftest$ac_exeext conftest.$ac_ext
65310 fi
65311 ac_res=`eval 'as_val=${'$as_ac_var'}
65312                  $as_echo "$as_val"'`
65313                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65314 $as_echo "$ac_res" >&6; }
65315 as_val=`eval 'as_val=${'$as_ac_var'}
65316                  $as_echo "$as_val"'`
65317    if test "x$as_val" = x""yes; then
65318   cat >>confdefs.h <<_ACEOF
65319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65320 _ACEOF
65321  ice_have_malloc=yes
65322 fi
65323 done
65324
65325 if test "${ice_have_malloc}" = yes; then
65326 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
65327 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
65328 if test "${ice_cv_have_malloc_decl+set}" = set; then
65329   $as_echo_n "(cached) " >&6
65330 else
65331
65332 ice_cv_have_malloc_decl=no
65333 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65334 ice_re_word='(^|[^a-zA-Z0-9_])'
65335 for header in stdlib.h; do
65336 # Check for ordinary declaration
65337 cat >conftest.$ac_ext <<_ACEOF
65338 /* confdefs.h.  */
65339 _ACEOF
65340 cat confdefs.h >>conftest.$ac_ext
65341 cat >>conftest.$ac_ext <<_ACEOF
65342 /* end confdefs.h.  */
65343 #include <$header>
65344
65345 _ACEOF
65346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65347   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
65348   ice_cv_have_malloc_decl=yes
65349 fi
65350 rm -f conftest*
65351
65352 if test "$ice_cv_have_malloc_decl" = yes; then
65353         break
65354 fi
65355 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65356 cat >conftest.$ac_ext <<_ACEOF
65357 /* confdefs.h.  */
65358 _ACEOF
65359 cat confdefs.h >>conftest.$ac_ext
65360 cat >>conftest.$ac_ext <<_ACEOF
65361 /* end confdefs.h.  */
65362 #include <$header>
65363
65364 _ACEOF
65365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65366   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65367   ice_cv_have_malloc_decl=yes
65368 fi
65369 rm -f conftest*
65370
65371 if test "$ice_cv_have_malloc_decl" = yes; then
65372         break
65373 fi
65374 done
65375
65376 fi
65377
65378 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
65379 $as_echo "$ice_cv_have_malloc_decl" >&6; }
65380 if test "$ice_cv_have_malloc_decl" = yes; then
65381
65382 cat >>confdefs.h <<_ACEOF
65383 #define HAVE_MALLOC_DECL 1
65384 _ACEOF
65385
65386 fi
65387 fi
65388
65389
65390 ice_have_memmove=no
65391
65392 for ac_func in memmove
65393 do
65394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65396 $as_echo_n "checking for $ac_func... " >&6; }
65397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65398   $as_echo_n "(cached) " >&6
65399 else
65400   cat >conftest.$ac_ext <<_ACEOF
65401 /* confdefs.h.  */
65402 _ACEOF
65403 cat confdefs.h >>conftest.$ac_ext
65404 cat >>conftest.$ac_ext <<_ACEOF
65405 /* end confdefs.h.  */
65406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65408 #define $ac_func innocuous_$ac_func
65409
65410 /* System header to define __stub macros and hopefully few prototypes,
65411     which can conflict with char $ac_func (); below.
65412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65413     <limits.h> exists even on freestanding compilers.  */
65414
65415 #ifdef __STDC__
65416 # include <limits.h>
65417 #else
65418 # include <assert.h>
65419 #endif
65420
65421 #undef $ac_func
65422
65423 /* Override any GCC internal prototype to avoid an error.
65424    Use char because int might match the return type of a GCC
65425    builtin and then its argument prototype would still apply.  */
65426 #ifdef __cplusplus
65427 extern "C"
65428 #endif
65429 char $ac_func ();
65430 /* The GNU C library defines this for functions which it implements
65431     to always fail with ENOSYS.  Some functions are actually named
65432     something starting with __ and the normal name is an alias.  */
65433 #if defined __stub_$ac_func || defined __stub___$ac_func
65434 choke me
65435 #endif
65436
65437 int
65438 main ()
65439 {
65440 return $ac_func ();
65441   ;
65442   return 0;
65443 }
65444 _ACEOF
65445 rm -f conftest.$ac_objext conftest$ac_exeext
65446 if { (ac_try="$ac_link"
65447 case "(($ac_try" in
65448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65449   *) ac_try_echo=$ac_try;;
65450 esac
65451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65452 $as_echo "$ac_try_echo") >&5
65453   (eval "$ac_link") 2>conftest.er1
65454   ac_status=$?
65455   grep -v '^ *+' conftest.er1 >conftest.err
65456   rm -f conftest.er1
65457   cat conftest.err >&5
65458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65459   (exit $ac_status); } && {
65460          test -z "$ac_c_werror_flag" ||
65461          test ! -s conftest.err
65462        } && test -s conftest$ac_exeext && {
65463          test "$cross_compiling" = yes ||
65464          $as_test_x conftest$ac_exeext
65465        }; then
65466   eval "$as_ac_var=yes"
65467 else
65468   $as_echo "$as_me: failed program was:" >&5
65469 sed 's/^/| /' conftest.$ac_ext >&5
65470
65471         eval "$as_ac_var=no"
65472 fi
65473
65474 rm -rf conftest.dSYM
65475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65476       conftest$ac_exeext conftest.$ac_ext
65477 fi
65478 ac_res=`eval 'as_val=${'$as_ac_var'}
65479                  $as_echo "$as_val"'`
65480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65481 $as_echo "$ac_res" >&6; }
65482 as_val=`eval 'as_val=${'$as_ac_var'}
65483                  $as_echo "$as_val"'`
65484    if test "x$as_val" = x""yes; then
65485   cat >>confdefs.h <<_ACEOF
65486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65487 _ACEOF
65488  ice_have_memmove=yes
65489 fi
65490 done
65491
65492 if test "${ice_have_memmove}" = yes; then
65493 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
65494 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
65495 if test "${ice_cv_have_memmove_decl+set}" = set; then
65496   $as_echo_n "(cached) " >&6
65497 else
65498
65499 ice_cv_have_memmove_decl=no
65500 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65501 ice_re_word='(^|[^a-zA-Z0-9_])'
65502 for header in string.h strings.h; do
65503 # Check for ordinary declaration
65504 cat >conftest.$ac_ext <<_ACEOF
65505 /* confdefs.h.  */
65506 _ACEOF
65507 cat confdefs.h >>conftest.$ac_ext
65508 cat >>conftest.$ac_ext <<_ACEOF
65509 /* end confdefs.h.  */
65510 #include <$header>
65511
65512 _ACEOF
65513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65514   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
65515   ice_cv_have_memmove_decl=yes
65516 fi
65517 rm -f conftest*
65518
65519 if test "$ice_cv_have_memmove_decl" = yes; then
65520         break
65521 fi
65522 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65523 cat >conftest.$ac_ext <<_ACEOF
65524 /* confdefs.h.  */
65525 _ACEOF
65526 cat confdefs.h >>conftest.$ac_ext
65527 cat >>conftest.$ac_ext <<_ACEOF
65528 /* end confdefs.h.  */
65529 #include <$header>
65530
65531 _ACEOF
65532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65533   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65534   ice_cv_have_memmove_decl=yes
65535 fi
65536 rm -f conftest*
65537
65538 if test "$ice_cv_have_memmove_decl" = yes; then
65539         break
65540 fi
65541 done
65542
65543 fi
65544
65545 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
65546 $as_echo "$ice_cv_have_memmove_decl" >&6; }
65547 if test "$ice_cv_have_memmove_decl" = yes; then
65548
65549 cat >>confdefs.h <<_ACEOF
65550 #define HAVE_MEMMOVE_DECL 1
65551 _ACEOF
65552
65553 fi
65554 fi
65555
65556
65557 ice_have_memset=no
65558
65559 for ac_func in memset
65560 do
65561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65562 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65563 $as_echo_n "checking for $ac_func... " >&6; }
65564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65565   $as_echo_n "(cached) " >&6
65566 else
65567   cat >conftest.$ac_ext <<_ACEOF
65568 /* confdefs.h.  */
65569 _ACEOF
65570 cat confdefs.h >>conftest.$ac_ext
65571 cat >>conftest.$ac_ext <<_ACEOF
65572 /* end confdefs.h.  */
65573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65575 #define $ac_func innocuous_$ac_func
65576
65577 /* System header to define __stub macros and hopefully few prototypes,
65578     which can conflict with char $ac_func (); below.
65579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65580     <limits.h> exists even on freestanding compilers.  */
65581
65582 #ifdef __STDC__
65583 # include <limits.h>
65584 #else
65585 # include <assert.h>
65586 #endif
65587
65588 #undef $ac_func
65589
65590 /* Override any GCC internal prototype to avoid an error.
65591    Use char because int might match the return type of a GCC
65592    builtin and then its argument prototype would still apply.  */
65593 #ifdef __cplusplus
65594 extern "C"
65595 #endif
65596 char $ac_func ();
65597 /* The GNU C library defines this for functions which it implements
65598     to always fail with ENOSYS.  Some functions are actually named
65599     something starting with __ and the normal name is an alias.  */
65600 #if defined __stub_$ac_func || defined __stub___$ac_func
65601 choke me
65602 #endif
65603
65604 int
65605 main ()
65606 {
65607 return $ac_func ();
65608   ;
65609   return 0;
65610 }
65611 _ACEOF
65612 rm -f conftest.$ac_objext conftest$ac_exeext
65613 if { (ac_try="$ac_link"
65614 case "(($ac_try" in
65615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65616   *) ac_try_echo=$ac_try;;
65617 esac
65618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65619 $as_echo "$ac_try_echo") >&5
65620   (eval "$ac_link") 2>conftest.er1
65621   ac_status=$?
65622   grep -v '^ *+' conftest.er1 >conftest.err
65623   rm -f conftest.er1
65624   cat conftest.err >&5
65625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65626   (exit $ac_status); } && {
65627          test -z "$ac_c_werror_flag" ||
65628          test ! -s conftest.err
65629        } && test -s conftest$ac_exeext && {
65630          test "$cross_compiling" = yes ||
65631          $as_test_x conftest$ac_exeext
65632        }; then
65633   eval "$as_ac_var=yes"
65634 else
65635   $as_echo "$as_me: failed program was:" >&5
65636 sed 's/^/| /' conftest.$ac_ext >&5
65637
65638         eval "$as_ac_var=no"
65639 fi
65640
65641 rm -rf conftest.dSYM
65642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65643       conftest$ac_exeext conftest.$ac_ext
65644 fi
65645 ac_res=`eval 'as_val=${'$as_ac_var'}
65646                  $as_echo "$as_val"'`
65647                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65648 $as_echo "$ac_res" >&6; }
65649 as_val=`eval 'as_val=${'$as_ac_var'}
65650                  $as_echo "$as_val"'`
65651    if test "x$as_val" = x""yes; then
65652   cat >>confdefs.h <<_ACEOF
65653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65654 _ACEOF
65655  ice_have_memset=yes
65656 fi
65657 done
65658
65659 if test "${ice_have_memset}" = yes; then
65660 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
65661 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
65662 if test "${ice_cv_have_memset_decl+set}" = set; then
65663   $as_echo_n "(cached) " >&6
65664 else
65665
65666 ice_cv_have_memset_decl=no
65667 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65668 ice_re_word='(^|[^a-zA-Z0-9_])'
65669 for header in string.h strings.h; do
65670 # Check for ordinary declaration
65671 cat >conftest.$ac_ext <<_ACEOF
65672 /* confdefs.h.  */
65673 _ACEOF
65674 cat confdefs.h >>conftest.$ac_ext
65675 cat >>conftest.$ac_ext <<_ACEOF
65676 /* end confdefs.h.  */
65677 #include <$header>
65678
65679 _ACEOF
65680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65681   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
65682   ice_cv_have_memset_decl=yes
65683 fi
65684 rm -f conftest*
65685
65686 if test "$ice_cv_have_memset_decl" = yes; then
65687         break
65688 fi
65689 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65690 cat >conftest.$ac_ext <<_ACEOF
65691 /* confdefs.h.  */
65692 _ACEOF
65693 cat confdefs.h >>conftest.$ac_ext
65694 cat >>conftest.$ac_ext <<_ACEOF
65695 /* end confdefs.h.  */
65696 #include <$header>
65697
65698 _ACEOF
65699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65700   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65701   ice_cv_have_memset_decl=yes
65702 fi
65703 rm -f conftest*
65704
65705 if test "$ice_cv_have_memset_decl" = yes; then
65706         break
65707 fi
65708 done
65709
65710 fi
65711
65712 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
65713 $as_echo "$ice_cv_have_memset_decl" >&6; }
65714 if test "$ice_cv_have_memset_decl" = yes; then
65715
65716 cat >>confdefs.h <<_ACEOF
65717 #define HAVE_MEMSET_DECL 1
65718 _ACEOF
65719
65720 fi
65721 fi
65722
65723
65724 ice_have_mkstemp=no
65725
65726 for ac_func in mkstemp
65727 do
65728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65730 $as_echo_n "checking for $ac_func... " >&6; }
65731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65732   $as_echo_n "(cached) " >&6
65733 else
65734   cat >conftest.$ac_ext <<_ACEOF
65735 /* confdefs.h.  */
65736 _ACEOF
65737 cat confdefs.h >>conftest.$ac_ext
65738 cat >>conftest.$ac_ext <<_ACEOF
65739 /* end confdefs.h.  */
65740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65742 #define $ac_func innocuous_$ac_func
65743
65744 /* System header to define __stub macros and hopefully few prototypes,
65745     which can conflict with char $ac_func (); below.
65746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65747     <limits.h> exists even on freestanding compilers.  */
65748
65749 #ifdef __STDC__
65750 # include <limits.h>
65751 #else
65752 # include <assert.h>
65753 #endif
65754
65755 #undef $ac_func
65756
65757 /* Override any GCC internal prototype to avoid an error.
65758    Use char because int might match the return type of a GCC
65759    builtin and then its argument prototype would still apply.  */
65760 #ifdef __cplusplus
65761 extern "C"
65762 #endif
65763 char $ac_func ();
65764 /* The GNU C library defines this for functions which it implements
65765     to always fail with ENOSYS.  Some functions are actually named
65766     something starting with __ and the normal name is an alias.  */
65767 #if defined __stub_$ac_func || defined __stub___$ac_func
65768 choke me
65769 #endif
65770
65771 int
65772 main ()
65773 {
65774 return $ac_func ();
65775   ;
65776   return 0;
65777 }
65778 _ACEOF
65779 rm -f conftest.$ac_objext conftest$ac_exeext
65780 if { (ac_try="$ac_link"
65781 case "(($ac_try" in
65782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65783   *) ac_try_echo=$ac_try;;
65784 esac
65785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65786 $as_echo "$ac_try_echo") >&5
65787   (eval "$ac_link") 2>conftest.er1
65788   ac_status=$?
65789   grep -v '^ *+' conftest.er1 >conftest.err
65790   rm -f conftest.er1
65791   cat conftest.err >&5
65792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65793   (exit $ac_status); } && {
65794          test -z "$ac_c_werror_flag" ||
65795          test ! -s conftest.err
65796        } && test -s conftest$ac_exeext && {
65797          test "$cross_compiling" = yes ||
65798          $as_test_x conftest$ac_exeext
65799        }; then
65800   eval "$as_ac_var=yes"
65801 else
65802   $as_echo "$as_me: failed program was:" >&5
65803 sed 's/^/| /' conftest.$ac_ext >&5
65804
65805         eval "$as_ac_var=no"
65806 fi
65807
65808 rm -rf conftest.dSYM
65809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65810       conftest$ac_exeext conftest.$ac_ext
65811 fi
65812 ac_res=`eval 'as_val=${'$as_ac_var'}
65813                  $as_echo "$as_val"'`
65814                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65815 $as_echo "$ac_res" >&6; }
65816 as_val=`eval 'as_val=${'$as_ac_var'}
65817                  $as_echo "$as_val"'`
65818    if test "x$as_val" = x""yes; then
65819   cat >>confdefs.h <<_ACEOF
65820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65821 _ACEOF
65822  ice_have_mkstemp=yes
65823 fi
65824 done
65825
65826 if test "${ice_have_mkstemp}" = yes; then
65827 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
65828 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
65829 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
65830   $as_echo_n "(cached) " >&6
65831 else
65832
65833 ice_cv_have_mkstemp_decl=no
65834 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65835 ice_re_word='(^|[^a-zA-Z0-9_])'
65836 for header in stdlib.h; do
65837 # Check for ordinary declaration
65838 cat >conftest.$ac_ext <<_ACEOF
65839 /* confdefs.h.  */
65840 _ACEOF
65841 cat confdefs.h >>conftest.$ac_ext
65842 cat >>conftest.$ac_ext <<_ACEOF
65843 /* end confdefs.h.  */
65844 #include <$header>
65845
65846 _ACEOF
65847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65848   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
65849   ice_cv_have_mkstemp_decl=yes
65850 fi
65851 rm -f conftest*
65852
65853 if test "$ice_cv_have_mkstemp_decl" = yes; then
65854         break
65855 fi
65856 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65857 cat >conftest.$ac_ext <<_ACEOF
65858 /* confdefs.h.  */
65859 _ACEOF
65860 cat confdefs.h >>conftest.$ac_ext
65861 cat >>conftest.$ac_ext <<_ACEOF
65862 /* end confdefs.h.  */
65863 #include <$header>
65864
65865 _ACEOF
65866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65867   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65868   ice_cv_have_mkstemp_decl=yes
65869 fi
65870 rm -f conftest*
65871
65872 if test "$ice_cv_have_mkstemp_decl" = yes; then
65873         break
65874 fi
65875 done
65876
65877 fi
65878
65879 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
65880 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
65881 if test "$ice_cv_have_mkstemp_decl" = yes; then
65882
65883 cat >>confdefs.h <<_ACEOF
65884 #define HAVE_MKSTEMP_DECL 1
65885 _ACEOF
65886
65887 fi
65888 fi
65889
65890
65891 ice_have_mktemp=no
65892
65893 for ac_func in mktemp
65894 do
65895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65897 $as_echo_n "checking for $ac_func... " >&6; }
65898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65899   $as_echo_n "(cached) " >&6
65900 else
65901   cat >conftest.$ac_ext <<_ACEOF
65902 /* confdefs.h.  */
65903 _ACEOF
65904 cat confdefs.h >>conftest.$ac_ext
65905 cat >>conftest.$ac_ext <<_ACEOF
65906 /* end confdefs.h.  */
65907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65909 #define $ac_func innocuous_$ac_func
65910
65911 /* System header to define __stub macros and hopefully few prototypes,
65912     which can conflict with char $ac_func (); below.
65913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65914     <limits.h> exists even on freestanding compilers.  */
65915
65916 #ifdef __STDC__
65917 # include <limits.h>
65918 #else
65919 # include <assert.h>
65920 #endif
65921
65922 #undef $ac_func
65923
65924 /* Override any GCC internal prototype to avoid an error.
65925    Use char because int might match the return type of a GCC
65926    builtin and then its argument prototype would still apply.  */
65927 #ifdef __cplusplus
65928 extern "C"
65929 #endif
65930 char $ac_func ();
65931 /* The GNU C library defines this for functions which it implements
65932     to always fail with ENOSYS.  Some functions are actually named
65933     something starting with __ and the normal name is an alias.  */
65934 #if defined __stub_$ac_func || defined __stub___$ac_func
65935 choke me
65936 #endif
65937
65938 int
65939 main ()
65940 {
65941 return $ac_func ();
65942   ;
65943   return 0;
65944 }
65945 _ACEOF
65946 rm -f conftest.$ac_objext conftest$ac_exeext
65947 if { (ac_try="$ac_link"
65948 case "(($ac_try" in
65949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65950   *) ac_try_echo=$ac_try;;
65951 esac
65952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65953 $as_echo "$ac_try_echo") >&5
65954   (eval "$ac_link") 2>conftest.er1
65955   ac_status=$?
65956   grep -v '^ *+' conftest.er1 >conftest.err
65957   rm -f conftest.er1
65958   cat conftest.err >&5
65959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65960   (exit $ac_status); } && {
65961          test -z "$ac_c_werror_flag" ||
65962          test ! -s conftest.err
65963        } && test -s conftest$ac_exeext && {
65964          test "$cross_compiling" = yes ||
65965          $as_test_x conftest$ac_exeext
65966        }; then
65967   eval "$as_ac_var=yes"
65968 else
65969   $as_echo "$as_me: failed program was:" >&5
65970 sed 's/^/| /' conftest.$ac_ext >&5
65971
65972         eval "$as_ac_var=no"
65973 fi
65974
65975 rm -rf conftest.dSYM
65976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65977       conftest$ac_exeext conftest.$ac_ext
65978 fi
65979 ac_res=`eval 'as_val=${'$as_ac_var'}
65980                  $as_echo "$as_val"'`
65981                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65982 $as_echo "$ac_res" >&6; }
65983 as_val=`eval 'as_val=${'$as_ac_var'}
65984                  $as_echo "$as_val"'`
65985    if test "x$as_val" = x""yes; then
65986   cat >>confdefs.h <<_ACEOF
65987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65988 _ACEOF
65989  ice_have_mktemp=yes
65990 fi
65991 done
65992
65993 if test "${ice_have_mktemp}" = yes; then
65994 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
65995 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
65996 if test "${ice_cv_have_mktemp_decl+set}" = set; then
65997   $as_echo_n "(cached) " >&6
65998 else
65999
66000 ice_cv_have_mktemp_decl=no
66001 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66002 ice_re_word='(^|[^a-zA-Z0-9_])'
66003 for header in stdlib.h; do
66004 # Check for ordinary declaration
66005 cat >conftest.$ac_ext <<_ACEOF
66006 /* confdefs.h.  */
66007 _ACEOF
66008 cat confdefs.h >>conftest.$ac_ext
66009 cat >>conftest.$ac_ext <<_ACEOF
66010 /* end confdefs.h.  */
66011 #include <$header>
66012
66013 _ACEOF
66014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66015   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
66016   ice_cv_have_mktemp_decl=yes
66017 fi
66018 rm -f conftest*
66019
66020 if test "$ice_cv_have_mktemp_decl" = yes; then
66021         break
66022 fi
66023 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66024 cat >conftest.$ac_ext <<_ACEOF
66025 /* confdefs.h.  */
66026 _ACEOF
66027 cat confdefs.h >>conftest.$ac_ext
66028 cat >>conftest.$ac_ext <<_ACEOF
66029 /* end confdefs.h.  */
66030 #include <$header>
66031
66032 _ACEOF
66033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66034   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66035   ice_cv_have_mktemp_decl=yes
66036 fi
66037 rm -f conftest*
66038
66039 if test "$ice_cv_have_mktemp_decl" = yes; then
66040         break
66041 fi
66042 done
66043
66044 fi
66045
66046 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
66047 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
66048 if test "$ice_cv_have_mktemp_decl" = yes; then
66049
66050 cat >>confdefs.h <<_ACEOF
66051 #define HAVE_MKTEMP_DECL 1
66052 _ACEOF
66053
66054 fi
66055 fi
66056
66057
66058 ice_have_mktime=no
66059
66060 for ac_func in mktime
66061 do
66062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66064 $as_echo_n "checking for $ac_func... " >&6; }
66065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66066   $as_echo_n "(cached) " >&6
66067 else
66068   cat >conftest.$ac_ext <<_ACEOF
66069 /* confdefs.h.  */
66070 _ACEOF
66071 cat confdefs.h >>conftest.$ac_ext
66072 cat >>conftest.$ac_ext <<_ACEOF
66073 /* end confdefs.h.  */
66074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66076 #define $ac_func innocuous_$ac_func
66077
66078 /* System header to define __stub macros and hopefully few prototypes,
66079     which can conflict with char $ac_func (); below.
66080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66081     <limits.h> exists even on freestanding compilers.  */
66082
66083 #ifdef __STDC__
66084 # include <limits.h>
66085 #else
66086 # include <assert.h>
66087 #endif
66088
66089 #undef $ac_func
66090
66091 /* Override any GCC internal prototype to avoid an error.
66092    Use char because int might match the return type of a GCC
66093    builtin and then its argument prototype would still apply.  */
66094 #ifdef __cplusplus
66095 extern "C"
66096 #endif
66097 char $ac_func ();
66098 /* The GNU C library defines this for functions which it implements
66099     to always fail with ENOSYS.  Some functions are actually named
66100     something starting with __ and the normal name is an alias.  */
66101 #if defined __stub_$ac_func || defined __stub___$ac_func
66102 choke me
66103 #endif
66104
66105 int
66106 main ()
66107 {
66108 return $ac_func ();
66109   ;
66110   return 0;
66111 }
66112 _ACEOF
66113 rm -f conftest.$ac_objext conftest$ac_exeext
66114 if { (ac_try="$ac_link"
66115 case "(($ac_try" in
66116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66117   *) ac_try_echo=$ac_try;;
66118 esac
66119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66120 $as_echo "$ac_try_echo") >&5
66121   (eval "$ac_link") 2>conftest.er1
66122   ac_status=$?
66123   grep -v '^ *+' conftest.er1 >conftest.err
66124   rm -f conftest.er1
66125   cat conftest.err >&5
66126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66127   (exit $ac_status); } && {
66128          test -z "$ac_c_werror_flag" ||
66129          test ! -s conftest.err
66130        } && test -s conftest$ac_exeext && {
66131          test "$cross_compiling" = yes ||
66132          $as_test_x conftest$ac_exeext
66133        }; then
66134   eval "$as_ac_var=yes"
66135 else
66136   $as_echo "$as_me: failed program was:" >&5
66137 sed 's/^/| /' conftest.$ac_ext >&5
66138
66139         eval "$as_ac_var=no"
66140 fi
66141
66142 rm -rf conftest.dSYM
66143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66144       conftest$ac_exeext conftest.$ac_ext
66145 fi
66146 ac_res=`eval 'as_val=${'$as_ac_var'}
66147                  $as_echo "$as_val"'`
66148                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66149 $as_echo "$ac_res" >&6; }
66150 as_val=`eval 'as_val=${'$as_ac_var'}
66151                  $as_echo "$as_val"'`
66152    if test "x$as_val" = x""yes; then
66153   cat >>confdefs.h <<_ACEOF
66154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66155 _ACEOF
66156  ice_have_mktime=yes
66157 fi
66158 done
66159
66160 if test "${ice_have_mktime}" = yes; then
66161 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
66162 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
66163 if test "${ice_cv_have_mktime_decl+set}" = set; then
66164   $as_echo_n "(cached) " >&6
66165 else
66166
66167 ice_cv_have_mktime_decl=no
66168 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66169 ice_re_word='(^|[^a-zA-Z0-9_])'
66170 for header in time.h sys/time.h; do
66171 # Check for ordinary declaration
66172 cat >conftest.$ac_ext <<_ACEOF
66173 /* confdefs.h.  */
66174 _ACEOF
66175 cat confdefs.h >>conftest.$ac_ext
66176 cat >>conftest.$ac_ext <<_ACEOF
66177 /* end confdefs.h.  */
66178 #include <$header>
66179
66180 _ACEOF
66181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66182   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
66183   ice_cv_have_mktime_decl=yes
66184 fi
66185 rm -f conftest*
66186
66187 if test "$ice_cv_have_mktime_decl" = yes; then
66188         break
66189 fi
66190 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66191 cat >conftest.$ac_ext <<_ACEOF
66192 /* confdefs.h.  */
66193 _ACEOF
66194 cat confdefs.h >>conftest.$ac_ext
66195 cat >>conftest.$ac_ext <<_ACEOF
66196 /* end confdefs.h.  */
66197 #include <$header>
66198
66199 _ACEOF
66200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66201   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66202   ice_cv_have_mktime_decl=yes
66203 fi
66204 rm -f conftest*
66205
66206 if test "$ice_cv_have_mktime_decl" = yes; then
66207         break
66208 fi
66209 done
66210
66211 fi
66212
66213 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
66214 $as_echo "$ice_cv_have_mktime_decl" >&6; }
66215 if test "$ice_cv_have_mktime_decl" = yes; then
66216
66217 cat >>confdefs.h <<_ACEOF
66218 #define HAVE_MKTIME_DECL 1
66219 _ACEOF
66220
66221 fi
66222 fi
66223
66224
66225 for ac_func in on_exit
66226 do
66227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66228 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66229 $as_echo_n "checking for $ac_func... " >&6; }
66230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66231   $as_echo_n "(cached) " >&6
66232 else
66233   cat >conftest.$ac_ext <<_ACEOF
66234 /* confdefs.h.  */
66235 _ACEOF
66236 cat confdefs.h >>conftest.$ac_ext
66237 cat >>conftest.$ac_ext <<_ACEOF
66238 /* end confdefs.h.  */
66239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66241 #define $ac_func innocuous_$ac_func
66242
66243 /* System header to define __stub macros and hopefully few prototypes,
66244     which can conflict with char $ac_func (); below.
66245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66246     <limits.h> exists even on freestanding compilers.  */
66247
66248 #ifdef __STDC__
66249 # include <limits.h>
66250 #else
66251 # include <assert.h>
66252 #endif
66253
66254 #undef $ac_func
66255
66256 /* Override any GCC internal prototype to avoid an error.
66257    Use char because int might match the return type of a GCC
66258    builtin and then its argument prototype would still apply.  */
66259 #ifdef __cplusplus
66260 extern "C"
66261 #endif
66262 char $ac_func ();
66263 /* The GNU C library defines this for functions which it implements
66264     to always fail with ENOSYS.  Some functions are actually named
66265     something starting with __ and the normal name is an alias.  */
66266 #if defined __stub_$ac_func || defined __stub___$ac_func
66267 choke me
66268 #endif
66269
66270 int
66271 main ()
66272 {
66273 return $ac_func ();
66274   ;
66275   return 0;
66276 }
66277 _ACEOF
66278 rm -f conftest.$ac_objext conftest$ac_exeext
66279 if { (ac_try="$ac_link"
66280 case "(($ac_try" in
66281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66282   *) ac_try_echo=$ac_try;;
66283 esac
66284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66285 $as_echo "$ac_try_echo") >&5
66286   (eval "$ac_link") 2>conftest.er1
66287   ac_status=$?
66288   grep -v '^ *+' conftest.er1 >conftest.err
66289   rm -f conftest.er1
66290   cat conftest.err >&5
66291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66292   (exit $ac_status); } && {
66293          test -z "$ac_c_werror_flag" ||
66294          test ! -s conftest.err
66295        } && test -s conftest$ac_exeext && {
66296          test "$cross_compiling" = yes ||
66297          $as_test_x conftest$ac_exeext
66298        }; then
66299   eval "$as_ac_var=yes"
66300 else
66301   $as_echo "$as_me: failed program was:" >&5
66302 sed 's/^/| /' conftest.$ac_ext >&5
66303
66304         eval "$as_ac_var=no"
66305 fi
66306
66307 rm -rf conftest.dSYM
66308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66309       conftest$ac_exeext conftest.$ac_ext
66310 fi
66311 ac_res=`eval 'as_val=${'$as_ac_var'}
66312                  $as_echo "$as_val"'`
66313                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66314 $as_echo "$ac_res" >&6; }
66315 as_val=`eval 'as_val=${'$as_ac_var'}
66316                  $as_echo "$as_val"'`
66317    if test "x$as_val" = x""yes; then
66318   cat >>confdefs.h <<_ACEOF
66319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66320 _ACEOF
66321
66322 fi
66323 done
66324
66325
66326 ice_have_openlog=no
66327
66328 for ac_func in openlog
66329 do
66330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66331 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66332 $as_echo_n "checking for $ac_func... " >&6; }
66333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66334   $as_echo_n "(cached) " >&6
66335 else
66336   cat >conftest.$ac_ext <<_ACEOF
66337 /* confdefs.h.  */
66338 _ACEOF
66339 cat confdefs.h >>conftest.$ac_ext
66340 cat >>conftest.$ac_ext <<_ACEOF
66341 /* end confdefs.h.  */
66342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66344 #define $ac_func innocuous_$ac_func
66345
66346 /* System header to define __stub macros and hopefully few prototypes,
66347     which can conflict with char $ac_func (); below.
66348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66349     <limits.h> exists even on freestanding compilers.  */
66350
66351 #ifdef __STDC__
66352 # include <limits.h>
66353 #else
66354 # include <assert.h>
66355 #endif
66356
66357 #undef $ac_func
66358
66359 /* Override any GCC internal prototype to avoid an error.
66360    Use char because int might match the return type of a GCC
66361    builtin and then its argument prototype would still apply.  */
66362 #ifdef __cplusplus
66363 extern "C"
66364 #endif
66365 char $ac_func ();
66366 /* The GNU C library defines this for functions which it implements
66367     to always fail with ENOSYS.  Some functions are actually named
66368     something starting with __ and the normal name is an alias.  */
66369 #if defined __stub_$ac_func || defined __stub___$ac_func
66370 choke me
66371 #endif
66372
66373 int
66374 main ()
66375 {
66376 return $ac_func ();
66377   ;
66378   return 0;
66379 }
66380 _ACEOF
66381 rm -f conftest.$ac_objext conftest$ac_exeext
66382 if { (ac_try="$ac_link"
66383 case "(($ac_try" in
66384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66385   *) ac_try_echo=$ac_try;;
66386 esac
66387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66388 $as_echo "$ac_try_echo") >&5
66389   (eval "$ac_link") 2>conftest.er1
66390   ac_status=$?
66391   grep -v '^ *+' conftest.er1 >conftest.err
66392   rm -f conftest.er1
66393   cat conftest.err >&5
66394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66395   (exit $ac_status); } && {
66396          test -z "$ac_c_werror_flag" ||
66397          test ! -s conftest.err
66398        } && test -s conftest$ac_exeext && {
66399          test "$cross_compiling" = yes ||
66400          $as_test_x conftest$ac_exeext
66401        }; then
66402   eval "$as_ac_var=yes"
66403 else
66404   $as_echo "$as_me: failed program was:" >&5
66405 sed 's/^/| /' conftest.$ac_ext >&5
66406
66407         eval "$as_ac_var=no"
66408 fi
66409
66410 rm -rf conftest.dSYM
66411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66412       conftest$ac_exeext conftest.$ac_ext
66413 fi
66414 ac_res=`eval 'as_val=${'$as_ac_var'}
66415                  $as_echo "$as_val"'`
66416                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66417 $as_echo "$ac_res" >&6; }
66418 as_val=`eval 'as_val=${'$as_ac_var'}
66419                  $as_echo "$as_val"'`
66420    if test "x$as_val" = x""yes; then
66421   cat >>confdefs.h <<_ACEOF
66422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66423 _ACEOF
66424  ice_have_openlog=yes
66425 fi
66426 done
66427
66428 if test "${ice_have_openlog}" = yes; then
66429 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
66430 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
66431 if test "${ice_cv_have_openlog_decl+set}" = set; then
66432   $as_echo_n "(cached) " >&6
66433 else
66434
66435 ice_cv_have_openlog_decl=no
66436 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66437 ice_re_word='(^|[^a-zA-Z0-9_])'
66438 for header in syslog.h; do
66439 # Check for ordinary declaration
66440 cat >conftest.$ac_ext <<_ACEOF
66441 /* confdefs.h.  */
66442 _ACEOF
66443 cat confdefs.h >>conftest.$ac_ext
66444 cat >>conftest.$ac_ext <<_ACEOF
66445 /* end confdefs.h.  */
66446 #include <$header>
66447
66448 _ACEOF
66449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66450   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
66451   ice_cv_have_openlog_decl=yes
66452 fi
66453 rm -f conftest*
66454
66455 if test "$ice_cv_have_openlog_decl" = yes; then
66456         break
66457 fi
66458 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66459 cat >conftest.$ac_ext <<_ACEOF
66460 /* confdefs.h.  */
66461 _ACEOF
66462 cat confdefs.h >>conftest.$ac_ext
66463 cat >>conftest.$ac_ext <<_ACEOF
66464 /* end confdefs.h.  */
66465 #include <$header>
66466
66467 _ACEOF
66468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66469   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66470   ice_cv_have_openlog_decl=yes
66471 fi
66472 rm -f conftest*
66473
66474 if test "$ice_cv_have_openlog_decl" = yes; then
66475         break
66476 fi
66477 done
66478
66479 fi
66480
66481 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
66482 $as_echo "$ice_cv_have_openlog_decl" >&6; }
66483 if test "$ice_cv_have_openlog_decl" = yes; then
66484
66485 cat >>confdefs.h <<_ACEOF
66486 #define HAVE_OPENLOG_DECL 1
66487 _ACEOF
66488
66489 fi
66490 fi
66491
66492
66493 ice_have_pclose=no
66494
66495 for ac_func in pclose
66496 do
66497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66499 $as_echo_n "checking for $ac_func... " >&6; }
66500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66501   $as_echo_n "(cached) " >&6
66502 else
66503   cat >conftest.$ac_ext <<_ACEOF
66504 /* confdefs.h.  */
66505 _ACEOF
66506 cat confdefs.h >>conftest.$ac_ext
66507 cat >>conftest.$ac_ext <<_ACEOF
66508 /* end confdefs.h.  */
66509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66511 #define $ac_func innocuous_$ac_func
66512
66513 /* System header to define __stub macros and hopefully few prototypes,
66514     which can conflict with char $ac_func (); below.
66515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66516     <limits.h> exists even on freestanding compilers.  */
66517
66518 #ifdef __STDC__
66519 # include <limits.h>
66520 #else
66521 # include <assert.h>
66522 #endif
66523
66524 #undef $ac_func
66525
66526 /* Override any GCC internal prototype to avoid an error.
66527    Use char because int might match the return type of a GCC
66528    builtin and then its argument prototype would still apply.  */
66529 #ifdef __cplusplus
66530 extern "C"
66531 #endif
66532 char $ac_func ();
66533 /* The GNU C library defines this for functions which it implements
66534     to always fail with ENOSYS.  Some functions are actually named
66535     something starting with __ and the normal name is an alias.  */
66536 #if defined __stub_$ac_func || defined __stub___$ac_func
66537 choke me
66538 #endif
66539
66540 int
66541 main ()
66542 {
66543 return $ac_func ();
66544   ;
66545   return 0;
66546 }
66547 _ACEOF
66548 rm -f conftest.$ac_objext conftest$ac_exeext
66549 if { (ac_try="$ac_link"
66550 case "(($ac_try" in
66551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66552   *) ac_try_echo=$ac_try;;
66553 esac
66554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66555 $as_echo "$ac_try_echo") >&5
66556   (eval "$ac_link") 2>conftest.er1
66557   ac_status=$?
66558   grep -v '^ *+' conftest.er1 >conftest.err
66559   rm -f conftest.er1
66560   cat conftest.err >&5
66561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66562   (exit $ac_status); } && {
66563          test -z "$ac_c_werror_flag" ||
66564          test ! -s conftest.err
66565        } && test -s conftest$ac_exeext && {
66566          test "$cross_compiling" = yes ||
66567          $as_test_x conftest$ac_exeext
66568        }; then
66569   eval "$as_ac_var=yes"
66570 else
66571   $as_echo "$as_me: failed program was:" >&5
66572 sed 's/^/| /' conftest.$ac_ext >&5
66573
66574         eval "$as_ac_var=no"
66575 fi
66576
66577 rm -rf conftest.dSYM
66578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66579       conftest$ac_exeext conftest.$ac_ext
66580 fi
66581 ac_res=`eval 'as_val=${'$as_ac_var'}
66582                  $as_echo "$as_val"'`
66583                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66584 $as_echo "$ac_res" >&6; }
66585 as_val=`eval 'as_val=${'$as_ac_var'}
66586                  $as_echo "$as_val"'`
66587    if test "x$as_val" = x""yes; then
66588   cat >>confdefs.h <<_ACEOF
66589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66590 _ACEOF
66591  ice_have_pclose=yes
66592 fi
66593 done
66594
66595 if test "${ice_have_pclose}" = yes; then
66596 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
66597 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
66598 if test "${ice_cv_have_pclose_decl+set}" = set; then
66599   $as_echo_n "(cached) " >&6
66600 else
66601
66602 ice_cv_have_pclose_decl=no
66603 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66604 ice_re_word='(^|[^a-zA-Z0-9_])'
66605 for header in stdio.h; do
66606 # Check for ordinary declaration
66607 cat >conftest.$ac_ext <<_ACEOF
66608 /* confdefs.h.  */
66609 _ACEOF
66610 cat confdefs.h >>conftest.$ac_ext
66611 cat >>conftest.$ac_ext <<_ACEOF
66612 /* end confdefs.h.  */
66613 #include <$header>
66614
66615 _ACEOF
66616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66617   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
66618   ice_cv_have_pclose_decl=yes
66619 fi
66620 rm -f conftest*
66621
66622 if test "$ice_cv_have_pclose_decl" = yes; then
66623         break
66624 fi
66625 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66626 cat >conftest.$ac_ext <<_ACEOF
66627 /* confdefs.h.  */
66628 _ACEOF
66629 cat confdefs.h >>conftest.$ac_ext
66630 cat >>conftest.$ac_ext <<_ACEOF
66631 /* end confdefs.h.  */
66632 #include <$header>
66633
66634 _ACEOF
66635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66636   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66637   ice_cv_have_pclose_decl=yes
66638 fi
66639 rm -f conftest*
66640
66641 if test "$ice_cv_have_pclose_decl" = yes; then
66642         break
66643 fi
66644 done
66645
66646 fi
66647
66648 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
66649 $as_echo "$ice_cv_have_pclose_decl" >&6; }
66650 if test "$ice_cv_have_pclose_decl" = yes; then
66651
66652 cat >>confdefs.h <<_ACEOF
66653 #define HAVE_PCLOSE_DECL 1
66654 _ACEOF
66655
66656 fi
66657 fi
66658
66659
66660 ice_have_perror=no
66661
66662 for ac_func in perror
66663 do
66664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66666 $as_echo_n "checking for $ac_func... " >&6; }
66667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66668   $as_echo_n "(cached) " >&6
66669 else
66670   cat >conftest.$ac_ext <<_ACEOF
66671 /* confdefs.h.  */
66672 _ACEOF
66673 cat confdefs.h >>conftest.$ac_ext
66674 cat >>conftest.$ac_ext <<_ACEOF
66675 /* end confdefs.h.  */
66676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66678 #define $ac_func innocuous_$ac_func
66679
66680 /* System header to define __stub macros and hopefully few prototypes,
66681     which can conflict with char $ac_func (); below.
66682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66683     <limits.h> exists even on freestanding compilers.  */
66684
66685 #ifdef __STDC__
66686 # include <limits.h>
66687 #else
66688 # include <assert.h>
66689 #endif
66690
66691 #undef $ac_func
66692
66693 /* Override any GCC internal prototype to avoid an error.
66694    Use char because int might match the return type of a GCC
66695    builtin and then its argument prototype would still apply.  */
66696 #ifdef __cplusplus
66697 extern "C"
66698 #endif
66699 char $ac_func ();
66700 /* The GNU C library defines this for functions which it implements
66701     to always fail with ENOSYS.  Some functions are actually named
66702     something starting with __ and the normal name is an alias.  */
66703 #if defined __stub_$ac_func || defined __stub___$ac_func
66704 choke me
66705 #endif
66706
66707 int
66708 main ()
66709 {
66710 return $ac_func ();
66711   ;
66712   return 0;
66713 }
66714 _ACEOF
66715 rm -f conftest.$ac_objext conftest$ac_exeext
66716 if { (ac_try="$ac_link"
66717 case "(($ac_try" in
66718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66719   *) ac_try_echo=$ac_try;;
66720 esac
66721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66722 $as_echo "$ac_try_echo") >&5
66723   (eval "$ac_link") 2>conftest.er1
66724   ac_status=$?
66725   grep -v '^ *+' conftest.er1 >conftest.err
66726   rm -f conftest.er1
66727   cat conftest.err >&5
66728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66729   (exit $ac_status); } && {
66730          test -z "$ac_c_werror_flag" ||
66731          test ! -s conftest.err
66732        } && test -s conftest$ac_exeext && {
66733          test "$cross_compiling" = yes ||
66734          $as_test_x conftest$ac_exeext
66735        }; then
66736   eval "$as_ac_var=yes"
66737 else
66738   $as_echo "$as_me: failed program was:" >&5
66739 sed 's/^/| /' conftest.$ac_ext >&5
66740
66741         eval "$as_ac_var=no"
66742 fi
66743
66744 rm -rf conftest.dSYM
66745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66746       conftest$ac_exeext conftest.$ac_ext
66747 fi
66748 ac_res=`eval 'as_val=${'$as_ac_var'}
66749                  $as_echo "$as_val"'`
66750                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66751 $as_echo "$ac_res" >&6; }
66752 as_val=`eval 'as_val=${'$as_ac_var'}
66753                  $as_echo "$as_val"'`
66754    if test "x$as_val" = x""yes; then
66755   cat >>confdefs.h <<_ACEOF
66756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66757 _ACEOF
66758  ice_have_perror=yes
66759 fi
66760 done
66761
66762 if test "${ice_have_perror}" = yes; then
66763 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
66764 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
66765 if test "${ice_cv_have_perror_decl+set}" = set; then
66766   $as_echo_n "(cached) " >&6
66767 else
66768
66769 ice_cv_have_perror_decl=no
66770 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66771 ice_re_word='(^|[^a-zA-Z0-9_])'
66772 for header in stdio.h; do
66773 # Check for ordinary declaration
66774 cat >conftest.$ac_ext <<_ACEOF
66775 /* confdefs.h.  */
66776 _ACEOF
66777 cat confdefs.h >>conftest.$ac_ext
66778 cat >>conftest.$ac_ext <<_ACEOF
66779 /* end confdefs.h.  */
66780 #include <$header>
66781
66782 _ACEOF
66783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66784   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
66785   ice_cv_have_perror_decl=yes
66786 fi
66787 rm -f conftest*
66788
66789 if test "$ice_cv_have_perror_decl" = yes; then
66790         break
66791 fi
66792 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66793 cat >conftest.$ac_ext <<_ACEOF
66794 /* confdefs.h.  */
66795 _ACEOF
66796 cat confdefs.h >>conftest.$ac_ext
66797 cat >>conftest.$ac_ext <<_ACEOF
66798 /* end confdefs.h.  */
66799 #include <$header>
66800
66801 _ACEOF
66802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66803   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66804   ice_cv_have_perror_decl=yes
66805 fi
66806 rm -f conftest*
66807
66808 if test "$ice_cv_have_perror_decl" = yes; then
66809         break
66810 fi
66811 done
66812
66813 fi
66814
66815 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
66816 $as_echo "$ice_cv_have_perror_decl" >&6; }
66817 if test "$ice_cv_have_perror_decl" = yes; then
66818
66819 cat >>confdefs.h <<_ACEOF
66820 #define HAVE_PERROR_DECL 1
66821 _ACEOF
66822
66823 fi
66824 fi
66825
66826
66827 ice_have_printf=no
66828
66829 for ac_func in printf
66830 do
66831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66833 $as_echo_n "checking for $ac_func... " >&6; }
66834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66835   $as_echo_n "(cached) " >&6
66836 else
66837   cat >conftest.$ac_ext <<_ACEOF
66838 /* confdefs.h.  */
66839 _ACEOF
66840 cat confdefs.h >>conftest.$ac_ext
66841 cat >>conftest.$ac_ext <<_ACEOF
66842 /* end confdefs.h.  */
66843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66845 #define $ac_func innocuous_$ac_func
66846
66847 /* System header to define __stub macros and hopefully few prototypes,
66848     which can conflict with char $ac_func (); below.
66849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66850     <limits.h> exists even on freestanding compilers.  */
66851
66852 #ifdef __STDC__
66853 # include <limits.h>
66854 #else
66855 # include <assert.h>
66856 #endif
66857
66858 #undef $ac_func
66859
66860 /* Override any GCC internal prototype to avoid an error.
66861    Use char because int might match the return type of a GCC
66862    builtin and then its argument prototype would still apply.  */
66863 #ifdef __cplusplus
66864 extern "C"
66865 #endif
66866 char $ac_func ();
66867 /* The GNU C library defines this for functions which it implements
66868     to always fail with ENOSYS.  Some functions are actually named
66869     something starting with __ and the normal name is an alias.  */
66870 #if defined __stub_$ac_func || defined __stub___$ac_func
66871 choke me
66872 #endif
66873
66874 int
66875 main ()
66876 {
66877 return $ac_func ();
66878   ;
66879   return 0;
66880 }
66881 _ACEOF
66882 rm -f conftest.$ac_objext conftest$ac_exeext
66883 if { (ac_try="$ac_link"
66884 case "(($ac_try" in
66885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66886   *) ac_try_echo=$ac_try;;
66887 esac
66888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66889 $as_echo "$ac_try_echo") >&5
66890   (eval "$ac_link") 2>conftest.er1
66891   ac_status=$?
66892   grep -v '^ *+' conftest.er1 >conftest.err
66893   rm -f conftest.er1
66894   cat conftest.err >&5
66895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66896   (exit $ac_status); } && {
66897          test -z "$ac_c_werror_flag" ||
66898          test ! -s conftest.err
66899        } && test -s conftest$ac_exeext && {
66900          test "$cross_compiling" = yes ||
66901          $as_test_x conftest$ac_exeext
66902        }; then
66903   eval "$as_ac_var=yes"
66904 else
66905   $as_echo "$as_me: failed program was:" >&5
66906 sed 's/^/| /' conftest.$ac_ext >&5
66907
66908         eval "$as_ac_var=no"
66909 fi
66910
66911 rm -rf conftest.dSYM
66912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66913       conftest$ac_exeext conftest.$ac_ext
66914 fi
66915 ac_res=`eval 'as_val=${'$as_ac_var'}
66916                  $as_echo "$as_val"'`
66917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66918 $as_echo "$ac_res" >&6; }
66919 as_val=`eval 'as_val=${'$as_ac_var'}
66920                  $as_echo "$as_val"'`
66921    if test "x$as_val" = x""yes; then
66922   cat >>confdefs.h <<_ACEOF
66923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66924 _ACEOF
66925  ice_have_printf=yes
66926 fi
66927 done
66928
66929 if test "${ice_have_printf}" = yes; then
66930 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
66931 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
66932 if test "${ice_cv_have_printf_decl+set}" = set; then
66933   $as_echo_n "(cached) " >&6
66934 else
66935
66936 ice_cv_have_printf_decl=no
66937 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66938 ice_re_word='(^|[^a-zA-Z0-9_])'
66939 for header in stdio.h; do
66940 # Check for ordinary declaration
66941 cat >conftest.$ac_ext <<_ACEOF
66942 /* confdefs.h.  */
66943 _ACEOF
66944 cat confdefs.h >>conftest.$ac_ext
66945 cat >>conftest.$ac_ext <<_ACEOF
66946 /* end confdefs.h.  */
66947 #include <$header>
66948
66949 _ACEOF
66950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66951   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
66952   ice_cv_have_printf_decl=yes
66953 fi
66954 rm -f conftest*
66955
66956 if test "$ice_cv_have_printf_decl" = yes; then
66957         break
66958 fi
66959 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66960 cat >conftest.$ac_ext <<_ACEOF
66961 /* confdefs.h.  */
66962 _ACEOF
66963 cat confdefs.h >>conftest.$ac_ext
66964 cat >>conftest.$ac_ext <<_ACEOF
66965 /* end confdefs.h.  */
66966 #include <$header>
66967
66968 _ACEOF
66969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66970   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66971   ice_cv_have_printf_decl=yes
66972 fi
66973 rm -f conftest*
66974
66975 if test "$ice_cv_have_printf_decl" = yes; then
66976         break
66977 fi
66978 done
66979
66980 fi
66981
66982 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
66983 $as_echo "$ice_cv_have_printf_decl" >&6; }
66984 if test "$ice_cv_have_printf_decl" = yes; then
66985
66986 cat >>confdefs.h <<_ACEOF
66987 #define HAVE_PRINTF_DECL 1
66988 _ACEOF
66989
66990 fi
66991 fi
66992
66993
66994 for ac_func in putenv
66995 do
66996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66998 $as_echo_n "checking for $ac_func... " >&6; }
66999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67000   $as_echo_n "(cached) " >&6
67001 else
67002   cat >conftest.$ac_ext <<_ACEOF
67003 /* confdefs.h.  */
67004 _ACEOF
67005 cat confdefs.h >>conftest.$ac_ext
67006 cat >>conftest.$ac_ext <<_ACEOF
67007 /* end confdefs.h.  */
67008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67010 #define $ac_func innocuous_$ac_func
67011
67012 /* System header to define __stub macros and hopefully few prototypes,
67013     which can conflict with char $ac_func (); below.
67014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67015     <limits.h> exists even on freestanding compilers.  */
67016
67017 #ifdef __STDC__
67018 # include <limits.h>
67019 #else
67020 # include <assert.h>
67021 #endif
67022
67023 #undef $ac_func
67024
67025 /* Override any GCC internal prototype to avoid an error.
67026    Use char because int might match the return type of a GCC
67027    builtin and then its argument prototype would still apply.  */
67028 #ifdef __cplusplus
67029 extern "C"
67030 #endif
67031 char $ac_func ();
67032 /* The GNU C library defines this for functions which it implements
67033     to always fail with ENOSYS.  Some functions are actually named
67034     something starting with __ and the normal name is an alias.  */
67035 #if defined __stub_$ac_func || defined __stub___$ac_func
67036 choke me
67037 #endif
67038
67039 int
67040 main ()
67041 {
67042 return $ac_func ();
67043   ;
67044   return 0;
67045 }
67046 _ACEOF
67047 rm -f conftest.$ac_objext conftest$ac_exeext
67048 if { (ac_try="$ac_link"
67049 case "(($ac_try" in
67050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67051   *) ac_try_echo=$ac_try;;
67052 esac
67053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67054 $as_echo "$ac_try_echo") >&5
67055   (eval "$ac_link") 2>conftest.er1
67056   ac_status=$?
67057   grep -v '^ *+' conftest.er1 >conftest.err
67058   rm -f conftest.er1
67059   cat conftest.err >&5
67060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67061   (exit $ac_status); } && {
67062          test -z "$ac_c_werror_flag" ||
67063          test ! -s conftest.err
67064        } && test -s conftest$ac_exeext && {
67065          test "$cross_compiling" = yes ||
67066          $as_test_x conftest$ac_exeext
67067        }; then
67068   eval "$as_ac_var=yes"
67069 else
67070   $as_echo "$as_me: failed program was:" >&5
67071 sed 's/^/| /' conftest.$ac_ext >&5
67072
67073         eval "$as_ac_var=no"
67074 fi
67075
67076 rm -rf conftest.dSYM
67077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67078       conftest$ac_exeext conftest.$ac_ext
67079 fi
67080 ac_res=`eval 'as_val=${'$as_ac_var'}
67081                  $as_echo "$as_val"'`
67082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67083 $as_echo "$ac_res" >&6; }
67084 as_val=`eval 'as_val=${'$as_ac_var'}
67085                  $as_echo "$as_val"'`
67086    if test "x$as_val" = x""yes; then
67087   cat >>confdefs.h <<_ACEOF
67088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67089 _ACEOF
67090
67091 fi
67092 done
67093
67094
67095 ice_have_puts=no
67096
67097 for ac_func in puts
67098 do
67099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67101 $as_echo_n "checking for $ac_func... " >&6; }
67102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67103   $as_echo_n "(cached) " >&6
67104 else
67105   cat >conftest.$ac_ext <<_ACEOF
67106 /* confdefs.h.  */
67107 _ACEOF
67108 cat confdefs.h >>conftest.$ac_ext
67109 cat >>conftest.$ac_ext <<_ACEOF
67110 /* end confdefs.h.  */
67111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67113 #define $ac_func innocuous_$ac_func
67114
67115 /* System header to define __stub macros and hopefully few prototypes,
67116     which can conflict with char $ac_func (); below.
67117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67118     <limits.h> exists even on freestanding compilers.  */
67119
67120 #ifdef __STDC__
67121 # include <limits.h>
67122 #else
67123 # include <assert.h>
67124 #endif
67125
67126 #undef $ac_func
67127
67128 /* Override any GCC internal prototype to avoid an error.
67129    Use char because int might match the return type of a GCC
67130    builtin and then its argument prototype would still apply.  */
67131 #ifdef __cplusplus
67132 extern "C"
67133 #endif
67134 char $ac_func ();
67135 /* The GNU C library defines this for functions which it implements
67136     to always fail with ENOSYS.  Some functions are actually named
67137     something starting with __ and the normal name is an alias.  */
67138 #if defined __stub_$ac_func || defined __stub___$ac_func
67139 choke me
67140 #endif
67141
67142 int
67143 main ()
67144 {
67145 return $ac_func ();
67146   ;
67147   return 0;
67148 }
67149 _ACEOF
67150 rm -f conftest.$ac_objext conftest$ac_exeext
67151 if { (ac_try="$ac_link"
67152 case "(($ac_try" in
67153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67154   *) ac_try_echo=$ac_try;;
67155 esac
67156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67157 $as_echo "$ac_try_echo") >&5
67158   (eval "$ac_link") 2>conftest.er1
67159   ac_status=$?
67160   grep -v '^ *+' conftest.er1 >conftest.err
67161   rm -f conftest.er1
67162   cat conftest.err >&5
67163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67164   (exit $ac_status); } && {
67165          test -z "$ac_c_werror_flag" ||
67166          test ! -s conftest.err
67167        } && test -s conftest$ac_exeext && {
67168          test "$cross_compiling" = yes ||
67169          $as_test_x conftest$ac_exeext
67170        }; then
67171   eval "$as_ac_var=yes"
67172 else
67173   $as_echo "$as_me: failed program was:" >&5
67174 sed 's/^/| /' conftest.$ac_ext >&5
67175
67176         eval "$as_ac_var=no"
67177 fi
67178
67179 rm -rf conftest.dSYM
67180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67181       conftest$ac_exeext conftest.$ac_ext
67182 fi
67183 ac_res=`eval 'as_val=${'$as_ac_var'}
67184                  $as_echo "$as_val"'`
67185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67186 $as_echo "$ac_res" >&6; }
67187 as_val=`eval 'as_val=${'$as_ac_var'}
67188                  $as_echo "$as_val"'`
67189    if test "x$as_val" = x""yes; then
67190   cat >>confdefs.h <<_ACEOF
67191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67192 _ACEOF
67193  ice_have_puts=yes
67194 fi
67195 done
67196
67197 if test "${ice_have_puts}" = yes; then
67198 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
67199 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
67200 if test "${ice_cv_have_puts_decl+set}" = set; then
67201   $as_echo_n "(cached) " >&6
67202 else
67203
67204 ice_cv_have_puts_decl=no
67205 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67206 ice_re_word='(^|[^a-zA-Z0-9_])'
67207 for header in stdio.h; do
67208 # Check for ordinary declaration
67209 cat >conftest.$ac_ext <<_ACEOF
67210 /* confdefs.h.  */
67211 _ACEOF
67212 cat confdefs.h >>conftest.$ac_ext
67213 cat >>conftest.$ac_ext <<_ACEOF
67214 /* end confdefs.h.  */
67215 #include <$header>
67216
67217 _ACEOF
67218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67219   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
67220   ice_cv_have_puts_decl=yes
67221 fi
67222 rm -f conftest*
67223
67224 if test "$ice_cv_have_puts_decl" = yes; then
67225         break
67226 fi
67227 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67228 cat >conftest.$ac_ext <<_ACEOF
67229 /* confdefs.h.  */
67230 _ACEOF
67231 cat confdefs.h >>conftest.$ac_ext
67232 cat >>conftest.$ac_ext <<_ACEOF
67233 /* end confdefs.h.  */
67234 #include <$header>
67235
67236 _ACEOF
67237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67238   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67239   ice_cv_have_puts_decl=yes
67240 fi
67241 rm -f conftest*
67242
67243 if test "$ice_cv_have_puts_decl" = yes; then
67244         break
67245 fi
67246 done
67247
67248 fi
67249
67250 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
67251 $as_echo "$ice_cv_have_puts_decl" >&6; }
67252 if test "$ice_cv_have_puts_decl" = yes; then
67253
67254 cat >>confdefs.h <<_ACEOF
67255 #define HAVE_PUTS_DECL 1
67256 _ACEOF
67257
67258 fi
67259 fi
67260
67261
67262 ice_have_realloc=no
67263
67264 for ac_func in realloc
67265 do
67266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67267 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67268 $as_echo_n "checking for $ac_func... " >&6; }
67269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67270   $as_echo_n "(cached) " >&6
67271 else
67272   cat >conftest.$ac_ext <<_ACEOF
67273 /* confdefs.h.  */
67274 _ACEOF
67275 cat confdefs.h >>conftest.$ac_ext
67276 cat >>conftest.$ac_ext <<_ACEOF
67277 /* end confdefs.h.  */
67278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67280 #define $ac_func innocuous_$ac_func
67281
67282 /* System header to define __stub macros and hopefully few prototypes,
67283     which can conflict with char $ac_func (); below.
67284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67285     <limits.h> exists even on freestanding compilers.  */
67286
67287 #ifdef __STDC__
67288 # include <limits.h>
67289 #else
67290 # include <assert.h>
67291 #endif
67292
67293 #undef $ac_func
67294
67295 /* Override any GCC internal prototype to avoid an error.
67296    Use char because int might match the return type of a GCC
67297    builtin and then its argument prototype would still apply.  */
67298 #ifdef __cplusplus
67299 extern "C"
67300 #endif
67301 char $ac_func ();
67302 /* The GNU C library defines this for functions which it implements
67303     to always fail with ENOSYS.  Some functions are actually named
67304     something starting with __ and the normal name is an alias.  */
67305 #if defined __stub_$ac_func || defined __stub___$ac_func
67306 choke me
67307 #endif
67308
67309 int
67310 main ()
67311 {
67312 return $ac_func ();
67313   ;
67314   return 0;
67315 }
67316 _ACEOF
67317 rm -f conftest.$ac_objext conftest$ac_exeext
67318 if { (ac_try="$ac_link"
67319 case "(($ac_try" in
67320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67321   *) ac_try_echo=$ac_try;;
67322 esac
67323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67324 $as_echo "$ac_try_echo") >&5
67325   (eval "$ac_link") 2>conftest.er1
67326   ac_status=$?
67327   grep -v '^ *+' conftest.er1 >conftest.err
67328   rm -f conftest.er1
67329   cat conftest.err >&5
67330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67331   (exit $ac_status); } && {
67332          test -z "$ac_c_werror_flag" ||
67333          test ! -s conftest.err
67334        } && test -s conftest$ac_exeext && {
67335          test "$cross_compiling" = yes ||
67336          $as_test_x conftest$ac_exeext
67337        }; then
67338   eval "$as_ac_var=yes"
67339 else
67340   $as_echo "$as_me: failed program was:" >&5
67341 sed 's/^/| /' conftest.$ac_ext >&5
67342
67343         eval "$as_ac_var=no"
67344 fi
67345
67346 rm -rf conftest.dSYM
67347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67348       conftest$ac_exeext conftest.$ac_ext
67349 fi
67350 ac_res=`eval 'as_val=${'$as_ac_var'}
67351                  $as_echo "$as_val"'`
67352                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67353 $as_echo "$ac_res" >&6; }
67354 as_val=`eval 'as_val=${'$as_ac_var'}
67355                  $as_echo "$as_val"'`
67356    if test "x$as_val" = x""yes; then
67357   cat >>confdefs.h <<_ACEOF
67358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67359 _ACEOF
67360  ice_have_realloc=yes
67361 fi
67362 done
67363
67364 if test "${ice_have_realloc}" = yes; then
67365 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
67366 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
67367 if test "${ice_cv_have_realloc_decl+set}" = set; then
67368   $as_echo_n "(cached) " >&6
67369 else
67370
67371 ice_cv_have_realloc_decl=no
67372 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67373 ice_re_word='(^|[^a-zA-Z0-9_])'
67374 for header in stdlib.h; do
67375 # Check for ordinary declaration
67376 cat >conftest.$ac_ext <<_ACEOF
67377 /* confdefs.h.  */
67378 _ACEOF
67379 cat confdefs.h >>conftest.$ac_ext
67380 cat >>conftest.$ac_ext <<_ACEOF
67381 /* end confdefs.h.  */
67382 #include <$header>
67383
67384 _ACEOF
67385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67386   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
67387   ice_cv_have_realloc_decl=yes
67388 fi
67389 rm -f conftest*
67390
67391 if test "$ice_cv_have_realloc_decl" = yes; then
67392         break
67393 fi
67394 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67395 cat >conftest.$ac_ext <<_ACEOF
67396 /* confdefs.h.  */
67397 _ACEOF
67398 cat confdefs.h >>conftest.$ac_ext
67399 cat >>conftest.$ac_ext <<_ACEOF
67400 /* end confdefs.h.  */
67401 #include <$header>
67402
67403 _ACEOF
67404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67405   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67406   ice_cv_have_realloc_decl=yes
67407 fi
67408 rm -f conftest*
67409
67410 if test "$ice_cv_have_realloc_decl" = yes; then
67411         break
67412 fi
67413 done
67414
67415 fi
67416
67417 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
67418 $as_echo "$ice_cv_have_realloc_decl" >&6; }
67419 if test "$ice_cv_have_realloc_decl" = yes; then
67420
67421 cat >>confdefs.h <<_ACEOF
67422 #define HAVE_REALLOC_DECL 1
67423 _ACEOF
67424
67425 fi
67426 fi
67427
67428
67429 ice_have_recvfrom=no
67430
67431 for ac_func in recvfrom
67432 do
67433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67434 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67435 $as_echo_n "checking for $ac_func... " >&6; }
67436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67437   $as_echo_n "(cached) " >&6
67438 else
67439   cat >conftest.$ac_ext <<_ACEOF
67440 /* confdefs.h.  */
67441 _ACEOF
67442 cat confdefs.h >>conftest.$ac_ext
67443 cat >>conftest.$ac_ext <<_ACEOF
67444 /* end confdefs.h.  */
67445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67447 #define $ac_func innocuous_$ac_func
67448
67449 /* System header to define __stub macros and hopefully few prototypes,
67450     which can conflict with char $ac_func (); below.
67451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67452     <limits.h> exists even on freestanding compilers.  */
67453
67454 #ifdef __STDC__
67455 # include <limits.h>
67456 #else
67457 # include <assert.h>
67458 #endif
67459
67460 #undef $ac_func
67461
67462 /* Override any GCC internal prototype to avoid an error.
67463    Use char because int might match the return type of a GCC
67464    builtin and then its argument prototype would still apply.  */
67465 #ifdef __cplusplus
67466 extern "C"
67467 #endif
67468 char $ac_func ();
67469 /* The GNU C library defines this for functions which it implements
67470     to always fail with ENOSYS.  Some functions are actually named
67471     something starting with __ and the normal name is an alias.  */
67472 #if defined __stub_$ac_func || defined __stub___$ac_func
67473 choke me
67474 #endif
67475
67476 int
67477 main ()
67478 {
67479 return $ac_func ();
67480   ;
67481   return 0;
67482 }
67483 _ACEOF
67484 rm -f conftest.$ac_objext conftest$ac_exeext
67485 if { (ac_try="$ac_link"
67486 case "(($ac_try" in
67487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67488   *) ac_try_echo=$ac_try;;
67489 esac
67490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67491 $as_echo "$ac_try_echo") >&5
67492   (eval "$ac_link") 2>conftest.er1
67493   ac_status=$?
67494   grep -v '^ *+' conftest.er1 >conftest.err
67495   rm -f conftest.er1
67496   cat conftest.err >&5
67497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67498   (exit $ac_status); } && {
67499          test -z "$ac_c_werror_flag" ||
67500          test ! -s conftest.err
67501        } && test -s conftest$ac_exeext && {
67502          test "$cross_compiling" = yes ||
67503          $as_test_x conftest$ac_exeext
67504        }; then
67505   eval "$as_ac_var=yes"
67506 else
67507   $as_echo "$as_me: failed program was:" >&5
67508 sed 's/^/| /' conftest.$ac_ext >&5
67509
67510         eval "$as_ac_var=no"
67511 fi
67512
67513 rm -rf conftest.dSYM
67514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67515       conftest$ac_exeext conftest.$ac_ext
67516 fi
67517 ac_res=`eval 'as_val=${'$as_ac_var'}
67518                  $as_echo "$as_val"'`
67519                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67520 $as_echo "$ac_res" >&6; }
67521 as_val=`eval 'as_val=${'$as_ac_var'}
67522                  $as_echo "$as_val"'`
67523    if test "x$as_val" = x""yes; then
67524   cat >>confdefs.h <<_ACEOF
67525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67526 _ACEOF
67527  ice_have_recvfrom=yes
67528 fi
67529 done
67530
67531 if test "${ice_have_recvfrom}" = yes; then
67532 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
67533 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
67534 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
67535   $as_echo_n "(cached) " >&6
67536 else
67537
67538 ice_cv_have_recvfrom_decl=no
67539 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67540 ice_re_word='(^|[^a-zA-Z0-9_])'
67541 for header in sys/types.h sys/socket.h; do
67542 # Check for ordinary declaration
67543 cat >conftest.$ac_ext <<_ACEOF
67544 /* confdefs.h.  */
67545 _ACEOF
67546 cat confdefs.h >>conftest.$ac_ext
67547 cat >>conftest.$ac_ext <<_ACEOF
67548 /* end confdefs.h.  */
67549 #include <$header>
67550
67551 _ACEOF
67552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67553   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
67554   ice_cv_have_recvfrom_decl=yes
67555 fi
67556 rm -f conftest*
67557
67558 if test "$ice_cv_have_recvfrom_decl" = yes; then
67559         break
67560 fi
67561 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67562 cat >conftest.$ac_ext <<_ACEOF
67563 /* confdefs.h.  */
67564 _ACEOF
67565 cat confdefs.h >>conftest.$ac_ext
67566 cat >>conftest.$ac_ext <<_ACEOF
67567 /* end confdefs.h.  */
67568 #include <$header>
67569
67570 _ACEOF
67571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67572   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67573   ice_cv_have_recvfrom_decl=yes
67574 fi
67575 rm -f conftest*
67576
67577 if test "$ice_cv_have_recvfrom_decl" = yes; then
67578         break
67579 fi
67580 done
67581
67582 fi
67583
67584 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
67585 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
67586 if test "$ice_cv_have_recvfrom_decl" = yes; then
67587
67588 cat >>confdefs.h <<_ACEOF
67589 #define HAVE_RECVFROM_DECL 1
67590 _ACEOF
67591
67592 fi
67593 fi
67594
67595
67596 ice_have_remove=no
67597
67598 for ac_func in remove
67599 do
67600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67602 $as_echo_n "checking for $ac_func... " >&6; }
67603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67604   $as_echo_n "(cached) " >&6
67605 else
67606   cat >conftest.$ac_ext <<_ACEOF
67607 /* confdefs.h.  */
67608 _ACEOF
67609 cat confdefs.h >>conftest.$ac_ext
67610 cat >>conftest.$ac_ext <<_ACEOF
67611 /* end confdefs.h.  */
67612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67614 #define $ac_func innocuous_$ac_func
67615
67616 /* System header to define __stub macros and hopefully few prototypes,
67617     which can conflict with char $ac_func (); below.
67618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67619     <limits.h> exists even on freestanding compilers.  */
67620
67621 #ifdef __STDC__
67622 # include <limits.h>
67623 #else
67624 # include <assert.h>
67625 #endif
67626
67627 #undef $ac_func
67628
67629 /* Override any GCC internal prototype to avoid an error.
67630    Use char because int might match the return type of a GCC
67631    builtin and then its argument prototype would still apply.  */
67632 #ifdef __cplusplus
67633 extern "C"
67634 #endif
67635 char $ac_func ();
67636 /* The GNU C library defines this for functions which it implements
67637     to always fail with ENOSYS.  Some functions are actually named
67638     something starting with __ and the normal name is an alias.  */
67639 #if defined __stub_$ac_func || defined __stub___$ac_func
67640 choke me
67641 #endif
67642
67643 int
67644 main ()
67645 {
67646 return $ac_func ();
67647   ;
67648   return 0;
67649 }
67650 _ACEOF
67651 rm -f conftest.$ac_objext conftest$ac_exeext
67652 if { (ac_try="$ac_link"
67653 case "(($ac_try" in
67654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67655   *) ac_try_echo=$ac_try;;
67656 esac
67657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67658 $as_echo "$ac_try_echo") >&5
67659   (eval "$ac_link") 2>conftest.er1
67660   ac_status=$?
67661   grep -v '^ *+' conftest.er1 >conftest.err
67662   rm -f conftest.er1
67663   cat conftest.err >&5
67664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67665   (exit $ac_status); } && {
67666          test -z "$ac_c_werror_flag" ||
67667          test ! -s conftest.err
67668        } && test -s conftest$ac_exeext && {
67669          test "$cross_compiling" = yes ||
67670          $as_test_x conftest$ac_exeext
67671        }; then
67672   eval "$as_ac_var=yes"
67673 else
67674   $as_echo "$as_me: failed program was:" >&5
67675 sed 's/^/| /' conftest.$ac_ext >&5
67676
67677         eval "$as_ac_var=no"
67678 fi
67679
67680 rm -rf conftest.dSYM
67681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67682       conftest$ac_exeext conftest.$ac_ext
67683 fi
67684 ac_res=`eval 'as_val=${'$as_ac_var'}
67685                  $as_echo "$as_val"'`
67686                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67687 $as_echo "$ac_res" >&6; }
67688 as_val=`eval 'as_val=${'$as_ac_var'}
67689                  $as_echo "$as_val"'`
67690    if test "x$as_val" = x""yes; then
67691   cat >>confdefs.h <<_ACEOF
67692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67693 _ACEOF
67694  ice_have_remove=yes
67695 fi
67696 done
67697
67698 if test "${ice_have_remove}" = yes; then
67699 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
67700 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
67701 if test "${ice_cv_have_remove_decl+set}" = set; then
67702   $as_echo_n "(cached) " >&6
67703 else
67704
67705 ice_cv_have_remove_decl=no
67706 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67707 ice_re_word='(^|[^a-zA-Z0-9_])'
67708 for header in stdio.h; do
67709 # Check for ordinary declaration
67710 cat >conftest.$ac_ext <<_ACEOF
67711 /* confdefs.h.  */
67712 _ACEOF
67713 cat confdefs.h >>conftest.$ac_ext
67714 cat >>conftest.$ac_ext <<_ACEOF
67715 /* end confdefs.h.  */
67716 #include <$header>
67717
67718 _ACEOF
67719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67720   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
67721   ice_cv_have_remove_decl=yes
67722 fi
67723 rm -f conftest*
67724
67725 if test "$ice_cv_have_remove_decl" = yes; then
67726         break
67727 fi
67728 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67729 cat >conftest.$ac_ext <<_ACEOF
67730 /* confdefs.h.  */
67731 _ACEOF
67732 cat confdefs.h >>conftest.$ac_ext
67733 cat >>conftest.$ac_ext <<_ACEOF
67734 /* end confdefs.h.  */
67735 #include <$header>
67736
67737 _ACEOF
67738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67739   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67740   ice_cv_have_remove_decl=yes
67741 fi
67742 rm -f conftest*
67743
67744 if test "$ice_cv_have_remove_decl" = yes; then
67745         break
67746 fi
67747 done
67748
67749 fi
67750
67751 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
67752 $as_echo "$ice_cv_have_remove_decl" >&6; }
67753 if test "$ice_cv_have_remove_decl" = yes; then
67754
67755 cat >>confdefs.h <<_ACEOF
67756 #define HAVE_REMOVE_DECL 1
67757 _ACEOF
67758
67759 fi
67760 fi
67761
67762
67763 ice_have_rename=no
67764
67765 for ac_func in rename
67766 do
67767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67768 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67769 $as_echo_n "checking for $ac_func... " >&6; }
67770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67771   $as_echo_n "(cached) " >&6
67772 else
67773   cat >conftest.$ac_ext <<_ACEOF
67774 /* confdefs.h.  */
67775 _ACEOF
67776 cat confdefs.h >>conftest.$ac_ext
67777 cat >>conftest.$ac_ext <<_ACEOF
67778 /* end confdefs.h.  */
67779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67781 #define $ac_func innocuous_$ac_func
67782
67783 /* System header to define __stub macros and hopefully few prototypes,
67784     which can conflict with char $ac_func (); below.
67785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67786     <limits.h> exists even on freestanding compilers.  */
67787
67788 #ifdef __STDC__
67789 # include <limits.h>
67790 #else
67791 # include <assert.h>
67792 #endif
67793
67794 #undef $ac_func
67795
67796 /* Override any GCC internal prototype to avoid an error.
67797    Use char because int might match the return type of a GCC
67798    builtin and then its argument prototype would still apply.  */
67799 #ifdef __cplusplus
67800 extern "C"
67801 #endif
67802 char $ac_func ();
67803 /* The GNU C library defines this for functions which it implements
67804     to always fail with ENOSYS.  Some functions are actually named
67805     something starting with __ and the normal name is an alias.  */
67806 #if defined __stub_$ac_func || defined __stub___$ac_func
67807 choke me
67808 #endif
67809
67810 int
67811 main ()
67812 {
67813 return $ac_func ();
67814   ;
67815   return 0;
67816 }
67817 _ACEOF
67818 rm -f conftest.$ac_objext conftest$ac_exeext
67819 if { (ac_try="$ac_link"
67820 case "(($ac_try" in
67821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67822   *) ac_try_echo=$ac_try;;
67823 esac
67824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67825 $as_echo "$ac_try_echo") >&5
67826   (eval "$ac_link") 2>conftest.er1
67827   ac_status=$?
67828   grep -v '^ *+' conftest.er1 >conftest.err
67829   rm -f conftest.er1
67830   cat conftest.err >&5
67831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67832   (exit $ac_status); } && {
67833          test -z "$ac_c_werror_flag" ||
67834          test ! -s conftest.err
67835        } && test -s conftest$ac_exeext && {
67836          test "$cross_compiling" = yes ||
67837          $as_test_x conftest$ac_exeext
67838        }; then
67839   eval "$as_ac_var=yes"
67840 else
67841   $as_echo "$as_me: failed program was:" >&5
67842 sed 's/^/| /' conftest.$ac_ext >&5
67843
67844         eval "$as_ac_var=no"
67845 fi
67846
67847 rm -rf conftest.dSYM
67848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67849       conftest$ac_exeext conftest.$ac_ext
67850 fi
67851 ac_res=`eval 'as_val=${'$as_ac_var'}
67852                  $as_echo "$as_val"'`
67853                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67854 $as_echo "$ac_res" >&6; }
67855 as_val=`eval 'as_val=${'$as_ac_var'}
67856                  $as_echo "$as_val"'`
67857    if test "x$as_val" = x""yes; then
67858   cat >>confdefs.h <<_ACEOF
67859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67860 _ACEOF
67861  ice_have_rename=yes
67862 fi
67863 done
67864
67865 if test "${ice_have_rename}" = yes; then
67866 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
67867 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
67868 if test "${ice_cv_have_rename_decl+set}" = set; then
67869   $as_echo_n "(cached) " >&6
67870 else
67871
67872 ice_cv_have_rename_decl=no
67873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67874 ice_re_word='(^|[^a-zA-Z0-9_])'
67875 for header in stdio.h; do
67876 # Check for ordinary declaration
67877 cat >conftest.$ac_ext <<_ACEOF
67878 /* confdefs.h.  */
67879 _ACEOF
67880 cat confdefs.h >>conftest.$ac_ext
67881 cat >>conftest.$ac_ext <<_ACEOF
67882 /* end confdefs.h.  */
67883 #include <$header>
67884
67885 _ACEOF
67886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67887   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
67888   ice_cv_have_rename_decl=yes
67889 fi
67890 rm -f conftest*
67891
67892 if test "$ice_cv_have_rename_decl" = yes; then
67893         break
67894 fi
67895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67896 cat >conftest.$ac_ext <<_ACEOF
67897 /* confdefs.h.  */
67898 _ACEOF
67899 cat confdefs.h >>conftest.$ac_ext
67900 cat >>conftest.$ac_ext <<_ACEOF
67901 /* end confdefs.h.  */
67902 #include <$header>
67903
67904 _ACEOF
67905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67906   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67907   ice_cv_have_rename_decl=yes
67908 fi
67909 rm -f conftest*
67910
67911 if test "$ice_cv_have_rename_decl" = yes; then
67912         break
67913 fi
67914 done
67915
67916 fi
67917
67918 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
67919 $as_echo "$ice_cv_have_rename_decl" >&6; }
67920 if test "$ice_cv_have_rename_decl" = yes; then
67921
67922 cat >>confdefs.h <<_ACEOF
67923 #define HAVE_RENAME_DECL 1
67924 _ACEOF
67925
67926 fi
67927 fi
67928
67929
67930 ice_have_rewind=no
67931
67932 for ac_func in rewind
67933 do
67934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67936 $as_echo_n "checking for $ac_func... " >&6; }
67937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67938   $as_echo_n "(cached) " >&6
67939 else
67940   cat >conftest.$ac_ext <<_ACEOF
67941 /* confdefs.h.  */
67942 _ACEOF
67943 cat confdefs.h >>conftest.$ac_ext
67944 cat >>conftest.$ac_ext <<_ACEOF
67945 /* end confdefs.h.  */
67946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67948 #define $ac_func innocuous_$ac_func
67949
67950 /* System header to define __stub macros and hopefully few prototypes,
67951     which can conflict with char $ac_func (); below.
67952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67953     <limits.h> exists even on freestanding compilers.  */
67954
67955 #ifdef __STDC__
67956 # include <limits.h>
67957 #else
67958 # include <assert.h>
67959 #endif
67960
67961 #undef $ac_func
67962
67963 /* Override any GCC internal prototype to avoid an error.
67964    Use char because int might match the return type of a GCC
67965    builtin and then its argument prototype would still apply.  */
67966 #ifdef __cplusplus
67967 extern "C"
67968 #endif
67969 char $ac_func ();
67970 /* The GNU C library defines this for functions which it implements
67971     to always fail with ENOSYS.  Some functions are actually named
67972     something starting with __ and the normal name is an alias.  */
67973 #if defined __stub_$ac_func || defined __stub___$ac_func
67974 choke me
67975 #endif
67976
67977 int
67978 main ()
67979 {
67980 return $ac_func ();
67981   ;
67982   return 0;
67983 }
67984 _ACEOF
67985 rm -f conftest.$ac_objext conftest$ac_exeext
67986 if { (ac_try="$ac_link"
67987 case "(($ac_try" in
67988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67989   *) ac_try_echo=$ac_try;;
67990 esac
67991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67992 $as_echo "$ac_try_echo") >&5
67993   (eval "$ac_link") 2>conftest.er1
67994   ac_status=$?
67995   grep -v '^ *+' conftest.er1 >conftest.err
67996   rm -f conftest.er1
67997   cat conftest.err >&5
67998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67999   (exit $ac_status); } && {
68000          test -z "$ac_c_werror_flag" ||
68001          test ! -s conftest.err
68002        } && test -s conftest$ac_exeext && {
68003          test "$cross_compiling" = yes ||
68004          $as_test_x conftest$ac_exeext
68005        }; then
68006   eval "$as_ac_var=yes"
68007 else
68008   $as_echo "$as_me: failed program was:" >&5
68009 sed 's/^/| /' conftest.$ac_ext >&5
68010
68011         eval "$as_ac_var=no"
68012 fi
68013
68014 rm -rf conftest.dSYM
68015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68016       conftest$ac_exeext conftest.$ac_ext
68017 fi
68018 ac_res=`eval 'as_val=${'$as_ac_var'}
68019                  $as_echo "$as_val"'`
68020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68021 $as_echo "$ac_res" >&6; }
68022 as_val=`eval 'as_val=${'$as_ac_var'}
68023                  $as_echo "$as_val"'`
68024    if test "x$as_val" = x""yes; then
68025   cat >>confdefs.h <<_ACEOF
68026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68027 _ACEOF
68028  ice_have_rewind=yes
68029 fi
68030 done
68031
68032 if test "${ice_have_rewind}" = yes; then
68033 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
68034 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
68035 if test "${ice_cv_have_rewind_decl+set}" = set; then
68036   $as_echo_n "(cached) " >&6
68037 else
68038
68039 ice_cv_have_rewind_decl=no
68040 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68041 ice_re_word='(^|[^a-zA-Z0-9_])'
68042 for header in stdio.h; do
68043 # Check for ordinary declaration
68044 cat >conftest.$ac_ext <<_ACEOF
68045 /* confdefs.h.  */
68046 _ACEOF
68047 cat confdefs.h >>conftest.$ac_ext
68048 cat >>conftest.$ac_ext <<_ACEOF
68049 /* end confdefs.h.  */
68050 #include <$header>
68051
68052 _ACEOF
68053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68054   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
68055   ice_cv_have_rewind_decl=yes
68056 fi
68057 rm -f conftest*
68058
68059 if test "$ice_cv_have_rewind_decl" = yes; then
68060         break
68061 fi
68062 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68063 cat >conftest.$ac_ext <<_ACEOF
68064 /* confdefs.h.  */
68065 _ACEOF
68066 cat confdefs.h >>conftest.$ac_ext
68067 cat >>conftest.$ac_ext <<_ACEOF
68068 /* end confdefs.h.  */
68069 #include <$header>
68070
68071 _ACEOF
68072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68073   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68074   ice_cv_have_rewind_decl=yes
68075 fi
68076 rm -f conftest*
68077
68078 if test "$ice_cv_have_rewind_decl" = yes; then
68079         break
68080 fi
68081 done
68082
68083 fi
68084
68085 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
68086 $as_echo "$ice_cv_have_rewind_decl" >&6; }
68087 if test "$ice_cv_have_rewind_decl" = yes; then
68088
68089 cat >>confdefs.h <<_ACEOF
68090 #define HAVE_REWIND_DECL 1
68091 _ACEOF
68092
68093 fi
68094 fi
68095
68096
68097 ice_have_ruserok=no
68098
68099 for ac_func in ruserok
68100 do
68101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68103 $as_echo_n "checking for $ac_func... " >&6; }
68104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68105   $as_echo_n "(cached) " >&6
68106 else
68107   cat >conftest.$ac_ext <<_ACEOF
68108 /* confdefs.h.  */
68109 _ACEOF
68110 cat confdefs.h >>conftest.$ac_ext
68111 cat >>conftest.$ac_ext <<_ACEOF
68112 /* end confdefs.h.  */
68113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68115 #define $ac_func innocuous_$ac_func
68116
68117 /* System header to define __stub macros and hopefully few prototypes,
68118     which can conflict with char $ac_func (); below.
68119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68120     <limits.h> exists even on freestanding compilers.  */
68121
68122 #ifdef __STDC__
68123 # include <limits.h>
68124 #else
68125 # include <assert.h>
68126 #endif
68127
68128 #undef $ac_func
68129
68130 /* Override any GCC internal prototype to avoid an error.
68131    Use char because int might match the return type of a GCC
68132    builtin and then its argument prototype would still apply.  */
68133 #ifdef __cplusplus
68134 extern "C"
68135 #endif
68136 char $ac_func ();
68137 /* The GNU C library defines this for functions which it implements
68138     to always fail with ENOSYS.  Some functions are actually named
68139     something starting with __ and the normal name is an alias.  */
68140 #if defined __stub_$ac_func || defined __stub___$ac_func
68141 choke me
68142 #endif
68143
68144 int
68145 main ()
68146 {
68147 return $ac_func ();
68148   ;
68149   return 0;
68150 }
68151 _ACEOF
68152 rm -f conftest.$ac_objext conftest$ac_exeext
68153 if { (ac_try="$ac_link"
68154 case "(($ac_try" in
68155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68156   *) ac_try_echo=$ac_try;;
68157 esac
68158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68159 $as_echo "$ac_try_echo") >&5
68160   (eval "$ac_link") 2>conftest.er1
68161   ac_status=$?
68162   grep -v '^ *+' conftest.er1 >conftest.err
68163   rm -f conftest.er1
68164   cat conftest.err >&5
68165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68166   (exit $ac_status); } && {
68167          test -z "$ac_c_werror_flag" ||
68168          test ! -s conftest.err
68169        } && test -s conftest$ac_exeext && {
68170          test "$cross_compiling" = yes ||
68171          $as_test_x conftest$ac_exeext
68172        }; then
68173   eval "$as_ac_var=yes"
68174 else
68175   $as_echo "$as_me: failed program was:" >&5
68176 sed 's/^/| /' conftest.$ac_ext >&5
68177
68178         eval "$as_ac_var=no"
68179 fi
68180
68181 rm -rf conftest.dSYM
68182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68183       conftest$ac_exeext conftest.$ac_ext
68184 fi
68185 ac_res=`eval 'as_val=${'$as_ac_var'}
68186                  $as_echo "$as_val"'`
68187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68188 $as_echo "$ac_res" >&6; }
68189 as_val=`eval 'as_val=${'$as_ac_var'}
68190                  $as_echo "$as_val"'`
68191    if test "x$as_val" = x""yes; then
68192   cat >>confdefs.h <<_ACEOF
68193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68194 _ACEOF
68195  ice_have_ruserok=yes
68196 fi
68197 done
68198
68199 if test "${ice_have_ruserok}" = yes; then
68200 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
68201 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
68202 if test "${ice_cv_have_ruserok_decl+set}" = set; then
68203   $as_echo_n "(cached) " >&6
68204 else
68205
68206 ice_cv_have_ruserok_decl=no
68207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68208 ice_re_word='(^|[^a-zA-Z0-9_])'
68209 for header in netdb.h sys/socket.h libc.h unistd.h; do
68210 # Check for ordinary declaration
68211 cat >conftest.$ac_ext <<_ACEOF
68212 /* confdefs.h.  */
68213 _ACEOF
68214 cat confdefs.h >>conftest.$ac_ext
68215 cat >>conftest.$ac_ext <<_ACEOF
68216 /* end confdefs.h.  */
68217 #include <$header>
68218
68219 _ACEOF
68220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68221   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
68222   ice_cv_have_ruserok_decl=yes
68223 fi
68224 rm -f conftest*
68225
68226 if test "$ice_cv_have_ruserok_decl" = yes; then
68227         break
68228 fi
68229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68230 cat >conftest.$ac_ext <<_ACEOF
68231 /* confdefs.h.  */
68232 _ACEOF
68233 cat confdefs.h >>conftest.$ac_ext
68234 cat >>conftest.$ac_ext <<_ACEOF
68235 /* end confdefs.h.  */
68236 #include <$header>
68237
68238 _ACEOF
68239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68240   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68241   ice_cv_have_ruserok_decl=yes
68242 fi
68243 rm -f conftest*
68244
68245 if test "$ice_cv_have_ruserok_decl" = yes; then
68246         break
68247 fi
68248 done
68249
68250 fi
68251
68252 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
68253 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
68254 if test "$ice_cv_have_ruserok_decl" = yes; then
68255
68256 cat >>confdefs.h <<_ACEOF
68257 #define HAVE_RUSEROK_DECL 1
68258 _ACEOF
68259
68260 fi
68261 fi
68262
68263
68264 ice_have_select=no
68265
68266 for ac_func in select
68267 do
68268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68270 $as_echo_n "checking for $ac_func... " >&6; }
68271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68272   $as_echo_n "(cached) " >&6
68273 else
68274   cat >conftest.$ac_ext <<_ACEOF
68275 /* confdefs.h.  */
68276 _ACEOF
68277 cat confdefs.h >>conftest.$ac_ext
68278 cat >>conftest.$ac_ext <<_ACEOF
68279 /* end confdefs.h.  */
68280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68282 #define $ac_func innocuous_$ac_func
68283
68284 /* System header to define __stub macros and hopefully few prototypes,
68285     which can conflict with char $ac_func (); below.
68286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68287     <limits.h> exists even on freestanding compilers.  */
68288
68289 #ifdef __STDC__
68290 # include <limits.h>
68291 #else
68292 # include <assert.h>
68293 #endif
68294
68295 #undef $ac_func
68296
68297 /* Override any GCC internal prototype to avoid an error.
68298    Use char because int might match the return type of a GCC
68299    builtin and then its argument prototype would still apply.  */
68300 #ifdef __cplusplus
68301 extern "C"
68302 #endif
68303 char $ac_func ();
68304 /* The GNU C library defines this for functions which it implements
68305     to always fail with ENOSYS.  Some functions are actually named
68306     something starting with __ and the normal name is an alias.  */
68307 #if defined __stub_$ac_func || defined __stub___$ac_func
68308 choke me
68309 #endif
68310
68311 int
68312 main ()
68313 {
68314 return $ac_func ();
68315   ;
68316   return 0;
68317 }
68318 _ACEOF
68319 rm -f conftest.$ac_objext conftest$ac_exeext
68320 if { (ac_try="$ac_link"
68321 case "(($ac_try" in
68322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68323   *) ac_try_echo=$ac_try;;
68324 esac
68325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68326 $as_echo "$ac_try_echo") >&5
68327   (eval "$ac_link") 2>conftest.er1
68328   ac_status=$?
68329   grep -v '^ *+' conftest.er1 >conftest.err
68330   rm -f conftest.er1
68331   cat conftest.err >&5
68332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68333   (exit $ac_status); } && {
68334          test -z "$ac_c_werror_flag" ||
68335          test ! -s conftest.err
68336        } && test -s conftest$ac_exeext && {
68337          test "$cross_compiling" = yes ||
68338          $as_test_x conftest$ac_exeext
68339        }; then
68340   eval "$as_ac_var=yes"
68341 else
68342   $as_echo "$as_me: failed program was:" >&5
68343 sed 's/^/| /' conftest.$ac_ext >&5
68344
68345         eval "$as_ac_var=no"
68346 fi
68347
68348 rm -rf conftest.dSYM
68349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68350       conftest$ac_exeext conftest.$ac_ext
68351 fi
68352 ac_res=`eval 'as_val=${'$as_ac_var'}
68353                  $as_echo "$as_val"'`
68354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68355 $as_echo "$ac_res" >&6; }
68356 as_val=`eval 'as_val=${'$as_ac_var'}
68357                  $as_echo "$as_val"'`
68358    if test "x$as_val" = x""yes; then
68359   cat >>confdefs.h <<_ACEOF
68360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68361 _ACEOF
68362  ice_have_select=yes
68363 fi
68364 done
68365
68366 if test "${ice_have_select}" = yes; then
68367 { $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
68368 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
68369 if test "${ice_cv_have_select_decl+set}" = set; then
68370   $as_echo_n "(cached) " >&6
68371 else
68372
68373 ice_cv_have_select_decl=no
68374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68375 ice_re_word='(^|[^a-zA-Z0-9_])'
68376 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
68377 # Check for ordinary declaration
68378 cat >conftest.$ac_ext <<_ACEOF
68379 /* confdefs.h.  */
68380 _ACEOF
68381 cat confdefs.h >>conftest.$ac_ext
68382 cat >>conftest.$ac_ext <<_ACEOF
68383 /* end confdefs.h.  */
68384 #include <$header>
68385
68386 _ACEOF
68387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68388   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
68389   ice_cv_have_select_decl=yes
68390 fi
68391 rm -f conftest*
68392
68393 if test "$ice_cv_have_select_decl" = yes; then
68394         break
68395 fi
68396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68397 cat >conftest.$ac_ext <<_ACEOF
68398 /* confdefs.h.  */
68399 _ACEOF
68400 cat confdefs.h >>conftest.$ac_ext
68401 cat >>conftest.$ac_ext <<_ACEOF
68402 /* end confdefs.h.  */
68403 #include <$header>
68404
68405 _ACEOF
68406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68407   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68408   ice_cv_have_select_decl=yes
68409 fi
68410 rm -f conftest*
68411
68412 if test "$ice_cv_have_select_decl" = yes; then
68413         break
68414 fi
68415 done
68416
68417 fi
68418
68419 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
68420 $as_echo "$ice_cv_have_select_decl" >&6; }
68421 if test "$ice_cv_have_select_decl" = yes; then
68422
68423 cat >>confdefs.h <<_ACEOF
68424 #define HAVE_SELECT_DECL 1
68425 _ACEOF
68426
68427 fi
68428 fi
68429
68430
68431
68432
68433
68434
68435
68436
68437 for ac_header in sys/time.h \
68438             sys/types.h \
68439             sys/select.h \
68440             sys/socket.h \
68441             unistd.h \
68442
68443 do
68444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
68445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68446   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
68447 $as_echo_n "checking for $ac_header... " >&6; }
68448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68449   $as_echo_n "(cached) " >&6
68450 fi
68451 ac_res=`eval 'as_val=${'$as_ac_Header'}
68452                  $as_echo "$as_val"'`
68453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68454 $as_echo "$ac_res" >&6; }
68455 else
68456   # Is the header compilable?
68457 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
68458 $as_echo_n "checking $ac_header usability... " >&6; }
68459 cat >conftest.$ac_ext <<_ACEOF
68460 /* confdefs.h.  */
68461 _ACEOF
68462 cat confdefs.h >>conftest.$ac_ext
68463 cat >>conftest.$ac_ext <<_ACEOF
68464 /* end confdefs.h.  */
68465 $ac_includes_default
68466 #include <$ac_header>
68467 _ACEOF
68468 rm -f conftest.$ac_objext
68469 if { (ac_try="$ac_compile"
68470 case "(($ac_try" in
68471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68472   *) ac_try_echo=$ac_try;;
68473 esac
68474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68475 $as_echo "$ac_try_echo") >&5
68476   (eval "$ac_compile") 2>conftest.er1
68477   ac_status=$?
68478   grep -v '^ *+' conftest.er1 >conftest.err
68479   rm -f conftest.er1
68480   cat conftest.err >&5
68481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68482   (exit $ac_status); } && {
68483          test -z "$ac_c_werror_flag" ||
68484          test ! -s conftest.err
68485        } && test -s conftest.$ac_objext; then
68486   ac_header_compiler=yes
68487 else
68488   $as_echo "$as_me: failed program was:" >&5
68489 sed 's/^/| /' conftest.$ac_ext >&5
68490
68491         ac_header_compiler=no
68492 fi
68493
68494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68496 $as_echo "$ac_header_compiler" >&6; }
68497
68498 # Is the header present?
68499 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
68500 $as_echo_n "checking $ac_header presence... " >&6; }
68501 cat >conftest.$ac_ext <<_ACEOF
68502 /* confdefs.h.  */
68503 _ACEOF
68504 cat confdefs.h >>conftest.$ac_ext
68505 cat >>conftest.$ac_ext <<_ACEOF
68506 /* end confdefs.h.  */
68507 #include <$ac_header>
68508 _ACEOF
68509 if { (ac_try="$ac_cpp conftest.$ac_ext"
68510 case "(($ac_try" in
68511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68512   *) ac_try_echo=$ac_try;;
68513 esac
68514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68515 $as_echo "$ac_try_echo") >&5
68516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
68517   ac_status=$?
68518   grep -v '^ *+' conftest.er1 >conftest.err
68519   rm -f conftest.er1
68520   cat conftest.err >&5
68521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68522   (exit $ac_status); } >/dev/null && {
68523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
68524          test ! -s conftest.err
68525        }; then
68526   ac_header_preproc=yes
68527 else
68528   $as_echo "$as_me: failed program was:" >&5
68529 sed 's/^/| /' conftest.$ac_ext >&5
68530
68531   ac_header_preproc=no
68532 fi
68533
68534 rm -f conftest.err conftest.$ac_ext
68535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68536 $as_echo "$ac_header_preproc" >&6; }
68537
68538 # So?  What about this header?
68539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68540   yes:no: )
68541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68542 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68545     ac_header_preproc=yes
68546     ;;
68547   no:yes:* )
68548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68549 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
68551 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
68552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68553 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
68555 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
68556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68559 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68560
68561     ;;
68562 esac
68563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
68564 $as_echo_n "checking for $ac_header... " >&6; }
68565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68566   $as_echo_n "(cached) " >&6
68567 else
68568   eval "$as_ac_Header=\$ac_header_preproc"
68569 fi
68570 ac_res=`eval 'as_val=${'$as_ac_Header'}
68571                  $as_echo "$as_val"'`
68572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68573 $as_echo "$ac_res" >&6; }
68574
68575 fi
68576 as_val=`eval 'as_val=${'$as_ac_Header'}
68577                  $as_echo "$as_val"'`
68578    if test "x$as_val" = x""yes; then
68579   cat >>confdefs.h <<_ACEOF
68580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68581 _ACEOF
68582
68583 fi
68584
68585 done
68586
68587
68588         { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
68589 $as_echo_n "checking for select() argument type... " >&6; }
68590 if test "${amanda_cv_select_arg_type+set}" = set; then
68591   $as_echo_n "(cached) " >&6
68592 else
68593
68594                 rm -f conftest.c
68595                 cat <<EOF >conftest.$ac_ext
68596 #include "confdefs.h"
68597 #ifdef TIME_WITH_SYS_TIME
68598 #  include <sys/time.h>
68599 #  include <time.h>
68600 #else
68601 #  ifdef HAVE_SYS_TIME_H
68602 #    include <sys/time.h>
68603 #  else
68604 #    include <time.h>
68605 #  endif
68606 #endif
68607 #ifdef HAVE_SYS_TYPES_H
68608 # include <sys/types.h>
68609 #endif
68610 #ifdef HAVE_SYS_SELECT_H
68611 #  include <sys/select.h>
68612 #endif
68613 #ifdef HAVE_SYS_SOCKET_H
68614 #  include <sys/socket.h>
68615 #endif
68616 #ifdef HAVE_UNISTD_H
68617 # include <unistd.h>
68618 #endif
68619
68620 int main()
68621 {
68622 #ifdef FD_SET_POINTER
68623         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
68624 #else
68625         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
68626 #endif
68627         return 0;
68628 }
68629 EOF
68630
68631                 # Figure out the select argument type by first trying to
68632                 # compile with the fd_set argument.  If the compile fails,
68633                 # then we know to use the int.  If it suceeds, then try to
68634                 # use the int.  If the int fails, then use fd_set.  If
68635                 # both suceeed, then do a line count on the number of
68636                 # lines that the compiler spit out, assuming that the
68637                 # compile outputing more lines had more errors.
68638                 amanda_cv_select_arg_type=no
68639                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
68640                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
68641                 if test $? -ne 0; then
68642                     amanda_cv_select_arg_type=int
68643                 fi
68644                 if test "$amanda_cv_select_arg_type" = no; then
68645                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
68646                     if test $? -ne 0; then
68647                         amanda_cv_select_arg_type=fd_set
68648                     fi
68649                 fi
68650                 if test "$amanda_cv_select_arg_type" = no; then
68651                     wc_fdset=`wc -l <conftest.fd_set`
68652                     wc_int=`wc -l <conftest.int`
68653                     if test "$wc_fdset" -le "$wc_int"; then
68654                         amanda_cv_select_arg_type=fd_set
68655                     else
68656                         amanda_cv_select_arg_type=int
68657                     fi
68658                 fi
68659                 rm -f conftest*
68660
68661
68662 fi
68663 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
68664 $as_echo "$amanda_cv_select_arg_type" >&6; }
68665
68666 cat >>confdefs.h <<_ACEOF
68667 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
68668 _ACEOF
68669
68670
68671
68672
68673 ice_have_sendto=no
68674
68675 for ac_func in sendto
68676 do
68677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68679 $as_echo_n "checking for $ac_func... " >&6; }
68680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68681   $as_echo_n "(cached) " >&6
68682 else
68683   cat >conftest.$ac_ext <<_ACEOF
68684 /* confdefs.h.  */
68685 _ACEOF
68686 cat confdefs.h >>conftest.$ac_ext
68687 cat >>conftest.$ac_ext <<_ACEOF
68688 /* end confdefs.h.  */
68689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68691 #define $ac_func innocuous_$ac_func
68692
68693 /* System header to define __stub macros and hopefully few prototypes,
68694     which can conflict with char $ac_func (); below.
68695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68696     <limits.h> exists even on freestanding compilers.  */
68697
68698 #ifdef __STDC__
68699 # include <limits.h>
68700 #else
68701 # include <assert.h>
68702 #endif
68703
68704 #undef $ac_func
68705
68706 /* Override any GCC internal prototype to avoid an error.
68707    Use char because int might match the return type of a GCC
68708    builtin and then its argument prototype would still apply.  */
68709 #ifdef __cplusplus
68710 extern "C"
68711 #endif
68712 char $ac_func ();
68713 /* The GNU C library defines this for functions which it implements
68714     to always fail with ENOSYS.  Some functions are actually named
68715     something starting with __ and the normal name is an alias.  */
68716 #if defined __stub_$ac_func || defined __stub___$ac_func
68717 choke me
68718 #endif
68719
68720 int
68721 main ()
68722 {
68723 return $ac_func ();
68724   ;
68725   return 0;
68726 }
68727 _ACEOF
68728 rm -f conftest.$ac_objext conftest$ac_exeext
68729 if { (ac_try="$ac_link"
68730 case "(($ac_try" in
68731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68732   *) ac_try_echo=$ac_try;;
68733 esac
68734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68735 $as_echo "$ac_try_echo") >&5
68736   (eval "$ac_link") 2>conftest.er1
68737   ac_status=$?
68738   grep -v '^ *+' conftest.er1 >conftest.err
68739   rm -f conftest.er1
68740   cat conftest.err >&5
68741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68742   (exit $ac_status); } && {
68743          test -z "$ac_c_werror_flag" ||
68744          test ! -s conftest.err
68745        } && test -s conftest$ac_exeext && {
68746          test "$cross_compiling" = yes ||
68747          $as_test_x conftest$ac_exeext
68748        }; then
68749   eval "$as_ac_var=yes"
68750 else
68751   $as_echo "$as_me: failed program was:" >&5
68752 sed 's/^/| /' conftest.$ac_ext >&5
68753
68754         eval "$as_ac_var=no"
68755 fi
68756
68757 rm -rf conftest.dSYM
68758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68759       conftest$ac_exeext conftest.$ac_ext
68760 fi
68761 ac_res=`eval 'as_val=${'$as_ac_var'}
68762                  $as_echo "$as_val"'`
68763                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68764 $as_echo "$ac_res" >&6; }
68765 as_val=`eval 'as_val=${'$as_ac_var'}
68766                  $as_echo "$as_val"'`
68767    if test "x$as_val" = x""yes; then
68768   cat >>confdefs.h <<_ACEOF
68769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68770 _ACEOF
68771  ice_have_sendto=yes
68772 fi
68773 done
68774
68775 if test "${ice_have_sendto}" = yes; then
68776 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
68777 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
68778 if test "${ice_cv_have_sendto_decl+set}" = set; then
68779   $as_echo_n "(cached) " >&6
68780 else
68781
68782 ice_cv_have_sendto_decl=no
68783 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68784 ice_re_word='(^|[^a-zA-Z0-9_])'
68785 for header in sys/types.h sys/socket.h; do
68786 # Check for ordinary declaration
68787 cat >conftest.$ac_ext <<_ACEOF
68788 /* confdefs.h.  */
68789 _ACEOF
68790 cat confdefs.h >>conftest.$ac_ext
68791 cat >>conftest.$ac_ext <<_ACEOF
68792 /* end confdefs.h.  */
68793 #include <$header>
68794
68795 _ACEOF
68796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68797   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
68798   ice_cv_have_sendto_decl=yes
68799 fi
68800 rm -f conftest*
68801
68802 if test "$ice_cv_have_sendto_decl" = yes; then
68803         break
68804 fi
68805 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68806 cat >conftest.$ac_ext <<_ACEOF
68807 /* confdefs.h.  */
68808 _ACEOF
68809 cat confdefs.h >>conftest.$ac_ext
68810 cat >>conftest.$ac_ext <<_ACEOF
68811 /* end confdefs.h.  */
68812 #include <$header>
68813
68814 _ACEOF
68815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68816   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68817   ice_cv_have_sendto_decl=yes
68818 fi
68819 rm -f conftest*
68820
68821 if test "$ice_cv_have_sendto_decl" = yes; then
68822         break
68823 fi
68824 done
68825
68826 fi
68827
68828 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
68829 $as_echo "$ice_cv_have_sendto_decl" >&6; }
68830 if test "$ice_cv_have_sendto_decl" = yes; then
68831
68832 cat >>confdefs.h <<_ACEOF
68833 #define HAVE_SENDTO_DECL 1
68834 _ACEOF
68835
68836 fi
68837 fi
68838
68839
68840 ice_have_setegid=no
68841
68842 for ac_func in setegid
68843 do
68844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68846 $as_echo_n "checking for $ac_func... " >&6; }
68847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68848   $as_echo_n "(cached) " >&6
68849 else
68850   cat >conftest.$ac_ext <<_ACEOF
68851 /* confdefs.h.  */
68852 _ACEOF
68853 cat confdefs.h >>conftest.$ac_ext
68854 cat >>conftest.$ac_ext <<_ACEOF
68855 /* end confdefs.h.  */
68856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68858 #define $ac_func innocuous_$ac_func
68859
68860 /* System header to define __stub macros and hopefully few prototypes,
68861     which can conflict with char $ac_func (); below.
68862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68863     <limits.h> exists even on freestanding compilers.  */
68864
68865 #ifdef __STDC__
68866 # include <limits.h>
68867 #else
68868 # include <assert.h>
68869 #endif
68870
68871 #undef $ac_func
68872
68873 /* Override any GCC internal prototype to avoid an error.
68874    Use char because int might match the return type of a GCC
68875    builtin and then its argument prototype would still apply.  */
68876 #ifdef __cplusplus
68877 extern "C"
68878 #endif
68879 char $ac_func ();
68880 /* The GNU C library defines this for functions which it implements
68881     to always fail with ENOSYS.  Some functions are actually named
68882     something starting with __ and the normal name is an alias.  */
68883 #if defined __stub_$ac_func || defined __stub___$ac_func
68884 choke me
68885 #endif
68886
68887 int
68888 main ()
68889 {
68890 return $ac_func ();
68891   ;
68892   return 0;
68893 }
68894 _ACEOF
68895 rm -f conftest.$ac_objext conftest$ac_exeext
68896 if { (ac_try="$ac_link"
68897 case "(($ac_try" in
68898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68899   *) ac_try_echo=$ac_try;;
68900 esac
68901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68902 $as_echo "$ac_try_echo") >&5
68903   (eval "$ac_link") 2>conftest.er1
68904   ac_status=$?
68905   grep -v '^ *+' conftest.er1 >conftest.err
68906   rm -f conftest.er1
68907   cat conftest.err >&5
68908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68909   (exit $ac_status); } && {
68910          test -z "$ac_c_werror_flag" ||
68911          test ! -s conftest.err
68912        } && test -s conftest$ac_exeext && {
68913          test "$cross_compiling" = yes ||
68914          $as_test_x conftest$ac_exeext
68915        }; then
68916   eval "$as_ac_var=yes"
68917 else
68918   $as_echo "$as_me: failed program was:" >&5
68919 sed 's/^/| /' conftest.$ac_ext >&5
68920
68921         eval "$as_ac_var=no"
68922 fi
68923
68924 rm -rf conftest.dSYM
68925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68926       conftest$ac_exeext conftest.$ac_ext
68927 fi
68928 ac_res=`eval 'as_val=${'$as_ac_var'}
68929                  $as_echo "$as_val"'`
68930                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68931 $as_echo "$ac_res" >&6; }
68932 as_val=`eval 'as_val=${'$as_ac_var'}
68933                  $as_echo "$as_val"'`
68934    if test "x$as_val" = x""yes; then
68935   cat >>confdefs.h <<_ACEOF
68936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68937 _ACEOF
68938  ice_have_setegid=yes
68939 fi
68940 done
68941
68942 if test "${ice_have_setegid}" = yes; then
68943 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
68944 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
68945 if test "${ice_cv_have_setegid_decl+set}" = set; then
68946   $as_echo_n "(cached) " >&6
68947 else
68948
68949 ice_cv_have_setegid_decl=no
68950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68951 ice_re_word='(^|[^a-zA-Z0-9_])'
68952 for header in unistd.h; do
68953 # Check for ordinary declaration
68954 cat >conftest.$ac_ext <<_ACEOF
68955 /* confdefs.h.  */
68956 _ACEOF
68957 cat confdefs.h >>conftest.$ac_ext
68958 cat >>conftest.$ac_ext <<_ACEOF
68959 /* end confdefs.h.  */
68960 #include <$header>
68961
68962 _ACEOF
68963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68964   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
68965   ice_cv_have_setegid_decl=yes
68966 fi
68967 rm -f conftest*
68968
68969 if test "$ice_cv_have_setegid_decl" = yes; then
68970         break
68971 fi
68972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68973 cat >conftest.$ac_ext <<_ACEOF
68974 /* confdefs.h.  */
68975 _ACEOF
68976 cat confdefs.h >>conftest.$ac_ext
68977 cat >>conftest.$ac_ext <<_ACEOF
68978 /* end confdefs.h.  */
68979 #include <$header>
68980
68981 _ACEOF
68982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68983   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68984   ice_cv_have_setegid_decl=yes
68985 fi
68986 rm -f conftest*
68987
68988 if test "$ice_cv_have_setegid_decl" = yes; then
68989         break
68990 fi
68991 done
68992
68993 fi
68994
68995 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
68996 $as_echo "$ice_cv_have_setegid_decl" >&6; }
68997 if test "$ice_cv_have_setegid_decl" = yes; then
68998
68999 cat >>confdefs.h <<_ACEOF
69000 #define HAVE_SETEGID_DECL 1
69001 _ACEOF
69002
69003 fi
69004 fi
69005
69006
69007 ice_have_seteuid=no
69008
69009 for ac_func in seteuid
69010 do
69011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69013 $as_echo_n "checking for $ac_func... " >&6; }
69014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69015   $as_echo_n "(cached) " >&6
69016 else
69017   cat >conftest.$ac_ext <<_ACEOF
69018 /* confdefs.h.  */
69019 _ACEOF
69020 cat confdefs.h >>conftest.$ac_ext
69021 cat >>conftest.$ac_ext <<_ACEOF
69022 /* end confdefs.h.  */
69023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69025 #define $ac_func innocuous_$ac_func
69026
69027 /* System header to define __stub macros and hopefully few prototypes,
69028     which can conflict with char $ac_func (); below.
69029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69030     <limits.h> exists even on freestanding compilers.  */
69031
69032 #ifdef __STDC__
69033 # include <limits.h>
69034 #else
69035 # include <assert.h>
69036 #endif
69037
69038 #undef $ac_func
69039
69040 /* Override any GCC internal prototype to avoid an error.
69041    Use char because int might match the return type of a GCC
69042    builtin and then its argument prototype would still apply.  */
69043 #ifdef __cplusplus
69044 extern "C"
69045 #endif
69046 char $ac_func ();
69047 /* The GNU C library defines this for functions which it implements
69048     to always fail with ENOSYS.  Some functions are actually named
69049     something starting with __ and the normal name is an alias.  */
69050 #if defined __stub_$ac_func || defined __stub___$ac_func
69051 choke me
69052 #endif
69053
69054 int
69055 main ()
69056 {
69057 return $ac_func ();
69058   ;
69059   return 0;
69060 }
69061 _ACEOF
69062 rm -f conftest.$ac_objext conftest$ac_exeext
69063 if { (ac_try="$ac_link"
69064 case "(($ac_try" in
69065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69066   *) ac_try_echo=$ac_try;;
69067 esac
69068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69069 $as_echo "$ac_try_echo") >&5
69070   (eval "$ac_link") 2>conftest.er1
69071   ac_status=$?
69072   grep -v '^ *+' conftest.er1 >conftest.err
69073   rm -f conftest.er1
69074   cat conftest.err >&5
69075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69076   (exit $ac_status); } && {
69077          test -z "$ac_c_werror_flag" ||
69078          test ! -s conftest.err
69079        } && test -s conftest$ac_exeext && {
69080          test "$cross_compiling" = yes ||
69081          $as_test_x conftest$ac_exeext
69082        }; then
69083   eval "$as_ac_var=yes"
69084 else
69085   $as_echo "$as_me: failed program was:" >&5
69086 sed 's/^/| /' conftest.$ac_ext >&5
69087
69088         eval "$as_ac_var=no"
69089 fi
69090
69091 rm -rf conftest.dSYM
69092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69093       conftest$ac_exeext conftest.$ac_ext
69094 fi
69095 ac_res=`eval 'as_val=${'$as_ac_var'}
69096                  $as_echo "$as_val"'`
69097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69098 $as_echo "$ac_res" >&6; }
69099 as_val=`eval 'as_val=${'$as_ac_var'}
69100                  $as_echo "$as_val"'`
69101    if test "x$as_val" = x""yes; then
69102   cat >>confdefs.h <<_ACEOF
69103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69104 _ACEOF
69105  ice_have_seteuid=yes
69106 fi
69107 done
69108
69109 if test "${ice_have_seteuid}" = yes; then
69110 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
69111 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
69112 if test "${ice_cv_have_seteuid_decl+set}" = set; then
69113   $as_echo_n "(cached) " >&6
69114 else
69115
69116 ice_cv_have_seteuid_decl=no
69117 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69118 ice_re_word='(^|[^a-zA-Z0-9_])'
69119 for header in unistd.h; do
69120 # Check for ordinary declaration
69121 cat >conftest.$ac_ext <<_ACEOF
69122 /* confdefs.h.  */
69123 _ACEOF
69124 cat confdefs.h >>conftest.$ac_ext
69125 cat >>conftest.$ac_ext <<_ACEOF
69126 /* end confdefs.h.  */
69127 #include <$header>
69128
69129 _ACEOF
69130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69131   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
69132   ice_cv_have_seteuid_decl=yes
69133 fi
69134 rm -f conftest*
69135
69136 if test "$ice_cv_have_seteuid_decl" = yes; then
69137         break
69138 fi
69139 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69140 cat >conftest.$ac_ext <<_ACEOF
69141 /* confdefs.h.  */
69142 _ACEOF
69143 cat confdefs.h >>conftest.$ac_ext
69144 cat >>conftest.$ac_ext <<_ACEOF
69145 /* end confdefs.h.  */
69146 #include <$header>
69147
69148 _ACEOF
69149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69150   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69151   ice_cv_have_seteuid_decl=yes
69152 fi
69153 rm -f conftest*
69154
69155 if test "$ice_cv_have_seteuid_decl" = yes; then
69156         break
69157 fi
69158 done
69159
69160 fi
69161
69162 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
69163 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
69164 if test "$ice_cv_have_seteuid_decl" = yes; then
69165
69166 cat >>confdefs.h <<_ACEOF
69167 #define HAVE_SETEUID_DECL 1
69168 _ACEOF
69169
69170 fi
69171 fi
69172
69173
69174 ice_have_setresgid=no
69175
69176 for ac_func in setresgid
69177 do
69178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69179 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69180 $as_echo_n "checking for $ac_func... " >&6; }
69181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69182   $as_echo_n "(cached) " >&6
69183 else
69184   cat >conftest.$ac_ext <<_ACEOF
69185 /* confdefs.h.  */
69186 _ACEOF
69187 cat confdefs.h >>conftest.$ac_ext
69188 cat >>conftest.$ac_ext <<_ACEOF
69189 /* end confdefs.h.  */
69190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69192 #define $ac_func innocuous_$ac_func
69193
69194 /* System header to define __stub macros and hopefully few prototypes,
69195     which can conflict with char $ac_func (); below.
69196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69197     <limits.h> exists even on freestanding compilers.  */
69198
69199 #ifdef __STDC__
69200 # include <limits.h>
69201 #else
69202 # include <assert.h>
69203 #endif
69204
69205 #undef $ac_func
69206
69207 /* Override any GCC internal prototype to avoid an error.
69208    Use char because int might match the return type of a GCC
69209    builtin and then its argument prototype would still apply.  */
69210 #ifdef __cplusplus
69211 extern "C"
69212 #endif
69213 char $ac_func ();
69214 /* The GNU C library defines this for functions which it implements
69215     to always fail with ENOSYS.  Some functions are actually named
69216     something starting with __ and the normal name is an alias.  */
69217 #if defined __stub_$ac_func || defined __stub___$ac_func
69218 choke me
69219 #endif
69220
69221 int
69222 main ()
69223 {
69224 return $ac_func ();
69225   ;
69226   return 0;
69227 }
69228 _ACEOF
69229 rm -f conftest.$ac_objext conftest$ac_exeext
69230 if { (ac_try="$ac_link"
69231 case "(($ac_try" in
69232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69233   *) ac_try_echo=$ac_try;;
69234 esac
69235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69236 $as_echo "$ac_try_echo") >&5
69237   (eval "$ac_link") 2>conftest.er1
69238   ac_status=$?
69239   grep -v '^ *+' conftest.er1 >conftest.err
69240   rm -f conftest.er1
69241   cat conftest.err >&5
69242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69243   (exit $ac_status); } && {
69244          test -z "$ac_c_werror_flag" ||
69245          test ! -s conftest.err
69246        } && test -s conftest$ac_exeext && {
69247          test "$cross_compiling" = yes ||
69248          $as_test_x conftest$ac_exeext
69249        }; then
69250   eval "$as_ac_var=yes"
69251 else
69252   $as_echo "$as_me: failed program was:" >&5
69253 sed 's/^/| /' conftest.$ac_ext >&5
69254
69255         eval "$as_ac_var=no"
69256 fi
69257
69258 rm -rf conftest.dSYM
69259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69260       conftest$ac_exeext conftest.$ac_ext
69261 fi
69262 ac_res=`eval 'as_val=${'$as_ac_var'}
69263                  $as_echo "$as_val"'`
69264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69265 $as_echo "$ac_res" >&6; }
69266 as_val=`eval 'as_val=${'$as_ac_var'}
69267                  $as_echo "$as_val"'`
69268    if test "x$as_val" = x""yes; then
69269   cat >>confdefs.h <<_ACEOF
69270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69271 _ACEOF
69272  ice_have_setresgid=yes
69273 fi
69274 done
69275
69276 if test "${ice_have_setresgid}" = yes; then
69277 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
69278 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
69279 if test "${ice_cv_have_setresgid_decl+set}" = set; then
69280   $as_echo_n "(cached) " >&6
69281 else
69282
69283 ice_cv_have_setresgid_decl=no
69284 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69285 ice_re_word='(^|[^a-zA-Z0-9_])'
69286 for header in unistd.h; do
69287 # Check for ordinary declaration
69288 cat >conftest.$ac_ext <<_ACEOF
69289 /* confdefs.h.  */
69290 _ACEOF
69291 cat confdefs.h >>conftest.$ac_ext
69292 cat >>conftest.$ac_ext <<_ACEOF
69293 /* end confdefs.h.  */
69294 #include <$header>
69295
69296 _ACEOF
69297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69298   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
69299   ice_cv_have_setresgid_decl=yes
69300 fi
69301 rm -f conftest*
69302
69303 if test "$ice_cv_have_setresgid_decl" = yes; then
69304         break
69305 fi
69306 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69307 cat >conftest.$ac_ext <<_ACEOF
69308 /* confdefs.h.  */
69309 _ACEOF
69310 cat confdefs.h >>conftest.$ac_ext
69311 cat >>conftest.$ac_ext <<_ACEOF
69312 /* end confdefs.h.  */
69313 #include <$header>
69314
69315 _ACEOF
69316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69317   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69318   ice_cv_have_setresgid_decl=yes
69319 fi
69320 rm -f conftest*
69321
69322 if test "$ice_cv_have_setresgid_decl" = yes; then
69323         break
69324 fi
69325 done
69326
69327 fi
69328
69329 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
69330 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
69331 if test "$ice_cv_have_setresgid_decl" = yes; then
69332
69333 cat >>confdefs.h <<_ACEOF
69334 #define HAVE_SETRESGID_DECL 1
69335 _ACEOF
69336
69337 fi
69338 fi
69339
69340
69341 ice_have_setresuid=no
69342
69343 for ac_func in setresuid
69344 do
69345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69346 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69347 $as_echo_n "checking for $ac_func... " >&6; }
69348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69349   $as_echo_n "(cached) " >&6
69350 else
69351   cat >conftest.$ac_ext <<_ACEOF
69352 /* confdefs.h.  */
69353 _ACEOF
69354 cat confdefs.h >>conftest.$ac_ext
69355 cat >>conftest.$ac_ext <<_ACEOF
69356 /* end confdefs.h.  */
69357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69359 #define $ac_func innocuous_$ac_func
69360
69361 /* System header to define __stub macros and hopefully few prototypes,
69362     which can conflict with char $ac_func (); below.
69363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69364     <limits.h> exists even on freestanding compilers.  */
69365
69366 #ifdef __STDC__
69367 # include <limits.h>
69368 #else
69369 # include <assert.h>
69370 #endif
69371
69372 #undef $ac_func
69373
69374 /* Override any GCC internal prototype to avoid an error.
69375    Use char because int might match the return type of a GCC
69376    builtin and then its argument prototype would still apply.  */
69377 #ifdef __cplusplus
69378 extern "C"
69379 #endif
69380 char $ac_func ();
69381 /* The GNU C library defines this for functions which it implements
69382     to always fail with ENOSYS.  Some functions are actually named
69383     something starting with __ and the normal name is an alias.  */
69384 #if defined __stub_$ac_func || defined __stub___$ac_func
69385 choke me
69386 #endif
69387
69388 int
69389 main ()
69390 {
69391 return $ac_func ();
69392   ;
69393   return 0;
69394 }
69395 _ACEOF
69396 rm -f conftest.$ac_objext conftest$ac_exeext
69397 if { (ac_try="$ac_link"
69398 case "(($ac_try" in
69399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69400   *) ac_try_echo=$ac_try;;
69401 esac
69402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69403 $as_echo "$ac_try_echo") >&5
69404   (eval "$ac_link") 2>conftest.er1
69405   ac_status=$?
69406   grep -v '^ *+' conftest.er1 >conftest.err
69407   rm -f conftest.er1
69408   cat conftest.err >&5
69409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69410   (exit $ac_status); } && {
69411          test -z "$ac_c_werror_flag" ||
69412          test ! -s conftest.err
69413        } && test -s conftest$ac_exeext && {
69414          test "$cross_compiling" = yes ||
69415          $as_test_x conftest$ac_exeext
69416        }; then
69417   eval "$as_ac_var=yes"
69418 else
69419   $as_echo "$as_me: failed program was:" >&5
69420 sed 's/^/| /' conftest.$ac_ext >&5
69421
69422         eval "$as_ac_var=no"
69423 fi
69424
69425 rm -rf conftest.dSYM
69426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69427       conftest$ac_exeext conftest.$ac_ext
69428 fi
69429 ac_res=`eval 'as_val=${'$as_ac_var'}
69430                  $as_echo "$as_val"'`
69431                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69432 $as_echo "$ac_res" >&6; }
69433 as_val=`eval 'as_val=${'$as_ac_var'}
69434                  $as_echo "$as_val"'`
69435    if test "x$as_val" = x""yes; then
69436   cat >>confdefs.h <<_ACEOF
69437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69438 _ACEOF
69439  ice_have_setresuid=yes
69440 fi
69441 done
69442
69443 if test "${ice_have_setresuid}" = yes; then
69444 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
69445 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
69446 if test "${ice_cv_have_setresuid_decl+set}" = set; then
69447   $as_echo_n "(cached) " >&6
69448 else
69449
69450 ice_cv_have_setresuid_decl=no
69451 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69452 ice_re_word='(^|[^a-zA-Z0-9_])'
69453 for header in unistd.h; do
69454 # Check for ordinary declaration
69455 cat >conftest.$ac_ext <<_ACEOF
69456 /* confdefs.h.  */
69457 _ACEOF
69458 cat confdefs.h >>conftest.$ac_ext
69459 cat >>conftest.$ac_ext <<_ACEOF
69460 /* end confdefs.h.  */
69461 #include <$header>
69462
69463 _ACEOF
69464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69465   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
69466   ice_cv_have_setresuid_decl=yes
69467 fi
69468 rm -f conftest*
69469
69470 if test "$ice_cv_have_setresuid_decl" = yes; then
69471         break
69472 fi
69473 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69474 cat >conftest.$ac_ext <<_ACEOF
69475 /* confdefs.h.  */
69476 _ACEOF
69477 cat confdefs.h >>conftest.$ac_ext
69478 cat >>conftest.$ac_ext <<_ACEOF
69479 /* end confdefs.h.  */
69480 #include <$header>
69481
69482 _ACEOF
69483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69484   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69485   ice_cv_have_setresuid_decl=yes
69486 fi
69487 rm -f conftest*
69488
69489 if test "$ice_cv_have_setresuid_decl" = yes; then
69490         break
69491 fi
69492 done
69493
69494 fi
69495
69496 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
69497 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
69498 if test "$ice_cv_have_setresuid_decl" = yes; then
69499
69500 cat >>confdefs.h <<_ACEOF
69501 #define HAVE_SETRESUID_DECL 1
69502 _ACEOF
69503
69504 fi
69505 fi
69506
69507
69508 ice_have_snprintf=no
69509
69510 for ac_func in snprintf
69511 do
69512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69514 $as_echo_n "checking for $ac_func... " >&6; }
69515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69516   $as_echo_n "(cached) " >&6
69517 else
69518   cat >conftest.$ac_ext <<_ACEOF
69519 /* confdefs.h.  */
69520 _ACEOF
69521 cat confdefs.h >>conftest.$ac_ext
69522 cat >>conftest.$ac_ext <<_ACEOF
69523 /* end confdefs.h.  */
69524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69526 #define $ac_func innocuous_$ac_func
69527
69528 /* System header to define __stub macros and hopefully few prototypes,
69529     which can conflict with char $ac_func (); below.
69530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69531     <limits.h> exists even on freestanding compilers.  */
69532
69533 #ifdef __STDC__
69534 # include <limits.h>
69535 #else
69536 # include <assert.h>
69537 #endif
69538
69539 #undef $ac_func
69540
69541 /* Override any GCC internal prototype to avoid an error.
69542    Use char because int might match the return type of a GCC
69543    builtin and then its argument prototype would still apply.  */
69544 #ifdef __cplusplus
69545 extern "C"
69546 #endif
69547 char $ac_func ();
69548 /* The GNU C library defines this for functions which it implements
69549     to always fail with ENOSYS.  Some functions are actually named
69550     something starting with __ and the normal name is an alias.  */
69551 #if defined __stub_$ac_func || defined __stub___$ac_func
69552 choke me
69553 #endif
69554
69555 int
69556 main ()
69557 {
69558 return $ac_func ();
69559   ;
69560   return 0;
69561 }
69562 _ACEOF
69563 rm -f conftest.$ac_objext conftest$ac_exeext
69564 if { (ac_try="$ac_link"
69565 case "(($ac_try" in
69566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69567   *) ac_try_echo=$ac_try;;
69568 esac
69569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69570 $as_echo "$ac_try_echo") >&5
69571   (eval "$ac_link") 2>conftest.er1
69572   ac_status=$?
69573   grep -v '^ *+' conftest.er1 >conftest.err
69574   rm -f conftest.er1
69575   cat conftest.err >&5
69576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69577   (exit $ac_status); } && {
69578          test -z "$ac_c_werror_flag" ||
69579          test ! -s conftest.err
69580        } && test -s conftest$ac_exeext && {
69581          test "$cross_compiling" = yes ||
69582          $as_test_x conftest$ac_exeext
69583        }; then
69584   eval "$as_ac_var=yes"
69585 else
69586   $as_echo "$as_me: failed program was:" >&5
69587 sed 's/^/| /' conftest.$ac_ext >&5
69588
69589         eval "$as_ac_var=no"
69590 fi
69591
69592 rm -rf conftest.dSYM
69593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69594       conftest$ac_exeext conftest.$ac_ext
69595 fi
69596 ac_res=`eval 'as_val=${'$as_ac_var'}
69597                  $as_echo "$as_val"'`
69598                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69599 $as_echo "$ac_res" >&6; }
69600 as_val=`eval 'as_val=${'$as_ac_var'}
69601                  $as_echo "$as_val"'`
69602    if test "x$as_val" = x""yes; then
69603   cat >>confdefs.h <<_ACEOF
69604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69605 _ACEOF
69606  ice_have_snprintf=yes
69607 fi
69608 done
69609
69610 if test "${ice_have_snprintf}" = yes; then
69611 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
69612 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
69613 if test "${ice_cv_have_snprintf_decl+set}" = set; then
69614   $as_echo_n "(cached) " >&6
69615 else
69616
69617 ice_cv_have_snprintf_decl=no
69618 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69619 ice_re_word='(^|[^a-zA-Z0-9_])'
69620 for header in stdio.h; do
69621 # Check for ordinary declaration
69622 cat >conftest.$ac_ext <<_ACEOF
69623 /* confdefs.h.  */
69624 _ACEOF
69625 cat confdefs.h >>conftest.$ac_ext
69626 cat >>conftest.$ac_ext <<_ACEOF
69627 /* end confdefs.h.  */
69628 #include <$header>
69629
69630 _ACEOF
69631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69632   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
69633   ice_cv_have_snprintf_decl=yes
69634 fi
69635 rm -f conftest*
69636
69637 if test "$ice_cv_have_snprintf_decl" = yes; then
69638         break
69639 fi
69640 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69641 cat >conftest.$ac_ext <<_ACEOF
69642 /* confdefs.h.  */
69643 _ACEOF
69644 cat confdefs.h >>conftest.$ac_ext
69645 cat >>conftest.$ac_ext <<_ACEOF
69646 /* end confdefs.h.  */
69647 #include <$header>
69648
69649 _ACEOF
69650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69651   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69652   ice_cv_have_snprintf_decl=yes
69653 fi
69654 rm -f conftest*
69655
69656 if test "$ice_cv_have_snprintf_decl" = yes; then
69657         break
69658 fi
69659 done
69660
69661 fi
69662
69663 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
69664 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
69665 if test "$ice_cv_have_snprintf_decl" = yes; then
69666
69667 cat >>confdefs.h <<_ACEOF
69668 #define HAVE_SNPRINTF_DECL 1
69669 _ACEOF
69670
69671 fi
69672 fi
69673
69674
69675 ice_have_vsnprintf=no
69676
69677 for ac_func in vsnprintf
69678 do
69679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69681 $as_echo_n "checking for $ac_func... " >&6; }
69682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69683   $as_echo_n "(cached) " >&6
69684 else
69685   cat >conftest.$ac_ext <<_ACEOF
69686 /* confdefs.h.  */
69687 _ACEOF
69688 cat confdefs.h >>conftest.$ac_ext
69689 cat >>conftest.$ac_ext <<_ACEOF
69690 /* end confdefs.h.  */
69691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69693 #define $ac_func innocuous_$ac_func
69694
69695 /* System header to define __stub macros and hopefully few prototypes,
69696     which can conflict with char $ac_func (); below.
69697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69698     <limits.h> exists even on freestanding compilers.  */
69699
69700 #ifdef __STDC__
69701 # include <limits.h>
69702 #else
69703 # include <assert.h>
69704 #endif
69705
69706 #undef $ac_func
69707
69708 /* Override any GCC internal prototype to avoid an error.
69709    Use char because int might match the return type of a GCC
69710    builtin and then its argument prototype would still apply.  */
69711 #ifdef __cplusplus
69712 extern "C"
69713 #endif
69714 char $ac_func ();
69715 /* The GNU C library defines this for functions which it implements
69716     to always fail with ENOSYS.  Some functions are actually named
69717     something starting with __ and the normal name is an alias.  */
69718 #if defined __stub_$ac_func || defined __stub___$ac_func
69719 choke me
69720 #endif
69721
69722 int
69723 main ()
69724 {
69725 return $ac_func ();
69726   ;
69727   return 0;
69728 }
69729 _ACEOF
69730 rm -f conftest.$ac_objext conftest$ac_exeext
69731 if { (ac_try="$ac_link"
69732 case "(($ac_try" in
69733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69734   *) ac_try_echo=$ac_try;;
69735 esac
69736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69737 $as_echo "$ac_try_echo") >&5
69738   (eval "$ac_link") 2>conftest.er1
69739   ac_status=$?
69740   grep -v '^ *+' conftest.er1 >conftest.err
69741   rm -f conftest.er1
69742   cat conftest.err >&5
69743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69744   (exit $ac_status); } && {
69745          test -z "$ac_c_werror_flag" ||
69746          test ! -s conftest.err
69747        } && test -s conftest$ac_exeext && {
69748          test "$cross_compiling" = yes ||
69749          $as_test_x conftest$ac_exeext
69750        }; then
69751   eval "$as_ac_var=yes"
69752 else
69753   $as_echo "$as_me: failed program was:" >&5
69754 sed 's/^/| /' conftest.$ac_ext >&5
69755
69756         eval "$as_ac_var=no"
69757 fi
69758
69759 rm -rf conftest.dSYM
69760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69761       conftest$ac_exeext conftest.$ac_ext
69762 fi
69763 ac_res=`eval 'as_val=${'$as_ac_var'}
69764                  $as_echo "$as_val"'`
69765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69766 $as_echo "$ac_res" >&6; }
69767 as_val=`eval 'as_val=${'$as_ac_var'}
69768                  $as_echo "$as_val"'`
69769    if test "x$as_val" = x""yes; then
69770   cat >>confdefs.h <<_ACEOF
69771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69772 _ACEOF
69773  ice_have_vsnprintf=yes
69774 fi
69775 done
69776
69777 if test "${ice_have_vsnprintf}" = yes; then
69778 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
69779 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
69780 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
69781   $as_echo_n "(cached) " >&6
69782 else
69783
69784 ice_cv_have_vsnprintf_decl=no
69785 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69786 ice_re_word='(^|[^a-zA-Z0-9_])'
69787 for header in stdio.h; do
69788 # Check for ordinary declaration
69789 cat >conftest.$ac_ext <<_ACEOF
69790 /* confdefs.h.  */
69791 _ACEOF
69792 cat confdefs.h >>conftest.$ac_ext
69793 cat >>conftest.$ac_ext <<_ACEOF
69794 /* end confdefs.h.  */
69795 #include <$header>
69796
69797 _ACEOF
69798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69799   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
69800   ice_cv_have_vsnprintf_decl=yes
69801 fi
69802 rm -f conftest*
69803
69804 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69805         break
69806 fi
69807 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69808 cat >conftest.$ac_ext <<_ACEOF
69809 /* confdefs.h.  */
69810 _ACEOF
69811 cat confdefs.h >>conftest.$ac_ext
69812 cat >>conftest.$ac_ext <<_ACEOF
69813 /* end confdefs.h.  */
69814 #include <$header>
69815
69816 _ACEOF
69817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69818   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69819   ice_cv_have_vsnprintf_decl=yes
69820 fi
69821 rm -f conftest*
69822
69823 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69824         break
69825 fi
69826 done
69827
69828 fi
69829
69830 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
69831 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
69832 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69833
69834 cat >>confdefs.h <<_ACEOF
69835 #define HAVE_VSNPRINTF_DECL 1
69836 _ACEOF
69837
69838 fi
69839 fi
69840
69841
69842     { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
69843 $as_echo_n "checking for setpgid... " >&6; }
69844 if test "${ac_cv_func_setpgid+set}" = set; then
69845   $as_echo_n "(cached) " >&6
69846 else
69847   cat >conftest.$ac_ext <<_ACEOF
69848 /* confdefs.h.  */
69849 _ACEOF
69850 cat confdefs.h >>conftest.$ac_ext
69851 cat >>conftest.$ac_ext <<_ACEOF
69852 /* end confdefs.h.  */
69853 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
69854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69855 #define setpgid innocuous_setpgid
69856
69857 /* System header to define __stub macros and hopefully few prototypes,
69858     which can conflict with char setpgid (); below.
69859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69860     <limits.h> exists even on freestanding compilers.  */
69861
69862 #ifdef __STDC__
69863 # include <limits.h>
69864 #else
69865 # include <assert.h>
69866 #endif
69867
69868 #undef setpgid
69869
69870 /* Override any GCC internal prototype to avoid an error.
69871    Use char because int might match the return type of a GCC
69872    builtin and then its argument prototype would still apply.  */
69873 #ifdef __cplusplus
69874 extern "C"
69875 #endif
69876 char setpgid ();
69877 /* The GNU C library defines this for functions which it implements
69878     to always fail with ENOSYS.  Some functions are actually named
69879     something starting with __ and the normal name is an alias.  */
69880 #if defined __stub_setpgid || defined __stub___setpgid
69881 choke me
69882 #endif
69883
69884 int
69885 main ()
69886 {
69887 return setpgid ();
69888   ;
69889   return 0;
69890 }
69891 _ACEOF
69892 rm -f conftest.$ac_objext conftest$ac_exeext
69893 if { (ac_try="$ac_link"
69894 case "(($ac_try" in
69895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69896   *) ac_try_echo=$ac_try;;
69897 esac
69898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69899 $as_echo "$ac_try_echo") >&5
69900   (eval "$ac_link") 2>conftest.er1
69901   ac_status=$?
69902   grep -v '^ *+' conftest.er1 >conftest.err
69903   rm -f conftest.er1
69904   cat conftest.err >&5
69905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69906   (exit $ac_status); } && {
69907          test -z "$ac_c_werror_flag" ||
69908          test ! -s conftest.err
69909        } && test -s conftest$ac_exeext && {
69910          test "$cross_compiling" = yes ||
69911          $as_test_x conftest$ac_exeext
69912        }; then
69913   ac_cv_func_setpgid=yes
69914 else
69915   $as_echo "$as_me: failed program was:" >&5
69916 sed 's/^/| /' conftest.$ac_ext >&5
69917
69918         ac_cv_func_setpgid=no
69919 fi
69920
69921 rm -rf conftest.dSYM
69922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69923       conftest$ac_exeext conftest.$ac_ext
69924 fi
69925 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
69926 $as_echo "$ac_cv_func_setpgid" >&6; }
69927 if test "x$ac_cv_func_setpgid" = x""yes; then
69928
69929
69930 cat >>confdefs.h <<\_ACEOF
69931 #define HAVE_SETPGID 1
69932 _ACEOF
69933
69934
69935 ice_have_setpgid=no
69936
69937 for ac_func in setpgid
69938 do
69939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69940 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69941 $as_echo_n "checking for $ac_func... " >&6; }
69942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69943   $as_echo_n "(cached) " >&6
69944 else
69945   cat >conftest.$ac_ext <<_ACEOF
69946 /* confdefs.h.  */
69947 _ACEOF
69948 cat confdefs.h >>conftest.$ac_ext
69949 cat >>conftest.$ac_ext <<_ACEOF
69950 /* end confdefs.h.  */
69951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69953 #define $ac_func innocuous_$ac_func
69954
69955 /* System header to define __stub macros and hopefully few prototypes,
69956     which can conflict with char $ac_func (); below.
69957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69958     <limits.h> exists even on freestanding compilers.  */
69959
69960 #ifdef __STDC__
69961 # include <limits.h>
69962 #else
69963 # include <assert.h>
69964 #endif
69965
69966 #undef $ac_func
69967
69968 /* Override any GCC internal prototype to avoid an error.
69969    Use char because int might match the return type of a GCC
69970    builtin and then its argument prototype would still apply.  */
69971 #ifdef __cplusplus
69972 extern "C"
69973 #endif
69974 char $ac_func ();
69975 /* The GNU C library defines this for functions which it implements
69976     to always fail with ENOSYS.  Some functions are actually named
69977     something starting with __ and the normal name is an alias.  */
69978 #if defined __stub_$ac_func || defined __stub___$ac_func
69979 choke me
69980 #endif
69981
69982 int
69983 main ()
69984 {
69985 return $ac_func ();
69986   ;
69987   return 0;
69988 }
69989 _ACEOF
69990 rm -f conftest.$ac_objext conftest$ac_exeext
69991 if { (ac_try="$ac_link"
69992 case "(($ac_try" in
69993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69994   *) ac_try_echo=$ac_try;;
69995 esac
69996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69997 $as_echo "$ac_try_echo") >&5
69998   (eval "$ac_link") 2>conftest.er1
69999   ac_status=$?
70000   grep -v '^ *+' conftest.er1 >conftest.err
70001   rm -f conftest.er1
70002   cat conftest.err >&5
70003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70004   (exit $ac_status); } && {
70005          test -z "$ac_c_werror_flag" ||
70006          test ! -s conftest.err
70007        } && test -s conftest$ac_exeext && {
70008          test "$cross_compiling" = yes ||
70009          $as_test_x conftest$ac_exeext
70010        }; then
70011   eval "$as_ac_var=yes"
70012 else
70013   $as_echo "$as_me: failed program was:" >&5
70014 sed 's/^/| /' conftest.$ac_ext >&5
70015
70016         eval "$as_ac_var=no"
70017 fi
70018
70019 rm -rf conftest.dSYM
70020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70021       conftest$ac_exeext conftest.$ac_ext
70022 fi
70023 ac_res=`eval 'as_val=${'$as_ac_var'}
70024                  $as_echo "$as_val"'`
70025                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70026 $as_echo "$ac_res" >&6; }
70027 as_val=`eval 'as_val=${'$as_ac_var'}
70028                  $as_echo "$as_val"'`
70029    if test "x$as_val" = x""yes; then
70030   cat >>confdefs.h <<_ACEOF
70031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70032 _ACEOF
70033  ice_have_setpgid=yes
70034 fi
70035 done
70036
70037 if test "${ice_have_setpgid}" = yes; then
70038 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
70039 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
70040 if test "${ice_cv_have_setpgid_decl+set}" = set; then
70041   $as_echo_n "(cached) " >&6
70042 else
70043
70044 ice_cv_have_setpgid_decl=no
70045 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70046 ice_re_word='(^|[^a-zA-Z0-9_])'
70047 for header in sys/types.h unistd.h; do
70048 # Check for ordinary declaration
70049 cat >conftest.$ac_ext <<_ACEOF
70050 /* confdefs.h.  */
70051 _ACEOF
70052 cat confdefs.h >>conftest.$ac_ext
70053 cat >>conftest.$ac_ext <<_ACEOF
70054 /* end confdefs.h.  */
70055 #include <$header>
70056
70057 _ACEOF
70058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70059   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
70060   ice_cv_have_setpgid_decl=yes
70061 fi
70062 rm -f conftest*
70063
70064 if test "$ice_cv_have_setpgid_decl" = yes; then
70065         break
70066 fi
70067 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70068 cat >conftest.$ac_ext <<_ACEOF
70069 /* confdefs.h.  */
70070 _ACEOF
70071 cat confdefs.h >>conftest.$ac_ext
70072 cat >>conftest.$ac_ext <<_ACEOF
70073 /* end confdefs.h.  */
70074 #include <$header>
70075
70076 _ACEOF
70077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70078   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70079   ice_cv_have_setpgid_decl=yes
70080 fi
70081 rm -f conftest*
70082
70083 if test "$ice_cv_have_setpgid_decl" = yes; then
70084         break
70085 fi
70086 done
70087
70088 fi
70089
70090 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
70091 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
70092 if test "$ice_cv_have_setpgid_decl" = yes; then
70093
70094 cat >>confdefs.h <<_ACEOF
70095 #define HAVE_SETPGID_DECL 1
70096 _ACEOF
70097
70098 fi
70099 fi
70100
70101
70102 fi
70103
70104
70105 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
70106 $as_echo_n "checking for setpgrp... " >&6; }
70107 if test "${ac_cv_func_setpgrp+set}" = set; then
70108   $as_echo_n "(cached) " >&6
70109 else
70110   cat >conftest.$ac_ext <<_ACEOF
70111 /* confdefs.h.  */
70112 _ACEOF
70113 cat confdefs.h >>conftest.$ac_ext
70114 cat >>conftest.$ac_ext <<_ACEOF
70115 /* end confdefs.h.  */
70116 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
70117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70118 #define setpgrp innocuous_setpgrp
70119
70120 /* System header to define __stub macros and hopefully few prototypes,
70121     which can conflict with char setpgrp (); below.
70122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70123     <limits.h> exists even on freestanding compilers.  */
70124
70125 #ifdef __STDC__
70126 # include <limits.h>
70127 #else
70128 # include <assert.h>
70129 #endif
70130
70131 #undef setpgrp
70132
70133 /* Override any GCC internal prototype to avoid an error.
70134    Use char because int might match the return type of a GCC
70135    builtin and then its argument prototype would still apply.  */
70136 #ifdef __cplusplus
70137 extern "C"
70138 #endif
70139 char setpgrp ();
70140 /* The GNU C library defines this for functions which it implements
70141     to always fail with ENOSYS.  Some functions are actually named
70142     something starting with __ and the normal name is an alias.  */
70143 #if defined __stub_setpgrp || defined __stub___setpgrp
70144 choke me
70145 #endif
70146
70147 int
70148 main ()
70149 {
70150 return setpgrp ();
70151   ;
70152   return 0;
70153 }
70154 _ACEOF
70155 rm -f conftest.$ac_objext conftest$ac_exeext
70156 if { (ac_try="$ac_link"
70157 case "(($ac_try" in
70158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70159   *) ac_try_echo=$ac_try;;
70160 esac
70161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70162 $as_echo "$ac_try_echo") >&5
70163   (eval "$ac_link") 2>conftest.er1
70164   ac_status=$?
70165   grep -v '^ *+' conftest.er1 >conftest.err
70166   rm -f conftest.er1
70167   cat conftest.err >&5
70168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70169   (exit $ac_status); } && {
70170          test -z "$ac_c_werror_flag" ||
70171          test ! -s conftest.err
70172        } && test -s conftest$ac_exeext && {
70173          test "$cross_compiling" = yes ||
70174          $as_test_x conftest$ac_exeext
70175        }; then
70176   ac_cv_func_setpgrp=yes
70177 else
70178   $as_echo "$as_me: failed program was:" >&5
70179 sed 's/^/| /' conftest.$ac_ext >&5
70180
70181         ac_cv_func_setpgrp=no
70182 fi
70183
70184 rm -rf conftest.dSYM
70185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70186       conftest$ac_exeext conftest.$ac_ext
70187 fi
70188 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
70189 $as_echo "$ac_cv_func_setpgrp" >&6; }
70190 if test "x$ac_cv_func_setpgrp" = x""yes; then
70191   { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
70192 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
70193 if test "${ac_cv_func_setpgrp_void+set}" = set; then
70194   $as_echo_n "(cached) " >&6
70195 else
70196   if test "$cross_compiling" = yes; then
70197   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
70198 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
70199    { (exit 1); exit 1; }; }
70200 else
70201   cat >conftest.$ac_ext <<_ACEOF
70202 /* confdefs.h.  */
70203 _ACEOF
70204 cat confdefs.h >>conftest.$ac_ext
70205 cat >>conftest.$ac_ext <<_ACEOF
70206 /* end confdefs.h.  */
70207 $ac_includes_default
70208 int
70209 main ()
70210 {
70211 /* If this system has a BSD-style setpgrp which takes arguments,
70212   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
70213   exit successfully. */
70214   return setpgrp (1,1) != -1;
70215   ;
70216   return 0;
70217 }
70218 _ACEOF
70219 rm -f conftest$ac_exeext
70220 if { (ac_try="$ac_link"
70221 case "(($ac_try" in
70222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70223   *) ac_try_echo=$ac_try;;
70224 esac
70225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70226 $as_echo "$ac_try_echo") >&5
70227   (eval "$ac_link") 2>&5
70228   ac_status=$?
70229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
70231   { (case "(($ac_try" in
70232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70233   *) ac_try_echo=$ac_try;;
70234 esac
70235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70236 $as_echo "$ac_try_echo") >&5
70237   (eval "$ac_try") 2>&5
70238   ac_status=$?
70239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70240   (exit $ac_status); }; }; then
70241   ac_cv_func_setpgrp_void=no
70242 else
70243   $as_echo "$as_me: program exited with status $ac_status" >&5
70244 $as_echo "$as_me: failed program was:" >&5
70245 sed 's/^/| /' conftest.$ac_ext >&5
70246
70247 ( exit $ac_status )
70248 ac_cv_func_setpgrp_void=yes
70249 fi
70250 rm -rf conftest.dSYM
70251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
70252 fi
70253
70254
70255 fi
70256 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
70257 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
70258 if test $ac_cv_func_setpgrp_void = yes; then
70259
70260 cat >>confdefs.h <<\_ACEOF
70261 #define SETPGRP_VOID 1
70262 _ACEOF
70263
70264 fi
70265
70266 fi
70267
70268
70269 ice_have_setpgrp=no
70270
70271 for ac_func in setpgrp
70272 do
70273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70274 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70275 $as_echo_n "checking for $ac_func... " >&6; }
70276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70277   $as_echo_n "(cached) " >&6
70278 else
70279   cat >conftest.$ac_ext <<_ACEOF
70280 /* confdefs.h.  */
70281 _ACEOF
70282 cat confdefs.h >>conftest.$ac_ext
70283 cat >>conftest.$ac_ext <<_ACEOF
70284 /* end confdefs.h.  */
70285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70287 #define $ac_func innocuous_$ac_func
70288
70289 /* System header to define __stub macros and hopefully few prototypes,
70290     which can conflict with char $ac_func (); below.
70291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70292     <limits.h> exists even on freestanding compilers.  */
70293
70294 #ifdef __STDC__
70295 # include <limits.h>
70296 #else
70297 # include <assert.h>
70298 #endif
70299
70300 #undef $ac_func
70301
70302 /* Override any GCC internal prototype to avoid an error.
70303    Use char because int might match the return type of a GCC
70304    builtin and then its argument prototype would still apply.  */
70305 #ifdef __cplusplus
70306 extern "C"
70307 #endif
70308 char $ac_func ();
70309 /* The GNU C library defines this for functions which it implements
70310     to always fail with ENOSYS.  Some functions are actually named
70311     something starting with __ and the normal name is an alias.  */
70312 #if defined __stub_$ac_func || defined __stub___$ac_func
70313 choke me
70314 #endif
70315
70316 int
70317 main ()
70318 {
70319 return $ac_func ();
70320   ;
70321   return 0;
70322 }
70323 _ACEOF
70324 rm -f conftest.$ac_objext conftest$ac_exeext
70325 if { (ac_try="$ac_link"
70326 case "(($ac_try" in
70327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70328   *) ac_try_echo=$ac_try;;
70329 esac
70330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70331 $as_echo "$ac_try_echo") >&5
70332   (eval "$ac_link") 2>conftest.er1
70333   ac_status=$?
70334   grep -v '^ *+' conftest.er1 >conftest.err
70335   rm -f conftest.er1
70336   cat conftest.err >&5
70337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70338   (exit $ac_status); } && {
70339          test -z "$ac_c_werror_flag" ||
70340          test ! -s conftest.err
70341        } && test -s conftest$ac_exeext && {
70342          test "$cross_compiling" = yes ||
70343          $as_test_x conftest$ac_exeext
70344        }; then
70345   eval "$as_ac_var=yes"
70346 else
70347   $as_echo "$as_me: failed program was:" >&5
70348 sed 's/^/| /' conftest.$ac_ext >&5
70349
70350         eval "$as_ac_var=no"
70351 fi
70352
70353 rm -rf conftest.dSYM
70354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70355       conftest$ac_exeext conftest.$ac_ext
70356 fi
70357 ac_res=`eval 'as_val=${'$as_ac_var'}
70358                  $as_echo "$as_val"'`
70359                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70360 $as_echo "$ac_res" >&6; }
70361 as_val=`eval 'as_val=${'$as_ac_var'}
70362                  $as_echo "$as_val"'`
70363    if test "x$as_val" = x""yes; then
70364   cat >>confdefs.h <<_ACEOF
70365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70366 _ACEOF
70367  ice_have_setpgrp=yes
70368 fi
70369 done
70370
70371 if test "${ice_have_setpgrp}" = yes; then
70372 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
70373 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
70374 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
70375   $as_echo_n "(cached) " >&6
70376 else
70377
70378 ice_cv_have_setpgrp_decl=no
70379 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70380 ice_re_word='(^|[^a-zA-Z0-9_])'
70381 for header in sys/types.h unistd.h libc.h; do
70382 # Check for ordinary declaration
70383 cat >conftest.$ac_ext <<_ACEOF
70384 /* confdefs.h.  */
70385 _ACEOF
70386 cat confdefs.h >>conftest.$ac_ext
70387 cat >>conftest.$ac_ext <<_ACEOF
70388 /* end confdefs.h.  */
70389 #include <$header>
70390
70391 _ACEOF
70392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70393   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
70394   ice_cv_have_setpgrp_decl=yes
70395 fi
70396 rm -f conftest*
70397
70398 if test "$ice_cv_have_setpgrp_decl" = yes; then
70399         break
70400 fi
70401 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70402 cat >conftest.$ac_ext <<_ACEOF
70403 /* confdefs.h.  */
70404 _ACEOF
70405 cat confdefs.h >>conftest.$ac_ext
70406 cat >>conftest.$ac_ext <<_ACEOF
70407 /* end confdefs.h.  */
70408 #include <$header>
70409
70410 _ACEOF
70411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70412   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70413   ice_cv_have_setpgrp_decl=yes
70414 fi
70415 rm -f conftest*
70416
70417 if test "$ice_cv_have_setpgrp_decl" = yes; then
70418         break
70419 fi
70420 done
70421
70422 fi
70423
70424 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
70425 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
70426 if test "$ice_cv_have_setpgrp_decl" = yes; then
70427
70428 cat >>confdefs.h <<_ACEOF
70429 #define HAVE_SETPGRP_DECL 1
70430 _ACEOF
70431
70432 fi
70433 fi
70434
70435
70436 ice_have_setsockopt=no
70437
70438 for ac_func in setsockopt
70439 do
70440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70441 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70442 $as_echo_n "checking for $ac_func... " >&6; }
70443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70444   $as_echo_n "(cached) " >&6
70445 else
70446   cat >conftest.$ac_ext <<_ACEOF
70447 /* confdefs.h.  */
70448 _ACEOF
70449 cat confdefs.h >>conftest.$ac_ext
70450 cat >>conftest.$ac_ext <<_ACEOF
70451 /* end confdefs.h.  */
70452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70454 #define $ac_func innocuous_$ac_func
70455
70456 /* System header to define __stub macros and hopefully few prototypes,
70457     which can conflict with char $ac_func (); below.
70458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70459     <limits.h> exists even on freestanding compilers.  */
70460
70461 #ifdef __STDC__
70462 # include <limits.h>
70463 #else
70464 # include <assert.h>
70465 #endif
70466
70467 #undef $ac_func
70468
70469 /* Override any GCC internal prototype to avoid an error.
70470    Use char because int might match the return type of a GCC
70471    builtin and then its argument prototype would still apply.  */
70472 #ifdef __cplusplus
70473 extern "C"
70474 #endif
70475 char $ac_func ();
70476 /* The GNU C library defines this for functions which it implements
70477     to always fail with ENOSYS.  Some functions are actually named
70478     something starting with __ and the normal name is an alias.  */
70479 #if defined __stub_$ac_func || defined __stub___$ac_func
70480 choke me
70481 #endif
70482
70483 int
70484 main ()
70485 {
70486 return $ac_func ();
70487   ;
70488   return 0;
70489 }
70490 _ACEOF
70491 rm -f conftest.$ac_objext conftest$ac_exeext
70492 if { (ac_try="$ac_link"
70493 case "(($ac_try" in
70494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70495   *) ac_try_echo=$ac_try;;
70496 esac
70497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70498 $as_echo "$ac_try_echo") >&5
70499   (eval "$ac_link") 2>conftest.er1
70500   ac_status=$?
70501   grep -v '^ *+' conftest.er1 >conftest.err
70502   rm -f conftest.er1
70503   cat conftest.err >&5
70504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70505   (exit $ac_status); } && {
70506          test -z "$ac_c_werror_flag" ||
70507          test ! -s conftest.err
70508        } && test -s conftest$ac_exeext && {
70509          test "$cross_compiling" = yes ||
70510          $as_test_x conftest$ac_exeext
70511        }; then
70512   eval "$as_ac_var=yes"
70513 else
70514   $as_echo "$as_me: failed program was:" >&5
70515 sed 's/^/| /' conftest.$ac_ext >&5
70516
70517         eval "$as_ac_var=no"
70518 fi
70519
70520 rm -rf conftest.dSYM
70521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70522       conftest$ac_exeext conftest.$ac_ext
70523 fi
70524 ac_res=`eval 'as_val=${'$as_ac_var'}
70525                  $as_echo "$as_val"'`
70526                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70527 $as_echo "$ac_res" >&6; }
70528 as_val=`eval 'as_val=${'$as_ac_var'}
70529                  $as_echo "$as_val"'`
70530    if test "x$as_val" = x""yes; then
70531   cat >>confdefs.h <<_ACEOF
70532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70533 _ACEOF
70534  ice_have_setsockopt=yes
70535 fi
70536 done
70537
70538 if test "${ice_have_setsockopt}" = yes; then
70539 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
70540 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
70541 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
70542   $as_echo_n "(cached) " >&6
70543 else
70544
70545 ice_cv_have_setsockopt_decl=no
70546 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70547 ice_re_word='(^|[^a-zA-Z0-9_])'
70548 for header in sys/types.h sys/socket.h; do
70549 # Check for ordinary declaration
70550 cat >conftest.$ac_ext <<_ACEOF
70551 /* confdefs.h.  */
70552 _ACEOF
70553 cat confdefs.h >>conftest.$ac_ext
70554 cat >>conftest.$ac_ext <<_ACEOF
70555 /* end confdefs.h.  */
70556 #include <$header>
70557
70558 _ACEOF
70559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70560   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
70561   ice_cv_have_setsockopt_decl=yes
70562 fi
70563 rm -f conftest*
70564
70565 if test "$ice_cv_have_setsockopt_decl" = yes; then
70566         break
70567 fi
70568 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70569 cat >conftest.$ac_ext <<_ACEOF
70570 /* confdefs.h.  */
70571 _ACEOF
70572 cat confdefs.h >>conftest.$ac_ext
70573 cat >>conftest.$ac_ext <<_ACEOF
70574 /* end confdefs.h.  */
70575 #include <$header>
70576
70577 _ACEOF
70578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70579   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70580   ice_cv_have_setsockopt_decl=yes
70581 fi
70582 rm -f conftest*
70583
70584 if test "$ice_cv_have_setsockopt_decl" = yes; then
70585         break
70586 fi
70587 done
70588
70589 fi
70590
70591 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
70592 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
70593 if test "$ice_cv_have_setsockopt_decl" = yes; then
70594
70595 cat >>confdefs.h <<_ACEOF
70596 #define HAVE_SETSOCKOPT_DECL 1
70597 _ACEOF
70598
70599 fi
70600 fi
70601
70602
70603
70604
70605 for ac_func in sigaction sigemptyset sigvec
70606 do
70607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70608 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70609 $as_echo_n "checking for $ac_func... " >&6; }
70610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70611   $as_echo_n "(cached) " >&6
70612 else
70613   cat >conftest.$ac_ext <<_ACEOF
70614 /* confdefs.h.  */
70615 _ACEOF
70616 cat confdefs.h >>conftest.$ac_ext
70617 cat >>conftest.$ac_ext <<_ACEOF
70618 /* end confdefs.h.  */
70619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70621 #define $ac_func innocuous_$ac_func
70622
70623 /* System header to define __stub macros and hopefully few prototypes,
70624     which can conflict with char $ac_func (); below.
70625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70626     <limits.h> exists even on freestanding compilers.  */
70627
70628 #ifdef __STDC__
70629 # include <limits.h>
70630 #else
70631 # include <assert.h>
70632 #endif
70633
70634 #undef $ac_func
70635
70636 /* Override any GCC internal prototype to avoid an error.
70637    Use char because int might match the return type of a GCC
70638    builtin and then its argument prototype would still apply.  */
70639 #ifdef __cplusplus
70640 extern "C"
70641 #endif
70642 char $ac_func ();
70643 /* The GNU C library defines this for functions which it implements
70644     to always fail with ENOSYS.  Some functions are actually named
70645     something starting with __ and the normal name is an alias.  */
70646 #if defined __stub_$ac_func || defined __stub___$ac_func
70647 choke me
70648 #endif
70649
70650 int
70651 main ()
70652 {
70653 return $ac_func ();
70654   ;
70655   return 0;
70656 }
70657 _ACEOF
70658 rm -f conftest.$ac_objext conftest$ac_exeext
70659 if { (ac_try="$ac_link"
70660 case "(($ac_try" in
70661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70662   *) ac_try_echo=$ac_try;;
70663 esac
70664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70665 $as_echo "$ac_try_echo") >&5
70666   (eval "$ac_link") 2>conftest.er1
70667   ac_status=$?
70668   grep -v '^ *+' conftest.er1 >conftest.err
70669   rm -f conftest.er1
70670   cat conftest.err >&5
70671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70672   (exit $ac_status); } && {
70673          test -z "$ac_c_werror_flag" ||
70674          test ! -s conftest.err
70675        } && test -s conftest$ac_exeext && {
70676          test "$cross_compiling" = yes ||
70677          $as_test_x conftest$ac_exeext
70678        }; then
70679   eval "$as_ac_var=yes"
70680 else
70681   $as_echo "$as_me: failed program was:" >&5
70682 sed 's/^/| /' conftest.$ac_ext >&5
70683
70684         eval "$as_ac_var=no"
70685 fi
70686
70687 rm -rf conftest.dSYM
70688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70689       conftest$ac_exeext conftest.$ac_ext
70690 fi
70691 ac_res=`eval 'as_val=${'$as_ac_var'}
70692                  $as_echo "$as_val"'`
70693                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70694 $as_echo "$ac_res" >&6; }
70695 as_val=`eval 'as_val=${'$as_ac_var'}
70696                  $as_echo "$as_val"'`
70697    if test "x$as_val" = x""yes; then
70698   cat >>confdefs.h <<_ACEOF
70699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70700 _ACEOF
70701
70702 fi
70703 done
70704
70705
70706 ice_have_socket=no
70707
70708 for ac_func in socket
70709 do
70710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70712 $as_echo_n "checking for $ac_func... " >&6; }
70713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70714   $as_echo_n "(cached) " >&6
70715 else
70716   cat >conftest.$ac_ext <<_ACEOF
70717 /* confdefs.h.  */
70718 _ACEOF
70719 cat confdefs.h >>conftest.$ac_ext
70720 cat >>conftest.$ac_ext <<_ACEOF
70721 /* end confdefs.h.  */
70722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70724 #define $ac_func innocuous_$ac_func
70725
70726 /* System header to define __stub macros and hopefully few prototypes,
70727     which can conflict with char $ac_func (); below.
70728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70729     <limits.h> exists even on freestanding compilers.  */
70730
70731 #ifdef __STDC__
70732 # include <limits.h>
70733 #else
70734 # include <assert.h>
70735 #endif
70736
70737 #undef $ac_func
70738
70739 /* Override any GCC internal prototype to avoid an error.
70740    Use char because int might match the return type of a GCC
70741    builtin and then its argument prototype would still apply.  */
70742 #ifdef __cplusplus
70743 extern "C"
70744 #endif
70745 char $ac_func ();
70746 /* The GNU C library defines this for functions which it implements
70747     to always fail with ENOSYS.  Some functions are actually named
70748     something starting with __ and the normal name is an alias.  */
70749 #if defined __stub_$ac_func || defined __stub___$ac_func
70750 choke me
70751 #endif
70752
70753 int
70754 main ()
70755 {
70756 return $ac_func ();
70757   ;
70758   return 0;
70759 }
70760 _ACEOF
70761 rm -f conftest.$ac_objext conftest$ac_exeext
70762 if { (ac_try="$ac_link"
70763 case "(($ac_try" in
70764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70765   *) ac_try_echo=$ac_try;;
70766 esac
70767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70768 $as_echo "$ac_try_echo") >&5
70769   (eval "$ac_link") 2>conftest.er1
70770   ac_status=$?
70771   grep -v '^ *+' conftest.er1 >conftest.err
70772   rm -f conftest.er1
70773   cat conftest.err >&5
70774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70775   (exit $ac_status); } && {
70776          test -z "$ac_c_werror_flag" ||
70777          test ! -s conftest.err
70778        } && test -s conftest$ac_exeext && {
70779          test "$cross_compiling" = yes ||
70780          $as_test_x conftest$ac_exeext
70781        }; then
70782   eval "$as_ac_var=yes"
70783 else
70784   $as_echo "$as_me: failed program was:" >&5
70785 sed 's/^/| /' conftest.$ac_ext >&5
70786
70787         eval "$as_ac_var=no"
70788 fi
70789
70790 rm -rf conftest.dSYM
70791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70792       conftest$ac_exeext conftest.$ac_ext
70793 fi
70794 ac_res=`eval 'as_val=${'$as_ac_var'}
70795                  $as_echo "$as_val"'`
70796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70797 $as_echo "$ac_res" >&6; }
70798 as_val=`eval 'as_val=${'$as_ac_var'}
70799                  $as_echo "$as_val"'`
70800    if test "x$as_val" = x""yes; then
70801   cat >>confdefs.h <<_ACEOF
70802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70803 _ACEOF
70804  ice_have_socket=yes
70805 fi
70806 done
70807
70808 if test "${ice_have_socket}" = yes; then
70809 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
70810 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
70811 if test "${ice_cv_have_socket_decl+set}" = set; then
70812   $as_echo_n "(cached) " >&6
70813 else
70814
70815 ice_cv_have_socket_decl=no
70816 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70817 ice_re_word='(^|[^a-zA-Z0-9_])'
70818 for header in sys/types.h sys/socket.h; do
70819 # Check for ordinary declaration
70820 cat >conftest.$ac_ext <<_ACEOF
70821 /* confdefs.h.  */
70822 _ACEOF
70823 cat confdefs.h >>conftest.$ac_ext
70824 cat >>conftest.$ac_ext <<_ACEOF
70825 /* end confdefs.h.  */
70826 #include <$header>
70827
70828 _ACEOF
70829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70830   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
70831   ice_cv_have_socket_decl=yes
70832 fi
70833 rm -f conftest*
70834
70835 if test "$ice_cv_have_socket_decl" = yes; then
70836         break
70837 fi
70838 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70839 cat >conftest.$ac_ext <<_ACEOF
70840 /* confdefs.h.  */
70841 _ACEOF
70842 cat confdefs.h >>conftest.$ac_ext
70843 cat >>conftest.$ac_ext <<_ACEOF
70844 /* end confdefs.h.  */
70845 #include <$header>
70846
70847 _ACEOF
70848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70849   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70850   ice_cv_have_socket_decl=yes
70851 fi
70852 rm -f conftest*
70853
70854 if test "$ice_cv_have_socket_decl" = yes; then
70855         break
70856 fi
70857 done
70858
70859 fi
70860
70861 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
70862 $as_echo "$ice_cv_have_socket_decl" >&6; }
70863 if test "$ice_cv_have_socket_decl" = yes; then
70864
70865 cat >>confdefs.h <<_ACEOF
70866 #define HAVE_SOCKET_DECL 1
70867 _ACEOF
70868
70869 fi
70870 fi
70871
70872
70873 ice_have_socketpair=no
70874
70875 for ac_func in socketpair
70876 do
70877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70878 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70879 $as_echo_n "checking for $ac_func... " >&6; }
70880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70881   $as_echo_n "(cached) " >&6
70882 else
70883   cat >conftest.$ac_ext <<_ACEOF
70884 /* confdefs.h.  */
70885 _ACEOF
70886 cat confdefs.h >>conftest.$ac_ext
70887 cat >>conftest.$ac_ext <<_ACEOF
70888 /* end confdefs.h.  */
70889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70891 #define $ac_func innocuous_$ac_func
70892
70893 /* System header to define __stub macros and hopefully few prototypes,
70894     which can conflict with char $ac_func (); below.
70895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70896     <limits.h> exists even on freestanding compilers.  */
70897
70898 #ifdef __STDC__
70899 # include <limits.h>
70900 #else
70901 # include <assert.h>
70902 #endif
70903
70904 #undef $ac_func
70905
70906 /* Override any GCC internal prototype to avoid an error.
70907    Use char because int might match the return type of a GCC
70908    builtin and then its argument prototype would still apply.  */
70909 #ifdef __cplusplus
70910 extern "C"
70911 #endif
70912 char $ac_func ();
70913 /* The GNU C library defines this for functions which it implements
70914     to always fail with ENOSYS.  Some functions are actually named
70915     something starting with __ and the normal name is an alias.  */
70916 #if defined __stub_$ac_func || defined __stub___$ac_func
70917 choke me
70918 #endif
70919
70920 int
70921 main ()
70922 {
70923 return $ac_func ();
70924   ;
70925   return 0;
70926 }
70927 _ACEOF
70928 rm -f conftest.$ac_objext conftest$ac_exeext
70929 if { (ac_try="$ac_link"
70930 case "(($ac_try" in
70931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70932   *) ac_try_echo=$ac_try;;
70933 esac
70934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70935 $as_echo "$ac_try_echo") >&5
70936   (eval "$ac_link") 2>conftest.er1
70937   ac_status=$?
70938   grep -v '^ *+' conftest.er1 >conftest.err
70939   rm -f conftest.er1
70940   cat conftest.err >&5
70941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70942   (exit $ac_status); } && {
70943          test -z "$ac_c_werror_flag" ||
70944          test ! -s conftest.err
70945        } && test -s conftest$ac_exeext && {
70946          test "$cross_compiling" = yes ||
70947          $as_test_x conftest$ac_exeext
70948        }; then
70949   eval "$as_ac_var=yes"
70950 else
70951   $as_echo "$as_me: failed program was:" >&5
70952 sed 's/^/| /' conftest.$ac_ext >&5
70953
70954         eval "$as_ac_var=no"
70955 fi
70956
70957 rm -rf conftest.dSYM
70958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70959       conftest$ac_exeext conftest.$ac_ext
70960 fi
70961 ac_res=`eval 'as_val=${'$as_ac_var'}
70962                  $as_echo "$as_val"'`
70963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70964 $as_echo "$ac_res" >&6; }
70965 as_val=`eval 'as_val=${'$as_ac_var'}
70966                  $as_echo "$as_val"'`
70967    if test "x$as_val" = x""yes; then
70968   cat >>confdefs.h <<_ACEOF
70969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70970 _ACEOF
70971  ice_have_socketpair=yes
70972 fi
70973 done
70974
70975 if test "${ice_have_socketpair}" = yes; then
70976 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
70977 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
70978 if test "${ice_cv_have_socketpair_decl+set}" = set; then
70979   $as_echo_n "(cached) " >&6
70980 else
70981
70982 ice_cv_have_socketpair_decl=no
70983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70984 ice_re_word='(^|[^a-zA-Z0-9_])'
70985 for header in sys/types.h sys/socket.h; do
70986 # Check for ordinary declaration
70987 cat >conftest.$ac_ext <<_ACEOF
70988 /* confdefs.h.  */
70989 _ACEOF
70990 cat confdefs.h >>conftest.$ac_ext
70991 cat >>conftest.$ac_ext <<_ACEOF
70992 /* end confdefs.h.  */
70993 #include <$header>
70994
70995 _ACEOF
70996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70997   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
70998   ice_cv_have_socketpair_decl=yes
70999 fi
71000 rm -f conftest*
71001
71002 if test "$ice_cv_have_socketpair_decl" = yes; then
71003         break
71004 fi
71005 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71006 cat >conftest.$ac_ext <<_ACEOF
71007 /* confdefs.h.  */
71008 _ACEOF
71009 cat confdefs.h >>conftest.$ac_ext
71010 cat >>conftest.$ac_ext <<_ACEOF
71011 /* end confdefs.h.  */
71012 #include <$header>
71013
71014 _ACEOF
71015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71016   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71017   ice_cv_have_socketpair_decl=yes
71018 fi
71019 rm -f conftest*
71020
71021 if test "$ice_cv_have_socketpair_decl" = yes; then
71022         break
71023 fi
71024 done
71025
71026 fi
71027
71028 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
71029 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
71030 if test "$ice_cv_have_socketpair_decl" = yes; then
71031
71032 cat >>confdefs.h <<_ACEOF
71033 #define HAVE_SOCKETPAIR_DECL 1
71034 _ACEOF
71035
71036 fi
71037 fi
71038
71039
71040 ice_have_sscanf=no
71041
71042 for ac_func in sscanf
71043 do
71044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71045 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71046 $as_echo_n "checking for $ac_func... " >&6; }
71047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71048   $as_echo_n "(cached) " >&6
71049 else
71050   cat >conftest.$ac_ext <<_ACEOF
71051 /* confdefs.h.  */
71052 _ACEOF
71053 cat confdefs.h >>conftest.$ac_ext
71054 cat >>conftest.$ac_ext <<_ACEOF
71055 /* end confdefs.h.  */
71056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71058 #define $ac_func innocuous_$ac_func
71059
71060 /* System header to define __stub macros and hopefully few prototypes,
71061     which can conflict with char $ac_func (); below.
71062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71063     <limits.h> exists even on freestanding compilers.  */
71064
71065 #ifdef __STDC__
71066 # include <limits.h>
71067 #else
71068 # include <assert.h>
71069 #endif
71070
71071 #undef $ac_func
71072
71073 /* Override any GCC internal prototype to avoid an error.
71074    Use char because int might match the return type of a GCC
71075    builtin and then its argument prototype would still apply.  */
71076 #ifdef __cplusplus
71077 extern "C"
71078 #endif
71079 char $ac_func ();
71080 /* The GNU C library defines this for functions which it implements
71081     to always fail with ENOSYS.  Some functions are actually named
71082     something starting with __ and the normal name is an alias.  */
71083 #if defined __stub_$ac_func || defined __stub___$ac_func
71084 choke me
71085 #endif
71086
71087 int
71088 main ()
71089 {
71090 return $ac_func ();
71091   ;
71092   return 0;
71093 }
71094 _ACEOF
71095 rm -f conftest.$ac_objext conftest$ac_exeext
71096 if { (ac_try="$ac_link"
71097 case "(($ac_try" in
71098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71099   *) ac_try_echo=$ac_try;;
71100 esac
71101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71102 $as_echo "$ac_try_echo") >&5
71103   (eval "$ac_link") 2>conftest.er1
71104   ac_status=$?
71105   grep -v '^ *+' conftest.er1 >conftest.err
71106   rm -f conftest.er1
71107   cat conftest.err >&5
71108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71109   (exit $ac_status); } && {
71110          test -z "$ac_c_werror_flag" ||
71111          test ! -s conftest.err
71112        } && test -s conftest$ac_exeext && {
71113          test "$cross_compiling" = yes ||
71114          $as_test_x conftest$ac_exeext
71115        }; then
71116   eval "$as_ac_var=yes"
71117 else
71118   $as_echo "$as_me: failed program was:" >&5
71119 sed 's/^/| /' conftest.$ac_ext >&5
71120
71121         eval "$as_ac_var=no"
71122 fi
71123
71124 rm -rf conftest.dSYM
71125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71126       conftest$ac_exeext conftest.$ac_ext
71127 fi
71128 ac_res=`eval 'as_val=${'$as_ac_var'}
71129                  $as_echo "$as_val"'`
71130                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71131 $as_echo "$ac_res" >&6; }
71132 as_val=`eval 'as_val=${'$as_ac_var'}
71133                  $as_echo "$as_val"'`
71134    if test "x$as_val" = x""yes; then
71135   cat >>confdefs.h <<_ACEOF
71136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71137 _ACEOF
71138  ice_have_sscanf=yes
71139 fi
71140 done
71141
71142 if test "${ice_have_sscanf}" = yes; then
71143 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
71144 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
71145 if test "${ice_cv_have_sscanf_decl+set}" = set; then
71146   $as_echo_n "(cached) " >&6
71147 else
71148
71149 ice_cv_have_sscanf_decl=no
71150 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71151 ice_re_word='(^|[^a-zA-Z0-9_])'
71152 for header in stdio.h; do
71153 # Check for ordinary declaration
71154 cat >conftest.$ac_ext <<_ACEOF
71155 /* confdefs.h.  */
71156 _ACEOF
71157 cat confdefs.h >>conftest.$ac_ext
71158 cat >>conftest.$ac_ext <<_ACEOF
71159 /* end confdefs.h.  */
71160 #include <$header>
71161
71162 _ACEOF
71163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71164   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
71165   ice_cv_have_sscanf_decl=yes
71166 fi
71167 rm -f conftest*
71168
71169 if test "$ice_cv_have_sscanf_decl" = yes; then
71170         break
71171 fi
71172 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71173 cat >conftest.$ac_ext <<_ACEOF
71174 /* confdefs.h.  */
71175 _ACEOF
71176 cat confdefs.h >>conftest.$ac_ext
71177 cat >>conftest.$ac_ext <<_ACEOF
71178 /* end confdefs.h.  */
71179 #include <$header>
71180
71181 _ACEOF
71182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71183   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71184   ice_cv_have_sscanf_decl=yes
71185 fi
71186 rm -f conftest*
71187
71188 if test "$ice_cv_have_sscanf_decl" = yes; then
71189         break
71190 fi
71191 done
71192
71193 fi
71194
71195 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
71196 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
71197 if test "$ice_cv_have_sscanf_decl" = yes; then
71198
71199 cat >>confdefs.h <<_ACEOF
71200 #define HAVE_SSCANF_DECL 1
71201 _ACEOF
71202
71203 fi
71204 fi
71205
71206
71207 ice_have_strerror=no
71208
71209 for ac_func in strerror
71210 do
71211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71212 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71213 $as_echo_n "checking for $ac_func... " >&6; }
71214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71215   $as_echo_n "(cached) " >&6
71216 else
71217   cat >conftest.$ac_ext <<_ACEOF
71218 /* confdefs.h.  */
71219 _ACEOF
71220 cat confdefs.h >>conftest.$ac_ext
71221 cat >>conftest.$ac_ext <<_ACEOF
71222 /* end confdefs.h.  */
71223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71225 #define $ac_func innocuous_$ac_func
71226
71227 /* System header to define __stub macros and hopefully few prototypes,
71228     which can conflict with char $ac_func (); below.
71229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71230     <limits.h> exists even on freestanding compilers.  */
71231
71232 #ifdef __STDC__
71233 # include <limits.h>
71234 #else
71235 # include <assert.h>
71236 #endif
71237
71238 #undef $ac_func
71239
71240 /* Override any GCC internal prototype to avoid an error.
71241    Use char because int might match the return type of a GCC
71242    builtin and then its argument prototype would still apply.  */
71243 #ifdef __cplusplus
71244 extern "C"
71245 #endif
71246 char $ac_func ();
71247 /* The GNU C library defines this for functions which it implements
71248     to always fail with ENOSYS.  Some functions are actually named
71249     something starting with __ and the normal name is an alias.  */
71250 #if defined __stub_$ac_func || defined __stub___$ac_func
71251 choke me
71252 #endif
71253
71254 int
71255 main ()
71256 {
71257 return $ac_func ();
71258   ;
71259   return 0;
71260 }
71261 _ACEOF
71262 rm -f conftest.$ac_objext conftest$ac_exeext
71263 if { (ac_try="$ac_link"
71264 case "(($ac_try" in
71265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71266   *) ac_try_echo=$ac_try;;
71267 esac
71268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71269 $as_echo "$ac_try_echo") >&5
71270   (eval "$ac_link") 2>conftest.er1
71271   ac_status=$?
71272   grep -v '^ *+' conftest.er1 >conftest.err
71273   rm -f conftest.er1
71274   cat conftest.err >&5
71275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71276   (exit $ac_status); } && {
71277          test -z "$ac_c_werror_flag" ||
71278          test ! -s conftest.err
71279        } && test -s conftest$ac_exeext && {
71280          test "$cross_compiling" = yes ||
71281          $as_test_x conftest$ac_exeext
71282        }; then
71283   eval "$as_ac_var=yes"
71284 else
71285   $as_echo "$as_me: failed program was:" >&5
71286 sed 's/^/| /' conftest.$ac_ext >&5
71287
71288         eval "$as_ac_var=no"
71289 fi
71290
71291 rm -rf conftest.dSYM
71292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71293       conftest$ac_exeext conftest.$ac_ext
71294 fi
71295 ac_res=`eval 'as_val=${'$as_ac_var'}
71296                  $as_echo "$as_val"'`
71297                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71298 $as_echo "$ac_res" >&6; }
71299 as_val=`eval 'as_val=${'$as_ac_var'}
71300                  $as_echo "$as_val"'`
71301    if test "x$as_val" = x""yes; then
71302   cat >>confdefs.h <<_ACEOF
71303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71304 _ACEOF
71305  ice_have_strerror=yes
71306 fi
71307 done
71308
71309 if test "${ice_have_strerror}" = yes; then
71310 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
71311 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
71312 if test "${ice_cv_have_strerror_decl+set}" = set; then
71313   $as_echo_n "(cached) " >&6
71314 else
71315
71316 ice_cv_have_strerror_decl=no
71317 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71318 ice_re_word='(^|[^a-zA-Z0-9_])'
71319 for header in string.h strings.h; do
71320 # Check for ordinary declaration
71321 cat >conftest.$ac_ext <<_ACEOF
71322 /* confdefs.h.  */
71323 _ACEOF
71324 cat confdefs.h >>conftest.$ac_ext
71325 cat >>conftest.$ac_ext <<_ACEOF
71326 /* end confdefs.h.  */
71327 #include <$header>
71328
71329 _ACEOF
71330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71331   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
71332   ice_cv_have_strerror_decl=yes
71333 fi
71334 rm -f conftest*
71335
71336 if test "$ice_cv_have_strerror_decl" = yes; then
71337         break
71338 fi
71339 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71340 cat >conftest.$ac_ext <<_ACEOF
71341 /* confdefs.h.  */
71342 _ACEOF
71343 cat confdefs.h >>conftest.$ac_ext
71344 cat >>conftest.$ac_ext <<_ACEOF
71345 /* end confdefs.h.  */
71346 #include <$header>
71347
71348 _ACEOF
71349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71350   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71351   ice_cv_have_strerror_decl=yes
71352 fi
71353 rm -f conftest*
71354
71355 if test "$ice_cv_have_strerror_decl" = yes; then
71356         break
71357 fi
71358 done
71359
71360 fi
71361
71362 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
71363 $as_echo "$ice_cv_have_strerror_decl" >&6; }
71364 if test "$ice_cv_have_strerror_decl" = yes; then
71365
71366 cat >>confdefs.h <<_ACEOF
71367 #define HAVE_STRERROR_DECL 1
71368 _ACEOF
71369
71370 fi
71371 fi
71372
71373
71374 for ac_func in strftime
71375 do
71376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71377 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71378 $as_echo_n "checking for $ac_func... " >&6; }
71379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71380   $as_echo_n "(cached) " >&6
71381 else
71382   cat >conftest.$ac_ext <<_ACEOF
71383 /* confdefs.h.  */
71384 _ACEOF
71385 cat confdefs.h >>conftest.$ac_ext
71386 cat >>conftest.$ac_ext <<_ACEOF
71387 /* end confdefs.h.  */
71388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71390 #define $ac_func innocuous_$ac_func
71391
71392 /* System header to define __stub macros and hopefully few prototypes,
71393     which can conflict with char $ac_func (); below.
71394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71395     <limits.h> exists even on freestanding compilers.  */
71396
71397 #ifdef __STDC__
71398 # include <limits.h>
71399 #else
71400 # include <assert.h>
71401 #endif
71402
71403 #undef $ac_func
71404
71405 /* Override any GCC internal prototype to avoid an error.
71406    Use char because int might match the return type of a GCC
71407    builtin and then its argument prototype would still apply.  */
71408 #ifdef __cplusplus
71409 extern "C"
71410 #endif
71411 char $ac_func ();
71412 /* The GNU C library defines this for functions which it implements
71413     to always fail with ENOSYS.  Some functions are actually named
71414     something starting with __ and the normal name is an alias.  */
71415 #if defined __stub_$ac_func || defined __stub___$ac_func
71416 choke me
71417 #endif
71418
71419 int
71420 main ()
71421 {
71422 return $ac_func ();
71423   ;
71424   return 0;
71425 }
71426 _ACEOF
71427 rm -f conftest.$ac_objext conftest$ac_exeext
71428 if { (ac_try="$ac_link"
71429 case "(($ac_try" in
71430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71431   *) ac_try_echo=$ac_try;;
71432 esac
71433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71434 $as_echo "$ac_try_echo") >&5
71435   (eval "$ac_link") 2>conftest.er1
71436   ac_status=$?
71437   grep -v '^ *+' conftest.er1 >conftest.err
71438   rm -f conftest.er1
71439   cat conftest.err >&5
71440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71441   (exit $ac_status); } && {
71442          test -z "$ac_c_werror_flag" ||
71443          test ! -s conftest.err
71444        } && test -s conftest$ac_exeext && {
71445          test "$cross_compiling" = yes ||
71446          $as_test_x conftest$ac_exeext
71447        }; then
71448   eval "$as_ac_var=yes"
71449 else
71450   $as_echo "$as_me: failed program was:" >&5
71451 sed 's/^/| /' conftest.$ac_ext >&5
71452
71453         eval "$as_ac_var=no"
71454 fi
71455
71456 rm -rf conftest.dSYM
71457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71458       conftest$ac_exeext conftest.$ac_ext
71459 fi
71460 ac_res=`eval 'as_val=${'$as_ac_var'}
71461                  $as_echo "$as_val"'`
71462                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71463 $as_echo "$ac_res" >&6; }
71464 as_val=`eval 'as_val=${'$as_ac_var'}
71465                  $as_echo "$as_val"'`
71466    if test "x$as_val" = x""yes; then
71467   cat >>confdefs.h <<_ACEOF
71468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71469 _ACEOF
71470
71471 else
71472   # strftime is in -lintl on SCO UNIX.
71473 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
71474 $as_echo_n "checking for strftime in -lintl... " >&6; }
71475 if test "${ac_cv_lib_intl_strftime+set}" = set; then
71476   $as_echo_n "(cached) " >&6
71477 else
71478   ac_check_lib_save_LIBS=$LIBS
71479 LIBS="-lintl  $LIBS"
71480 cat >conftest.$ac_ext <<_ACEOF
71481 /* confdefs.h.  */
71482 _ACEOF
71483 cat confdefs.h >>conftest.$ac_ext
71484 cat >>conftest.$ac_ext <<_ACEOF
71485 /* end confdefs.h.  */
71486
71487 /* Override any GCC internal prototype to avoid an error.
71488    Use char because int might match the return type of a GCC
71489    builtin and then its argument prototype would still apply.  */
71490 #ifdef __cplusplus
71491 extern "C"
71492 #endif
71493 char strftime ();
71494 int
71495 main ()
71496 {
71497 return strftime ();
71498   ;
71499   return 0;
71500 }
71501 _ACEOF
71502 rm -f conftest.$ac_objext conftest$ac_exeext
71503 if { (ac_try="$ac_link"
71504 case "(($ac_try" in
71505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71506   *) ac_try_echo=$ac_try;;
71507 esac
71508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71509 $as_echo "$ac_try_echo") >&5
71510   (eval "$ac_link") 2>conftest.er1
71511   ac_status=$?
71512   grep -v '^ *+' conftest.er1 >conftest.err
71513   rm -f conftest.er1
71514   cat conftest.err >&5
71515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71516   (exit $ac_status); } && {
71517          test -z "$ac_c_werror_flag" ||
71518          test ! -s conftest.err
71519        } && test -s conftest$ac_exeext && {
71520          test "$cross_compiling" = yes ||
71521          $as_test_x conftest$ac_exeext
71522        }; then
71523   ac_cv_lib_intl_strftime=yes
71524 else
71525   $as_echo "$as_me: failed program was:" >&5
71526 sed 's/^/| /' conftest.$ac_ext >&5
71527
71528         ac_cv_lib_intl_strftime=no
71529 fi
71530
71531 rm -rf conftest.dSYM
71532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71533       conftest$ac_exeext conftest.$ac_ext
71534 LIBS=$ac_check_lib_save_LIBS
71535 fi
71536 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
71537 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
71538 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
71539   cat >>confdefs.h <<\_ACEOF
71540 #define HAVE_STRFTIME 1
71541 _ACEOF
71542
71543 LIBS="-lintl $LIBS"
71544 fi
71545
71546 fi
71547 done
71548
71549
71550 ice_have_strftime=no
71551
71552 for ac_func in strftime
71553 do
71554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71556 $as_echo_n "checking for $ac_func... " >&6; }
71557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71558   $as_echo_n "(cached) " >&6
71559 else
71560   cat >conftest.$ac_ext <<_ACEOF
71561 /* confdefs.h.  */
71562 _ACEOF
71563 cat confdefs.h >>conftest.$ac_ext
71564 cat >>conftest.$ac_ext <<_ACEOF
71565 /* end confdefs.h.  */
71566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71568 #define $ac_func innocuous_$ac_func
71569
71570 /* System header to define __stub macros and hopefully few prototypes,
71571     which can conflict with char $ac_func (); below.
71572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71573     <limits.h> exists even on freestanding compilers.  */
71574
71575 #ifdef __STDC__
71576 # include <limits.h>
71577 #else
71578 # include <assert.h>
71579 #endif
71580
71581 #undef $ac_func
71582
71583 /* Override any GCC internal prototype to avoid an error.
71584    Use char because int might match the return type of a GCC
71585    builtin and then its argument prototype would still apply.  */
71586 #ifdef __cplusplus
71587 extern "C"
71588 #endif
71589 char $ac_func ();
71590 /* The GNU C library defines this for functions which it implements
71591     to always fail with ENOSYS.  Some functions are actually named
71592     something starting with __ and the normal name is an alias.  */
71593 #if defined __stub_$ac_func || defined __stub___$ac_func
71594 choke me
71595 #endif
71596
71597 int
71598 main ()
71599 {
71600 return $ac_func ();
71601   ;
71602   return 0;
71603 }
71604 _ACEOF
71605 rm -f conftest.$ac_objext conftest$ac_exeext
71606 if { (ac_try="$ac_link"
71607 case "(($ac_try" in
71608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71609   *) ac_try_echo=$ac_try;;
71610 esac
71611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71612 $as_echo "$ac_try_echo") >&5
71613   (eval "$ac_link") 2>conftest.er1
71614   ac_status=$?
71615   grep -v '^ *+' conftest.er1 >conftest.err
71616   rm -f conftest.er1
71617   cat conftest.err >&5
71618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71619   (exit $ac_status); } && {
71620          test -z "$ac_c_werror_flag" ||
71621          test ! -s conftest.err
71622        } && test -s conftest$ac_exeext && {
71623          test "$cross_compiling" = yes ||
71624          $as_test_x conftest$ac_exeext
71625        }; then
71626   eval "$as_ac_var=yes"
71627 else
71628   $as_echo "$as_me: failed program was:" >&5
71629 sed 's/^/| /' conftest.$ac_ext >&5
71630
71631         eval "$as_ac_var=no"
71632 fi
71633
71634 rm -rf conftest.dSYM
71635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71636       conftest$ac_exeext conftest.$ac_ext
71637 fi
71638 ac_res=`eval 'as_val=${'$as_ac_var'}
71639                  $as_echo "$as_val"'`
71640                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71641 $as_echo "$ac_res" >&6; }
71642 as_val=`eval 'as_val=${'$as_ac_var'}
71643                  $as_echo "$as_val"'`
71644    if test "x$as_val" = x""yes; then
71645   cat >>confdefs.h <<_ACEOF
71646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71647 _ACEOF
71648  ice_have_strftime=yes
71649 fi
71650 done
71651
71652 if test "${ice_have_strftime}" = yes; then
71653 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
71654 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
71655 if test "${ice_cv_have_strftime_decl+set}" = set; then
71656   $as_echo_n "(cached) " >&6
71657 else
71658
71659 ice_cv_have_strftime_decl=no
71660 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71661 ice_re_word='(^|[^a-zA-Z0-9_])'
71662 for header in time.h sys/time.h; do
71663 # Check for ordinary declaration
71664 cat >conftest.$ac_ext <<_ACEOF
71665 /* confdefs.h.  */
71666 _ACEOF
71667 cat confdefs.h >>conftest.$ac_ext
71668 cat >>conftest.$ac_ext <<_ACEOF
71669 /* end confdefs.h.  */
71670 #include <$header>
71671
71672 _ACEOF
71673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71674   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
71675   ice_cv_have_strftime_decl=yes
71676 fi
71677 rm -f conftest*
71678
71679 if test "$ice_cv_have_strftime_decl" = yes; then
71680         break
71681 fi
71682 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71683 cat >conftest.$ac_ext <<_ACEOF
71684 /* confdefs.h.  */
71685 _ACEOF
71686 cat confdefs.h >>conftest.$ac_ext
71687 cat >>conftest.$ac_ext <<_ACEOF
71688 /* end confdefs.h.  */
71689 #include <$header>
71690
71691 _ACEOF
71692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71693   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71694   ice_cv_have_strftime_decl=yes
71695 fi
71696 rm -f conftest*
71697
71698 if test "$ice_cv_have_strftime_decl" = yes; then
71699         break
71700 fi
71701 done
71702
71703 fi
71704
71705 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
71706 $as_echo "$ice_cv_have_strftime_decl" >&6; }
71707 if test "$ice_cv_have_strftime_decl" = yes; then
71708
71709 cat >>confdefs.h <<_ACEOF
71710 #define HAVE_STRFTIME_DECL 1
71711 _ACEOF
71712
71713 fi
71714 fi
71715
71716
71717 ice_have_strncasecmp=no
71718
71719 for ac_func in strncasecmp
71720 do
71721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71723 $as_echo_n "checking for $ac_func... " >&6; }
71724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71725   $as_echo_n "(cached) " >&6
71726 else
71727   cat >conftest.$ac_ext <<_ACEOF
71728 /* confdefs.h.  */
71729 _ACEOF
71730 cat confdefs.h >>conftest.$ac_ext
71731 cat >>conftest.$ac_ext <<_ACEOF
71732 /* end confdefs.h.  */
71733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71735 #define $ac_func innocuous_$ac_func
71736
71737 /* System header to define __stub macros and hopefully few prototypes,
71738     which can conflict with char $ac_func (); below.
71739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71740     <limits.h> exists even on freestanding compilers.  */
71741
71742 #ifdef __STDC__
71743 # include <limits.h>
71744 #else
71745 # include <assert.h>
71746 #endif
71747
71748 #undef $ac_func
71749
71750 /* Override any GCC internal prototype to avoid an error.
71751    Use char because int might match the return type of a GCC
71752    builtin and then its argument prototype would still apply.  */
71753 #ifdef __cplusplus
71754 extern "C"
71755 #endif
71756 char $ac_func ();
71757 /* The GNU C library defines this for functions which it implements
71758     to always fail with ENOSYS.  Some functions are actually named
71759     something starting with __ and the normal name is an alias.  */
71760 #if defined __stub_$ac_func || defined __stub___$ac_func
71761 choke me
71762 #endif
71763
71764 int
71765 main ()
71766 {
71767 return $ac_func ();
71768   ;
71769   return 0;
71770 }
71771 _ACEOF
71772 rm -f conftest.$ac_objext conftest$ac_exeext
71773 if { (ac_try="$ac_link"
71774 case "(($ac_try" in
71775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71776   *) ac_try_echo=$ac_try;;
71777 esac
71778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71779 $as_echo "$ac_try_echo") >&5
71780   (eval "$ac_link") 2>conftest.er1
71781   ac_status=$?
71782   grep -v '^ *+' conftest.er1 >conftest.err
71783   rm -f conftest.er1
71784   cat conftest.err >&5
71785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71786   (exit $ac_status); } && {
71787          test -z "$ac_c_werror_flag" ||
71788          test ! -s conftest.err
71789        } && test -s conftest$ac_exeext && {
71790          test "$cross_compiling" = yes ||
71791          $as_test_x conftest$ac_exeext
71792        }; then
71793   eval "$as_ac_var=yes"
71794 else
71795   $as_echo "$as_me: failed program was:" >&5
71796 sed 's/^/| /' conftest.$ac_ext >&5
71797
71798         eval "$as_ac_var=no"
71799 fi
71800
71801 rm -rf conftest.dSYM
71802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71803       conftest$ac_exeext conftest.$ac_ext
71804 fi
71805 ac_res=`eval 'as_val=${'$as_ac_var'}
71806                  $as_echo "$as_val"'`
71807                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71808 $as_echo "$ac_res" >&6; }
71809 as_val=`eval 'as_val=${'$as_ac_var'}
71810                  $as_echo "$as_val"'`
71811    if test "x$as_val" = x""yes; then
71812   cat >>confdefs.h <<_ACEOF
71813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71814 _ACEOF
71815  ice_have_strncasecmp=yes
71816 fi
71817 done
71818
71819 if test "${ice_have_strncasecmp}" = yes; then
71820 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
71821 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
71822 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
71823   $as_echo_n "(cached) " >&6
71824 else
71825
71826 ice_cv_have_strncasecmp_decl=no
71827 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71828 ice_re_word='(^|[^a-zA-Z0-9_])'
71829 for header in string.h strings.h; do
71830 # Check for ordinary declaration
71831 cat >conftest.$ac_ext <<_ACEOF
71832 /* confdefs.h.  */
71833 _ACEOF
71834 cat confdefs.h >>conftest.$ac_ext
71835 cat >>conftest.$ac_ext <<_ACEOF
71836 /* end confdefs.h.  */
71837 #include <$header>
71838
71839 _ACEOF
71840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71841   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
71842   ice_cv_have_strncasecmp_decl=yes
71843 fi
71844 rm -f conftest*
71845
71846 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71847         break
71848 fi
71849 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71850 cat >conftest.$ac_ext <<_ACEOF
71851 /* confdefs.h.  */
71852 _ACEOF
71853 cat confdefs.h >>conftest.$ac_ext
71854 cat >>conftest.$ac_ext <<_ACEOF
71855 /* end confdefs.h.  */
71856 #include <$header>
71857
71858 _ACEOF
71859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71860   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71861   ice_cv_have_strncasecmp_decl=yes
71862 fi
71863 rm -f conftest*
71864
71865 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71866         break
71867 fi
71868 done
71869
71870 fi
71871
71872 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
71873 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
71874 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71875
71876 cat >>confdefs.h <<_ACEOF
71877 #define HAVE_STRNCASECMP_DECL 1
71878 _ACEOF
71879
71880 fi
71881 fi
71882
71883
71884 ice_have_syslog=no
71885
71886 for ac_func in syslog
71887 do
71888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71890 $as_echo_n "checking for $ac_func... " >&6; }
71891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71892   $as_echo_n "(cached) " >&6
71893 else
71894   cat >conftest.$ac_ext <<_ACEOF
71895 /* confdefs.h.  */
71896 _ACEOF
71897 cat confdefs.h >>conftest.$ac_ext
71898 cat >>conftest.$ac_ext <<_ACEOF
71899 /* end confdefs.h.  */
71900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71902 #define $ac_func innocuous_$ac_func
71903
71904 /* System header to define __stub macros and hopefully few prototypes,
71905     which can conflict with char $ac_func (); below.
71906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71907     <limits.h> exists even on freestanding compilers.  */
71908
71909 #ifdef __STDC__
71910 # include <limits.h>
71911 #else
71912 # include <assert.h>
71913 #endif
71914
71915 #undef $ac_func
71916
71917 /* Override any GCC internal prototype to avoid an error.
71918    Use char because int might match the return type of a GCC
71919    builtin and then its argument prototype would still apply.  */
71920 #ifdef __cplusplus
71921 extern "C"
71922 #endif
71923 char $ac_func ();
71924 /* The GNU C library defines this for functions which it implements
71925     to always fail with ENOSYS.  Some functions are actually named
71926     something starting with __ and the normal name is an alias.  */
71927 #if defined __stub_$ac_func || defined __stub___$ac_func
71928 choke me
71929 #endif
71930
71931 int
71932 main ()
71933 {
71934 return $ac_func ();
71935   ;
71936   return 0;
71937 }
71938 _ACEOF
71939 rm -f conftest.$ac_objext conftest$ac_exeext
71940 if { (ac_try="$ac_link"
71941 case "(($ac_try" in
71942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71943   *) ac_try_echo=$ac_try;;
71944 esac
71945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71946 $as_echo "$ac_try_echo") >&5
71947   (eval "$ac_link") 2>conftest.er1
71948   ac_status=$?
71949   grep -v '^ *+' conftest.er1 >conftest.err
71950   rm -f conftest.er1
71951   cat conftest.err >&5
71952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71953   (exit $ac_status); } && {
71954          test -z "$ac_c_werror_flag" ||
71955          test ! -s conftest.err
71956        } && test -s conftest$ac_exeext && {
71957          test "$cross_compiling" = yes ||
71958          $as_test_x conftest$ac_exeext
71959        }; then
71960   eval "$as_ac_var=yes"
71961 else
71962   $as_echo "$as_me: failed program was:" >&5
71963 sed 's/^/| /' conftest.$ac_ext >&5
71964
71965         eval "$as_ac_var=no"
71966 fi
71967
71968 rm -rf conftest.dSYM
71969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71970       conftest$ac_exeext conftest.$ac_ext
71971 fi
71972 ac_res=`eval 'as_val=${'$as_ac_var'}
71973                  $as_echo "$as_val"'`
71974                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71975 $as_echo "$ac_res" >&6; }
71976 as_val=`eval 'as_val=${'$as_ac_var'}
71977                  $as_echo "$as_val"'`
71978    if test "x$as_val" = x""yes; then
71979   cat >>confdefs.h <<_ACEOF
71980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71981 _ACEOF
71982  ice_have_syslog=yes
71983 fi
71984 done
71985
71986 if test "${ice_have_syslog}" = yes; then
71987 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
71988 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
71989 if test "${ice_cv_have_syslog_decl+set}" = set; then
71990   $as_echo_n "(cached) " >&6
71991 else
71992
71993 ice_cv_have_syslog_decl=no
71994 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71995 ice_re_word='(^|[^a-zA-Z0-9_])'
71996 for header in syslog.h; do
71997 # Check for ordinary declaration
71998 cat >conftest.$ac_ext <<_ACEOF
71999 /* confdefs.h.  */
72000 _ACEOF
72001 cat confdefs.h >>conftest.$ac_ext
72002 cat >>conftest.$ac_ext <<_ACEOF
72003 /* end confdefs.h.  */
72004 #include <$header>
72005
72006 _ACEOF
72007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72008   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
72009   ice_cv_have_syslog_decl=yes
72010 fi
72011 rm -f conftest*
72012
72013 if test "$ice_cv_have_syslog_decl" = yes; then
72014         break
72015 fi
72016 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72017 cat >conftest.$ac_ext <<_ACEOF
72018 /* confdefs.h.  */
72019 _ACEOF
72020 cat confdefs.h >>conftest.$ac_ext
72021 cat >>conftest.$ac_ext <<_ACEOF
72022 /* end confdefs.h.  */
72023 #include <$header>
72024
72025 _ACEOF
72026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72027   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72028   ice_cv_have_syslog_decl=yes
72029 fi
72030 rm -f conftest*
72031
72032 if test "$ice_cv_have_syslog_decl" = yes; then
72033         break
72034 fi
72035 done
72036
72037 fi
72038
72039 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
72040 $as_echo "$ice_cv_have_syslog_decl" >&6; }
72041 if test "$ice_cv_have_syslog_decl" = yes; then
72042
72043 cat >>confdefs.h <<_ACEOF
72044 #define HAVE_SYSLOG_DECL 1
72045 _ACEOF
72046
72047 fi
72048 fi
72049
72050
72051 ice_have_system=no
72052
72053 for ac_func in system
72054 do
72055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72056 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72057 $as_echo_n "checking for $ac_func... " >&6; }
72058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72059   $as_echo_n "(cached) " >&6
72060 else
72061   cat >conftest.$ac_ext <<_ACEOF
72062 /* confdefs.h.  */
72063 _ACEOF
72064 cat confdefs.h >>conftest.$ac_ext
72065 cat >>conftest.$ac_ext <<_ACEOF
72066 /* end confdefs.h.  */
72067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72069 #define $ac_func innocuous_$ac_func
72070
72071 /* System header to define __stub macros and hopefully few prototypes,
72072     which can conflict with char $ac_func (); below.
72073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72074     <limits.h> exists even on freestanding compilers.  */
72075
72076 #ifdef __STDC__
72077 # include <limits.h>
72078 #else
72079 # include <assert.h>
72080 #endif
72081
72082 #undef $ac_func
72083
72084 /* Override any GCC internal prototype to avoid an error.
72085    Use char because int might match the return type of a GCC
72086    builtin and then its argument prototype would still apply.  */
72087 #ifdef __cplusplus
72088 extern "C"
72089 #endif
72090 char $ac_func ();
72091 /* The GNU C library defines this for functions which it implements
72092     to always fail with ENOSYS.  Some functions are actually named
72093     something starting with __ and the normal name is an alias.  */
72094 #if defined __stub_$ac_func || defined __stub___$ac_func
72095 choke me
72096 #endif
72097
72098 int
72099 main ()
72100 {
72101 return $ac_func ();
72102   ;
72103   return 0;
72104 }
72105 _ACEOF
72106 rm -f conftest.$ac_objext conftest$ac_exeext
72107 if { (ac_try="$ac_link"
72108 case "(($ac_try" in
72109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72110   *) ac_try_echo=$ac_try;;
72111 esac
72112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72113 $as_echo "$ac_try_echo") >&5
72114   (eval "$ac_link") 2>conftest.er1
72115   ac_status=$?
72116   grep -v '^ *+' conftest.er1 >conftest.err
72117   rm -f conftest.er1
72118   cat conftest.err >&5
72119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72120   (exit $ac_status); } && {
72121          test -z "$ac_c_werror_flag" ||
72122          test ! -s conftest.err
72123        } && test -s conftest$ac_exeext && {
72124          test "$cross_compiling" = yes ||
72125          $as_test_x conftest$ac_exeext
72126        }; then
72127   eval "$as_ac_var=yes"
72128 else
72129   $as_echo "$as_me: failed program was:" >&5
72130 sed 's/^/| /' conftest.$ac_ext >&5
72131
72132         eval "$as_ac_var=no"
72133 fi
72134
72135 rm -rf conftest.dSYM
72136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72137       conftest$ac_exeext conftest.$ac_ext
72138 fi
72139 ac_res=`eval 'as_val=${'$as_ac_var'}
72140                  $as_echo "$as_val"'`
72141                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72142 $as_echo "$ac_res" >&6; }
72143 as_val=`eval 'as_val=${'$as_ac_var'}
72144                  $as_echo "$as_val"'`
72145    if test "x$as_val" = x""yes; then
72146   cat >>confdefs.h <<_ACEOF
72147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72148 _ACEOF
72149  ice_have_system=yes
72150 fi
72151 done
72152
72153 if test "${ice_have_system}" = yes; then
72154 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
72155 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
72156 if test "${ice_cv_have_system_decl+set}" = set; then
72157   $as_echo_n "(cached) " >&6
72158 else
72159
72160 ice_cv_have_system_decl=no
72161 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72162 ice_re_word='(^|[^a-zA-Z0-9_])'
72163 for header in stdlib.h; do
72164 # Check for ordinary declaration
72165 cat >conftest.$ac_ext <<_ACEOF
72166 /* confdefs.h.  */
72167 _ACEOF
72168 cat confdefs.h >>conftest.$ac_ext
72169 cat >>conftest.$ac_ext <<_ACEOF
72170 /* end confdefs.h.  */
72171 #include <$header>
72172
72173 _ACEOF
72174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72175   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
72176   ice_cv_have_system_decl=yes
72177 fi
72178 rm -f conftest*
72179
72180 if test "$ice_cv_have_system_decl" = yes; then
72181         break
72182 fi
72183 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72184 cat >conftest.$ac_ext <<_ACEOF
72185 /* confdefs.h.  */
72186 _ACEOF
72187 cat confdefs.h >>conftest.$ac_ext
72188 cat >>conftest.$ac_ext <<_ACEOF
72189 /* end confdefs.h.  */
72190 #include <$header>
72191
72192 _ACEOF
72193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72194   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72195   ice_cv_have_system_decl=yes
72196 fi
72197 rm -f conftest*
72198
72199 if test "$ice_cv_have_system_decl" = yes; then
72200         break
72201 fi
72202 done
72203
72204 fi
72205
72206 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
72207 $as_echo "$ice_cv_have_system_decl" >&6; }
72208 if test "$ice_cv_have_system_decl" = yes; then
72209
72210 cat >>confdefs.h <<_ACEOF
72211 #define HAVE_SYSTEM_DECL 1
72212 _ACEOF
72213
72214 fi
72215 fi
72216
72217
72218 ice_have_time=no
72219
72220 for ac_func in time
72221 do
72222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72223 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72224 $as_echo_n "checking for $ac_func... " >&6; }
72225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72226   $as_echo_n "(cached) " >&6
72227 else
72228   cat >conftest.$ac_ext <<_ACEOF
72229 /* confdefs.h.  */
72230 _ACEOF
72231 cat confdefs.h >>conftest.$ac_ext
72232 cat >>conftest.$ac_ext <<_ACEOF
72233 /* end confdefs.h.  */
72234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72236 #define $ac_func innocuous_$ac_func
72237
72238 /* System header to define __stub macros and hopefully few prototypes,
72239     which can conflict with char $ac_func (); below.
72240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72241     <limits.h> exists even on freestanding compilers.  */
72242
72243 #ifdef __STDC__
72244 # include <limits.h>
72245 #else
72246 # include <assert.h>
72247 #endif
72248
72249 #undef $ac_func
72250
72251 /* Override any GCC internal prototype to avoid an error.
72252    Use char because int might match the return type of a GCC
72253    builtin and then its argument prototype would still apply.  */
72254 #ifdef __cplusplus
72255 extern "C"
72256 #endif
72257 char $ac_func ();
72258 /* The GNU C library defines this for functions which it implements
72259     to always fail with ENOSYS.  Some functions are actually named
72260     something starting with __ and the normal name is an alias.  */
72261 #if defined __stub_$ac_func || defined __stub___$ac_func
72262 choke me
72263 #endif
72264
72265 int
72266 main ()
72267 {
72268 return $ac_func ();
72269   ;
72270   return 0;
72271 }
72272 _ACEOF
72273 rm -f conftest.$ac_objext conftest$ac_exeext
72274 if { (ac_try="$ac_link"
72275 case "(($ac_try" in
72276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72277   *) ac_try_echo=$ac_try;;
72278 esac
72279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72280 $as_echo "$ac_try_echo") >&5
72281   (eval "$ac_link") 2>conftest.er1
72282   ac_status=$?
72283   grep -v '^ *+' conftest.er1 >conftest.err
72284   rm -f conftest.er1
72285   cat conftest.err >&5
72286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72287   (exit $ac_status); } && {
72288          test -z "$ac_c_werror_flag" ||
72289          test ! -s conftest.err
72290        } && test -s conftest$ac_exeext && {
72291          test "$cross_compiling" = yes ||
72292          $as_test_x conftest$ac_exeext
72293        }; then
72294   eval "$as_ac_var=yes"
72295 else
72296   $as_echo "$as_me: failed program was:" >&5
72297 sed 's/^/| /' conftest.$ac_ext >&5
72298
72299         eval "$as_ac_var=no"
72300 fi
72301
72302 rm -rf conftest.dSYM
72303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72304       conftest$ac_exeext conftest.$ac_ext
72305 fi
72306 ac_res=`eval 'as_val=${'$as_ac_var'}
72307                  $as_echo "$as_val"'`
72308                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72309 $as_echo "$ac_res" >&6; }
72310 as_val=`eval 'as_val=${'$as_ac_var'}
72311                  $as_echo "$as_val"'`
72312    if test "x$as_val" = x""yes; then
72313   cat >>confdefs.h <<_ACEOF
72314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72315 _ACEOF
72316  ice_have_time=yes
72317 fi
72318 done
72319
72320 if test "${ice_have_time}" = yes; then
72321 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
72322 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
72323 if test "${ice_cv_have_time_decl+set}" = set; then
72324   $as_echo_n "(cached) " >&6
72325 else
72326
72327 ice_cv_have_time_decl=no
72328 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72329 ice_re_word='(^|[^a-zA-Z0-9_])'
72330 for header in time.h sys/time.h; do
72331 # Check for ordinary declaration
72332 cat >conftest.$ac_ext <<_ACEOF
72333 /* confdefs.h.  */
72334 _ACEOF
72335 cat confdefs.h >>conftest.$ac_ext
72336 cat >>conftest.$ac_ext <<_ACEOF
72337 /* end confdefs.h.  */
72338 #include <$header>
72339
72340 _ACEOF
72341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72342   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
72343   ice_cv_have_time_decl=yes
72344 fi
72345 rm -f conftest*
72346
72347 if test "$ice_cv_have_time_decl" = yes; then
72348         break
72349 fi
72350 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72351 cat >conftest.$ac_ext <<_ACEOF
72352 /* confdefs.h.  */
72353 _ACEOF
72354 cat confdefs.h >>conftest.$ac_ext
72355 cat >>conftest.$ac_ext <<_ACEOF
72356 /* end confdefs.h.  */
72357 #include <$header>
72358
72359 _ACEOF
72360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72361   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72362   ice_cv_have_time_decl=yes
72363 fi
72364 rm -f conftest*
72365
72366 if test "$ice_cv_have_time_decl" = yes; then
72367         break
72368 fi
72369 done
72370
72371 fi
72372
72373 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
72374 $as_echo "$ice_cv_have_time_decl" >&6; }
72375 if test "$ice_cv_have_time_decl" = yes; then
72376
72377 cat >>confdefs.h <<_ACEOF
72378 #define HAVE_TIME_DECL 1
72379 _ACEOF
72380
72381 fi
72382 fi
72383
72384
72385 ice_have_tolower=no
72386
72387 for ac_func in tolower
72388 do
72389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72391 $as_echo_n "checking for $ac_func... " >&6; }
72392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72393   $as_echo_n "(cached) " >&6
72394 else
72395   cat >conftest.$ac_ext <<_ACEOF
72396 /* confdefs.h.  */
72397 _ACEOF
72398 cat confdefs.h >>conftest.$ac_ext
72399 cat >>conftest.$ac_ext <<_ACEOF
72400 /* end confdefs.h.  */
72401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72403 #define $ac_func innocuous_$ac_func
72404
72405 /* System header to define __stub macros and hopefully few prototypes,
72406     which can conflict with char $ac_func (); below.
72407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72408     <limits.h> exists even on freestanding compilers.  */
72409
72410 #ifdef __STDC__
72411 # include <limits.h>
72412 #else
72413 # include <assert.h>
72414 #endif
72415
72416 #undef $ac_func
72417
72418 /* Override any GCC internal prototype to avoid an error.
72419    Use char because int might match the return type of a GCC
72420    builtin and then its argument prototype would still apply.  */
72421 #ifdef __cplusplus
72422 extern "C"
72423 #endif
72424 char $ac_func ();
72425 /* The GNU C library defines this for functions which it implements
72426     to always fail with ENOSYS.  Some functions are actually named
72427     something starting with __ and the normal name is an alias.  */
72428 #if defined __stub_$ac_func || defined __stub___$ac_func
72429 choke me
72430 #endif
72431
72432 int
72433 main ()
72434 {
72435 return $ac_func ();
72436   ;
72437   return 0;
72438 }
72439 _ACEOF
72440 rm -f conftest.$ac_objext conftest$ac_exeext
72441 if { (ac_try="$ac_link"
72442 case "(($ac_try" in
72443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72444   *) ac_try_echo=$ac_try;;
72445 esac
72446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72447 $as_echo "$ac_try_echo") >&5
72448   (eval "$ac_link") 2>conftest.er1
72449   ac_status=$?
72450   grep -v '^ *+' conftest.er1 >conftest.err
72451   rm -f conftest.er1
72452   cat conftest.err >&5
72453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72454   (exit $ac_status); } && {
72455          test -z "$ac_c_werror_flag" ||
72456          test ! -s conftest.err
72457        } && test -s conftest$ac_exeext && {
72458          test "$cross_compiling" = yes ||
72459          $as_test_x conftest$ac_exeext
72460        }; then
72461   eval "$as_ac_var=yes"
72462 else
72463   $as_echo "$as_me: failed program was:" >&5
72464 sed 's/^/| /' conftest.$ac_ext >&5
72465
72466         eval "$as_ac_var=no"
72467 fi
72468
72469 rm -rf conftest.dSYM
72470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72471       conftest$ac_exeext conftest.$ac_ext
72472 fi
72473 ac_res=`eval 'as_val=${'$as_ac_var'}
72474                  $as_echo "$as_val"'`
72475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72476 $as_echo "$ac_res" >&6; }
72477 as_val=`eval 'as_val=${'$as_ac_var'}
72478                  $as_echo "$as_val"'`
72479    if test "x$as_val" = x""yes; then
72480   cat >>confdefs.h <<_ACEOF
72481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72482 _ACEOF
72483  ice_have_tolower=yes
72484 fi
72485 done
72486
72487 if test "${ice_have_tolower}" = yes; then
72488 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
72489 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
72490 if test "${ice_cv_have_tolower_decl+set}" = set; then
72491   $as_echo_n "(cached) " >&6
72492 else
72493
72494 ice_cv_have_tolower_decl=no
72495 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72496 ice_re_word='(^|[^a-zA-Z0-9_])'
72497 for header in ctype.h; do
72498 # Check for ordinary declaration
72499 cat >conftest.$ac_ext <<_ACEOF
72500 /* confdefs.h.  */
72501 _ACEOF
72502 cat confdefs.h >>conftest.$ac_ext
72503 cat >>conftest.$ac_ext <<_ACEOF
72504 /* end confdefs.h.  */
72505 #include <$header>
72506
72507 _ACEOF
72508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72509   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
72510   ice_cv_have_tolower_decl=yes
72511 fi
72512 rm -f conftest*
72513
72514 if test "$ice_cv_have_tolower_decl" = yes; then
72515         break
72516 fi
72517 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72518 cat >conftest.$ac_ext <<_ACEOF
72519 /* confdefs.h.  */
72520 _ACEOF
72521 cat confdefs.h >>conftest.$ac_ext
72522 cat >>conftest.$ac_ext <<_ACEOF
72523 /* end confdefs.h.  */
72524 #include <$header>
72525
72526 _ACEOF
72527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72528   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72529   ice_cv_have_tolower_decl=yes
72530 fi
72531 rm -f conftest*
72532
72533 if test "$ice_cv_have_tolower_decl" = yes; then
72534         break
72535 fi
72536 done
72537
72538 fi
72539
72540 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
72541 $as_echo "$ice_cv_have_tolower_decl" >&6; }
72542 if test "$ice_cv_have_tolower_decl" = yes; then
72543
72544 cat >>confdefs.h <<_ACEOF
72545 #define HAVE_TOLOWER_DECL 1
72546 _ACEOF
72547
72548 fi
72549 fi
72550
72551
72552 ice_have_toupper=no
72553
72554 for ac_func in toupper
72555 do
72556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72558 $as_echo_n "checking for $ac_func... " >&6; }
72559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72560   $as_echo_n "(cached) " >&6
72561 else
72562   cat >conftest.$ac_ext <<_ACEOF
72563 /* confdefs.h.  */
72564 _ACEOF
72565 cat confdefs.h >>conftest.$ac_ext
72566 cat >>conftest.$ac_ext <<_ACEOF
72567 /* end confdefs.h.  */
72568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72570 #define $ac_func innocuous_$ac_func
72571
72572 /* System header to define __stub macros and hopefully few prototypes,
72573     which can conflict with char $ac_func (); below.
72574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72575     <limits.h> exists even on freestanding compilers.  */
72576
72577 #ifdef __STDC__
72578 # include <limits.h>
72579 #else
72580 # include <assert.h>
72581 #endif
72582
72583 #undef $ac_func
72584
72585 /* Override any GCC internal prototype to avoid an error.
72586    Use char because int might match the return type of a GCC
72587    builtin and then its argument prototype would still apply.  */
72588 #ifdef __cplusplus
72589 extern "C"
72590 #endif
72591 char $ac_func ();
72592 /* The GNU C library defines this for functions which it implements
72593     to always fail with ENOSYS.  Some functions are actually named
72594     something starting with __ and the normal name is an alias.  */
72595 #if defined __stub_$ac_func || defined __stub___$ac_func
72596 choke me
72597 #endif
72598
72599 int
72600 main ()
72601 {
72602 return $ac_func ();
72603   ;
72604   return 0;
72605 }
72606 _ACEOF
72607 rm -f conftest.$ac_objext conftest$ac_exeext
72608 if { (ac_try="$ac_link"
72609 case "(($ac_try" in
72610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72611   *) ac_try_echo=$ac_try;;
72612 esac
72613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72614 $as_echo "$ac_try_echo") >&5
72615   (eval "$ac_link") 2>conftest.er1
72616   ac_status=$?
72617   grep -v '^ *+' conftest.er1 >conftest.err
72618   rm -f conftest.er1
72619   cat conftest.err >&5
72620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72621   (exit $ac_status); } && {
72622          test -z "$ac_c_werror_flag" ||
72623          test ! -s conftest.err
72624        } && test -s conftest$ac_exeext && {
72625          test "$cross_compiling" = yes ||
72626          $as_test_x conftest$ac_exeext
72627        }; then
72628   eval "$as_ac_var=yes"
72629 else
72630   $as_echo "$as_me: failed program was:" >&5
72631 sed 's/^/| /' conftest.$ac_ext >&5
72632
72633         eval "$as_ac_var=no"
72634 fi
72635
72636 rm -rf conftest.dSYM
72637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72638       conftest$ac_exeext conftest.$ac_ext
72639 fi
72640 ac_res=`eval 'as_val=${'$as_ac_var'}
72641                  $as_echo "$as_val"'`
72642                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72643 $as_echo "$ac_res" >&6; }
72644 as_val=`eval 'as_val=${'$as_ac_var'}
72645                  $as_echo "$as_val"'`
72646    if test "x$as_val" = x""yes; then
72647   cat >>confdefs.h <<_ACEOF
72648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72649 _ACEOF
72650  ice_have_toupper=yes
72651 fi
72652 done
72653
72654 if test "${ice_have_toupper}" = yes; then
72655 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
72656 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
72657 if test "${ice_cv_have_toupper_decl+set}" = set; then
72658   $as_echo_n "(cached) " >&6
72659 else
72660
72661 ice_cv_have_toupper_decl=no
72662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72663 ice_re_word='(^|[^a-zA-Z0-9_])'
72664 for header in ctype.h; do
72665 # Check for ordinary declaration
72666 cat >conftest.$ac_ext <<_ACEOF
72667 /* confdefs.h.  */
72668 _ACEOF
72669 cat confdefs.h >>conftest.$ac_ext
72670 cat >>conftest.$ac_ext <<_ACEOF
72671 /* end confdefs.h.  */
72672 #include <$header>
72673
72674 _ACEOF
72675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72676   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
72677   ice_cv_have_toupper_decl=yes
72678 fi
72679 rm -f conftest*
72680
72681 if test "$ice_cv_have_toupper_decl" = yes; then
72682         break
72683 fi
72684 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72685 cat >conftest.$ac_ext <<_ACEOF
72686 /* confdefs.h.  */
72687 _ACEOF
72688 cat confdefs.h >>conftest.$ac_ext
72689 cat >>conftest.$ac_ext <<_ACEOF
72690 /* end confdefs.h.  */
72691 #include <$header>
72692
72693 _ACEOF
72694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72695   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72696   ice_cv_have_toupper_decl=yes
72697 fi
72698 rm -f conftest*
72699
72700 if test "$ice_cv_have_toupper_decl" = yes; then
72701         break
72702 fi
72703 done
72704
72705 fi
72706
72707 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
72708 $as_echo "$ice_cv_have_toupper_decl" >&6; }
72709 if test "$ice_cv_have_toupper_decl" = yes; then
72710
72711 cat >>confdefs.h <<_ACEOF
72712 #define HAVE_TOUPPER_DECL 1
72713 _ACEOF
72714
72715 fi
72716 fi
72717
72718
72719 ice_have_ungetc=no
72720
72721 for ac_func in ungetc
72722 do
72723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72725 $as_echo_n "checking for $ac_func... " >&6; }
72726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72727   $as_echo_n "(cached) " >&6
72728 else
72729   cat >conftest.$ac_ext <<_ACEOF
72730 /* confdefs.h.  */
72731 _ACEOF
72732 cat confdefs.h >>conftest.$ac_ext
72733 cat >>conftest.$ac_ext <<_ACEOF
72734 /* end confdefs.h.  */
72735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72737 #define $ac_func innocuous_$ac_func
72738
72739 /* System header to define __stub macros and hopefully few prototypes,
72740     which can conflict with char $ac_func (); below.
72741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72742     <limits.h> exists even on freestanding compilers.  */
72743
72744 #ifdef __STDC__
72745 # include <limits.h>
72746 #else
72747 # include <assert.h>
72748 #endif
72749
72750 #undef $ac_func
72751
72752 /* Override any GCC internal prototype to avoid an error.
72753    Use char because int might match the return type of a GCC
72754    builtin and then its argument prototype would still apply.  */
72755 #ifdef __cplusplus
72756 extern "C"
72757 #endif
72758 char $ac_func ();
72759 /* The GNU C library defines this for functions which it implements
72760     to always fail with ENOSYS.  Some functions are actually named
72761     something starting with __ and the normal name is an alias.  */
72762 #if defined __stub_$ac_func || defined __stub___$ac_func
72763 choke me
72764 #endif
72765
72766 int
72767 main ()
72768 {
72769 return $ac_func ();
72770   ;
72771   return 0;
72772 }
72773 _ACEOF
72774 rm -f conftest.$ac_objext conftest$ac_exeext
72775 if { (ac_try="$ac_link"
72776 case "(($ac_try" in
72777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72778   *) ac_try_echo=$ac_try;;
72779 esac
72780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72781 $as_echo "$ac_try_echo") >&5
72782   (eval "$ac_link") 2>conftest.er1
72783   ac_status=$?
72784   grep -v '^ *+' conftest.er1 >conftest.err
72785   rm -f conftest.er1
72786   cat conftest.err >&5
72787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72788   (exit $ac_status); } && {
72789          test -z "$ac_c_werror_flag" ||
72790          test ! -s conftest.err
72791        } && test -s conftest$ac_exeext && {
72792          test "$cross_compiling" = yes ||
72793          $as_test_x conftest$ac_exeext
72794        }; then
72795   eval "$as_ac_var=yes"
72796 else
72797   $as_echo "$as_me: failed program was:" >&5
72798 sed 's/^/| /' conftest.$ac_ext >&5
72799
72800         eval "$as_ac_var=no"
72801 fi
72802
72803 rm -rf conftest.dSYM
72804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72805       conftest$ac_exeext conftest.$ac_ext
72806 fi
72807 ac_res=`eval 'as_val=${'$as_ac_var'}
72808                  $as_echo "$as_val"'`
72809                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72810 $as_echo "$ac_res" >&6; }
72811 as_val=`eval 'as_val=${'$as_ac_var'}
72812                  $as_echo "$as_val"'`
72813    if test "x$as_val" = x""yes; then
72814   cat >>confdefs.h <<_ACEOF
72815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72816 _ACEOF
72817  ice_have_ungetc=yes
72818 fi
72819 done
72820
72821 if test "${ice_have_ungetc}" = yes; then
72822 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
72823 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
72824 if test "${ice_cv_have_ungetc_decl+set}" = set; then
72825   $as_echo_n "(cached) " >&6
72826 else
72827
72828 ice_cv_have_ungetc_decl=no
72829 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72830 ice_re_word='(^|[^a-zA-Z0-9_])'
72831 for header in stdio.h; do
72832 # Check for ordinary declaration
72833 cat >conftest.$ac_ext <<_ACEOF
72834 /* confdefs.h.  */
72835 _ACEOF
72836 cat confdefs.h >>conftest.$ac_ext
72837 cat >>conftest.$ac_ext <<_ACEOF
72838 /* end confdefs.h.  */
72839 #include <$header>
72840
72841 _ACEOF
72842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72843   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
72844   ice_cv_have_ungetc_decl=yes
72845 fi
72846 rm -f conftest*
72847
72848 if test "$ice_cv_have_ungetc_decl" = yes; then
72849         break
72850 fi
72851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72852 cat >conftest.$ac_ext <<_ACEOF
72853 /* confdefs.h.  */
72854 _ACEOF
72855 cat confdefs.h >>conftest.$ac_ext
72856 cat >>conftest.$ac_ext <<_ACEOF
72857 /* end confdefs.h.  */
72858 #include <$header>
72859
72860 _ACEOF
72861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72862   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72863   ice_cv_have_ungetc_decl=yes
72864 fi
72865 rm -f conftest*
72866
72867 if test "$ice_cv_have_ungetc_decl" = yes; then
72868         break
72869 fi
72870 done
72871
72872 fi
72873
72874 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
72875 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
72876 if test "$ice_cv_have_ungetc_decl" = yes; then
72877
72878 cat >>confdefs.h <<_ACEOF
72879 #define HAVE_UNGETC_DECL 1
72880 _ACEOF
72881
72882 fi
72883 fi
72884
72885
72886 for ac_func in unsetenv
72887 do
72888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72890 $as_echo_n "checking for $ac_func... " >&6; }
72891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72892   $as_echo_n "(cached) " >&6
72893 else
72894   cat >conftest.$ac_ext <<_ACEOF
72895 /* confdefs.h.  */
72896 _ACEOF
72897 cat confdefs.h >>conftest.$ac_ext
72898 cat >>conftest.$ac_ext <<_ACEOF
72899 /* end confdefs.h.  */
72900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72902 #define $ac_func innocuous_$ac_func
72903
72904 /* System header to define __stub macros and hopefully few prototypes,
72905     which can conflict with char $ac_func (); below.
72906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72907     <limits.h> exists even on freestanding compilers.  */
72908
72909 #ifdef __STDC__
72910 # include <limits.h>
72911 #else
72912 # include <assert.h>
72913 #endif
72914
72915 #undef $ac_func
72916
72917 /* Override any GCC internal prototype to avoid an error.
72918    Use char because int might match the return type of a GCC
72919    builtin and then its argument prototype would still apply.  */
72920 #ifdef __cplusplus
72921 extern "C"
72922 #endif
72923 char $ac_func ();
72924 /* The GNU C library defines this for functions which it implements
72925     to always fail with ENOSYS.  Some functions are actually named
72926     something starting with __ and the normal name is an alias.  */
72927 #if defined __stub_$ac_func || defined __stub___$ac_func
72928 choke me
72929 #endif
72930
72931 int
72932 main ()
72933 {
72934 return $ac_func ();
72935   ;
72936   return 0;
72937 }
72938 _ACEOF
72939 rm -f conftest.$ac_objext conftest$ac_exeext
72940 if { (ac_try="$ac_link"
72941 case "(($ac_try" in
72942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72943   *) ac_try_echo=$ac_try;;
72944 esac
72945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72946 $as_echo "$ac_try_echo") >&5
72947   (eval "$ac_link") 2>conftest.er1
72948   ac_status=$?
72949   grep -v '^ *+' conftest.er1 >conftest.err
72950   rm -f conftest.er1
72951   cat conftest.err >&5
72952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72953   (exit $ac_status); } && {
72954          test -z "$ac_c_werror_flag" ||
72955          test ! -s conftest.err
72956        } && test -s conftest$ac_exeext && {
72957          test "$cross_compiling" = yes ||
72958          $as_test_x conftest$ac_exeext
72959        }; then
72960   eval "$as_ac_var=yes"
72961 else
72962   $as_echo "$as_me: failed program was:" >&5
72963 sed 's/^/| /' conftest.$ac_ext >&5
72964
72965         eval "$as_ac_var=no"
72966 fi
72967
72968 rm -rf conftest.dSYM
72969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72970       conftest$ac_exeext conftest.$ac_ext
72971 fi
72972 ac_res=`eval 'as_val=${'$as_ac_var'}
72973                  $as_echo "$as_val"'`
72974                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72975 $as_echo "$ac_res" >&6; }
72976 as_val=`eval 'as_val=${'$as_ac_var'}
72977                  $as_echo "$as_val"'`
72978    if test "x$as_val" = x""yes; then
72979   cat >>confdefs.h <<_ACEOF
72980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72981 _ACEOF
72982
72983 fi
72984 done
72985
72986
72987 ice_have_vfprintf=no
72988
72989 for ac_func in vfprintf
72990 do
72991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72993 $as_echo_n "checking for $ac_func... " >&6; }
72994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72995   $as_echo_n "(cached) " >&6
72996 else
72997   cat >conftest.$ac_ext <<_ACEOF
72998 /* confdefs.h.  */
72999 _ACEOF
73000 cat confdefs.h >>conftest.$ac_ext
73001 cat >>conftest.$ac_ext <<_ACEOF
73002 /* end confdefs.h.  */
73003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73005 #define $ac_func innocuous_$ac_func
73006
73007 /* System header to define __stub macros and hopefully few prototypes,
73008     which can conflict with char $ac_func (); below.
73009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73010     <limits.h> exists even on freestanding compilers.  */
73011
73012 #ifdef __STDC__
73013 # include <limits.h>
73014 #else
73015 # include <assert.h>
73016 #endif
73017
73018 #undef $ac_func
73019
73020 /* Override any GCC internal prototype to avoid an error.
73021    Use char because int might match the return type of a GCC
73022    builtin and then its argument prototype would still apply.  */
73023 #ifdef __cplusplus
73024 extern "C"
73025 #endif
73026 char $ac_func ();
73027 /* The GNU C library defines this for functions which it implements
73028     to always fail with ENOSYS.  Some functions are actually named
73029     something starting with __ and the normal name is an alias.  */
73030 #if defined __stub_$ac_func || defined __stub___$ac_func
73031 choke me
73032 #endif
73033
73034 int
73035 main ()
73036 {
73037 return $ac_func ();
73038   ;
73039   return 0;
73040 }
73041 _ACEOF
73042 rm -f conftest.$ac_objext conftest$ac_exeext
73043 if { (ac_try="$ac_link"
73044 case "(($ac_try" in
73045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73046   *) ac_try_echo=$ac_try;;
73047 esac
73048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73049 $as_echo "$ac_try_echo") >&5
73050   (eval "$ac_link") 2>conftest.er1
73051   ac_status=$?
73052   grep -v '^ *+' conftest.er1 >conftest.err
73053   rm -f conftest.er1
73054   cat conftest.err >&5
73055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73056   (exit $ac_status); } && {
73057          test -z "$ac_c_werror_flag" ||
73058          test ! -s conftest.err
73059        } && test -s conftest$ac_exeext && {
73060          test "$cross_compiling" = yes ||
73061          $as_test_x conftest$ac_exeext
73062        }; then
73063   eval "$as_ac_var=yes"
73064 else
73065   $as_echo "$as_me: failed program was:" >&5
73066 sed 's/^/| /' conftest.$ac_ext >&5
73067
73068         eval "$as_ac_var=no"
73069 fi
73070
73071 rm -rf conftest.dSYM
73072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73073       conftest$ac_exeext conftest.$ac_ext
73074 fi
73075 ac_res=`eval 'as_val=${'$as_ac_var'}
73076                  $as_echo "$as_val"'`
73077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73078 $as_echo "$ac_res" >&6; }
73079 as_val=`eval 'as_val=${'$as_ac_var'}
73080                  $as_echo "$as_val"'`
73081    if test "x$as_val" = x""yes; then
73082   cat >>confdefs.h <<_ACEOF
73083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73084 _ACEOF
73085  ice_have_vfprintf=yes
73086 fi
73087 done
73088
73089 if test "${ice_have_vfprintf}" = yes; then
73090 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
73091 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
73092 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
73093   $as_echo_n "(cached) " >&6
73094 else
73095
73096 ice_cv_have_vfprintf_decl=no
73097 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73098 ice_re_word='(^|[^a-zA-Z0-9_])'
73099 for header in stdio.h stdlib.h; do
73100 # Check for ordinary declaration
73101 cat >conftest.$ac_ext <<_ACEOF
73102 /* confdefs.h.  */
73103 _ACEOF
73104 cat confdefs.h >>conftest.$ac_ext
73105 cat >>conftest.$ac_ext <<_ACEOF
73106 /* end confdefs.h.  */
73107 #include <$header>
73108
73109 _ACEOF
73110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73111   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
73112   ice_cv_have_vfprintf_decl=yes
73113 fi
73114 rm -f conftest*
73115
73116 if test "$ice_cv_have_vfprintf_decl" = yes; then
73117         break
73118 fi
73119 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73120 cat >conftest.$ac_ext <<_ACEOF
73121 /* confdefs.h.  */
73122 _ACEOF
73123 cat confdefs.h >>conftest.$ac_ext
73124 cat >>conftest.$ac_ext <<_ACEOF
73125 /* end confdefs.h.  */
73126 #include <$header>
73127
73128 _ACEOF
73129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73130   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73131   ice_cv_have_vfprintf_decl=yes
73132 fi
73133 rm -f conftest*
73134
73135 if test "$ice_cv_have_vfprintf_decl" = yes; then
73136         break
73137 fi
73138 done
73139
73140 fi
73141
73142 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
73143 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
73144 if test "$ice_cv_have_vfprintf_decl" = yes; then
73145
73146 cat >>confdefs.h <<_ACEOF
73147 #define HAVE_VFPRINTF_DECL 1
73148 _ACEOF
73149
73150 fi
73151 fi
73152
73153
73154 ice_have_vprintf=no
73155
73156 for ac_func in vprintf
73157 do
73158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73160 $as_echo_n "checking for $ac_func... " >&6; }
73161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73162   $as_echo_n "(cached) " >&6
73163 else
73164   cat >conftest.$ac_ext <<_ACEOF
73165 /* confdefs.h.  */
73166 _ACEOF
73167 cat confdefs.h >>conftest.$ac_ext
73168 cat >>conftest.$ac_ext <<_ACEOF
73169 /* end confdefs.h.  */
73170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73172 #define $ac_func innocuous_$ac_func
73173
73174 /* System header to define __stub macros and hopefully few prototypes,
73175     which can conflict with char $ac_func (); below.
73176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73177     <limits.h> exists even on freestanding compilers.  */
73178
73179 #ifdef __STDC__
73180 # include <limits.h>
73181 #else
73182 # include <assert.h>
73183 #endif
73184
73185 #undef $ac_func
73186
73187 /* Override any GCC internal prototype to avoid an error.
73188    Use char because int might match the return type of a GCC
73189    builtin and then its argument prototype would still apply.  */
73190 #ifdef __cplusplus
73191 extern "C"
73192 #endif
73193 char $ac_func ();
73194 /* The GNU C library defines this for functions which it implements
73195     to always fail with ENOSYS.  Some functions are actually named
73196     something starting with __ and the normal name is an alias.  */
73197 #if defined __stub_$ac_func || defined __stub___$ac_func
73198 choke me
73199 #endif
73200
73201 int
73202 main ()
73203 {
73204 return $ac_func ();
73205   ;
73206   return 0;
73207 }
73208 _ACEOF
73209 rm -f conftest.$ac_objext conftest$ac_exeext
73210 if { (ac_try="$ac_link"
73211 case "(($ac_try" in
73212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73213   *) ac_try_echo=$ac_try;;
73214 esac
73215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73216 $as_echo "$ac_try_echo") >&5
73217   (eval "$ac_link") 2>conftest.er1
73218   ac_status=$?
73219   grep -v '^ *+' conftest.er1 >conftest.err
73220   rm -f conftest.er1
73221   cat conftest.err >&5
73222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73223   (exit $ac_status); } && {
73224          test -z "$ac_c_werror_flag" ||
73225          test ! -s conftest.err
73226        } && test -s conftest$ac_exeext && {
73227          test "$cross_compiling" = yes ||
73228          $as_test_x conftest$ac_exeext
73229        }; then
73230   eval "$as_ac_var=yes"
73231 else
73232   $as_echo "$as_me: failed program was:" >&5
73233 sed 's/^/| /' conftest.$ac_ext >&5
73234
73235         eval "$as_ac_var=no"
73236 fi
73237
73238 rm -rf conftest.dSYM
73239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73240       conftest$ac_exeext conftest.$ac_ext
73241 fi
73242 ac_res=`eval 'as_val=${'$as_ac_var'}
73243                  $as_echo "$as_val"'`
73244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73245 $as_echo "$ac_res" >&6; }
73246 as_val=`eval 'as_val=${'$as_ac_var'}
73247                  $as_echo "$as_val"'`
73248    if test "x$as_val" = x""yes; then
73249   cat >>confdefs.h <<_ACEOF
73250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73251 _ACEOF
73252  ice_have_vprintf=yes
73253 fi
73254 done
73255
73256 if test "${ice_have_vprintf}" = yes; then
73257 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
73258 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
73259 if test "${ice_cv_have_vprintf_decl+set}" = set; then
73260   $as_echo_n "(cached) " >&6
73261 else
73262
73263 ice_cv_have_vprintf_decl=no
73264 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73265 ice_re_word='(^|[^a-zA-Z0-9_])'
73266 for header in stdio.h stdlib.h; do
73267 # Check for ordinary declaration
73268 cat >conftest.$ac_ext <<_ACEOF
73269 /* confdefs.h.  */
73270 _ACEOF
73271 cat confdefs.h >>conftest.$ac_ext
73272 cat >>conftest.$ac_ext <<_ACEOF
73273 /* end confdefs.h.  */
73274 #include <$header>
73275
73276 _ACEOF
73277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73278   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
73279   ice_cv_have_vprintf_decl=yes
73280 fi
73281 rm -f conftest*
73282
73283 if test "$ice_cv_have_vprintf_decl" = yes; then
73284         break
73285 fi
73286 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73287 cat >conftest.$ac_ext <<_ACEOF
73288 /* confdefs.h.  */
73289 _ACEOF
73290 cat confdefs.h >>conftest.$ac_ext
73291 cat >>conftest.$ac_ext <<_ACEOF
73292 /* end confdefs.h.  */
73293 #include <$header>
73294
73295 _ACEOF
73296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73297   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73298   ice_cv_have_vprintf_decl=yes
73299 fi
73300 rm -f conftest*
73301
73302 if test "$ice_cv_have_vprintf_decl" = yes; then
73303         break
73304 fi
73305 done
73306
73307 fi
73308
73309 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
73310 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
73311 if test "$ice_cv_have_vprintf_decl" = yes; then
73312
73313 cat >>confdefs.h <<_ACEOF
73314 #define HAVE_VPRINTF_DECL 1
73315 _ACEOF
73316
73317 fi
73318 fi
73319
73320 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
73321 $as_echo_n "checking for wait4... " >&6; }
73322 if test "${ac_cv_func_wait4+set}" = set; then
73323   $as_echo_n "(cached) " >&6
73324 else
73325   cat >conftest.$ac_ext <<_ACEOF
73326 /* confdefs.h.  */
73327 _ACEOF
73328 cat confdefs.h >>conftest.$ac_ext
73329 cat >>conftest.$ac_ext <<_ACEOF
73330 /* end confdefs.h.  */
73331 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
73332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73333 #define wait4 innocuous_wait4
73334
73335 /* System header to define __stub macros and hopefully few prototypes,
73336     which can conflict with char wait4 (); below.
73337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73338     <limits.h> exists even on freestanding compilers.  */
73339
73340 #ifdef __STDC__
73341 # include <limits.h>
73342 #else
73343 # include <assert.h>
73344 #endif
73345
73346 #undef wait4
73347
73348 /* Override any GCC internal prototype to avoid an error.
73349    Use char because int might match the return type of a GCC
73350    builtin and then its argument prototype would still apply.  */
73351 #ifdef __cplusplus
73352 extern "C"
73353 #endif
73354 char wait4 ();
73355 /* The GNU C library defines this for functions which it implements
73356     to always fail with ENOSYS.  Some functions are actually named
73357     something starting with __ and the normal name is an alias.  */
73358 #if defined __stub_wait4 || defined __stub___wait4
73359 choke me
73360 #endif
73361
73362 int
73363 main ()
73364 {
73365 return wait4 ();
73366   ;
73367   return 0;
73368 }
73369 _ACEOF
73370 rm -f conftest.$ac_objext conftest$ac_exeext
73371 if { (ac_try="$ac_link"
73372 case "(($ac_try" in
73373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73374   *) ac_try_echo=$ac_try;;
73375 esac
73376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73377 $as_echo "$ac_try_echo") >&5
73378   (eval "$ac_link") 2>conftest.er1
73379   ac_status=$?
73380   grep -v '^ *+' conftest.er1 >conftest.err
73381   rm -f conftest.er1
73382   cat conftest.err >&5
73383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73384   (exit $ac_status); } && {
73385          test -z "$ac_c_werror_flag" ||
73386          test ! -s conftest.err
73387        } && test -s conftest$ac_exeext && {
73388          test "$cross_compiling" = yes ||
73389          $as_test_x conftest$ac_exeext
73390        }; then
73391   ac_cv_func_wait4=yes
73392 else
73393   $as_echo "$as_me: failed program was:" >&5
73394 sed 's/^/| /' conftest.$ac_ext >&5
73395
73396         ac_cv_func_wait4=no
73397 fi
73398
73399 rm -rf conftest.dSYM
73400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73401       conftest$ac_exeext conftest.$ac_ext
73402 fi
73403 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
73404 $as_echo "$ac_cv_func_wait4" >&6; }
73405
73406
73407 ice_have_writev=no
73408
73409 for ac_func in writev
73410 do
73411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73413 $as_echo_n "checking for $ac_func... " >&6; }
73414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73415   $as_echo_n "(cached) " >&6
73416 else
73417   cat >conftest.$ac_ext <<_ACEOF
73418 /* confdefs.h.  */
73419 _ACEOF
73420 cat confdefs.h >>conftest.$ac_ext
73421 cat >>conftest.$ac_ext <<_ACEOF
73422 /* end confdefs.h.  */
73423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73425 #define $ac_func innocuous_$ac_func
73426
73427 /* System header to define __stub macros and hopefully few prototypes,
73428     which can conflict with char $ac_func (); below.
73429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73430     <limits.h> exists even on freestanding compilers.  */
73431
73432 #ifdef __STDC__
73433 # include <limits.h>
73434 #else
73435 # include <assert.h>
73436 #endif
73437
73438 #undef $ac_func
73439
73440 /* Override any GCC internal prototype to avoid an error.
73441    Use char because int might match the return type of a GCC
73442    builtin and then its argument prototype would still apply.  */
73443 #ifdef __cplusplus
73444 extern "C"
73445 #endif
73446 char $ac_func ();
73447 /* The GNU C library defines this for functions which it implements
73448     to always fail with ENOSYS.  Some functions are actually named
73449     something starting with __ and the normal name is an alias.  */
73450 #if defined __stub_$ac_func || defined __stub___$ac_func
73451 choke me
73452 #endif
73453
73454 int
73455 main ()
73456 {
73457 return $ac_func ();
73458   ;
73459   return 0;
73460 }
73461 _ACEOF
73462 rm -f conftest.$ac_objext conftest$ac_exeext
73463 if { (ac_try="$ac_link"
73464 case "(($ac_try" in
73465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73466   *) ac_try_echo=$ac_try;;
73467 esac
73468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73469 $as_echo "$ac_try_echo") >&5
73470   (eval "$ac_link") 2>conftest.er1
73471   ac_status=$?
73472   grep -v '^ *+' conftest.er1 >conftest.err
73473   rm -f conftest.er1
73474   cat conftest.err >&5
73475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73476   (exit $ac_status); } && {
73477          test -z "$ac_c_werror_flag" ||
73478          test ! -s conftest.err
73479        } && test -s conftest$ac_exeext && {
73480          test "$cross_compiling" = yes ||
73481          $as_test_x conftest$ac_exeext
73482        }; then
73483   eval "$as_ac_var=yes"
73484 else
73485   $as_echo "$as_me: failed program was:" >&5
73486 sed 's/^/| /' conftest.$ac_ext >&5
73487
73488         eval "$as_ac_var=no"
73489 fi
73490
73491 rm -rf conftest.dSYM
73492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73493       conftest$ac_exeext conftest.$ac_ext
73494 fi
73495 ac_res=`eval 'as_val=${'$as_ac_var'}
73496                  $as_echo "$as_val"'`
73497                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73498 $as_echo "$ac_res" >&6; }
73499 as_val=`eval 'as_val=${'$as_ac_var'}
73500                  $as_echo "$as_val"'`
73501    if test "x$as_val" = x""yes; then
73502   cat >>confdefs.h <<_ACEOF
73503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73504 _ACEOF
73505  ice_have_writev=yes
73506 fi
73507 done
73508
73509 if test "${ice_have_writev}" = yes; then
73510 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
73511 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
73512 if test "${ice_cv_have_writev_decl+set}" = set; then
73513   $as_echo_n "(cached) " >&6
73514 else
73515
73516 ice_cv_have_writev_decl=no
73517 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73518 ice_re_word='(^|[^a-zA-Z0-9_])'
73519 for header in unistd.h sys/uio.h; do
73520 # Check for ordinary declaration
73521 cat >conftest.$ac_ext <<_ACEOF
73522 /* confdefs.h.  */
73523 _ACEOF
73524 cat confdefs.h >>conftest.$ac_ext
73525 cat >>conftest.$ac_ext <<_ACEOF
73526 /* end confdefs.h.  */
73527 #include <$header>
73528
73529 _ACEOF
73530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73531   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
73532   ice_cv_have_writev_decl=yes
73533 fi
73534 rm -f conftest*
73535
73536 if test "$ice_cv_have_writev_decl" = yes; then
73537         break
73538 fi
73539 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73540 cat >conftest.$ac_ext <<_ACEOF
73541 /* confdefs.h.  */
73542 _ACEOF
73543 cat confdefs.h >>conftest.$ac_ext
73544 cat >>conftest.$ac_ext <<_ACEOF
73545 /* end confdefs.h.  */
73546 #include <$header>
73547
73548 _ACEOF
73549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73550   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73551   ice_cv_have_writev_decl=yes
73552 fi
73553 rm -f conftest*
73554
73555 if test "$ice_cv_have_writev_decl" = yes; then
73556         break
73557 fi
73558 done
73559
73560 fi
73561
73562 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
73563 $as_echo "$ice_cv_have_writev_decl" >&6; }
73564 if test "$ice_cv_have_writev_decl" = yes; then
73565
73566 cat >>confdefs.h <<_ACEOF
73567 #define HAVE_WRITEV_DECL 1
73568 _ACEOF
73569
73570 fi
73571 fi
73572
73573
73574 ice_have_strcasecmp=no
73575
73576 for ac_func in strcasecmp
73577 do
73578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73580 $as_echo_n "checking for $ac_func... " >&6; }
73581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73582   $as_echo_n "(cached) " >&6
73583 else
73584   cat >conftest.$ac_ext <<_ACEOF
73585 /* confdefs.h.  */
73586 _ACEOF
73587 cat confdefs.h >>conftest.$ac_ext
73588 cat >>conftest.$ac_ext <<_ACEOF
73589 /* end confdefs.h.  */
73590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73592 #define $ac_func innocuous_$ac_func
73593
73594 /* System header to define __stub macros and hopefully few prototypes,
73595     which can conflict with char $ac_func (); below.
73596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73597     <limits.h> exists even on freestanding compilers.  */
73598
73599 #ifdef __STDC__
73600 # include <limits.h>
73601 #else
73602 # include <assert.h>
73603 #endif
73604
73605 #undef $ac_func
73606
73607 /* Override any GCC internal prototype to avoid an error.
73608    Use char because int might match the return type of a GCC
73609    builtin and then its argument prototype would still apply.  */
73610 #ifdef __cplusplus
73611 extern "C"
73612 #endif
73613 char $ac_func ();
73614 /* The GNU C library defines this for functions which it implements
73615     to always fail with ENOSYS.  Some functions are actually named
73616     something starting with __ and the normal name is an alias.  */
73617 #if defined __stub_$ac_func || defined __stub___$ac_func
73618 choke me
73619 #endif
73620
73621 int
73622 main ()
73623 {
73624 return $ac_func ();
73625   ;
73626   return 0;
73627 }
73628 _ACEOF
73629 rm -f conftest.$ac_objext conftest$ac_exeext
73630 if { (ac_try="$ac_link"
73631 case "(($ac_try" in
73632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73633   *) ac_try_echo=$ac_try;;
73634 esac
73635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73636 $as_echo "$ac_try_echo") >&5
73637   (eval "$ac_link") 2>conftest.er1
73638   ac_status=$?
73639   grep -v '^ *+' conftest.er1 >conftest.err
73640   rm -f conftest.er1
73641   cat conftest.err >&5
73642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73643   (exit $ac_status); } && {
73644          test -z "$ac_c_werror_flag" ||
73645          test ! -s conftest.err
73646        } && test -s conftest$ac_exeext && {
73647          test "$cross_compiling" = yes ||
73648          $as_test_x conftest$ac_exeext
73649        }; then
73650   eval "$as_ac_var=yes"
73651 else
73652   $as_echo "$as_me: failed program was:" >&5
73653 sed 's/^/| /' conftest.$ac_ext >&5
73654
73655         eval "$as_ac_var=no"
73656 fi
73657
73658 rm -rf conftest.dSYM
73659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73660       conftest$ac_exeext conftest.$ac_ext
73661 fi
73662 ac_res=`eval 'as_val=${'$as_ac_var'}
73663                  $as_echo "$as_val"'`
73664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73665 $as_echo "$ac_res" >&6; }
73666 as_val=`eval 'as_val=${'$as_ac_var'}
73667                  $as_echo "$as_val"'`
73668    if test "x$as_val" = x""yes; then
73669   cat >>confdefs.h <<_ACEOF
73670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73671 _ACEOF
73672  ice_have_strcasecmp=yes
73673 fi
73674 done
73675
73676 if test "${ice_have_strcasecmp}" = yes; then
73677 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
73678 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
73679 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
73680   $as_echo_n "(cached) " >&6
73681 else
73682
73683 ice_cv_have_strcasecmp_decl=no
73684 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73685 ice_re_word='(^|[^a-zA-Z0-9_])'
73686 for header in string.h strings.h; do
73687 # Check for ordinary declaration
73688 cat >conftest.$ac_ext <<_ACEOF
73689 /* confdefs.h.  */
73690 _ACEOF
73691 cat confdefs.h >>conftest.$ac_ext
73692 cat >>conftest.$ac_ext <<_ACEOF
73693 /* end confdefs.h.  */
73694 #include <$header>
73695
73696 _ACEOF
73697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73698   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
73699   ice_cv_have_strcasecmp_decl=yes
73700 fi
73701 rm -f conftest*
73702
73703 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73704         break
73705 fi
73706 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73707 cat >conftest.$ac_ext <<_ACEOF
73708 /* confdefs.h.  */
73709 _ACEOF
73710 cat confdefs.h >>conftest.$ac_ext
73711 cat >>conftest.$ac_ext <<_ACEOF
73712 /* end confdefs.h.  */
73713 #include <$header>
73714
73715 _ACEOF
73716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73717   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73718   ice_cv_have_strcasecmp_decl=yes
73719 fi
73720 rm -f conftest*
73721
73722 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73723         break
73724 fi
73725 done
73726
73727 fi
73728
73729 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
73730 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
73731 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73732
73733 cat >>confdefs.h <<_ACEOF
73734 #define HAVE_STRCASECMP_DECL 1
73735 _ACEOF
73736
73737 fi
73738 fi
73739
73740
73741
73742 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"
73743
73744
73745 cat >confcache <<\_ACEOF
73746 # This file is a shell script that caches the results of configure
73747 # tests run on this system so they can be shared between configure
73748 # scripts and configure runs, see configure's option --config-cache.
73749 # It is not useful on other systems.  If it contains results you don't
73750 # want to keep, you may remove or edit it.
73751 #
73752 # config.status only pays attention to the cache file if you give it
73753 # the --recheck option to rerun configure.
73754 #
73755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73757 # following values.
73758
73759 _ACEOF
73760
73761 # The following way of writing the cache mishandles newlines in values,
73762 # but we know of no workaround that is simple, portable, and efficient.
73763 # So, we kill variables containing newlines.
73764 # Ultrix sh set writes to stderr and can't be redirected directly,
73765 # and sets the high bit in the cache file unless we assign to the vars.
73766 (
73767   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
73768     eval ac_val=\$$ac_var
73769     case $ac_val in #(
73770     *${as_nl}*)
73771       case $ac_var in #(
73772       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
73773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
73774       esac
73775       case $ac_var in #(
73776       _ | IFS | as_nl) ;; #(
73777       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
73778       *) $as_unset $ac_var ;;
73779       esac ;;
73780     esac
73781   done
73782
73783   (set) 2>&1 |
73784     case $as_nl`(ac_space=' '; set) 2>&1` in #(
73785     *${as_nl}ac_space=\ *)
73786       # `set' does not quote correctly, so add quotes (double-quote
73787       # substitution turns \\\\ into \\, and sed turns \\ into \).
73788       sed -n \
73789         "s/'/'\\\\''/g;
73790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73791       ;; #(
73792     *)
73793       # `set' quotes correctly as required by POSIX, so do not add quotes.
73794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
73795       ;;
73796     esac |
73797     sort
73798 ) |
73799   sed '
73800      /^ac_cv_env_/b end
73801      t clear
73802      :clear
73803      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73804      t end
73805      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73806      :end' >>confcache
73807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
73808   if test -w "$cache_file"; then
73809     test "x$cache_file" != "x/dev/null" &&
73810       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
73811 $as_echo "$as_me: updating cache $cache_file" >&6;}
73812     cat confcache >$cache_file
73813   else
73814     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
73815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
73816   fi
73817 fi
73818 rm -f confcache
73819
73820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73821 # Let make expand exec_prefix.
73822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73823
73824 DEFS=-DHAVE_CONFIG_H
73825
73826 ac_libobjs=
73827 ac_ltlibobjs=
73828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73829   # 1. Remove the extension, and $U if already installed.
73830   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
73831   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
73832   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
73833   #    will be set to the directory where LIBOBJS objects are built.
73834   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
73835   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
73836 done
73837 LIBOBJS=$ac_libobjs
73838
73839 LTLIBOBJS=$ac_ltlibobjs
73840
73841
73842  if test -n "$EXEEXT"; then
73843   am__EXEEXT_TRUE=
73844   am__EXEEXT_FALSE='#'
73845 else
73846   am__EXEEXT_TRUE='#'
73847   am__EXEEXT_FALSE=
73848 fi
73849
73850 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
73851   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
73852 Usually this means the macro was only invoked conditionally." >&5
73853 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
73854 Usually this means the macro was only invoked conditionally." >&2;}
73855    { (exit 1); exit 1; }; }
73856 fi
73857 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
73858   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
73859 Usually this means the macro was only invoked conditionally." >&5
73860 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
73861 Usually this means the macro was only invoked conditionally." >&2;}
73862    { (exit 1); exit 1; }; }
73863 fi
73864 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
73865   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
73866 Usually this means the macro was only invoked conditionally." >&5
73867 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
73868 Usually this means the macro was only invoked conditionally." >&2;}
73869    { (exit 1); exit 1; }; }
73870 fi
73871
73872     gl_libobjs=
73873     gl_ltlibobjs=
73874     if test -n "$gl_LIBOBJS"; then
73875       # Remove the extension.
73876       sed_drop_objext='s/\.o$//;s/\.obj$//'
73877       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
73878         gl_libobjs="$gl_libobjs $i.$ac_objext"
73879         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
73880       done
73881     fi
73882     gl_LIBOBJS=$gl_libobjs
73883
73884     gl_LTLIBOBJS=$gl_ltlibobjs
73885
73886
73887
73888     gltests_libobjs=
73889     gltests_ltlibobjs=
73890     if test -n "$gltests_LIBOBJS"; then
73891       # Remove the extension.
73892       sed_drop_objext='s/\.o$//;s/\.obj$//'
73893       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
73894         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
73895         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
73896       done
73897     fi
73898     gltests_LIBOBJS=$gltests_libobjs
73899
73900     gltests_LTLIBOBJS=$gltests_ltlibobjs
73901
73902
73903 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
73904   { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_USERID\" was never defined.
73905 Usually this means the macro was only invoked conditionally." >&5
73906 $as_echo "$as_me: error: conditional \"CHECK_USERID\" was never defined.
73907 Usually this means the macro was only invoked conditionally." >&2;}
73908    { (exit 1); exit 1; }; }
73909 fi
73910 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
73911   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
73912 Usually this means the macro was only invoked conditionally." >&5
73913 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
73914 Usually this means the macro was only invoked conditionally." >&2;}
73915    { (exit 1); exit 1; }; }
73916 fi
73917 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
73918   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
73919 Usually this means the macro was only invoked conditionally." >&5
73920 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
73921 Usually this means the macro was only invoked conditionally." >&2;}
73922    { (exit 1); exit 1; }; }
73923 fi
73924 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
73925   { { $as_echo "$as_me:$LINENO: error: conditional \"SYNTAX_CHECKS\" was never defined.
73926 Usually this means the macro was only invoked conditionally." >&5
73927 $as_echo "$as_me: error: conditional \"SYNTAX_CHECKS\" was never defined.
73928 Usually this means the macro was only invoked conditionally." >&2;}
73929    { (exit 1); exit 1; }; }
73930 fi
73931 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
73932   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
73933 Usually this means the macro was only invoked conditionally." >&5
73934 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
73935 Usually this means the macro was only invoked conditionally." >&2;}
73936    { (exit 1); exit 1; }; }
73937 fi
73938 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
73939   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
73940 Usually this means the macro was only invoked conditionally." >&5
73941 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
73942 Usually this means the macro was only invoked conditionally." >&2;}
73943    { (exit 1); exit 1; }; }
73944 fi
73945 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
73946   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
73947 Usually this means the macro was only invoked conditionally." >&5
73948 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
73949 Usually this means the macro was only invoked conditionally." >&2;}
73950    { (exit 1); exit 1; }; }
73951 fi
73952 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
73953   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
73954 Usually this means the macro was only invoked conditionally." >&5
73955 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
73956 Usually this means the macro was only invoked conditionally." >&2;}
73957    { (exit 1); exit 1; }; }
73958 fi
73959 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
73960   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP\" was never defined.
73961 Usually this means the macro was only invoked conditionally." >&5
73962 $as_echo "$as_me: error: conditional \"WANT_NDMP\" was never defined.
73963 Usually this means the macro was only invoked conditionally." >&2;}
73964    { (exit 1); exit 1; }; }
73965 fi
73966 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
73967   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
73968 Usually this means the macro was only invoked conditionally." >&5
73969 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
73970 Usually this means the macro was only invoked conditionally." >&2;}
73971    { (exit 1); exit 1; }; }
73972 fi
73973 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
73974   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
73975 Usually this means the macro was only invoked conditionally." >&5
73976 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
73977 Usually this means the macro was only invoked conditionally." >&2;}
73978    { (exit 1); exit 1; }; }
73979 fi
73980 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
73981   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
73982 Usually this means the macro was only invoked conditionally." >&5
73983 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
73984 Usually this means the macro was only invoked conditionally." >&2;}
73985    { (exit 1); exit 1; }; }
73986 fi
73987 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
73988   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
73989 Usually this means the macro was only invoked conditionally." >&5
73990 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
73991 Usually this means the macro was only invoked conditionally." >&2;}
73992    { (exit 1); exit 1; }; }
73993 fi
73994 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
73995   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
73996 Usually this means the macro was only invoked conditionally." >&5
73997 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
73998 Usually this means the macro was only invoked conditionally." >&2;}
73999    { (exit 1); exit 1; }; }
74000 fi
74001 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
74002   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74003 Usually this means the macro was only invoked conditionally." >&5
74004 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74005 Usually this means the macro was only invoked conditionally." >&2;}
74006    { (exit 1); exit 1; }; }
74007 fi
74008 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
74009   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74010 Usually this means the macro was only invoked conditionally." >&5
74011 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74012 Usually this means the macro was only invoked conditionally." >&2;}
74013    { (exit 1); exit 1; }; }
74014 fi
74015 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
74016   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74017 Usually this means the macro was only invoked conditionally." >&5
74018 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74019 Usually this means the macro was only invoked conditionally." >&2;}
74020    { (exit 1); exit 1; }; }
74021 fi
74022 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
74023   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74024 Usually this means the macro was only invoked conditionally." >&5
74025 $as_echo "$as_me: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74026 Usually this means the macro was only invoked conditionally." >&2;}
74027    { (exit 1); exit 1; }; }
74028 fi
74029 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
74030   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
74031 Usually this means the macro was only invoked conditionally." >&5
74032 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
74033 Usually this means the macro was only invoked conditionally." >&2;}
74034    { (exit 1); exit 1; }; }
74035 fi
74036 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
74037   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74038 Usually this means the macro was only invoked conditionally." >&5
74039 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74040 Usually this means the macro was only invoked conditionally." >&2;}
74041    { (exit 1); exit 1; }; }
74042 fi
74043 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
74044   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74045 Usually this means the macro was only invoked conditionally." >&5
74046 $as_echo "$as_me: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74047 Usually this means the macro was only invoked conditionally." >&2;}
74048    { (exit 1); exit 1; }; }
74049 fi
74050 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
74051   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74052 Usually this means the macro was only invoked conditionally." >&5
74053 $as_echo "$as_me: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74054 Usually this means the macro was only invoked conditionally." >&2;}
74055    { (exit 1); exit 1; }; }
74056 fi
74057 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
74058   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74059 Usually this means the macro was only invoked conditionally." >&5
74060 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74061 Usually this means the macro was only invoked conditionally." >&2;}
74062    { (exit 1); exit 1; }; }
74063 fi
74064 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
74065   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74066 Usually this means the macro was only invoked conditionally." >&5
74067 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74068 Usually this means the macro was only invoked conditionally." >&2;}
74069    { (exit 1); exit 1; }; }
74070 fi
74071 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
74072   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74073 Usually this means the macro was only invoked conditionally." >&5
74074 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74075 Usually this means the macro was only invoked conditionally." >&2;}
74076    { (exit 1); exit 1; }; }
74077 fi
74078 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
74079   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74080 Usually this means the macro was only invoked conditionally." >&5
74081 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74082 Usually this means the macro was only invoked conditionally." >&2;}
74083    { (exit 1); exit 1; }; }
74084 fi
74085 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
74086   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74087 Usually this means the macro was only invoked conditionally." >&5
74088 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74089 Usually this means the macro was only invoked conditionally." >&2;}
74090    { (exit 1); exit 1; }; }
74091 fi
74092 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
74093   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74094 Usually this means the macro was only invoked conditionally." >&5
74095 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74096 Usually this means the macro was only invoked conditionally." >&2;}
74097    { (exit 1); exit 1; }; }
74098 fi
74099 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
74100   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
74101 Usually this means the macro was only invoked conditionally." >&5
74102 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
74103 Usually this means the macro was only invoked conditionally." >&2;}
74104    { (exit 1); exit 1; }; }
74105 fi
74106
74107 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
74108   { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
74109 Usually this means the macro was only invoked conditionally." >&5
74110 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
74111 Usually this means the macro was only invoked conditionally." >&2;}
74112    { (exit 1); exit 1; }; }
74113 fi
74114
74115 : ${CONFIG_STATUS=./config.status}
74116 ac_write_fail=0
74117 ac_clean_files_save=$ac_clean_files
74118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
74119 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
74120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
74121 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74122 #! $SHELL
74123 # Generated by $as_me.
74124 # Run this file to recreate the current configuration.
74125 # Compiler output produced by configure, useful for debugging
74126 # configure, is in config.log if it exists.
74127
74128 debug=false
74129 ac_cs_recheck=false
74130 ac_cs_silent=false
74131 SHELL=\${CONFIG_SHELL-$SHELL}
74132 _ACEOF
74133
74134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74135 ## --------------------- ##
74136 ## M4sh Initialization.  ##
74137 ## --------------------- ##
74138
74139 # Be more Bourne compatible
74140 DUALCASE=1; export DUALCASE # for MKS sh
74141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
74142   emulate sh
74143   NULLCMD=:
74144   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
74145   # is contrary to our usage.  Disable this feature.
74146   alias -g '${1+"$@"}'='"$@"'
74147   setopt NO_GLOB_SUBST
74148 else
74149   case `(set -o) 2>/dev/null` in
74150   *posix*) set -o posix ;;
74151 esac
74152
74153 fi
74154
74155
74156
74157
74158 # PATH needs CR
74159 # Avoid depending upon Character Ranges.
74160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
74161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
74162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
74163 as_cr_digits='0123456789'
74164 as_cr_alnum=$as_cr_Letters$as_cr_digits
74165
74166 as_nl='
74167 '
74168 export as_nl
74169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
74170 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
74171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
74172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
74173 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
74174   as_echo='printf %s\n'
74175   as_echo_n='printf %s'
74176 else
74177   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74178     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
74179     as_echo_n='/usr/ucb/echo -n'
74180   else
74181     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
74182     as_echo_n_body='eval
74183       arg=$1;
74184       case $arg in
74185       *"$as_nl"*)
74186         expr "X$arg" : "X\\(.*\\)$as_nl";
74187         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74188       esac;
74189       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74190     '
74191     export as_echo_n_body
74192     as_echo_n='sh -c $as_echo_n_body as_echo'
74193   fi
74194   export as_echo_body
74195   as_echo='sh -c $as_echo_body as_echo'
74196 fi
74197
74198 # The user is always right.
74199 if test "${PATH_SEPARATOR+set}" != set; then
74200   PATH_SEPARATOR=:
74201   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
74202     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74203       PATH_SEPARATOR=';'
74204   }
74205 fi
74206
74207 # Support unset when possible.
74208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
74209   as_unset=unset
74210 else
74211   as_unset=false
74212 fi
74213
74214
74215 # IFS
74216 # We need space, tab and new line, in precisely that order.  Quoting is
74217 # there to prevent editors from complaining about space-tab.
74218 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
74219 # splitting by setting IFS to empty value.)
74220 IFS=" ""        $as_nl"
74221
74222 # Find who we are.  Look in the path if we contain no directory separator.
74223 case $0 in
74224   *[\\/]* ) as_myself=$0 ;;
74225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74226 for as_dir in $PATH
74227 do
74228   IFS=$as_save_IFS
74229   test -z "$as_dir" && as_dir=.
74230   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
74231 done
74232 IFS=$as_save_IFS
74233
74234      ;;
74235 esac
74236 # We did not find ourselves, most probably we were run as `sh COMMAND'
74237 # in which case we are not to be found in the path.
74238 if test "x$as_myself" = x; then
74239   as_myself=$0
74240 fi
74241 if test ! -f "$as_myself"; then
74242   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
74243   { (exit 1); exit 1; }
74244 fi
74245
74246 # Work around bugs in pre-3.0 UWIN ksh.
74247 for as_var in ENV MAIL MAILPATH
74248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
74249 done
74250 PS1='$ '
74251 PS2='> '
74252 PS4='+ '
74253
74254 # NLS nuisances.
74255 LC_ALL=C
74256 export LC_ALL
74257 LANGUAGE=C
74258 export LANGUAGE
74259
74260 # Required to use basename.
74261 if expr a : '\(a\)' >/dev/null 2>&1 &&
74262    test "X`expr 00001 : '.*\(...\)'`" = X001; then
74263   as_expr=expr
74264 else
74265   as_expr=false
74266 fi
74267
74268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
74269   as_basename=basename
74270 else
74271   as_basename=false
74272 fi
74273
74274
74275 # Name of the executable.
74276 as_me=`$as_basename -- "$0" ||
74277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74278          X"$0" : 'X\(//\)$' \| \
74279          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
74280 $as_echo X/"$0" |
74281     sed '/^.*\/\([^/][^/]*\)\/*$/{
74282             s//\1/
74283             q
74284           }
74285           /^X\/\(\/\/\)$/{
74286             s//\1/
74287             q
74288           }
74289           /^X\/\(\/\).*/{
74290             s//\1/
74291             q
74292           }
74293           s/.*/./; q'`
74294
74295 # CDPATH.
74296 $as_unset CDPATH
74297
74298
74299
74300   as_lineno_1=$LINENO
74301   as_lineno_2=$LINENO
74302   test "x$as_lineno_1" != "x$as_lineno_2" &&
74303   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
74304
74305   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
74306   # uniformly replaced by the line number.  The first 'sed' inserts a
74307   # line-number line after each line using $LINENO; the second 'sed'
74308   # does the real work.  The second script uses 'N' to pair each
74309   # line-number line with the line containing $LINENO, and appends
74310   # trailing '-' during substitution so that $LINENO is not a special
74311   # case at line end.
74312   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
74313   # scripts with optimization help from Paolo Bonzini.  Blame Lee
74314   # E. McMahon (1931-1989) for sed's syntax.  :-)
74315   sed -n '
74316     p
74317     /[$]LINENO/=
74318   ' <$as_myself |
74319     sed '
74320       s/[$]LINENO.*/&-/
74321       t lineno
74322       b
74323       :lineno
74324       N
74325       :loop
74326       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
74327       t loop
74328       s/-\n.*//
74329     ' >$as_me.lineno &&
74330   chmod +x "$as_me.lineno" ||
74331     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
74332    { (exit 1); exit 1; }; }
74333
74334   # Don't try to exec as it changes $[0], causing all sort of problems
74335   # (the dirname of $[0] is not the place where we might find the
74336   # original and so on.  Autoconf is especially sensitive to this).
74337   . "./$as_me.lineno"
74338   # Exit status is that of the last command.
74339   exit
74340 }
74341
74342
74343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
74344   as_dirname=dirname
74345 else
74346   as_dirname=false
74347 fi
74348
74349 ECHO_C= ECHO_N= ECHO_T=
74350 case `echo -n x` in
74351 -n*)
74352   case `echo 'x\c'` in
74353   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
74354   *)   ECHO_C='\c';;
74355   esac;;
74356 *)
74357   ECHO_N='-n';;
74358 esac
74359 if expr a : '\(a\)' >/dev/null 2>&1 &&
74360    test "X`expr 00001 : '.*\(...\)'`" = X001; then
74361   as_expr=expr
74362 else
74363   as_expr=false
74364 fi
74365
74366 rm -f conf$$ conf$$.exe conf$$.file
74367 if test -d conf$$.dir; then
74368   rm -f conf$$.dir/conf$$.file
74369 else
74370   rm -f conf$$.dir
74371   mkdir conf$$.dir 2>/dev/null
74372 fi
74373 if (echo >conf$$.file) 2>/dev/null; then
74374   if ln -s conf$$.file conf$$ 2>/dev/null; then
74375     as_ln_s='ln -s'
74376     # ... but there are two gotchas:
74377     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
74378     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
74379     # In both cases, we have to default to `cp -p'.
74380     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
74381       as_ln_s='cp -p'
74382   elif ln conf$$.file conf$$ 2>/dev/null; then
74383     as_ln_s=ln
74384   else
74385     as_ln_s='cp -p'
74386   fi
74387 else
74388   as_ln_s='cp -p'
74389 fi
74390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
74391 rmdir conf$$.dir 2>/dev/null
74392
74393 if mkdir -p . 2>/dev/null; then
74394   as_mkdir_p=:
74395 else
74396   test -d ./-p && rmdir ./-p
74397   as_mkdir_p=false
74398 fi
74399
74400 if test -x / >/dev/null 2>&1; then
74401   as_test_x='test -x'
74402 else
74403   if ls -dL / >/dev/null 2>&1; then
74404     as_ls_L_option=L
74405   else
74406     as_ls_L_option=
74407   fi
74408   as_test_x='
74409     eval sh -c '\''
74410       if test -d "$1"; then
74411         test -d "$1/.";
74412       else
74413         case $1 in
74414         -*)set "./$1";;
74415         esac;
74416         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
74417         ???[sx]*):;;*)false;;esac;fi
74418     '\'' sh
74419   '
74420 fi
74421 as_executable_p=$as_test_x
74422
74423 # Sed expression to map a string onto a valid CPP name.
74424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
74425
74426 # Sed expression to map a string onto a valid variable name.
74427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
74428
74429
74430 exec 6>&1
74431
74432 # Save the log message, to keep $[0] and so on meaningful, and to
74433 # report actual input values of CONFIG_FILES etc. instead of their
74434 # values after options handling.
74435 ac_log="
74436 This file was extended by $as_me, which was
74437 generated by GNU Autoconf 2.63.  Invocation command line was
74438
74439   CONFIG_FILES    = $CONFIG_FILES
74440   CONFIG_HEADERS  = $CONFIG_HEADERS
74441   CONFIG_LINKS    = $CONFIG_LINKS
74442   CONFIG_COMMANDS = $CONFIG_COMMANDS
74443   $ $0 $@
74444
74445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
74446 "
74447
74448 _ACEOF
74449
74450 case $ac_config_files in *"
74451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
74452 esac
74453
74454 case $ac_config_headers in *"
74455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
74456 esac
74457
74458
74459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74460 # Files that config.status was made for.
74461 config_files="$ac_config_files"
74462 config_headers="$ac_config_headers"
74463 config_commands="$ac_config_commands"
74464
74465 _ACEOF
74466
74467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74468 ac_cs_usage="\
74469 \`$as_me' instantiates files from templates according to the
74470 current configuration.
74471
74472 Usage: $0 [OPTION]... [FILE]...
74473
74474   -h, --help       print this help, then exit
74475   -V, --version    print version number and configuration settings, then exit
74476   -q, --quiet, --silent
74477                    do not print progress messages
74478   -d, --debug      don't remove temporary files
74479       --recheck    update $as_me by reconfiguring in the same conditions
74480       --file=FILE[:TEMPLATE]
74481                    instantiate the configuration file FILE
74482       --header=FILE[:TEMPLATE]
74483                    instantiate the configuration header FILE
74484
74485 Configuration files:
74486 $config_files
74487
74488 Configuration headers:
74489 $config_headers
74490
74491 Configuration commands:
74492 $config_commands
74493
74494 Report bugs to <bug-autoconf@gnu.org>."
74495
74496 _ACEOF
74497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74498 ac_cs_version="\\
74499 config.status
74500 configured by $0, generated by GNU Autoconf 2.63,
74501   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
74502
74503 Copyright (C) 2008 Free Software Foundation, Inc.
74504 This config.status script is free software; the Free Software Foundation
74505 gives unlimited permission to copy, distribute and modify it."
74506
74507 ac_pwd='$ac_pwd'
74508 srcdir='$srcdir'
74509 INSTALL='$INSTALL'
74510 MKDIR_P='$MKDIR_P'
74511 AWK='$AWK'
74512 test -n "\$AWK" || AWK=awk
74513 _ACEOF
74514
74515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74516 # The default lists apply if the user does not specify any file.
74517 ac_need_defaults=:
74518 while test $# != 0
74519 do
74520   case $1 in
74521   --*=*)
74522     ac_option=`expr "X$1" : 'X\([^=]*\)='`
74523     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
74524     ac_shift=:
74525     ;;
74526   *)
74527     ac_option=$1
74528     ac_optarg=$2
74529     ac_shift=shift
74530     ;;
74531   esac
74532
74533   case $ac_option in
74534   # Handling of the options.
74535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
74536     ac_cs_recheck=: ;;
74537   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
74538     $as_echo "$ac_cs_version"; exit ;;
74539   --debug | --debu | --deb | --de | --d | -d )
74540     debug=: ;;
74541   --file | --fil | --fi | --f )
74542     $ac_shift
74543     case $ac_optarg in
74544     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74545     esac
74546     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
74547     ac_need_defaults=false;;
74548   --header | --heade | --head | --hea )
74549     $ac_shift
74550     case $ac_optarg in
74551     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74552     esac
74553     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
74554     ac_need_defaults=false;;
74555   --he | --h)
74556     # Conflict between --help and --header
74557     { $as_echo "$as_me: error: ambiguous option: $1
74558 Try \`$0 --help' for more information." >&2
74559    { (exit 1); exit 1; }; };;
74560   --help | --hel | -h )
74561     $as_echo "$ac_cs_usage"; exit ;;
74562   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
74563   | -silent | --silent | --silen | --sile | --sil | --si | --s)
74564     ac_cs_silent=: ;;
74565
74566   # This is an error.
74567   -*) { $as_echo "$as_me: error: unrecognized option: $1
74568 Try \`$0 --help' for more information." >&2
74569    { (exit 1); exit 1; }; } ;;
74570
74571   *) ac_config_targets="$ac_config_targets $1"
74572      ac_need_defaults=false ;;
74573
74574   esac
74575   shift
74576 done
74577
74578 ac_configure_extra_args=
74579
74580 if $ac_cs_silent; then
74581   exec 6>/dev/null
74582   ac_configure_extra_args="$ac_configure_extra_args --silent"
74583 fi
74584
74585 _ACEOF
74586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74587 if \$ac_cs_recheck; then
74588   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
74589   shift
74590   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
74591   CONFIG_SHELL='$SHELL'
74592   export CONFIG_SHELL
74593   exec "\$@"
74594 fi
74595
74596 _ACEOF
74597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74598 exec 5>>config.log
74599 {
74600   echo
74601   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
74602 ## Running $as_me. ##
74603 _ASBOX
74604   $as_echo "$ac_log"
74605 } >&5
74606
74607 _ACEOF
74608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74609 #
74610 # INIT-COMMANDS
74611 #
74612 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
74613 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
74614     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
74615     # from automake < 1.5.
74616     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
74617     # Capture the value of LINGUAS because we need it to compute CATALOGS.
74618     LINGUAS="${LINGUAS-%UNSET%}"
74619
74620
74621
74622 # The HP-UX ksh and POSIX shell print the target directory to stdout
74623 # if CDPATH is set.
74624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
74625
74626 sed_quote_subst='$sed_quote_subst'
74627 double_quote_subst='$double_quote_subst'
74628 delay_variable_subst='$delay_variable_subst'
74629 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
74630 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
74631 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
74632 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
74633 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
74634 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
74635 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
74636 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
74637 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
74638 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
74639 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
74640 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
74641 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
74642 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
74643 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
74644 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
74645 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
74646 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
74647 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
74648 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
74649 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
74650 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
74651 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
74652 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
74653 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
74654 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
74655 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
74656 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74657 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
74658 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
74659 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
74660 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74661 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
74662 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
74663 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74664 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74665 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74666 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
74667 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74668 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
74669 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
74670 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
74671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
74672 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"`'
74673 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"`'
74674 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
74675 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
74676 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
74677 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
74678 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
74679 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
74680 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
74681 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
74682 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
74683 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
74684 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
74685 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
74686 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
74687 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
74688 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
74689 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
74690 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74691 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74692 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
74693 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
74694 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74695 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74696 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
74697 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74698 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74699 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74700 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74701 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74702 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74703 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
74704 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74705 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74706 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74707 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
74708 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
74709 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
74710 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
74711 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
74712 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74713 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
74714 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
74715 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
74716 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
74717 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
74718 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74719 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74720 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74721 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74722 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
74723 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
74724 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
74725 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
74726 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
74727 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74728 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74729 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
74730 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74731 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
74732 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74733 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74734 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74735 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74736 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
74737 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
74738 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74739 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74740 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
74741 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
74742 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
74743 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
74744 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
74745 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
74746
74747 LTCC='$LTCC'
74748 LTCFLAGS='$LTCFLAGS'
74749 compiler='$compiler_DEFAULT'
74750
74751 # Quote evaled strings.
74752 for var in SED \
74753 GREP \
74754 EGREP \
74755 FGREP \
74756 LD \
74757 NM \
74758 LN_S \
74759 lt_SP2NL \
74760 lt_NL2SP \
74761 reload_flag \
74762 deplibs_check_method \
74763 file_magic_cmd \
74764 AR \
74765 AR_FLAGS \
74766 STRIP \
74767 RANLIB \
74768 CC \
74769 CFLAGS \
74770 compiler \
74771 lt_cv_sys_global_symbol_pipe \
74772 lt_cv_sys_global_symbol_to_cdecl \
74773 lt_cv_sys_global_symbol_to_c_name_address \
74774 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
74775 SHELL \
74776 ECHO \
74777 lt_prog_compiler_no_builtin_flag \
74778 lt_prog_compiler_wl \
74779 lt_prog_compiler_pic \
74780 lt_prog_compiler_static \
74781 lt_cv_prog_compiler_c_o \
74782 need_locks \
74783 DSYMUTIL \
74784 NMEDIT \
74785 LIPO \
74786 OTOOL \
74787 OTOOL64 \
74788 shrext_cmds \
74789 export_dynamic_flag_spec \
74790 whole_archive_flag_spec \
74791 compiler_needs_object \
74792 with_gnu_ld \
74793 allow_undefined_flag \
74794 no_undefined_flag \
74795 hardcode_libdir_flag_spec \
74796 hardcode_libdir_flag_spec_ld \
74797 hardcode_libdir_separator \
74798 fix_srcfile_path \
74799 exclude_expsyms \
74800 include_expsyms \
74801 file_list_spec \
74802 variables_saved_for_relink \
74803 libname_spec \
74804 library_names_spec \
74805 soname_spec \
74806 finish_eval \
74807 old_striplib \
74808 striplib; do
74809     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74810     *[\\\\\\\`\\"\\\$]*)
74811       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
74812       ;;
74813     *)
74814       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
74815       ;;
74816     esac
74817 done
74818
74819 # Double-quote double-evaled strings.
74820 for var in reload_cmds \
74821 old_postinstall_cmds \
74822 old_postuninstall_cmds \
74823 old_archive_cmds \
74824 extract_expsyms_cmds \
74825 old_archive_from_new_cmds \
74826 old_archive_from_expsyms_cmds \
74827 archive_cmds \
74828 archive_expsym_cmds \
74829 module_cmds \
74830 module_expsym_cmds \
74831 export_symbols_cmds \
74832 prelink_cmds \
74833 postinstall_cmds \
74834 postuninstall_cmds \
74835 finish_cmds \
74836 sys_lib_search_path_spec \
74837 sys_lib_dlsearch_path_spec; do
74838     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74839     *[\\\\\\\`\\"\\\$]*)
74840       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
74841       ;;
74842     *)
74843       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
74844       ;;
74845     esac
74846 done
74847
74848 # Fix-up fallback echo if it was mangled by the above quoting rules.
74849 case \$lt_ECHO in
74850 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
74851   ;;
74852 esac
74853
74854 ac_aux_dir='$ac_aux_dir'
74855 xsi_shell='$xsi_shell'
74856 lt_shell_append='$lt_shell_append'
74857
74858 # See if we are running on zsh, and set the options which allow our
74859 # commands through without removal of \ escapes INIT.
74860 if test -n "\${ZSH_VERSION+set}" ; then
74861    setopt NO_GLOB_SUBST
74862 fi
74863
74864
74865     PACKAGE='$PACKAGE'
74866     VERSION='$VERSION'
74867     TIMESTAMP='$TIMESTAMP'
74868     RM='$RM'
74869     ofile='$ofile'
74870
74871
74872
74873
74874 _ACEOF
74875
74876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74877
74878 # Handling of arguments.
74879 for ac_config_target in $ac_config_targets
74880 do
74881   case $ac_config_target in
74882     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
74883     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
74884     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
74885     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
74886     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
74887     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
74888     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
74889     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
74890     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
74891     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
74892     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
74893     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
74894     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
74895     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
74896     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
74897     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
74898     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
74899     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
74900     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
74901     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
74902     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
74903     "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
74904     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
74905     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
74906     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
74907     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
74908     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
74909
74910   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
74911 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
74912    { (exit 1); exit 1; }; };;
74913   esac
74914 done
74915
74916
74917 # If the user did not use the arguments to specify the items to instantiate,
74918 # then the envvar interface is used.  Set only those that are not.
74919 # We use the long form for the default assignment because of an extremely
74920 # bizarre bug on SunOS 4.1.3.
74921 if $ac_need_defaults; then
74922   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
74923   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
74924   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
74925 fi
74926
74927 # Have a temporary directory for convenience.  Make it in the build tree
74928 # simply because there is no reason against having it here, and in addition,
74929 # creating and moving files from /tmp can sometimes cause problems.
74930 # Hook for its removal unless debugging.
74931 # Note that there is a small window in which the directory will not be cleaned:
74932 # after its creation but before its name has been assigned to `$tmp'.
74933 $debug ||
74934 {
74935   tmp=
74936   trap 'exit_status=$?
74937   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
74938 ' 0
74939   trap '{ (exit 1); exit 1; }' 1 2 13 15
74940 }
74941 # Create a (secure) tmp directory for tmp files.
74942
74943 {
74944   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
74945   test -n "$tmp" && test -d "$tmp"
74946 }  ||
74947 {
74948   tmp=./conf$$-$RANDOM
74949   (umask 077 && mkdir "$tmp")
74950 } ||
74951 {
74952    $as_echo "$as_me: cannot create a temporary directory in ." >&2
74953    { (exit 1); exit 1; }
74954 }
74955
74956 # Set up the scripts for CONFIG_FILES section.
74957 # No need to generate them if there are no CONFIG_FILES.
74958 # This happens for instance with `./config.status config.h'.
74959 if test -n "$CONFIG_FILES"; then
74960
74961
74962 ac_cr='\r'
74963 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
74964 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
74965   ac_cs_awk_cr='\\r'
74966 else
74967   ac_cs_awk_cr=$ac_cr
74968 fi
74969
74970 echo 'BEGIN {' >"$tmp/subs1.awk" &&
74971 _ACEOF
74972
74973
74974 {
74975   echo "cat >conf$$subs.awk <<_ACEOF" &&
74976   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
74977   echo "_ACEOF"
74978 } >conf$$subs.sh ||
74979   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
74980 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
74981    { (exit 1); exit 1; }; }
74982 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
74983 ac_delim='%!_!# '
74984 for ac_last_try in false false false false false :; do
74985   . ./conf$$subs.sh ||
74986     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
74987 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
74988    { (exit 1); exit 1; }; }
74989
74990   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
74991   if test $ac_delim_n = $ac_delim_num; then
74992     break
74993   elif $ac_last_try; then
74994     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
74995 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
74996    { (exit 1); exit 1; }; }
74997   else
74998     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
74999   fi
75000 done
75001 rm -f conf$$subs.sh
75002
75003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75004 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
75005 _ACEOF
75006 sed -n '
75007 h
75008 s/^/S["/; s/!.*/"]=/
75009 p
75010 g
75011 s/^[^!]*!//
75012 :repl
75013 t repl
75014 s/'"$ac_delim"'$//
75015 t delim
75016 :nl
75017 h
75018 s/\(.\{148\}\).*/\1/
75019 t more1
75020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
75021 p
75022 n
75023 b repl
75024 :more1
75025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75026 p
75027 g
75028 s/.\{148\}//
75029 t nl
75030 :delim
75031 h
75032 s/\(.\{148\}\).*/\1/
75033 t more2
75034 s/["\\]/\\&/g; s/^/"/; s/$/"/
75035 p
75036 b
75037 :more2
75038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75039 p
75040 g
75041 s/.\{148\}//
75042 t delim
75043 ' <conf$$subs.awk | sed '
75044 /^[^""]/{
75045   N
75046   s/\n//
75047 }
75048 ' >>$CONFIG_STATUS || ac_write_fail=1
75049 rm -f conf$$subs.awk
75050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75051 _ACAWK
75052 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
75053   for (key in S) S_is_set[key] = 1
75054   FS = "\a"
75055
75056 }
75057 {
75058   line = $ 0
75059   nfields = split(line, field, "@")
75060   substed = 0
75061   len = length(field[1])
75062   for (i = 2; i < nfields; i++) {
75063     key = field[i]
75064     keylen = length(key)
75065     if (S_is_set[key]) {
75066       value = S[key]
75067       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
75068       len += length(value) + length(field[++i])
75069       substed = 1
75070     } else
75071       len += 1 + keylen
75072   }
75073
75074   print line
75075 }
75076
75077 _ACAWK
75078 _ACEOF
75079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
75081   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
75082 else
75083   cat
75084 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
75085   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
75086 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
75087    { (exit 1); exit 1; }; }
75088 _ACEOF
75089
75090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
75091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
75092 # trailing colons and then remove the whole line if VPATH becomes empty
75093 # (actually we leave an empty line to preserve line numbers).
75094 if test "x$srcdir" = x.; then
75095   ac_vpsub='/^[  ]*VPATH[        ]*=/{
75096 s/:*\$(srcdir):*/:/
75097 s/:*\${srcdir}:*/:/
75098 s/:*@srcdir@:*/:/
75099 s/^\([^=]*=[     ]*\):*/\1/
75100 s/:*$//
75101 s/^[^=]*=[       ]*$//
75102 }'
75103 fi
75104
75105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75106 fi # test -n "$CONFIG_FILES"
75107
75108 # Set up the scripts for CONFIG_HEADERS section.
75109 # No need to generate them if there are no CONFIG_HEADERS.
75110 # This happens for instance with `./config.status Makefile'.
75111 if test -n "$CONFIG_HEADERS"; then
75112 cat >"$tmp/defines.awk" <<\_ACAWK ||
75113 BEGIN {
75114 _ACEOF
75115
75116 # Transform confdefs.h into an awk script `defines.awk', embedded as
75117 # here-document in config.status, that substitutes the proper values into
75118 # config.h.in to produce config.h.
75119
75120 # Create a delimiter string that does not exist in confdefs.h, to ease
75121 # handling of long lines.
75122 ac_delim='%!_!# '
75123 for ac_last_try in false false :; do
75124   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
75125   if test -z "$ac_t"; then
75126     break
75127   elif $ac_last_try; then
75128     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
75129 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
75130    { (exit 1); exit 1; }; }
75131   else
75132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75133   fi
75134 done
75135
75136 # For the awk script, D is an array of macro values keyed by name,
75137 # likewise P contains macro parameters if any.  Preserve backslash
75138 # newline sequences.
75139
75140 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
75141 sed -n '
75142 s/.\{148\}/&'"$ac_delim"'/g
75143 t rset
75144 :rset
75145 s/^[     ]*#[    ]*define[       ][      ]*/ /
75146 t def
75147 d
75148 :def
75149 s/\\$//
75150 t bsnl
75151 s/["\\]/\\&/g
75152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
75153 D["\1"]=" \3"/p
75154 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
75155 d
75156 :bsnl
75157 s/["\\]/\\&/g
75158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
75159 D["\1"]=" \3\\\\\\n"\\/p
75160 t cont
75161 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
75162 t cont
75163 d
75164 :cont
75165 n
75166 s/.\{148\}/&'"$ac_delim"'/g
75167 t clear
75168 :clear
75169 s/\\$//
75170 t bsnlc
75171 s/["\\]/\\&/g; s/^/"/; s/$/"/p
75172 d
75173 :bsnlc
75174 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
75175 b cont
75176 ' <confdefs.h | sed '
75177 s/'"$ac_delim"'/"\\\
75178 "/g' >>$CONFIG_STATUS || ac_write_fail=1
75179
75180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75181   for (key in D) D_is_set[key] = 1
75182   FS = "\a"
75183 }
75184 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
75185   line = \$ 0
75186   split(line, arg, " ")
75187   if (arg[1] == "#") {
75188     defundef = arg[2]
75189     mac1 = arg[3]
75190   } else {
75191     defundef = substr(arg[1], 2)
75192     mac1 = arg[2]
75193   }
75194   split(mac1, mac2, "(") #)
75195   macro = mac2[1]
75196   prefix = substr(line, 1, index(line, defundef) - 1)
75197   if (D_is_set[macro]) {
75198     # Preserve the white space surrounding the "#".
75199     print prefix "define", macro P[macro] D[macro]
75200     next
75201   } else {
75202     # Replace #undef with comments.  This is necessary, for example,
75203     # in the case of _POSIX_SOURCE, which is predefined and required
75204     # on some systems where configure will not decide to define it.
75205     if (defundef == "undef") {
75206       print "/*", prefix defundef, macro, "*/"
75207       next
75208     }
75209   }
75210 }
75211 { print }
75212 _ACAWK
75213 _ACEOF
75214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75215   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
75216 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
75217    { (exit 1); exit 1; }; }
75218 fi # test -n "$CONFIG_HEADERS"
75219
75220
75221 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
75222 shift
75223 for ac_tag
75224 do
75225   case $ac_tag in
75226   :[FHLC]) ac_mode=$ac_tag; continue;;
75227   esac
75228   case $ac_mode$ac_tag in
75229   :[FHL]*:*);;
75230   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
75231 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
75232    { (exit 1); exit 1; }; };;
75233   :[FH]-) ac_tag=-:-;;
75234   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
75235   esac
75236   ac_save_IFS=$IFS
75237   IFS=:
75238   set x $ac_tag
75239   IFS=$ac_save_IFS
75240   shift
75241   ac_file=$1
75242   shift
75243
75244   case $ac_mode in
75245   :L) ac_source=$1;;
75246   :[FH])
75247     ac_file_inputs=
75248     for ac_f
75249     do
75250       case $ac_f in
75251       -) ac_f="$tmp/stdin";;
75252       *) # Look for the file first in the build tree, then in the source tree
75253          # (if the path is not absolute).  The absolute path cannot be DOS-style,
75254          # because $ac_f cannot contain `:'.
75255          test -f "$ac_f" ||
75256            case $ac_f in
75257            [\\/$]*) false;;
75258            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
75259            esac ||
75260            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
75261 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
75262    { (exit 1); exit 1; }; };;
75263       esac
75264       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
75265       ac_file_inputs="$ac_file_inputs '$ac_f'"
75266     done
75267
75268     # Let's still pretend it is `configure' which instantiates (i.e., don't
75269     # use $as_me), people would be surprised to read:
75270     #    /* config.h.  Generated by config.status.  */
75271     configure_input='Generated from '`
75272           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
75273         `' by configure.'
75274     if test x"$ac_file" != x-; then
75275       configure_input="$ac_file.  $configure_input"
75276       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
75277 $as_echo "$as_me: creating $ac_file" >&6;}
75278     fi
75279     # Neutralize special characters interpreted by sed in replacement strings.
75280     case $configure_input in #(
75281     *\&* | *\|* | *\\* )
75282        ac_sed_conf_input=`$as_echo "$configure_input" |
75283        sed 's/[\\\\&|]/\\\\&/g'`;; #(
75284     *) ac_sed_conf_input=$configure_input;;
75285     esac
75286
75287     case $ac_tag in
75288     *:-:* | *:-) cat >"$tmp/stdin" \
75289       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75290 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75291    { (exit 1); exit 1; }; } ;;
75292     esac
75293     ;;
75294   esac
75295
75296   ac_dir=`$as_dirname -- "$ac_file" ||
75297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75298          X"$ac_file" : 'X\(//\)[^/]' \| \
75299          X"$ac_file" : 'X\(//\)$' \| \
75300          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
75301 $as_echo X"$ac_file" |
75302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75303             s//\1/
75304             q
75305           }
75306           /^X\(\/\/\)[^/].*/{
75307             s//\1/
75308             q
75309           }
75310           /^X\(\/\/\)$/{
75311             s//\1/
75312             q
75313           }
75314           /^X\(\/\).*/{
75315             s//\1/
75316             q
75317           }
75318           s/.*/./; q'`
75319   { as_dir="$ac_dir"
75320   case $as_dir in #(
75321   -*) as_dir=./$as_dir;;
75322   esac
75323   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75324     as_dirs=
75325     while :; do
75326       case $as_dir in #(
75327       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75328       *) as_qdir=$as_dir;;
75329       esac
75330       as_dirs="'$as_qdir' $as_dirs"
75331       as_dir=`$as_dirname -- "$as_dir" ||
75332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75333          X"$as_dir" : 'X\(//\)[^/]' \| \
75334          X"$as_dir" : 'X\(//\)$' \| \
75335          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75336 $as_echo X"$as_dir" |
75337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75338             s//\1/
75339             q
75340           }
75341           /^X\(\/\/\)[^/].*/{
75342             s//\1/
75343             q
75344           }
75345           /^X\(\/\/\)$/{
75346             s//\1/
75347             q
75348           }
75349           /^X\(\/\).*/{
75350             s//\1/
75351             q
75352           }
75353           s/.*/./; q'`
75354       test -d "$as_dir" && break
75355     done
75356     test -z "$as_dirs" || eval "mkdir $as_dirs"
75357   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75358 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75359    { (exit 1); exit 1; }; }; }
75360   ac_builddir=.
75361
75362 case "$ac_dir" in
75363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
75364 *)
75365   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
75366   # A ".." for each directory in $ac_dir_suffix.
75367   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
75368   case $ac_top_builddir_sub in
75369   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
75370   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
75371   esac ;;
75372 esac
75373 ac_abs_top_builddir=$ac_pwd
75374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
75375 # for backward compatibility:
75376 ac_top_builddir=$ac_top_build_prefix
75377
75378 case $srcdir in
75379   .)  # We are building in place.
75380     ac_srcdir=.
75381     ac_top_srcdir=$ac_top_builddir_sub
75382     ac_abs_top_srcdir=$ac_pwd ;;
75383   [\\/]* | ?:[\\/]* )  # Absolute name.
75384     ac_srcdir=$srcdir$ac_dir_suffix;
75385     ac_top_srcdir=$srcdir
75386     ac_abs_top_srcdir=$srcdir ;;
75387   *) # Relative name.
75388     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
75389     ac_top_srcdir=$ac_top_build_prefix$srcdir
75390     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
75391 esac
75392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
75393
75394
75395   case $ac_mode in
75396   :F)
75397   #
75398   # CONFIG_FILE
75399   #
75400
75401   case $INSTALL in
75402   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
75403   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
75404   esac
75405   ac_MKDIR_P=$MKDIR_P
75406   case $MKDIR_P in
75407   [\\/$]* | ?:[\\/]* ) ;;
75408   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
75409   esac
75410 _ACEOF
75411
75412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75413 # If the template does not know about datarootdir, expand it.
75414 # FIXME: This hack should be removed a few years after 2.60.
75415 ac_datarootdir_hack=; ac_datarootdir_seen=
75416
75417 ac_sed_dataroot='
75418 /datarootdir/ {
75419   p
75420   q
75421 }
75422 /@datadir@/p
75423 /@docdir@/p
75424 /@infodir@/p
75425 /@localedir@/p
75426 /@mandir@/p
75427 '
75428 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
75429 *datarootdir*) ac_datarootdir_seen=yes;;
75430 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
75431   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
75432 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
75433 _ACEOF
75434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75435   ac_datarootdir_hack='
75436   s&@datadir@&$datadir&g
75437   s&@docdir@&$docdir&g
75438   s&@infodir@&$infodir&g
75439   s&@localedir@&$localedir&g
75440   s&@mandir@&$mandir&g
75441     s&\\\${datarootdir}&$datarootdir&g' ;;
75442 esac
75443 _ACEOF
75444
75445 # Neutralize VPATH when `$srcdir' = `.'.
75446 # Shell code in configure.ac might set extrasub.
75447 # FIXME: do we really want to maintain this feature?
75448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75449 ac_sed_extra="$ac_vpsub
75450 $extrasub
75451 _ACEOF
75452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75453 :t
75454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
75455 s|@configure_input@|$ac_sed_conf_input|;t t
75456 s&@top_builddir@&$ac_top_builddir_sub&;t t
75457 s&@top_build_prefix@&$ac_top_build_prefix&;t t
75458 s&@srcdir@&$ac_srcdir&;t t
75459 s&@abs_srcdir@&$ac_abs_srcdir&;t t
75460 s&@top_srcdir@&$ac_top_srcdir&;t t
75461 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
75462 s&@builddir@&$ac_builddir&;t t
75463 s&@abs_builddir@&$ac_abs_builddir&;t t
75464 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
75465 s&@INSTALL@&$ac_INSTALL&;t t
75466 s&@MKDIR_P@&$ac_MKDIR_P&;t t
75467 $ac_datarootdir_hack
75468 "
75469 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
75470   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75471 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75472    { (exit 1); exit 1; }; }
75473
75474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
75475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
75476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
75477   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75478 which seems to be undefined.  Please make sure it is defined." >&5
75479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75480 which seems to be undefined.  Please make sure it is defined." >&2;}
75481
75482   rm -f "$tmp/stdin"
75483   case $ac_file in
75484   -) cat "$tmp/out" && rm -f "$tmp/out";;
75485   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
75486   esac \
75487   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75488 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75489    { (exit 1); exit 1; }; }
75490  ;;
75491   :H)
75492   #
75493   # CONFIG_HEADER
75494   #
75495   if test x"$ac_file" != x-; then
75496     {
75497       $as_echo "/* $configure_input  */" \
75498       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
75499     } >"$tmp/config.h" \
75500       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75501 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75502    { (exit 1); exit 1; }; }
75503     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
75504       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
75505 $as_echo "$as_me: $ac_file is unchanged" >&6;}
75506     else
75507       rm -f "$ac_file"
75508       mv "$tmp/config.h" "$ac_file" \
75509         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75510 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75511    { (exit 1); exit 1; }; }
75512     fi
75513   else
75514     $as_echo "/* $configure_input  */" \
75515       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
75516       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
75517 $as_echo "$as_me: error: could not create -" >&2;}
75518    { (exit 1); exit 1; }; }
75519   fi
75520 # Compute "$ac_file"'s index in $config_headers.
75521 _am_arg="$ac_file"
75522 _am_stamp_count=1
75523 for _am_header in $config_headers :; do
75524   case $_am_header in
75525     $_am_arg | $_am_arg:* )
75526       break ;;
75527     * )
75528       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
75529   esac
75530 done
75531 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
75532 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75533          X"$_am_arg" : 'X\(//\)[^/]' \| \
75534          X"$_am_arg" : 'X\(//\)$' \| \
75535          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
75536 $as_echo X"$_am_arg" |
75537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75538             s//\1/
75539             q
75540           }
75541           /^X\(\/\/\)[^/].*/{
75542             s//\1/
75543             q
75544           }
75545           /^X\(\/\/\)$/{
75546             s//\1/
75547             q
75548           }
75549           /^X\(\/\).*/{
75550             s//\1/
75551             q
75552           }
75553           s/.*/./; q'`/stamp-h$_am_stamp_count
75554  ;;
75555
75556   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
75557 $as_echo "$as_me: executing $ac_file commands" >&6;}
75558  ;;
75559   esac
75560
75561
75562   case $ac_file$ac_mode in
75563     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
75564   # Autoconf 2.62 quotes --file arguments for eval, but not when files
75565   # are listed without --file.  Let's play safe and only enable the eval
75566   # if we detect the quoting.
75567   case $CONFIG_FILES in
75568   *\'*) eval set x "$CONFIG_FILES" ;;
75569   *)   set x $CONFIG_FILES ;;
75570   esac
75571   shift
75572   for mf
75573   do
75574     # Strip MF so we end up with the name of the file.
75575     mf=`echo "$mf" | sed -e 's/:.*$//'`
75576     # Check whether this is an Automake generated Makefile or not.
75577     # We used to match only the files named `Makefile.in', but
75578     # some people rename them; so instead we look at the file content.
75579     # Grep'ing the first line is not enough: some people post-process
75580     # each Makefile.in and add a new line on top of each file to say so.
75581     # Grep'ing the whole file is not good either: AIX grep has a line
75582     # limit of 2048, but all sed's we know have understand at least 4000.
75583     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
75584       dirpart=`$as_dirname -- "$mf" ||
75585 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75586          X"$mf" : 'X\(//\)[^/]' \| \
75587          X"$mf" : 'X\(//\)$' \| \
75588          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
75589 $as_echo X"$mf" |
75590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75591             s//\1/
75592             q
75593           }
75594           /^X\(\/\/\)[^/].*/{
75595             s//\1/
75596             q
75597           }
75598           /^X\(\/\/\)$/{
75599             s//\1/
75600             q
75601           }
75602           /^X\(\/\).*/{
75603             s//\1/
75604             q
75605           }
75606           s/.*/./; q'`
75607     else
75608       continue
75609     fi
75610     # Extract the definition of DEPDIR, am__include, and am__quote
75611     # from the Makefile without running `make'.
75612     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
75613     test -z "$DEPDIR" && continue
75614     am__include=`sed -n 's/^am__include = //p' < "$mf"`
75615     test -z "am__include" && continue
75616     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
75617     # When using ansi2knr, U may be empty or an underscore; expand it
75618     U=`sed -n 's/^U = //p' < "$mf"`
75619     # Find all dependency output files, they are included files with
75620     # $(DEPDIR) in their names.  We invoke sed twice because it is the
75621     # simplest approach to changing $(DEPDIR) to its actual value in the
75622     # expansion.
75623     for file in `sed -n "
75624       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
75625          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
75626       # Make sure the directory exists.
75627       test -f "$dirpart/$file" && continue
75628       fdir=`$as_dirname -- "$file" ||
75629 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75630          X"$file" : 'X\(//\)[^/]' \| \
75631          X"$file" : 'X\(//\)$' \| \
75632          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
75633 $as_echo X"$file" |
75634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75635             s//\1/
75636             q
75637           }
75638           /^X\(\/\/\)[^/].*/{
75639             s//\1/
75640             q
75641           }
75642           /^X\(\/\/\)$/{
75643             s//\1/
75644             q
75645           }
75646           /^X\(\/\).*/{
75647             s//\1/
75648             q
75649           }
75650           s/.*/./; q'`
75651       { as_dir=$dirpart/$fdir
75652   case $as_dir in #(
75653   -*) as_dir=./$as_dir;;
75654   esac
75655   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75656     as_dirs=
75657     while :; do
75658       case $as_dir in #(
75659       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75660       *) as_qdir=$as_dir;;
75661       esac
75662       as_dirs="'$as_qdir' $as_dirs"
75663       as_dir=`$as_dirname -- "$as_dir" ||
75664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75665          X"$as_dir" : 'X\(//\)[^/]' \| \
75666          X"$as_dir" : 'X\(//\)$' \| \
75667          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75668 $as_echo X"$as_dir" |
75669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75670             s//\1/
75671             q
75672           }
75673           /^X\(\/\/\)[^/].*/{
75674             s//\1/
75675             q
75676           }
75677           /^X\(\/\/\)$/{
75678             s//\1/
75679             q
75680           }
75681           /^X\(\/\).*/{
75682             s//\1/
75683             q
75684           }
75685           s/.*/./; q'`
75686       test -d "$as_dir" && break
75687     done
75688     test -z "$as_dirs" || eval "mkdir $as_dirs"
75689   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75690 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75691    { (exit 1); exit 1; }; }; }
75692       # echo "creating $dirpart/$file"
75693       echo '# dummy' > "$dirpart/$file"
75694     done
75695   done
75696 }
75697  ;;
75698     "po-directories":C)
75699     for ac_file in $CONFIG_FILES; do
75700       # Support "outfile[:infile[:infile...]]"
75701       case "$ac_file" in
75702         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
75703       esac
75704       # PO directories have a Makefile.in generated from Makefile.in.in.
75705       case "$ac_file" in */Makefile.in)
75706         # Adjust a relative srcdir.
75707         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
75708         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
75709         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
75710         # In autoconf-2.13 it is called $ac_given_srcdir.
75711         # In autoconf-2.50 it is called $srcdir.
75712         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
75713         case "$ac_given_srcdir" in
75714           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
75715           /*) top_srcdir="$ac_given_srcdir" ;;
75716           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
75717         esac
75718         # Treat a directory as a PO directory if and only if it has a
75719         # POTFILES.in file. This allows packages to have multiple PO
75720         # directories under different names or in different locations.
75721         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
75722           rm -f "$ac_dir/POTFILES"
75723           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
75724           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
75725           POMAKEFILEDEPS="POTFILES.in"
75726           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
75727           # on $ac_dir but don't depend on user-specified configuration
75728           # parameters.
75729           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
75730             # The LINGUAS file contains the set of available languages.
75731             if test -n "$OBSOLETE_ALL_LINGUAS"; then
75732               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
75733             fi
75734             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
75735             # Hide the ALL_LINGUAS assigment from automake < 1.5.
75736             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
75737             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
75738           else
75739             # The set of available languages was given in configure.in.
75740             # Hide the ALL_LINGUAS assigment from automake < 1.5.
75741             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
75742           fi
75743           # Compute POFILES
75744           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
75745           # Compute UPDATEPOFILES
75746           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
75747           # Compute DUMMYPOFILES
75748           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
75749           # Compute GMOFILES
75750           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
75751           case "$ac_given_srcdir" in
75752             .) srcdirpre= ;;
75753             *) srcdirpre='$(srcdir)/' ;;
75754           esac
75755           POFILES=
75756           UPDATEPOFILES=
75757           DUMMYPOFILES=
75758           GMOFILES=
75759           for lang in $ALL_LINGUAS; do
75760             POFILES="$POFILES $srcdirpre$lang.po"
75761             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
75762             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
75763             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
75764           done
75765           # CATALOGS depends on both $ac_dir and the user's LINGUAS
75766           # environment variable.
75767           INST_LINGUAS=
75768           if test -n "$ALL_LINGUAS"; then
75769             for presentlang in $ALL_LINGUAS; do
75770               useit=no
75771               if test "%UNSET%" != "$LINGUAS"; then
75772                 desiredlanguages="$LINGUAS"
75773               else
75774                 desiredlanguages="$ALL_LINGUAS"
75775               fi
75776               for desiredlang in $desiredlanguages; do
75777                 # Use the presentlang catalog if desiredlang is
75778                 #   a. equal to presentlang, or
75779                 #   b. a variant of presentlang (because in this case,
75780                 #      presentlang can be used as a fallback for messages
75781                 #      which are not translated in the desiredlang catalog).
75782                 case "$desiredlang" in
75783                   "$presentlang"*) useit=yes;;
75784                 esac
75785               done
75786               if test $useit = yes; then
75787                 INST_LINGUAS="$INST_LINGUAS $presentlang"
75788               fi
75789             done
75790           fi
75791           CATALOGS=
75792           if test -n "$INST_LINGUAS"; then
75793             for lang in $INST_LINGUAS; do
75794               CATALOGS="$CATALOGS $lang.gmo"
75795             done
75796           fi
75797           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
75798           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"
75799           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
75800             if test -f "$f"; then
75801               case "$f" in
75802                 *.orig | *.bak | *~) ;;
75803                 *) cat "$f" >> "$ac_dir/Makefile" ;;
75804               esac
75805             fi
75806           done
75807         fi
75808         ;;
75809       esac
75810     done ;;
75811     "libtool":C)
75812
75813     # See if we are running on zsh, and set the options which allow our
75814     # commands through without removal of \ escapes.
75815     if test -n "${ZSH_VERSION+set}" ; then
75816       setopt NO_GLOB_SUBST
75817     fi
75818
75819     cfgfile="${ofile}T"
75820     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
75821     $RM "$cfgfile"
75822
75823     cat <<_LT_EOF >> "$cfgfile"
75824 #! $SHELL
75825
75826 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
75827 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
75828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
75829 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
75830 #
75831 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
75832 #                 2006, 2007, 2008 Free Software Foundation, Inc.
75833 #   Written by Gordon Matzigkeit, 1996
75834 #
75835 #   This file is part of GNU Libtool.
75836 #
75837 # GNU Libtool is free software; you can redistribute it and/or
75838 # modify it under the terms of the GNU General Public License as
75839 # published by the Free Software Foundation; either version 2 of
75840 # the License, or (at your option) any later version.
75841 #
75842 # As a special exception to the GNU General Public License,
75843 # if you distribute this file as part of a program or library that
75844 # is built using GNU Libtool, you may include this file under the
75845 # same distribution terms that you use for the rest of that program.
75846 #
75847 # GNU Libtool is distributed in the hope that it will be useful,
75848 # but WITHOUT ANY WARRANTY; without even the implied warranty of
75849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
75850 # GNU General Public License for more details.
75851 #
75852 # You should have received a copy of the GNU General Public License
75853 # along with GNU Libtool; see the file COPYING.  If not, a copy
75854 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
75855 # obtained by writing to the Free Software Foundation, Inc.,
75856 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
75857
75858
75859 # The names of the tagged configurations supported by this script.
75860 available_tags=""
75861
75862 # ### BEGIN LIBTOOL CONFIG
75863
75864 # Which release of libtool.m4 was used?
75865 macro_version=$macro_version
75866 macro_revision=$macro_revision
75867
75868 # Whether or not to build shared libraries.
75869 build_libtool_libs=$enable_shared
75870
75871 # Whether or not to build static libraries.
75872 build_old_libs=$enable_static
75873
75874 # What type of objects to build.
75875 pic_mode=$pic_mode
75876
75877 # Whether or not to optimize for fast installation.
75878 fast_install=$enable_fast_install
75879
75880 # The host system.
75881 host_alias=$host_alias
75882 host=$host
75883 host_os=$host_os
75884
75885 # The build system.
75886 build_alias=$build_alias
75887 build=$build
75888 build_os=$build_os
75889
75890 # A sed program that does not truncate output.
75891 SED=$lt_SED
75892
75893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
75894 Xsed="\$SED -e 1s/^X//"
75895
75896 # A grep program that handles long lines.
75897 GREP=$lt_GREP
75898
75899 # An ERE matcher.
75900 EGREP=$lt_EGREP
75901
75902 # A literal string matcher.
75903 FGREP=$lt_FGREP
75904
75905 # A BSD- or MS-compatible name lister.
75906 NM=$lt_NM
75907
75908 # Whether we need soft or hard links.
75909 LN_S=$lt_LN_S
75910
75911 # What is the maximum length of a command?
75912 max_cmd_len=$max_cmd_len
75913
75914 # Object file suffix (normally "o").
75915 objext=$ac_objext
75916
75917 # Executable file suffix (normally "").
75918 exeext=$exeext
75919
75920 # whether the shell understands "unset".
75921 lt_unset=$lt_unset
75922
75923 # turn spaces into newlines.
75924 SP2NL=$lt_lt_SP2NL
75925
75926 # turn newlines into spaces.
75927 NL2SP=$lt_lt_NL2SP
75928
75929 # How to create reloadable object files.
75930 reload_flag=$lt_reload_flag
75931 reload_cmds=$lt_reload_cmds
75932
75933 # Method to check whether dependent libraries are shared objects.
75934 deplibs_check_method=$lt_deplibs_check_method
75935
75936 # Command to use when deplibs_check_method == "file_magic".
75937 file_magic_cmd=$lt_file_magic_cmd
75938
75939 # The archiver.
75940 AR=$lt_AR
75941 AR_FLAGS=$lt_AR_FLAGS
75942
75943 # A symbol stripping program.
75944 STRIP=$lt_STRIP
75945
75946 # Commands used to install an old-style archive.
75947 RANLIB=$lt_RANLIB
75948 old_postinstall_cmds=$lt_old_postinstall_cmds
75949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
75950
75951 # A C compiler.
75952 LTCC=$lt_CC
75953
75954 # LTCC compiler flags.
75955 LTCFLAGS=$lt_CFLAGS
75956
75957 # Take the output of nm and produce a listing of raw symbols and C names.
75958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
75959
75960 # Transform the output of nm in a proper C declaration.
75961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
75962
75963 # Transform the output of nm in a C name address pair.
75964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
75965
75966 # Transform the output of nm in a C name address pair when lib prefix is needed.
75967 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
75968
75969 # The name of the directory that contains temporary libtool files.
75970 objdir=$objdir
75971
75972 # Shell to use when invoking shell scripts.
75973 SHELL=$lt_SHELL
75974
75975 # An echo program that does not interpret backslashes.
75976 ECHO=$lt_ECHO
75977
75978 # Used to examine libraries when file_magic_cmd begins with "file".
75979 MAGIC_CMD=$MAGIC_CMD
75980
75981 # Must we lock files when doing compilation?
75982 need_locks=$lt_need_locks
75983
75984 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
75985 DSYMUTIL=$lt_DSYMUTIL
75986
75987 # Tool to change global to local symbols on Mac OS X.
75988 NMEDIT=$lt_NMEDIT
75989
75990 # Tool to manipulate fat objects and archives on Mac OS X.
75991 LIPO=$lt_LIPO
75992
75993 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
75994 OTOOL=$lt_OTOOL
75995
75996 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
75997 OTOOL64=$lt_OTOOL64
75998
75999 # Old archive suffix (normally "a").
76000 libext=$libext
76001
76002 # Shared library suffix (normally ".so").
76003 shrext_cmds=$lt_shrext_cmds
76004
76005 # The commands to extract the exported symbol list from a shared archive.
76006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
76007
76008 # Variables whose values should be saved in libtool wrapper scripts and
76009 # restored at link time.
76010 variables_saved_for_relink=$lt_variables_saved_for_relink
76011
76012 # Do we need the "lib" prefix for modules?
76013 need_lib_prefix=$need_lib_prefix
76014
76015 # Do we need a version for libraries?
76016 need_version=$need_version
76017
76018 # Library versioning type.
76019 version_type=$version_type
76020
76021 # Shared library runtime path variable.
76022 runpath_var=$runpath_var
76023
76024 # Shared library path variable.
76025 shlibpath_var=$shlibpath_var
76026
76027 # Is shlibpath searched before the hard-coded library search path?
76028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
76029
76030 # Format of library name prefix.
76031 libname_spec=$lt_libname_spec
76032
76033 # List of archive names.  First name is the real one, the rest are links.
76034 # The last name is the one that the linker finds with -lNAME
76035 library_names_spec=$lt_library_names_spec
76036
76037 # The coded name of the library, if different from the real name.
76038 soname_spec=$lt_soname_spec
76039
76040 # Command to use after installation of a shared archive.
76041 postinstall_cmds=$lt_postinstall_cmds
76042
76043 # Command to use after uninstallation of a shared archive.
76044 postuninstall_cmds=$lt_postuninstall_cmds
76045
76046 # Commands used to finish a libtool library installation in a directory.
76047 finish_cmds=$lt_finish_cmds
76048
76049 # As "finish_cmds", except a single script fragment to be evaled but
76050 # not shown.
76051 finish_eval=$lt_finish_eval
76052
76053 # Whether we should hardcode library paths into libraries.
76054 hardcode_into_libs=$hardcode_into_libs
76055
76056 # Compile-time system search path for libraries.
76057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
76058
76059 # Run-time system search path for libraries.
76060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
76061
76062 # Whether dlopen is supported.
76063 dlopen_support=$enable_dlopen
76064
76065 # Whether dlopen of programs is supported.
76066 dlopen_self=$enable_dlopen_self
76067
76068 # Whether dlopen of statically linked programs is supported.
76069 dlopen_self_static=$enable_dlopen_self_static
76070
76071 # Commands to strip libraries.
76072 old_striplib=$lt_old_striplib
76073 striplib=$lt_striplib
76074
76075
76076 # The linker used to build libraries.
76077 LD=$lt_LD
76078
76079 # Commands used to build an old-style archive.
76080 old_archive_cmds=$lt_old_archive_cmds
76081
76082 # A language specific compiler.
76083 CC=$lt_compiler
76084
76085 # Is the compiler the GNU compiler?
76086 with_gcc=$GCC
76087
76088 # Compiler flag to turn off builtin functions.
76089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
76090
76091 # How to pass a linker flag through the compiler.
76092 wl=$lt_lt_prog_compiler_wl
76093
76094 # Additional compiler flags for building library objects.
76095 pic_flag=$lt_lt_prog_compiler_pic
76096
76097 # Compiler flag to prevent dynamic linking.
76098 link_static_flag=$lt_lt_prog_compiler_static
76099
76100 # Does compiler simultaneously support -c and -o options?
76101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
76102
76103 # Whether or not to add -lc for building shared libraries.
76104 build_libtool_need_lc=$archive_cmds_need_lc
76105
76106 # Whether or not to disallow shared libs when runtime libs are static.
76107 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
76108
76109 # Compiler flag to allow reflexive dlopens.
76110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
76111
76112 # Compiler flag to generate shared objects directly from archives.
76113 whole_archive_flag_spec=$lt_whole_archive_flag_spec
76114
76115 # Whether the compiler copes with passing no objects directly.
76116 compiler_needs_object=$lt_compiler_needs_object
76117
76118 # Create an old-style archive from a shared archive.
76119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
76120
76121 # Create a temporary old-style archive to link instead of a shared archive.
76122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
76123
76124 # Commands used to build a shared archive.
76125 archive_cmds=$lt_archive_cmds
76126 archive_expsym_cmds=$lt_archive_expsym_cmds
76127
76128 # Commands used to build a loadable module if different from building
76129 # a shared archive.
76130 module_cmds=$lt_module_cmds
76131 module_expsym_cmds=$lt_module_expsym_cmds
76132
76133 # Whether we are building with GNU ld or not.
76134 with_gnu_ld=$lt_with_gnu_ld
76135
76136 # Flag that allows shared libraries with undefined symbols to be built.
76137 allow_undefined_flag=$lt_allow_undefined_flag
76138
76139 # Flag that enforces no undefined symbols.
76140 no_undefined_flag=$lt_no_undefined_flag
76141
76142 # Flag to hardcode \$libdir into a binary during linking.
76143 # This must work even if \$libdir does not exist
76144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
76145
76146 # If ld is used when linking, flag to hardcode \$libdir into a binary
76147 # during linking.  This must work even if \$libdir does not exist.
76148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
76149
76150 # Whether we need a single "-rpath" flag with a separated argument.
76151 hardcode_libdir_separator=$lt_hardcode_libdir_separator
76152
76153 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76154 # DIR into the resulting binary.
76155 hardcode_direct=$hardcode_direct
76156
76157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76158 # DIR into the resulting binary and the resulting library dependency is
76159 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
76160 # library is relocated.
76161 hardcode_direct_absolute=$hardcode_direct_absolute
76162
76163 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
76164 # into the resulting binary.
76165 hardcode_minus_L=$hardcode_minus_L
76166
76167 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
76168 # into the resulting binary.
76169 hardcode_shlibpath_var=$hardcode_shlibpath_var
76170
76171 # Set to "yes" if building a shared library automatically hardcodes DIR
76172 # into the library and all subsequent libraries and executables linked
76173 # against it.
76174 hardcode_automatic=$hardcode_automatic
76175
76176 # Set to yes if linker adds runtime paths of dependent libraries
76177 # to runtime path list.
76178 inherit_rpath=$inherit_rpath
76179
76180 # Whether libtool must link a program against all its dependency libraries.
76181 link_all_deplibs=$link_all_deplibs
76182
76183 # Fix the shell variable \$srcfile for the compiler.
76184 fix_srcfile_path=$lt_fix_srcfile_path
76185
76186 # Set to "yes" if exported symbols are required.
76187 always_export_symbols=$always_export_symbols
76188
76189 # The commands to list exported symbols.
76190 export_symbols_cmds=$lt_export_symbols_cmds
76191
76192 # Symbols that should not be listed in the preloaded symbols.
76193 exclude_expsyms=$lt_exclude_expsyms
76194
76195 # Symbols that must always be exported.
76196 include_expsyms=$lt_include_expsyms
76197
76198 # Commands necessary for linking programs (against libraries) with templates.
76199 prelink_cmds=$lt_prelink_cmds
76200
76201 # Specify filename containing input files.
76202 file_list_spec=$lt_file_list_spec
76203
76204 # How to hardcode a shared library path into an executable.
76205 hardcode_action=$hardcode_action
76206
76207 # ### END LIBTOOL CONFIG
76208
76209 _LT_EOF
76210
76211   case $host_os in
76212   aix3*)
76213     cat <<\_LT_EOF >> "$cfgfile"
76214 # AIX sometimes has problems with the GCC collect2 program.  For some
76215 # reason, if we set the COLLECT_NAMES environment variable, the problems
76216 # vanish in a puff of smoke.
76217 if test "X${COLLECT_NAMES+set}" != Xset; then
76218   COLLECT_NAMES=
76219   export COLLECT_NAMES
76220 fi
76221 _LT_EOF
76222     ;;
76223   esac
76224
76225
76226 ltmain="$ac_aux_dir/ltmain.sh"
76227
76228
76229   # We use sed instead of cat because bash on DJGPP gets confused if
76230   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
76231   # text mode, it properly converts lines to CR/LF.  This bash problem
76232   # is reportedly fixed, but why not run on old versions too?
76233   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
76234     || (rm -f "$cfgfile"; exit 1)
76235
76236   case $xsi_shell in
76237   yes)
76238     cat << \_LT_EOF >> "$cfgfile"
76239
76240 # func_dirname file append nondir_replacement
76241 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
76242 # otherwise set result to NONDIR_REPLACEMENT.
76243 func_dirname ()
76244 {
76245   case ${1} in
76246     */*) func_dirname_result="${1%/*}${2}" ;;
76247     *  ) func_dirname_result="${3}" ;;
76248   esac
76249 }
76250
76251 # func_basename file
76252 func_basename ()
76253 {
76254   func_basename_result="${1##*/}"
76255 }
76256
76257 # func_dirname_and_basename file append nondir_replacement
76258 # perform func_basename and func_dirname in a single function
76259 # call:
76260 #   dirname:  Compute the dirname of FILE.  If nonempty,
76261 #             add APPEND to the result, otherwise set result
76262 #             to NONDIR_REPLACEMENT.
76263 #             value returned in "$func_dirname_result"
76264 #   basename: Compute filename of FILE.
76265 #             value retuned in "$func_basename_result"
76266 # Implementation must be kept synchronized with func_dirname
76267 # and func_basename. For efficiency, we do not delegate to
76268 # those functions but instead duplicate the functionality here.
76269 func_dirname_and_basename ()
76270 {
76271   case ${1} in
76272     */*) func_dirname_result="${1%/*}${2}" ;;
76273     *  ) func_dirname_result="${3}" ;;
76274   esac
76275   func_basename_result="${1##*/}"
76276 }
76277
76278 # func_stripname prefix suffix name
76279 # strip PREFIX and SUFFIX off of NAME.
76280 # PREFIX and SUFFIX must not contain globbing or regex special
76281 # characters, hashes, percent signs, but SUFFIX may contain a leading
76282 # dot (in which case that matches only a dot).
76283 func_stripname ()
76284 {
76285   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
76286   # positional parameters, so assign one to ordinary parameter first.
76287   func_stripname_result=${3}
76288   func_stripname_result=${func_stripname_result#"${1}"}
76289   func_stripname_result=${func_stripname_result%"${2}"}
76290 }
76291
76292 # func_opt_split
76293 func_opt_split ()
76294 {
76295   func_opt_split_opt=${1%%=*}
76296   func_opt_split_arg=${1#*=}
76297 }
76298
76299 # func_lo2o object
76300 func_lo2o ()
76301 {
76302   case ${1} in
76303     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
76304     *)    func_lo2o_result=${1} ;;
76305   esac
76306 }
76307
76308 # func_xform libobj-or-source
76309 func_xform ()
76310 {
76311   func_xform_result=${1%.*}.lo
76312 }
76313
76314 # func_arith arithmetic-term...
76315 func_arith ()
76316 {
76317   func_arith_result=$(( $* ))
76318 }
76319
76320 # func_len string
76321 # STRING may not start with a hyphen.
76322 func_len ()
76323 {
76324   func_len_result=${#1}
76325 }
76326
76327 _LT_EOF
76328     ;;
76329   *) # Bourne compatible functions.
76330     cat << \_LT_EOF >> "$cfgfile"
76331
76332 # func_dirname file append nondir_replacement
76333 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
76334 # otherwise set result to NONDIR_REPLACEMENT.
76335 func_dirname ()
76336 {
76337   # Extract subdirectory from the argument.
76338   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
76339   if test "X$func_dirname_result" = "X${1}"; then
76340     func_dirname_result="${3}"
76341   else
76342     func_dirname_result="$func_dirname_result${2}"
76343   fi
76344 }
76345
76346 # func_basename file
76347 func_basename ()
76348 {
76349   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
76350 }
76351
76352
76353 # func_stripname prefix suffix name
76354 # strip PREFIX and SUFFIX off of NAME.
76355 # PREFIX and SUFFIX must not contain globbing or regex special
76356 # characters, hashes, percent signs, but SUFFIX may contain a leading
76357 # dot (in which case that matches only a dot).
76358 # func_strip_suffix prefix name
76359 func_stripname ()
76360 {
76361   case ${2} in
76362     .*) func_stripname_result=`$ECHO "X${3}" \
76363            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
76364     *)  func_stripname_result=`$ECHO "X${3}" \
76365            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
76366   esac
76367 }
76368
76369 # sed scripts:
76370 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
76371 my_sed_long_arg='1s/^-[^=]*=//'
76372
76373 # func_opt_split
76374 func_opt_split ()
76375 {
76376   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
76377   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
76378 }
76379
76380 # func_lo2o object
76381 func_lo2o ()
76382 {
76383   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
76384 }
76385
76386 # func_xform libobj-or-source
76387 func_xform ()
76388 {
76389   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
76390 }
76391
76392 # func_arith arithmetic-term...
76393 func_arith ()
76394 {
76395   func_arith_result=`expr "$@"`
76396 }
76397
76398 # func_len string
76399 # STRING may not start with a hyphen.
76400 func_len ()
76401 {
76402   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
76403 }
76404
76405 _LT_EOF
76406 esac
76407
76408 case $lt_shell_append in
76409   yes)
76410     cat << \_LT_EOF >> "$cfgfile"
76411
76412 # func_append var value
76413 # Append VALUE to the end of shell variable VAR.
76414 func_append ()
76415 {
76416   eval "$1+=\$2"
76417 }
76418 _LT_EOF
76419     ;;
76420   *)
76421     cat << \_LT_EOF >> "$cfgfile"
76422
76423 # func_append var value
76424 # Append VALUE to the end of shell variable VAR.
76425 func_append ()
76426 {
76427   eval "$1=\$$1\$2"
76428 }
76429
76430 _LT_EOF
76431     ;;
76432   esac
76433
76434
76435   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
76436     || (rm -f "$cfgfile"; exit 1)
76437
76438   mv -f "$cfgfile" "$ofile" ||
76439     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
76440   chmod +x "$ofile"
76441
76442  ;;
76443
76444   esac
76445 done # for ac_tag
76446
76447
76448 { (exit 0); exit 0; }
76449 _ACEOF
76450 chmod +x $CONFIG_STATUS
76451 ac_clean_files=$ac_clean_files_save
76452
76453 test $ac_write_fail = 0 ||
76454   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
76455 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
76456    { (exit 1); exit 1; }; }
76457
76458
76459 # configure is writing to config.log, and then calls config.status.
76460 # config.status does its own redirection, appending to config.log.
76461 # Unfortunately, on DOS this fails, as config.log is still kept open
76462 # by configure, so config.status won't be able to write to it; its
76463 # output is simply discarded.  So we exec the FD to /dev/null,
76464 # effectively closing config.log, so it can be properly (re)opened and
76465 # appended to by config.status.  When coming back to configure, we
76466 # need to make the FD available again.
76467 if test "$no_create" != yes; then
76468   ac_cs_success=:
76469   ac_config_status_args=
76470   test "$silent" = yes &&
76471     ac_config_status_args="$ac_config_status_args --quiet"
76472   exec 5>/dev/null
76473   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
76474   exec 5>>config.log
76475   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
76476   # would make configure fail if this is the last instruction.
76477   $ac_cs_success || { (exit 1); exit 1; }
76478 fi
76479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
76480   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
76481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
76482 fi
76483
76484
76485
76486     echo "Compiler Flags:"
76487     echo "  CFLAGS: ${CFLAGS-(none)}"
76488     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
76489     echo "  LDFLAGS: ${LDFLAGS-(none)}"
76490     echo "  LIBS: ${LIBS-(none)}"
76491
76492
76493     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
76494
76495
76496     echo "Working IPv6:" $WORKING_IPV6
76497
76498
76499     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
76500
76501
76502     echo "Directories:"
76503     echo "  Application: $APPLICATION_DIR"
76504     echo "  Configuration: $CONFIG_DIR"
76505     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
76506     echo "  Perl modules (amperldir): $amperldir"
76507     echo "  Template and example data files (amdatadir): $amdatadir"
76508     echo "  Temporary: $AMANDA_TMPDIR"
76509
76510     if test -f config.warnings; then
76511         echo "WARNINGS:"
76512         cat config.warnings | sed -e 's/^/  /g'
76513         rm config.warnings
76514     fi
76515