more fixes from build iteration
[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$ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 echo=${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 <<EOF
604 $*
605 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 "$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        echo_test_string=`eval $cmd` &&
620        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621     then
622       break
623     fi
624   done
625 fi
626
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629    test "X$echo_testing_string" = "X$echo_test_string"; then
630   :
631 else
632   # The Solaris, AIX, and Digital Unix default echo programs unquote
633   # backslashes.  This makes it impossible to quote backslashes using
634   #   echo "$something" | sed 's/\\/\\\\/g'
635   #
636   # So, first we look for a working echo in the user's PATH.
637
638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639   for dir in $PATH /usr/ucb; do
640     IFS="$lt_save_ifs"
641     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644        test "X$echo_testing_string" = "X$echo_test_string"; then
645       echo="$dir/echo"
646       break
647     fi
648   done
649   IFS="$lt_save_ifs"
650
651   if test "X$echo" = Xecho; then
652     # We didn't find a better echo, so look for alternatives.
653     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655        test "X$echo_testing_string" = "X$echo_test_string"; then
656       # This shell has a builtin print -r that does the trick.
657       echo='print -r'
658     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659          test "X$CONFIG_SHELL" != X/bin/ksh; then
660       # If we have ksh, try running configure again with it.
661       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662       export ORIGINAL_CONFIG_SHELL
663       CONFIG_SHELL=/bin/ksh
664       export CONFIG_SHELL
665       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666     else
667       # Try using printf.
668       echo='printf %s\n'
669       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671          test "X$echo_testing_string" = "X$echo_test_string"; then
672         # Cool, printf works
673         :
674       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675            test "X$echo_testing_string" = 'X\t' &&
676            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677            test "X$echo_testing_string" = "X$echo_test_string"; then
678         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679         export CONFIG_SHELL
680         SHELL="$CONFIG_SHELL"
681         export SHELL
682         echo="$CONFIG_SHELL $0 --fallback-echo"
683       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684            test "X$echo_testing_string" = 'X\t' &&
685            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686            test "X$echo_testing_string" = "X$echo_test_string"; then
687         echo="$CONFIG_SHELL $0 --fallback-echo"
688       else
689         # maybe with a smaller string...
690         prev=:
691
692         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694           then
695             break
696           fi
697           prev="$cmd"
698         done
699
700         if test "$prev" != 'sed 50q "$0"'; then
701           echo_test_string=`eval $prev`
702           export echo_test_string
703           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704         else
705           # Oops.  We lost completely, so just stick with echo.
706           echo=echo
707         fi
708       fi
709     fi
710   fi
711 fi
712 fi
713
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
716 ECHO=$echo
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719 fi
720
721
722
723
724 tagnames=${tagnames+${tagnames},}CXX
725
726 tagnames=${tagnames+${tagnames},}F77
727
728 exec 7<&0 </dev/null 6>&1
729
730 # Name of the host.
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
735 #
736 # Initializations.
737 #
738 ac_default_prefix=/usr/local
739 ac_clean_files=
740 ac_config_libobj_dir=.
741 LIBOBJS=
742 cross_compiling=no
743 subdirs=
744 MFLAGS=
745 MAKEFLAGS=
746 SHELL=${CONFIG_SHELL-/bin/sh}
747
748 # Identity of this package.
749 PACKAGE_NAME=
750 PACKAGE_TARNAME=
751 PACKAGE_VERSION=
752 PACKAGE_STRING=
753 PACKAGE_BUGREPORT=
754
755 ac_unique_file="common-src/amanda.h"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
758 #include <stdio.h>
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
761 #endif
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
764 #endif
765 #ifdef STDC_HEADERS
766 # include <stdlib.h>
767 # include <stddef.h>
768 #else
769 # ifdef HAVE_STDLIB_H
770 #  include <stdlib.h>
771 # endif
772 #endif
773 #ifdef HAVE_STRING_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #  include <memory.h>
776 # endif
777 # include <string.h>
778 #endif
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
781 #endif
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
784 #endif
785 #ifdef HAVE_STDINT_H
786 # include <stdint.h>
787 #endif
788 #ifdef HAVE_UNISTD_H
789 # include <unistd.h>
790 #endif"
791
792 gl_header_list=
793 gl_func_list=
794 ac_subst_vars='SVN
795 gltests_LTLIBOBJS
796 gltests_LIBOBJS
797 gl_LTLIBOBJS
798 gl_LIBOBJS
799 LTLIBOBJS
800 LIBOBJS
801 READLINE_LIBS
802 GLIB_MKENUMS
803 GOBJECT_QUERY
804 GLIB_GENMARSHAL
805 GLIB_LIBS
806 GLIB_CFLAGS
807 PKG_CONFIG
808 AMANDA_STATIC_LDFLAGS
809 LIBTOOL_DEPS
810 LIBTOOL
811 ac_ct_F77
812 FFLAGS
813 F77
814 CXXCPP
815 am__fastdepCXX_FALSE
816 am__fastdepCXX_TRUE
817 CXXDEPMODE
818 ac_ct_CXX
819 CXXFLAGS
820 CXX
821 ECHO
822 LN_S
823 GCC_COMPILER_FALSE
824 GCC_COMPILER_TRUE
825 PS_ARGUMENT
826 PS
827 PRINT
828 MT_FILE_FLAG
829 MT
830 DEFAULT_MAILER
831 MAILER
832 SORT
833 BASH
834 DD
835 YFLAGS
836 YACC
837 AR
838 LEXLIB
839 LEX_OUTPUT_ROOT
840 LEX
841 AMLINTFLAGS
842 AMLINT
843 USE_RUNDUMP
844 WANT_SAMBA_FALSE
845 WANT_SAMBA_TRUE
846 SAMBA_CLIENT
847 GNUTAR
848 DUMP_RETURNS_1
849 AIX_BACKUP
850 RESTORE
851 DUMP
852 VRESTORE
853 VDUMP
854 VXRESTORE
855 VXDUMP
856 XFSRESTORE
857 XFSDUMP
858 KRB5_SECURITY
859 WANT_KRB5_SECURITY_FALSE
860 WANT_KRB5_SECURITY_TRUE
861 TICKET_LIFETIME
862 CLIENT_HOST_KEY_FILE
863 CLIENT_HOST_INSTANCE
864 CLIENT_HOST_PRINCIPAL
865 SERVER_HOST_KEY_FILE
866 SERVER_HOST_INSTANCE
867 SERVER_HOST_PRINCIPAL
868 KRB4_SECURITY
869 WANT_KRB4_SECURITY_FALSE
870 WANT_KRB4_SECURITY_TRUE
871 SSH_SECURITY
872 WANT_SSH_SECURITY_FALSE
873 WANT_SSH_SECURITY_TRUE
874 SSH
875 RSH_SECURITY
876 WANT_RSH_SECURITY_FALSE
877 WANT_RSH_SECURITY_TRUE
878 BSDUDP_SECURITY
879 WANT_BSDUDP_SECURITY_FALSE
880 WANT_BSDUDP_SECURITY_TRUE
881 BSDTCP_SECURITY
882 WANT_BSDTCP_SECURITY_FALSE
883 WANT_BSDTCP_SECURITY_TRUE
884 USE_AMANDAHOSTS
885 BSD_SECURITY
886 WANT_BSD_SECURITY_FALSE
887 WANT_BSD_SECURITY_TRUE
888 WANT_TAPE_DEVICE_FALSE
889 WANT_TAPE_DEVICE_TRUE
890 WANT_TAPE_POSIX_FALSE
891 WANT_TAPE_POSIX_TRUE
892 WANT_TAPE_UWARE_FALSE
893 WANT_TAPE_UWARE_TRUE
894 WANT_TAPE_AIX_FALSE
895 WANT_TAPE_AIX_TRUE
896 WANT_TAPE_XENIX_FALSE
897 WANT_TAPE_XENIX_TRUE
898 WANT_S3_DEVICE_FALSE
899 WANT_S3_DEVICE_TRUE
900 LIBCURL
901 LIBCURL_CPPFLAGS
902 _libcurl_config
903 CURL_CONFIG
904 POSUB
905 INTLLIBS
906 LTLIBICONV
907 LIBICONV
908 INTL_MACOSX_LIBS
909 MSGMERGE
910 XGETTEXT_015
911 XGETTEXT
912 GMSGFMT_015
913 MSGFMT_015
914 GMSGFMT
915 USE_NLS
916 GETTEXT
917 MSGFMT
918 amdatadir
919 APPLICATION_DIR
920 amperldir
921 amincludedir
922 amlibexecdir
923 amlibdir
924 CLIENT_SCRIPTS_OPT
925 HAVE_GZIP
926 UNCOMPRESS_OPT
927 UNCOMPRESS_PATH
928 COMPRESS_BEST_OPT
929 COMPRESS_FAST_OPT
930 COMPRESS_SUFFIX
931 COMPRESS_PATH
932 CAT
933 PERLEXTLIBS
934 WANT_CYGWIN_COPY_PERL_DLL_FALSE
935 WANT_CYGWIN_COPY_PERL_DLL_TRUE
936 PERL_INC
937 PERL
938 SWIG_LIB
939 SWIG
940 LOCKING
941 WANT_AMFLOCK_LNLOCK_FALSE
942 WANT_AMFLOCK_LNLOCK_TRUE
943 WANT_AMFLOCK_LOCKF_FALSE
944 WANT_AMFLOCK_LOCKF_TRUE
945 WANT_AMFLOCK_FLOCK_FALSE
946 WANT_AMFLOCK_FLOCK_TRUE
947 WANT_AMFLOCK_POSIX_FALSE
948 WANT_AMFLOCK_POSIX_TRUE
949 WANT_SCSI_CHIO_FALSE
950 WANT_SCSI_CHIO_TRUE
951 WANT_SCSI_HPUX_FALSE
952 WANT_SCSI_HPUX_TRUE
953 WANT_CHG_SCSI_CHIO_FALSE
954 WANT_CHG_SCSI_CHIO_TRUE
955 WANT_SCSI_BSD_FALSE
956 WANT_SCSI_BSD_TRUE
957 WANT_SCSI_CAM_FALSE
958 WANT_SCSI_CAM_TRUE
959 WANT_SCSI_AIX_FALSE
960 WANT_SCSI_AIX_TRUE
961 WANT_SCSI_SOLARIS_FALSE
962 WANT_SCSI_SOLARIS_TRUE
963 WANT_SCSI_IRIX_FALSE
964 WANT_SCSI_IRIX_TRUE
965 WANT_SCSI_HPUX_NEW_FALSE
966 WANT_SCSI_HPUX_NEW_TRUE
967 WANT_SCSI_LINUX_FALSE
968 WANT_SCSI_LINUX_TRUE
969 WANT_CHG_SCSI_FALSE
970 WANT_CHG_SCSI_TRUE
971 MCUTIL
972 MTX
973 CHS
974 CHIO
975 GETCONF
976 DEFAULT_AMANDATES_FILE
977 DEFAULT_CHANGER_DEVICE
978 EXAMPLE_TAPEDEV
979 DEFAULT_TAPE_DEVICE
980 DEFAULT_TAPE_SERVER
981 DEFAULT_CONFIG
982 DEFAULT_SERVER
983 CONFIG_CLOBBER_MY_CONFIG
984 DOC_BUILD_DATE
985 XSLREL
986 ENABLE_MANPAGE_BUILD_FALSE
987 ENABLE_MANPAGE_BUILD_TRUE
988 XSLTPROC
989 XSLTPROC_FLAGS
990 WANT_AMPLOT_FALSE
991 WANT_AMPLOT_TRUE
992 AMPLOT_CAT_PACK
993 AMPLOT_CAT_COMPRESS
994 AMPLOT_CAT_GZIP
995 AMPLOT_COMPRESS
996 GZIP
997 COMPRESS
998 PCAT
999 GNUPLOT
1000 WANT_TAPE_FALSE
1001 WANT_TAPE_TRUE
1002 WANT_RECOVER_FALSE
1003 WANT_RECOVER_TRUE
1004 WANT_SERVER_FALSE
1005 WANT_SERVER_TRUE
1006 WANT_RESTORE_FALSE
1007 WANT_RESTORE_TRUE
1008 WANT_CLIENT_FALSE
1009 WANT_CLIENT_TRUE
1010 WANT_INSTALLPERMS_FALSE
1011 WANT_INSTALLPERMS_TRUE
1012 WANT_SETUID_CLIENT_FALSE
1013 WANT_SETUID_CLIENT_TRUE
1014 SERVICE_SUFFIX
1015 AMANDA_DEBUG_DAYS
1016 AMANDA_DBGDIR
1017 ASSERTIONS
1018 LOW_TCPPORTRANGE
1019 TCPPORTRANGE
1020 UDPPORTRANGE
1021 BINARY_OWNER
1022 CHECK_USERID
1023 AMANDA_TMPDIR
1024 GNUTAR_LISTED_INCREMENTAL_DIR
1025 USE_VERSION_SUFFIXES
1026 CONFIG_DIR
1027 SETUID_GROUP
1028 CLIENT_LOGIN
1029 AMANDA_WARNING_CFLAGS
1030 NEXT_WCHAR_H
1031 HAVE_WCHAR_H
1032 WCHAR_H
1033 REPLACE_WCWIDTH
1034 HAVE_DECL_WCWIDTH
1035 GNULIB_WCWIDTH
1036 HAVE_VISIBILITY
1037 CFLAG_VISIBILITY
1038 EOVERFLOW
1039 HAVE_UNISTD_H
1040 NEXT_UNISTD_H
1041 REPLACE_LSEEK
1042 REPLACE_LCHOWN
1043 REPLACE_GETPAGESIZE
1044 REPLACE_GETCWD
1045 REPLACE_FCHDIR
1046 REPLACE_CHOWN
1047 HAVE_SYS_PARAM_H
1048 HAVE_OS_H
1049 HAVE_DECL_GETLOGIN_R
1050 HAVE_DECL_ENVIRON
1051 HAVE_SLEEP
1052 HAVE_READLINK
1053 HAVE_GETPAGESIZE
1054 HAVE_FTRUNCATE
1055 HAVE_DUP2
1056 GNULIB_SLEEP
1057 GNULIB_READLINK
1058 GNULIB_LSEEK
1059 GNULIB_LCHOWN
1060 GNULIB_GETPAGESIZE
1061 GNULIB_GETLOGIN_R
1062 GNULIB_GETCWD
1063 GNULIB_FTRUNCATE
1064 GNULIB_FCHDIR
1065 GNULIB_ENVIRON
1066 GNULIB_DUP2
1067 GNULIB_CHOWN
1068 SYS_STAT_H
1069 NEXT_SYS_STAT_H
1070 HAVE_IO_H
1071 HAVE_DECL_MKDIR
1072 HAVE_LSTAT
1073 NEXT_STRING_H
1074 REPLACE_STRSTR
1075 REPLACE_STRCASESTR
1076 REPLACE_MEMMEM
1077 REPLACE_STRSIGNAL
1078 REPLACE_STRERROR
1079 HAVE_DECL_STRSIGNAL
1080 HAVE_DECL_STRERROR
1081 HAVE_DECL_STRTOK_R
1082 HAVE_STRCASESTR
1083 HAVE_STRSEP
1084 HAVE_STRPBRK
1085 HAVE_DECL_STRNLEN
1086 HAVE_DECL_STRNDUP
1087 HAVE_STRNDUP
1088 HAVE_DECL_STRDUP
1089 HAVE_STRCHRNUL
1090 HAVE_STPNCPY
1091 HAVE_STPCPY
1092 HAVE_DECL_MEMRCHR
1093 HAVE_MEMPCPY
1094 HAVE_DECL_MEMMEM
1095 GNULIB_STRSIGNAL
1096 GNULIB_STRERROR
1097 GNULIB_MBSTOK_R
1098 GNULIB_MBSSEP
1099 GNULIB_MBSSPN
1100 GNULIB_MBSPBRK
1101 GNULIB_MBSCSPN
1102 GNULIB_MBSCASESTR
1103 GNULIB_MBSPCASECMP
1104 GNULIB_MBSNCASECMP
1105 GNULIB_MBSCASECMP
1106 GNULIB_MBSSTR
1107 GNULIB_MBSRCHR
1108 GNULIB_MBSCHR
1109 GNULIB_MBSNLEN
1110 GNULIB_MBSLEN
1111 GNULIB_STRTOK_R
1112 GNULIB_STRCASESTR
1113 GNULIB_STRSTR
1114 GNULIB_STRSEP
1115 GNULIB_STRPBRK
1116 GNULIB_STRNLEN
1117 GNULIB_STRNDUP
1118 GNULIB_STRDUP
1119 GNULIB_STRCHRNUL
1120 GNULIB_STPNCPY
1121 GNULIB_STPCPY
1122 GNULIB_MEMRCHR
1123 GNULIB_MEMPCPY
1124 GNULIB_MEMMEM
1125 NEXT_STDLIB_H
1126 NEXT_STDIO_H
1127 STDINT_H
1128 WINT_T_SUFFIX
1129 WCHAR_T_SUFFIX
1130 SIZE_T_SUFFIX
1131 SIG_ATOMIC_T_SUFFIX
1132 PTRDIFF_T_SUFFIX
1133 HAVE_SIGNED_WINT_T
1134 HAVE_SIGNED_WCHAR_T
1135 HAVE_SIGNED_SIG_ATOMIC_T
1136 BITSIZEOF_WINT_T
1137 BITSIZEOF_WCHAR_T
1138 BITSIZEOF_SIZE_T
1139 BITSIZEOF_SIG_ATOMIC_T
1140 BITSIZEOF_PTRDIFF_T
1141 HAVE_SYS_BITYPES_H
1142 HAVE_SYS_INTTYPES_H
1143 HAVE_STDINT_H
1144 NEXT_STDINT_H
1145 HAVE_SYS_TYPES_H
1146 HAVE_INTTYPES_H
1147 HAVE_UNSIGNED_LONG_LONG_INT
1148 HAVE_LONG_LONG_INT
1149 HAVE__BOOL
1150 STDBOOL_H
1151 REPLACE_GETLINE
1152 HAVE_DECL_GETLINE
1153 HAVE_DECL_GETDELIM
1154 REPLACE_FFLUSH
1155 REPLACE_FTELL
1156 REPLACE_FTELLO
1157 HAVE_FTELLO
1158 REPLACE_FSEEK
1159 REPLACE_FSEEKO
1160 HAVE_FSEEKO
1161 REPLACE_FREOPEN
1162 REPLACE_FOPEN
1163 REPLACE_VASPRINTF
1164 HAVE_VASPRINTF
1165 REPLACE_VSPRINTF
1166 REPLACE_SPRINTF
1167 HAVE_DECL_VSNPRINTF
1168 REPLACE_VSNPRINTF
1169 HAVE_DECL_SNPRINTF
1170 REPLACE_SNPRINTF
1171 REPLACE_VPRINTF
1172 REPLACE_PRINTF
1173 REPLACE_VFPRINTF
1174 REPLACE_FPRINTF
1175 GNULIB_GETLINE
1176 GNULIB_GETDELIM
1177 GNULIB_FFLUSH
1178 GNULIB_FTELLO
1179 GNULIB_FTELL
1180 GNULIB_FSEEKO
1181 GNULIB_FSEEK
1182 GNULIB_FREOPEN
1183 GNULIB_FOPEN
1184 GNULIB_VASPRINTF
1185 GNULIB_VSPRINTF_POSIX
1186 GNULIB_VSNPRINTF
1187 GNULIB_VPRINTF_POSIX
1188 GNULIB_VFPRINTF_POSIX
1189 GNULIB_SPRINTF_POSIX
1190 GNULIB_SNPRINTF
1191 GNULIB_PRINTF_POSIX
1192 GNULIB_FPRINTF_POSIX
1193 NETINET_IN_H
1194 HAVE_NETINET_IN_H
1195 NEXT_NETINET_IN_H
1196 VOID_UNSETENV
1197 REPLACE_PUTENV
1198 REPLACE_MKSTEMP
1199 HAVE_UNSETENV
1200 HAVE_SETENV
1201 HAVE_REALLOC_POSIX
1202 HAVE_MKDTEMP
1203 HAVE_GETSUBOPT
1204 HAVE_CALLOC_POSIX
1205 GNULIB_UNSETENV
1206 GNULIB_SETENV
1207 GNULIB_PUTENV
1208 GNULIB_MKSTEMP
1209 GNULIB_MKDTEMP
1210 GNULIB_GETSUBOPT
1211 GNULIB_CALLOC_POSIX
1212 GNULIB_REALLOC_POSIX
1213 GNULIB_MALLOC_POSIX
1214 HAVE_MALLOC_POSIX
1215 LTLIBMULTITHREAD
1216 LIBMULTITHREAD
1217 LTLIBTHREAD
1218 LIBTHREAD
1219 LTLIBPTH
1220 LIBPTH
1221 SYS_TIME_H
1222 REPLACE_GETTIMEOFDAY
1223 HAVE_STRUCT_TIMEVAL
1224 HAVE_SYS_TIME_H
1225 NEXT_SYS_TIME_H
1226 LTLIBINTL
1227 LIBINTL
1228 GETOPT_H
1229 SYS_SOCKET_H
1230 HAVE_WS2TCPIP_H
1231 HAVE_WINSOCK2_H
1232 HAVE_SYS_SOCKET_H
1233 NEXT_SYS_SOCKET_H
1234 FLOAT_H
1235 NEXT_FLOAT_H
1236 INCLUDE_NEXT
1237 ARPA_INET_H
1238 ALLOCA_H
1239 ALLOCA
1240 GL_COND_LIBTOOL_FALSE
1241 GL_COND_LIBTOOL_TRUE
1242 EGREP
1243 GREP
1244 CPP
1245 RANLIB
1246 am__fastdepCC_FALSE
1247 am__fastdepCC_TRUE
1248 CCDEPMODE
1249 AMDEPBACKSLASH
1250 AMDEP_FALSE
1251 AMDEP_TRUE
1252 am__quote
1253 am__include
1254 DEPDIR
1255 OBJEXT
1256 EXEEXT
1257 ac_ct_CC
1258 CPPFLAGS
1259 LDFLAGS
1260 CFLAGS
1261 CC
1262 VERSION_SUFFIX
1263 VERSION_COMMENT
1264 VERSION_PATCH
1265 VERSION_MINOR
1266 VERSION_MAJOR
1267 SNAPSHOT_STAMP
1268 am__untar
1269 am__tar
1270 AMTAR
1271 am__leading_dot
1272 SET_MAKE
1273 AWK
1274 mkdir_p
1275 MKDIR_P
1276 INSTALL_STRIP_PROGRAM
1277 STRIP
1278 install_sh
1279 MAKEINFO
1280 AUTOHEADER
1281 AUTOMAKE
1282 AUTOCONF
1283 ACLOCAL
1284 VERSION
1285 CYGPATH_W
1286 am__isrc
1287 INSTALL_DATA
1288 INSTALL_SCRIPT
1289 INSTALL_PROGRAM
1290 PACKAGE
1291 target_os
1292 target_vendor
1293 target_cpu
1294 target
1295 host_os
1296 host_vendor
1297 host_cpu
1298 host
1299 build_os
1300 build_vendor
1301 build_cpu
1302 build
1303 target_alias
1304 host_alias
1305 build_alias
1306 LIBS
1307 ECHO_T
1308 ECHO_N
1309 ECHO_C
1310 DEFS
1311 mandir
1312 localedir
1313 libdir
1314 psdir
1315 pdfdir
1316 dvidir
1317 htmldir
1318 infodir
1319 docdir
1320 oldincludedir
1321 includedir
1322 localstatedir
1323 sharedstatedir
1324 sysconfdir
1325 datadir
1326 datarootdir
1327 libexecdir
1328 sbindir
1329 bindir
1330 program_transform_name
1331 prefix
1332 exec_prefix
1333 PACKAGE_BUGREPORT
1334 PACKAGE_STRING
1335 PACKAGE_VERSION
1336 PACKAGE_TARNAME
1337 PACKAGE_NAME
1338 PATH_SEPARATOR
1339 SHELL'
1340 ac_subst_files=''
1341 ac_user_opts='
1342 enable_option_checking
1343 enable_dependency_tracking
1344 enable_threads
1345 with_gnu_ld
1346 enable_rpath
1347 with_libpth_prefix
1348 enable_largefile
1349 with_cflags
1350 with_includes
1351 with_libraries
1352 with_user
1353 with_group
1354 with_dumperdir
1355 with_configdir
1356 with_indexdir
1357 with_dbdir
1358 with_logdir
1359 with_suffixes
1360 with_gnutar_listdir
1361 with_gnutar_listed_incremental
1362 with_tmpdir
1363 with_force_uid
1364 with_owner
1365 with_fqdn
1366 with_reuseports
1367 with_low_tcpportrange
1368 with_tcpportrange
1369 with_udpportrange
1370 with_buffered_dump
1371 with_maxtapeblocksize
1372 with_assertions
1373 with_debugging
1374 with_debug_days
1375 with_testing
1376 with_single_userid
1377 enable_installperms
1378 with_server
1379 with_client
1380 with_restore
1381 with_amrecover
1382 with_client_only
1383 with_server_only
1384 with_gnuplot
1385 enable_manpage_build
1386 with_xsltproc
1387 with_xsltproc_flags
1388 with_index_server
1389 with_config
1390 with_tape_server
1391 with_tape_device
1392 with_changer_device
1393 with_amandates
1394 with_perlextlibs
1395 with_ipv6
1396 with_mmap
1397 with_amlibdir
1398 with_amlibexecdir
1399 with_amperldir
1400 with_amdatadir
1401 enable_nls
1402 with_libiconv_prefix
1403 with_libintl_prefix
1404 with_libcurl
1405 enable_s3_device
1406 with_bsd_security
1407 with_amandahosts
1408 with_bsdtcp_security
1409 with_bsdudp_security
1410 with_rsh_security
1411 with_ssh_security
1412 with_ssh_options
1413 with_krb4_security
1414 with_server_principal
1415 with_server_instance
1416 with_server_keyfile
1417 with_client_principal
1418 with_client_instance
1419 with_client_keyfile
1420 with_ticket_lifetime
1421 with_krb5_security
1422 with_dump_honor_nodump
1423 with_gnutar
1424 with_smbclient
1425 with_samba_user
1426 with_rundump
1427 enable_shared
1428 enable_static
1429 enable_fast_install
1430 enable_libtool_lock
1431 with_pic
1432 with_tags
1433 enable_static_binary
1434 enable_glibtest
1435 with_readline
1436 '
1437       ac_precious_vars='build_alias
1438 host_alias
1439 target_alias
1440 CC
1441 CFLAGS
1442 LDFLAGS
1443 LIBS
1444 CPPFLAGS
1445 CPP
1446 GNUPLOT
1447 SWIG
1448 PERL
1449 GNUTAR
1450 YACC
1451 YFLAGS
1452 CXX
1453 CXXFLAGS
1454 CCC
1455 CXXCPP
1456 F77
1457 FFLAGS
1458 PKG_CONFIG'
1459
1460
1461 # Initialize some variables set by options.
1462 ac_init_help=
1463 ac_init_version=false
1464 ac_unrecognized_opts=
1465 ac_unrecognized_sep=
1466 # The variables have the same names as the options, with
1467 # dashes changed to underlines.
1468 cache_file=/dev/null
1469 exec_prefix=NONE
1470 no_create=
1471 no_recursion=
1472 prefix=NONE
1473 program_prefix=NONE
1474 program_suffix=NONE
1475 program_transform_name=s,x,x,
1476 silent=
1477 site=
1478 srcdir=
1479 verbose=
1480 x_includes=NONE
1481 x_libraries=NONE
1482
1483 # Installation directory options.
1484 # These are left unexpanded so users can "make install exec_prefix=/foo"
1485 # and all the variables that are supposed to be based on exec_prefix
1486 # by default will actually change.
1487 # Use braces instead of parens because sh, perl, etc. also accept them.
1488 # (The list follows the same order as the GNU Coding Standards.)
1489 bindir='${exec_prefix}/bin'
1490 sbindir='${exec_prefix}/sbin'
1491 libexecdir='${exec_prefix}/libexec'
1492 datarootdir='${prefix}/share'
1493 datadir='${datarootdir}'
1494 sysconfdir='${prefix}/etc'
1495 sharedstatedir='${prefix}/com'
1496 localstatedir='${prefix}/var'
1497 includedir='${prefix}/include'
1498 oldincludedir='/usr/include'
1499 docdir='${datarootdir}/doc/${PACKAGE}'
1500 infodir='${datarootdir}/info'
1501 htmldir='${docdir}'
1502 dvidir='${docdir}'
1503 pdfdir='${docdir}'
1504 psdir='${docdir}'
1505 libdir='${exec_prefix}/lib'
1506 localedir='${datarootdir}/locale'
1507 mandir='${datarootdir}/man'
1508
1509 ac_prev=
1510 ac_dashdash=
1511 for ac_option
1512 do
1513   # If the previous option needs an argument, assign it.
1514   if test -n "$ac_prev"; then
1515     eval $ac_prev=\$ac_option
1516     ac_prev=
1517     continue
1518   fi
1519
1520   case $ac_option in
1521   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1522   *)    ac_optarg=yes ;;
1523   esac
1524
1525   # Accept the important Cygnus configure options, so we can diagnose typos.
1526
1527   case $ac_dashdash$ac_option in
1528   --)
1529     ac_dashdash=yes ;;
1530
1531   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1532     ac_prev=bindir ;;
1533   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1534     bindir=$ac_optarg ;;
1535
1536   -build | --build | --buil | --bui | --bu)
1537     ac_prev=build_alias ;;
1538   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1539     build_alias=$ac_optarg ;;
1540
1541   -cache-file | --cache-file | --cache-fil | --cache-fi \
1542   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1543     ac_prev=cache_file ;;
1544   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1545   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1546     cache_file=$ac_optarg ;;
1547
1548   --config-cache | -C)
1549     cache_file=config.cache ;;
1550
1551   -datadir | --datadir | --datadi | --datad)
1552     ac_prev=datadir ;;
1553   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1554     datadir=$ac_optarg ;;
1555
1556   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1557   | --dataroo | --dataro | --datar)
1558     ac_prev=datarootdir ;;
1559   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1560   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1561     datarootdir=$ac_optarg ;;
1562
1563   -disable-* | --disable-*)
1564     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1565     # Reject names that are not valid shell variable names.
1566     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1568    { (exit 1); exit 1; }; }
1569     ac_useropt_orig=$ac_useropt
1570     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571     case $ac_user_opts in
1572       *"
1573 "enable_$ac_useropt"
1574 "*) ;;
1575       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1576          ac_unrecognized_sep=', ';;
1577     esac
1578     eval enable_$ac_useropt=no ;;
1579
1580   -docdir | --docdir | --docdi | --doc | --do)
1581     ac_prev=docdir ;;
1582   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1583     docdir=$ac_optarg ;;
1584
1585   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1586     ac_prev=dvidir ;;
1587   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1588     dvidir=$ac_optarg ;;
1589
1590   -enable-* | --enable-*)
1591     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1592     # Reject names that are not valid shell variable names.
1593     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1594       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1595    { (exit 1); exit 1; }; }
1596     ac_useropt_orig=$ac_useropt
1597     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598     case $ac_user_opts in
1599       *"
1600 "enable_$ac_useropt"
1601 "*) ;;
1602       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603          ac_unrecognized_sep=', ';;
1604     esac
1605     eval enable_$ac_useropt=\$ac_optarg ;;
1606
1607   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609   | --exec | --exe | --ex)
1610     ac_prev=exec_prefix ;;
1611   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613   | --exec=* | --exe=* | --ex=*)
1614     exec_prefix=$ac_optarg ;;
1615
1616   -gas | --gas | --ga | --g)
1617     # Obsolete; use --with-gas.
1618     with_gas=yes ;;
1619
1620   -help | --help | --hel | --he | -h)
1621     ac_init_help=long ;;
1622   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623     ac_init_help=recursive ;;
1624   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625     ac_init_help=short ;;
1626
1627   -host | --host | --hos | --ho)
1628     ac_prev=host_alias ;;
1629   -host=* | --host=* | --hos=* | --ho=*)
1630     host_alias=$ac_optarg ;;
1631
1632   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1633     ac_prev=htmldir ;;
1634   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1635   | --ht=*)
1636     htmldir=$ac_optarg ;;
1637
1638   -includedir | --includedir | --includedi | --included | --include \
1639   | --includ | --inclu | --incl | --inc)
1640     ac_prev=includedir ;;
1641   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642   | --includ=* | --inclu=* | --incl=* | --inc=*)
1643     includedir=$ac_optarg ;;
1644
1645   -infodir | --infodir | --infodi | --infod | --info | --inf)
1646     ac_prev=infodir ;;
1647   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648     infodir=$ac_optarg ;;
1649
1650   -libdir | --libdir | --libdi | --libd)
1651     ac_prev=libdir ;;
1652   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653     libdir=$ac_optarg ;;
1654
1655   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656   | --libexe | --libex | --libe)
1657     ac_prev=libexecdir ;;
1658   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659   | --libexe=* | --libex=* | --libe=*)
1660     libexecdir=$ac_optarg ;;
1661
1662   -localedir | --localedir | --localedi | --localed | --locale)
1663     ac_prev=localedir ;;
1664   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665     localedir=$ac_optarg ;;
1666
1667   -localstatedir | --localstatedir | --localstatedi | --localstated \
1668   | --localstate | --localstat | --localsta | --localst | --locals)
1669     ac_prev=localstatedir ;;
1670   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672     localstatedir=$ac_optarg ;;
1673
1674   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1675     ac_prev=mandir ;;
1676   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677     mandir=$ac_optarg ;;
1678
1679   -nfp | --nfp | --nf)
1680     # Obsolete; use --without-fp.
1681     with_fp=no ;;
1682
1683   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684   | --no-cr | --no-c | -n)
1685     no_create=yes ;;
1686
1687   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1689     no_recursion=yes ;;
1690
1691   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693   | --oldin | --oldi | --old | --ol | --o)
1694     ac_prev=oldincludedir ;;
1695   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698     oldincludedir=$ac_optarg ;;
1699
1700   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1701     ac_prev=prefix ;;
1702   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703     prefix=$ac_optarg ;;
1704
1705   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706   | --program-pre | --program-pr | --program-p)
1707     ac_prev=program_prefix ;;
1708   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710     program_prefix=$ac_optarg ;;
1711
1712   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713   | --program-suf | --program-su | --program-s)
1714     ac_prev=program_suffix ;;
1715   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717     program_suffix=$ac_optarg ;;
1718
1719   -program-transform-name | --program-transform-name \
1720   | --program-transform-nam | --program-transform-na \
1721   | --program-transform-n | --program-transform- \
1722   | --program-transform | --program-transfor \
1723   | --program-transfo | --program-transf \
1724   | --program-trans | --program-tran \
1725   | --progr-tra | --program-tr | --program-t)
1726     ac_prev=program_transform_name ;;
1727   -program-transform-name=* | --program-transform-name=* \
1728   | --program-transform-nam=* | --program-transform-na=* \
1729   | --program-transform-n=* | --program-transform-=* \
1730   | --program-transform=* | --program-transfor=* \
1731   | --program-transfo=* | --program-transf=* \
1732   | --program-trans=* | --program-tran=* \
1733   | --progr-tra=* | --program-tr=* | --program-t=*)
1734     program_transform_name=$ac_optarg ;;
1735
1736   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1737     ac_prev=pdfdir ;;
1738   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739     pdfdir=$ac_optarg ;;
1740
1741   -psdir | --psdir | --psdi | --psd | --ps)
1742     ac_prev=psdir ;;
1743   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1744     psdir=$ac_optarg ;;
1745
1746   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747   | -silent | --silent | --silen | --sile | --sil)
1748     silent=yes ;;
1749
1750   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1751     ac_prev=sbindir ;;
1752   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1753   | --sbi=* | --sb=*)
1754     sbindir=$ac_optarg ;;
1755
1756   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758   | --sharedst | --shareds | --shared | --share | --shar \
1759   | --sha | --sh)
1760     ac_prev=sharedstatedir ;;
1761   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1764   | --sha=* | --sh=*)
1765     sharedstatedir=$ac_optarg ;;
1766
1767   -site | --site | --sit)
1768     ac_prev=site ;;
1769   -site=* | --site=* | --sit=*)
1770     site=$ac_optarg ;;
1771
1772   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1773     ac_prev=srcdir ;;
1774   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775     srcdir=$ac_optarg ;;
1776
1777   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778   | --syscon | --sysco | --sysc | --sys | --sy)
1779     ac_prev=sysconfdir ;;
1780   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782     sysconfdir=$ac_optarg ;;
1783
1784   -target | --target | --targe | --targ | --tar | --ta | --t)
1785     ac_prev=target_alias ;;
1786   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787     target_alias=$ac_optarg ;;
1788
1789   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1790     verbose=yes ;;
1791
1792   -version | --version | --versio | --versi | --vers | -V)
1793     ac_init_version=: ;;
1794
1795   -with-* | --with-*)
1796     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797     # Reject names that are not valid shell variable names.
1798     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1800    { (exit 1); exit 1; }; }
1801     ac_useropt_orig=$ac_useropt
1802     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1803     case $ac_user_opts in
1804       *"
1805 "with_$ac_useropt"
1806 "*) ;;
1807       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1808          ac_unrecognized_sep=', ';;
1809     esac
1810     eval with_$ac_useropt=\$ac_optarg ;;
1811
1812   -without-* | --without-*)
1813     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1814     # Reject names that are not valid shell variable names.
1815     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1816       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1817    { (exit 1); exit 1; }; }
1818     ac_useropt_orig=$ac_useropt
1819     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1820     case $ac_user_opts in
1821       *"
1822 "with_$ac_useropt"
1823 "*) ;;
1824       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1825          ac_unrecognized_sep=', ';;
1826     esac
1827     eval with_$ac_useropt=no ;;
1828
1829   --x)
1830     # Obsolete; use --with-x.
1831     with_x=yes ;;
1832
1833   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1834   | --x-incl | --x-inc | --x-in | --x-i)
1835     ac_prev=x_includes ;;
1836   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1837   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1838     x_includes=$ac_optarg ;;
1839
1840   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1841   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1842     ac_prev=x_libraries ;;
1843   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1844   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1845     x_libraries=$ac_optarg ;;
1846
1847   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1848 Try \`$0 --help' for more information." >&2
1849    { (exit 1); exit 1; }; }
1850     ;;
1851
1852   *=*)
1853     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1854     # Reject names that are not valid shell variable names.
1855     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1856       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1857    { (exit 1); exit 1; }; }
1858     eval $ac_envvar=\$ac_optarg
1859     export $ac_envvar ;;
1860
1861   *)
1862     # FIXME: should be removed in autoconf 3.0.
1863     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1864     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1865       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1866     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1867     ;;
1868
1869   esac
1870 done
1871
1872 if test -n "$ac_prev"; then
1873   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1874   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1875    { (exit 1); exit 1; }; }
1876 fi
1877
1878 if test -n "$ac_unrecognized_opts"; then
1879   case $enable_option_checking in
1880     no) ;;
1881     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1882    { (exit 1); exit 1; }; } ;;
1883     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1884   esac
1885 fi
1886
1887 # Check all directory arguments for consistency.
1888 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1889                 datadir sysconfdir sharedstatedir localstatedir includedir \
1890                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1891                 libdir localedir mandir
1892 do
1893   eval ac_val=\$$ac_var
1894   # Remove trailing slashes.
1895   case $ac_val in
1896     */ )
1897       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1898       eval $ac_var=\$ac_val;;
1899   esac
1900   # Be sure to have absolute directory names.
1901   case $ac_val in
1902     [\\/$]* | ?:[\\/]* )  continue;;
1903     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1904   esac
1905   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1906    { (exit 1); exit 1; }; }
1907 done
1908
1909 # There might be people who depend on the old broken behavior: `$host'
1910 # used to hold the argument of --host etc.
1911 # FIXME: To remove some day.
1912 build=$build_alias
1913 host=$host_alias
1914 target=$target_alias
1915
1916 # FIXME: To remove some day.
1917 if test "x$host_alias" != x; then
1918   if test "x$build_alias" = x; then
1919     cross_compiling=maybe
1920     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1921     If a cross compiler is detected then cross compile mode will be used." >&2
1922   elif test "x$build_alias" != "x$host_alias"; then
1923     cross_compiling=yes
1924   fi
1925 fi
1926
1927 ac_tool_prefix=
1928 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1929
1930 test "$silent" = yes && exec 6>/dev/null
1931
1932
1933 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1934 ac_ls_di=`ls -di .` &&
1935 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1936   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1937    { (exit 1); exit 1; }; }
1938 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1939   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1940    { (exit 1); exit 1; }; }
1941
1942
1943 # Find the source files, if location was not specified.
1944 if test -z "$srcdir"; then
1945   ac_srcdir_defaulted=yes
1946   # Try the directory containing this script, then the parent directory.
1947   ac_confdir=`$as_dirname -- "$as_myself" ||
1948 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1949          X"$as_myself" : 'X\(//\)[^/]' \| \
1950          X"$as_myself" : 'X\(//\)$' \| \
1951          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1952 $as_echo X"$as_myself" |
1953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1954             s//\1/
1955             q
1956           }
1957           /^X\(\/\/\)[^/].*/{
1958             s//\1/
1959             q
1960           }
1961           /^X\(\/\/\)$/{
1962             s//\1/
1963             q
1964           }
1965           /^X\(\/\).*/{
1966             s//\1/
1967             q
1968           }
1969           s/.*/./; q'`
1970   srcdir=$ac_confdir
1971   if test ! -r "$srcdir/$ac_unique_file"; then
1972     srcdir=..
1973   fi
1974 else
1975   ac_srcdir_defaulted=no
1976 fi
1977 if test ! -r "$srcdir/$ac_unique_file"; then
1978   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1979   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1980    { (exit 1); exit 1; }; }
1981 fi
1982 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1983 ac_abs_confdir=`(
1984         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1985    { (exit 1); exit 1; }; }
1986         pwd)`
1987 # When building in place, set srcdir=.
1988 if test "$ac_abs_confdir" = "$ac_pwd"; then
1989   srcdir=.
1990 fi
1991 # Remove unnecessary trailing slashes from srcdir.
1992 # Double slashes in file names in object file debugging info
1993 # mess up M-x gdb in Emacs.
1994 case $srcdir in
1995 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1996 esac
1997 for ac_var in $ac_precious_vars; do
1998   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1999   eval ac_env_${ac_var}_value=\$${ac_var}
2000   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2001   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2002 done
2003
2004 #
2005 # Report the --help message.
2006 #
2007 if test "$ac_init_help" = "long"; then
2008   # Omit some internal or obsolete options to make the list less imposing.
2009   # This message is too long to be a string in the A/UX 3.1 sh.
2010   cat <<_ACEOF
2011 \`configure' configures this package to adapt to many kinds of systems.
2012
2013 Usage: $0 [OPTION]... [VAR=VALUE]...
2014
2015 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2016 VAR=VALUE.  See below for descriptions of some of the useful variables.
2017
2018 Defaults for the options are specified in brackets.
2019
2020 Configuration:
2021   -h, --help              display this help and exit
2022       --help=short        display options specific to this package
2023       --help=recursive    display the short help of all the included packages
2024   -V, --version           display version information and exit
2025   -q, --quiet, --silent   do not print \`checking...' messages
2026       --cache-file=FILE   cache test results in FILE [disabled]
2027   -C, --config-cache      alias for \`--cache-file=config.cache'
2028   -n, --no-create         do not create output files
2029       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2030
2031 Installation directories:
2032   --prefix=PREFIX         install architecture-independent files in PREFIX
2033                           [$ac_default_prefix]
2034   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2035                           [PREFIX]
2036
2037 By default, \`make install' will install all the files in
2038 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2039 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2040 for instance \`--prefix=\$HOME'.
2041
2042 For better control, use the options below.
2043
2044 Fine tuning of the installation directories:
2045   --bindir=DIR            user executables [EPREFIX/bin]
2046   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2047   --libexecdir=DIR        program executables [EPREFIX/libexec]
2048   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2049   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2050   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2051   --libdir=DIR            object code libraries [EPREFIX/lib]
2052   --includedir=DIR        C header files [PREFIX/include]
2053   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2054   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2055   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2056   --infodir=DIR           info documentation [DATAROOTDIR/info]
2057   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2058   --mandir=DIR            man documentation [DATAROOTDIR/man]
2059   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2060   --htmldir=DIR           html documentation [DOCDIR]
2061   --dvidir=DIR            dvi documentation [DOCDIR]
2062   --pdfdir=DIR            pdf documentation [DOCDIR]
2063   --psdir=DIR             ps documentation [DOCDIR]
2064 _ACEOF
2065
2066   cat <<\_ACEOF
2067
2068 Program names:
2069   --program-prefix=PREFIX            prepend PREFIX to installed program names
2070   --program-suffix=SUFFIX            append SUFFIX to installed program names
2071   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2072
2073 System types:
2074   --build=BUILD     configure for building on BUILD [guessed]
2075   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2076   --target=TARGET   configure for building compilers for TARGET [HOST]
2077 _ACEOF
2078 fi
2079
2080 if test -n "$ac_init_help"; then
2081
2082   cat <<\_ACEOF
2083
2084 Optional Features:
2085   --disable-option-checking  ignore unrecognized --enable/--with options
2086   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2087   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2088   --disable-dependency-tracking  speeds up one-time build
2089   --enable-dependency-tracking   do not reject slow dependency extractors
2090   --enable-threads={posix|solaris|pth|win32}
2091                           specify multithreading API
2092   --disable-threads       build without multithread safety
2093   --disable-rpath         do not hardcode runtime library paths
2094   --disable-largefile     omit support for large files
2095   --disable-installperms  do not modify ownership and permissions on installed
2096                           files
2097   --enable-manpage-build  Build the manpages from their XML source (shipped
2098                           manpages are usually sufficient)
2099   --disable-nls           do not use Native Language Support
2100   --disable-s3-device     disable the S3 device
2101   --enable-shared[=PKGS]  build shared libraries [default=yes]
2102   --enable-static[=PKGS]  build static libraries [default=yes]
2103   --enable-fast-install[=PKGS]
2104                           optimize for fast installation [default=yes]
2105   --disable-libtool-lock  avoid locking (might break parallel builds)
2106   --enable-static-binary  To build statically linked binaries
2107   --disable-glibtest      do not try to compile and run a test GLIB program
2108
2109 Optional Packages:
2110   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2111   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2112   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2113   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2114   --without-libpth-prefix     don't search for libpth in includedir and libdir
2115   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2116   --with-includes=INCLUDE-DIRS
2117                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2118   --with-libraries=LIBRARY-DIRS
2119                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2120                           -R on Solaris, NetBSD)
2121   --with-user=USER        force execution to USER on client systems (REQUIRED)
2122   --with-group=GROUP      group allowed to execute setuid-root programs
2123                           (REQUIRED)
2124   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2125   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2126   --with-indexdir         deprecated: use indexdir in amanda.conf
2127   --with-dbdir            deprecated: use infofile in amanda.conf
2128   --with-logdir           deprecated: use logfile in amanda.conf
2129   --with-suffixes        install binaries with version string appended to name
2130   --with-gnutar-listdir=DIR
2131                           put gnutar directory lists in DIR (default:
2132                           localstatedir/amanda/gnutar-lists)
2133   --with-gnutar-listed-incremental
2134                           deprecated; use --with-gnutar-listdir
2135   --with-tmpdir           directory for temporary and debugging files
2136                           (default: /tmp/amanda)
2137   --without-force-uid     do not check userids when running programs
2138   --with-owner=USER
2139             force ownership of installed files to USER (default same as --with-user)
2140
2141   --with-fqdn             use FQDN's to backup multiple networks
2142   --without-reuseaddr     Don't reuse network connections until full timeout
2143                           period
2144   --with-low-tcpportrange=low/high
2145                           bind reserved TCP server sockets to ports within
2146                           this range (default: unlimited)
2147   --with-tcpportrange=low/high
2148                           bind unreserved TCP server sockets to ports within
2149                           this range (default: unlimited)
2150   --with-udpportrange=low/high
2151                           bind reserved UDP server sockets to ports within
2152                           this range (default: unlimited)
2153   --with-buffered-dump    buffer the dumping sockets on the server for speed
2154 (deprecated)
2155   --with-assertions       compile assertions into code
2156   --with-debugging=DIR
2157             put debug logs in DIR (default same as --with-tmpdir)
2158
2159   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2160   --with-testing[=SUFFIX] use alternate service names with suffix (default
2161                           'test')
2162   --with-single-userid
2163             force amanda to run as a single userid (for testing)
2164
2165   --without-server        do not build server stuff (set --without-restore)
2166   --without-client        do not build client stuff
2167   --without-restore       do not build amrestore nor amidxtaped
2168   --without-amrecover     do not build amrecover
2169   --with-client-only      deprecated: use --without-server
2170   --with-server-only      deprecated: use --without-client
2171   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2172   --with-xsltproc[[[=PATH]]]
2173                           Use the xsltproc binary in in PATH.
2174     --with-xsltproc-flags=FLAGS
2175                           Flags to pass to xsltproc (default --nonet)
2176   --with-index-server=HOST
2177                           default amanda index server (default: `uname -n`)
2178   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2179   --with-tape-server=HOST default tape server for restore (default: same as
2180                           index-server)
2181   --with-tape-device=DEVICE
2182                           default device on restore tape server
2183   --with-changer-device=DEV
2184                           default tape changer device (default: /dev/ch0)
2185   --with-amandates        default location for 'amandates' (default:
2186                           $localstatedir/amanda/amandates)
2187   --with-perlextlibs=libs extra LIBS for Perl extensions
2188   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2189           --without-ipv6          disable IPv6
2190   --with-mmap             force use of mmap instead of shared memory support
2191   --with-amlibdir[[[=PATH]]]
2192                           Where library are installed, default: $libdir/amanda
2193           --without-amlibdir      Library are installed in $libdir
2194   --with-amlibexecdir[[[=PATH]]]
2195                           Where amanda own programs are installed, default:
2196                           $libexecdir/amanda
2197           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2198   --with-amperldir[[[=PATH]]]
2199                           Where amanda's perl modules are installed; default:
2200                           installsitelib
2201           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2202   --with-amdatadir[[[=PATH]]]
2203                           Where amanda's templates and examples are installed;
2204                           default: $datadir/amanda
2205   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2206   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2207   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2208   --without-libintl-prefix     don't search for libintl in includedir and libdir
2209   --with-libcurl=DIR      look for the curl library in DIR
2210   --without-bsd-security  do not include BSD authentication
2211    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2212   --with-bsdtcp-security  include BSDTCP authentication
2213   --with-bsdudp-security  include BSDUDP authentication
2214   --with-rsh-security     include RSH authentication
2215   --with-ssh-security     include SSH authentication
2216    --with-ssh-options=[OPTIONS]
2217                           Use these ssh options for ssh security; the default
2218                           should work
2219   --with-krb4-security=DIR
2220                           Location of Kerberos software [/usr/kerberos
2221                           /usr/cygnus /usr /opt/kerberos]
2222    --with-server-principal=ARG
2223                           server host principal ("amanda")
2224    --with-server-instance=ARG
2225                           server host instance ("amanda")
2226    --with-server-keyfile=ARG
2227                           server host key file ("/.amanda")
2228    --with-client-principal=ARG
2229                           client host principle ("rcmd")
2230    --with-client-instance=ARG
2231                           client host instance (HOSTNAME_INSTANCE)
2232    --with-client-keyfile=ARG
2233                           client host key file (KEYFILE)
2234    --ticket-lifetime      ticket lifetime (128)
2235   --with-krb5-security=DIR
2236                           Location of Kerberos V software [/usr/kerberos
2237                           /usr/cygnus /usr /opt/kerberos]
2238   --with-dump-honor-nodump
2239                           if dump supports -h, use it for level0s too
2240   --with-gnutar=PROG      use PROG as GNU 'tar'
2241   --with-smbclient=PROG   use PROG as 'smbclient'
2242   --with-samba-user       deprecated; place username in 'amandapass'
2243   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2244   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2245   --with-pic              try to use only PIC/non-PIC objects [default=use
2246                           both]
2247   --with-tags[=TAGS]      include additional configurations [automatic]
2248   --with-readline         require readline support (for amrecover)
2249   --without-readline      don't search for readline
2250
2251 Some influential environment variables:
2252   CC          C compiler command
2253   CFLAGS      C compiler flags
2254   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2255               nonstandard directory <lib dir>
2256   LIBS        libraries to pass to the linker, e.g. -l<library>
2257   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2258               you have headers in a nonstandard directory <include dir>
2259   CPP         C preprocessor
2260   GNUPLOT     Location of the 'gnuplot' binary
2261   SWIG        Path to the 'swig' binary (developers only)
2262   PERL        Path to the 'perl' binary
2263   GNUTAR      Location of the GNU 'tar' binary
2264   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2265               the first program found out of: `bison -y', `byacc', `yacc'.
2266   YFLAGS      The list of arguments that will be passed by default to $YACC.
2267               This script will default YFLAGS to the empty string to avoid a
2268               default value of `-d' given by some make applications.
2269   CXX         C++ compiler command
2270   CXXFLAGS    C++ compiler flags
2271   CXXCPP      C++ preprocessor
2272   F77         Fortran 77 compiler command
2273   FFLAGS      Fortran 77 compiler flags
2274   PKG_CONFIG  path to pkg-config utility
2275
2276 Use these variables to override the choices made by `configure' or to help
2277 it to find libraries and programs with nonstandard names/locations.
2278
2279 _ACEOF
2280 ac_status=$?
2281 fi
2282
2283 if test "$ac_init_help" = "recursive"; then
2284   # If there are subdirs, report their specific --help.
2285   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2286     test -d "$ac_dir" ||
2287       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2288       continue
2289     ac_builddir=.
2290
2291 case "$ac_dir" in
2292 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2293 *)
2294   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2295   # A ".." for each directory in $ac_dir_suffix.
2296   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2297   case $ac_top_builddir_sub in
2298   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2299   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2300   esac ;;
2301 esac
2302 ac_abs_top_builddir=$ac_pwd
2303 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2304 # for backward compatibility:
2305 ac_top_builddir=$ac_top_build_prefix
2306
2307 case $srcdir in
2308   .)  # We are building in place.
2309     ac_srcdir=.
2310     ac_top_srcdir=$ac_top_builddir_sub
2311     ac_abs_top_srcdir=$ac_pwd ;;
2312   [\\/]* | ?:[\\/]* )  # Absolute name.
2313     ac_srcdir=$srcdir$ac_dir_suffix;
2314     ac_top_srcdir=$srcdir
2315     ac_abs_top_srcdir=$srcdir ;;
2316   *) # Relative name.
2317     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2318     ac_top_srcdir=$ac_top_build_prefix$srcdir
2319     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2320 esac
2321 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2322
2323     cd "$ac_dir" || { ac_status=$?; continue; }
2324     # Check for guested configure.
2325     if test -f "$ac_srcdir/configure.gnu"; then
2326       echo &&
2327       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2328     elif test -f "$ac_srcdir/configure"; then
2329       echo &&
2330       $SHELL "$ac_srcdir/configure" --help=recursive
2331     else
2332       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2333     fi || ac_status=$?
2334     cd "$ac_pwd" || { ac_status=$?; break; }
2335   done
2336 fi
2337
2338 test -n "$ac_init_help" && exit $ac_status
2339 if $ac_init_version; then
2340   cat <<\_ACEOF
2341 configure
2342 generated by GNU Autoconf 2.63
2343
2344 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2345 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2346 This configure script is free software; the Free Software Foundation
2347 gives unlimited permission to copy, distribute and modify it.
2348 _ACEOF
2349   exit
2350 fi
2351 cat >config.log <<_ACEOF
2352 This file contains any messages produced by compilers while
2353 running configure, to aid debugging if configure makes a mistake.
2354
2355 It was created by $as_me, which was
2356 generated by GNU Autoconf 2.63.  Invocation command line was
2357
2358   $ $0 $@
2359
2360 _ACEOF
2361 exec 5>>config.log
2362 {
2363 cat <<_ASUNAME
2364 ## --------- ##
2365 ## Platform. ##
2366 ## --------- ##
2367
2368 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2369 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2370 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2371 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2372 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2373
2374 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2375 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2376
2377 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2378 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2379 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2380 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2381 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2382 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2383 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2384
2385 _ASUNAME
2386
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392   $as_echo "PATH: $as_dir"
2393 done
2394 IFS=$as_save_IFS
2395
2396 } >&5
2397
2398 cat >&5 <<_ACEOF
2399
2400
2401 ## ----------- ##
2402 ## Core tests. ##
2403 ## ----------- ##
2404
2405 _ACEOF
2406
2407
2408 # Keep a trace of the command line.
2409 # Strip out --no-create and --no-recursion so they do not pile up.
2410 # Strip out --silent because we don't want to record it for future runs.
2411 # Also quote any args containing shell meta-characters.
2412 # Make two passes to allow for proper duplicate-argument suppression.
2413 ac_configure_args=
2414 ac_configure_args0=
2415 ac_configure_args1=
2416 ac_must_keep_next=false
2417 for ac_pass in 1 2
2418 do
2419   for ac_arg
2420   do
2421     case $ac_arg in
2422     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2423     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2424     | -silent | --silent | --silen | --sile | --sil)
2425       continue ;;
2426     *\'*)
2427       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2428     esac
2429     case $ac_pass in
2430     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2431     2)
2432       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2433       if test $ac_must_keep_next = true; then
2434         ac_must_keep_next=false # Got value, back to normal.
2435       else
2436         case $ac_arg in
2437           *=* | --config-cache | -C | -disable-* | --disable-* \
2438           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2439           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2440           | -with-* | --with-* | -without-* | --without-* | --x)
2441             case "$ac_configure_args0 " in
2442               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2443             esac
2444             ;;
2445           -* ) ac_must_keep_next=true ;;
2446         esac
2447       fi
2448       ac_configure_args="$ac_configure_args '$ac_arg'"
2449       ;;
2450     esac
2451   done
2452 done
2453 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2454 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2455
2456 # When interrupted or exit'd, cleanup temporary files, and complete
2457 # config.log.  We remove comments because anyway the quotes in there
2458 # would cause problems or look ugly.
2459 # WARNING: Use '\'' to represent an apostrophe within the trap.
2460 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2461 trap 'exit_status=$?
2462   # Save into config.log some information that might help in debugging.
2463   {
2464     echo
2465
2466     cat <<\_ASBOX
2467 ## ---------------- ##
2468 ## Cache variables. ##
2469 ## ---------------- ##
2470 _ASBOX
2471     echo
2472     # The following way of writing the cache mishandles newlines in values,
2473 (
2474   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475     eval ac_val=\$$ac_var
2476     case $ac_val in #(
2477     *${as_nl}*)
2478       case $ac_var in #(
2479       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2481       esac
2482       case $ac_var in #(
2483       _ | IFS | as_nl) ;; #(
2484       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485       *) $as_unset $ac_var ;;
2486       esac ;;
2487     esac
2488   done
2489   (set) 2>&1 |
2490     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491     *${as_nl}ac_space=\ *)
2492       sed -n \
2493         "s/'\''/'\''\\\\'\'''\''/g;
2494           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2495       ;; #(
2496     *)
2497       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498       ;;
2499     esac |
2500     sort
2501 )
2502     echo
2503
2504     cat <<\_ASBOX
2505 ## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##
2508 _ASBOX
2509     echo
2510     for ac_var in $ac_subst_vars
2511     do
2512       eval ac_val=\$$ac_var
2513       case $ac_val in
2514       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515       esac
2516       $as_echo "$ac_var='\''$ac_val'\''"
2517     done | sort
2518     echo
2519
2520     if test -n "$ac_subst_files"; then
2521       cat <<\_ASBOX
2522 ## ------------------- ##
2523 ## File substitutions. ##
2524 ## ------------------- ##
2525 _ASBOX
2526       echo
2527       for ac_var in $ac_subst_files
2528       do
2529         eval ac_val=\$$ac_var
2530         case $ac_val in
2531         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532         esac
2533         $as_echo "$ac_var='\''$ac_val'\''"
2534       done | sort
2535       echo
2536     fi
2537
2538     if test -s confdefs.h; then
2539       cat <<\_ASBOX
2540 ## ----------- ##
2541 ## confdefs.h. ##
2542 ## ----------- ##
2543 _ASBOX
2544       echo
2545       cat confdefs.h
2546       echo
2547     fi
2548     test "$ac_signal" != 0 &&
2549       $as_echo "$as_me: caught signal $ac_signal"
2550     $as_echo "$as_me: exit $exit_status"
2551   } >&5
2552   rm -f core *.core core.conftest.* &&
2553     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554     exit $exit_status
2555 ' 0
2556 for ac_signal in 1 2 13 15; do
2557   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2558 done
2559 ac_signal=0
2560
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2563
2564 # Predefined preprocessor variables.
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_NAME "$PACKAGE_NAME"
2568 _ACEOF
2569
2570
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2573 _ACEOF
2574
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 _ACEOF
2579
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_STRING "$PACKAGE_STRING"
2583 _ACEOF
2584
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588 _ACEOF
2589
2590
2591 # Let the site file select an alternate cache file if it wants to.
2592 # Prefer an explicitly selected file to automatically selected ones.
2593 ac_site_file1=NONE
2594 ac_site_file2=NONE
2595 if test -n "$CONFIG_SITE"; then
2596   ac_site_file1=$CONFIG_SITE
2597 elif test "x$prefix" != xNONE; then
2598   ac_site_file1=$prefix/share/config.site
2599   ac_site_file2=$prefix/etc/config.site
2600 else
2601   ac_site_file1=$ac_default_prefix/share/config.site
2602   ac_site_file2=$ac_default_prefix/etc/config.site
2603 fi
2604 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2605 do
2606   test "x$ac_site_file" = xNONE && continue
2607   if test -r "$ac_site_file"; then
2608     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2609 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2610     sed 's/^/| /' "$ac_site_file" >&5
2611     . "$ac_site_file"
2612   fi
2613 done
2614
2615 if test -r "$cache_file"; then
2616   # Some versions of bash will fail to source /dev/null (special
2617   # files actually), so we avoid doing that.
2618   if test -f "$cache_file"; then
2619     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2620 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621     case $cache_file in
2622       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2623       *)                      . "./$cache_file";;
2624     esac
2625   fi
2626 else
2627   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2628 $as_echo "$as_me: creating cache $cache_file" >&6;}
2629   >$cache_file
2630 fi
2631
2632 gl_header_list="$gl_header_list arpa/inet.h"
2633 gl_header_list="$gl_header_list float.h"
2634 gl_header_list="$gl_header_list sys/param.h"
2635 gl_header_list="$gl_header_list sys/vfs.h"
2636 gl_header_list="$gl_header_list sys/fs_types.h"
2637 gl_header_list="$gl_header_list sys/socket.h"
2638 gl_header_list="$gl_header_list netdb.h"
2639 gl_header_list="$gl_header_list netinet/in.h"
2640 gl_header_list="$gl_header_list sys/time.h"
2641 gl_func_list="$gl_func_list gettimeofday"
2642 gl_header_list="$gl_header_list stdint.h"
2643 gl_header_list="$gl_header_list wchar.h"
2644 gl_header_list="$gl_header_list stdio.h"
2645 gl_header_list="$gl_header_list stdlib.h"
2646 gl_header_list="$gl_header_list string.h"
2647 gl_func_list="$gl_func_list lstat"
2648 gl_header_list="$gl_header_list sys/stat.h"
2649 gl_header_list="$gl_header_list unistd.h"
2650 gl_func_list="$gl_func_list vasnprintf"
2651 # Check that the precious variables saved in the cache have kept the same
2652 # value.
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656   eval ac_new_set=\$ac_env_${ac_var}_set
2657   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658   eval ac_new_val=\$ac_env_${ac_var}_value
2659   case $ac_old_set,$ac_new_set in
2660     set,)
2661       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663       ac_cache_corrupted=: ;;
2664     ,set)
2665       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667       ac_cache_corrupted=: ;;
2668     ,);;
2669     *)
2670       if test "x$ac_old_val" != "x$ac_new_val"; then
2671         # differences in whitespace do not lead to failure.
2672         ac_old_val_w=`echo x $ac_old_val`
2673         ac_new_val_w=`echo x $ac_new_val`
2674         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677           ac_cache_corrupted=:
2678         else
2679           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681           eval $ac_var=\$ac_old_val
2682         fi
2683         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2684 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2685         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2687       fi;;
2688   esac
2689   # Pass precious variables to config.status.
2690   if test "$ac_new_set" = set; then
2691     case $ac_new_val in
2692     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693     *) ac_arg=$ac_var=$ac_new_val ;;
2694     esac
2695     case " $ac_configure_args " in
2696       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2697       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2698     esac
2699   fi
2700 done
2701 if $ac_cache_corrupted; then
2702   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2707 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2708    { (exit 1); exit 1; }; }
2709 fi
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734
2735 ac_aux_dir=
2736 for ac_dir in config "$srcdir"/config; do
2737   if test -f "$ac_dir/install-sh"; then
2738     ac_aux_dir=$ac_dir
2739     ac_install_sh="$ac_aux_dir/install-sh -c"
2740     break
2741   elif test -f "$ac_dir/install.sh"; then
2742     ac_aux_dir=$ac_dir
2743     ac_install_sh="$ac_aux_dir/install.sh -c"
2744     break
2745   elif test -f "$ac_dir/shtool"; then
2746     ac_aux_dir=$ac_dir
2747     ac_install_sh="$ac_aux_dir/shtool install -c"
2748     break
2749   fi
2750 done
2751 if test -z "$ac_aux_dir"; then
2752   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2753 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2754    { (exit 1); exit 1; }; }
2755 fi
2756
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2764
2765
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2769 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2770    { (exit 1); exit 1; }; }
2771
2772 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2773 $as_echo_n "checking build system type... " >&6; }
2774 if test "${ac_cv_build+set}" = set; then
2775   $as_echo_n "(cached) " >&6
2776 else
2777   ac_build_alias=$build_alias
2778 test "x$ac_build_alias" = x &&
2779   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2780 test "x$ac_build_alias" = x &&
2781   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2782 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2783    { (exit 1); exit 1; }; }
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2786 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2787    { (exit 1); exit 1; }; }
2788
2789 fi
2790 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2791 $as_echo "$ac_cv_build" >&6; }
2792 case $ac_cv_build in
2793 *-*-*) ;;
2794 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2795 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2796    { (exit 1); exit 1; }; };;
2797 esac
2798 build=$ac_cv_build
2799 ac_save_IFS=$IFS; IFS='-'
2800 set x $ac_cv_build
2801 shift
2802 build_cpu=$1
2803 build_vendor=$2
2804 shift; shift
2805 # Remember, the first character of IFS is used to create $*,
2806 # except with old shells:
2807 build_os=$*
2808 IFS=$ac_save_IFS
2809 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810
2811
2812 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2813 $as_echo_n "checking host system type... " >&6; }
2814 if test "${ac_cv_host+set}" = set; then
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if test "x$host_alias" = x; then
2818   ac_cv_host=$ac_cv_build
2819 else
2820   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2821     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2822 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2823    { (exit 1); exit 1; }; }
2824 fi
2825
2826 fi
2827 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2828 $as_echo "$ac_cv_host" >&6; }
2829 case $ac_cv_host in
2830 *-*-*) ;;
2831 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2832 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2833    { (exit 1); exit 1; }; };;
2834 esac
2835 host=$ac_cv_host
2836 ac_save_IFS=$IFS; IFS='-'
2837 set x $ac_cv_host
2838 shift
2839 host_cpu=$1
2840 host_vendor=$2
2841 shift; shift
2842 # Remember, the first character of IFS is used to create $*,
2843 # except with old shells:
2844 host_os=$*
2845 IFS=$ac_save_IFS
2846 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2847
2848
2849 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2850 $as_echo_n "checking target system type... " >&6; }
2851 if test "${ac_cv_target+set}" = set; then
2852   $as_echo_n "(cached) " >&6
2853 else
2854   if test "x$target_alias" = x; then
2855   ac_cv_target=$ac_cv_host
2856 else
2857   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2858     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2859 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2860    { (exit 1); exit 1; }; }
2861 fi
2862
2863 fi
2864 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2865 $as_echo "$ac_cv_target" >&6; }
2866 case $ac_cv_target in
2867 *-*-*) ;;
2868 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2869 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2870    { (exit 1); exit 1; }; };;
2871 esac
2872 target=$ac_cv_target
2873 ac_save_IFS=$IFS; IFS='-'
2874 set x $ac_cv_target
2875 shift
2876 target_cpu=$1
2877 target_vendor=$2
2878 shift; shift
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2881 target_os=$*
2882 IFS=$ac_save_IFS
2883 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2884
2885
2886 # The aliases save the names the user supplied, while $host etc.
2887 # will get canonicalized.
2888 test -n "$target_alias" &&
2889   test "$program_prefix$program_suffix$program_transform_name" = \
2890     NONENONEs,x,x, &&
2891   program_prefix=${target_alias}-
2892
2893 PACKAGE=amanda
2894
2895
2896 am__api_version='1.10'
2897
2898 # Find a good install program.  We prefer a C program (faster),
2899 # so one script is as good as another.  But avoid the broken or
2900 # incompatible versions:
2901 # SysV /etc/install, /usr/sbin/install
2902 # SunOS /usr/etc/install
2903 # IRIX /sbin/install
2904 # AIX /bin/install
2905 # AmigaOS /C/install, which installs bootblocks on floppy discs
2906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909 # OS/2's system install, which has a completely different semantic
2910 # ./install, which can be erroneously created by make from ./install.sh.
2911 # Reject install programs that cannot install multiple files.
2912 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2913 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2914 if test -z "$INSTALL"; then
2915 if test "${ac_cv_path_install+set}" = set; then
2916   $as_echo_n "(cached) " >&6
2917 else
2918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923   # Account for people who put trailing slashes in PATH elements.
2924 case $as_dir/ in
2925   ./ | .// | /cC/* | \
2926   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2927   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2928   /usr/ucb/* ) ;;
2929   *)
2930     # OSF1 and SCO ODT 3.0 have their own names for install.
2931     # Don't use installbsd from OSF since it installs stuff as root
2932     # by default.
2933     for ac_prog in ginstall scoinst install; do
2934       for ac_exec_ext in '' $ac_executable_extensions; do
2935         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2936           if test $ac_prog = install &&
2937             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2938             # AIX install.  It has an incompatible calling convention.
2939             :
2940           elif test $ac_prog = install &&
2941             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942             # program-specific install script used by HP pwplus--don't use.
2943             :
2944           else
2945             rm -rf conftest.one conftest.two conftest.dir
2946             echo one > conftest.one
2947             echo two > conftest.two
2948             mkdir conftest.dir
2949             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2950               test -s conftest.one && test -s conftest.two &&
2951               test -s conftest.dir/conftest.one &&
2952               test -s conftest.dir/conftest.two
2953             then
2954               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2955               break 3
2956             fi
2957           fi
2958         fi
2959       done
2960     done
2961     ;;
2962 esac
2963
2964 done
2965 IFS=$as_save_IFS
2966
2967 rm -rf conftest.one conftest.two conftest.dir
2968
2969 fi
2970   if test "${ac_cv_path_install+set}" = set; then
2971     INSTALL=$ac_cv_path_install
2972   else
2973     # As a last resort, use the slow shell script.  Don't cache a
2974     # value for INSTALL within a source directory, because that will
2975     # break other packages using the cache if that directory is
2976     # removed, or if the value is a relative name.
2977     INSTALL=$ac_install_sh
2978   fi
2979 fi
2980 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2981 $as_echo "$INSTALL" >&6; }
2982
2983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2984 # It thinks the first close brace ends the variable substitution.
2985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2986
2987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2988
2989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2990
2991 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2992 $as_echo_n "checking whether build environment is sane... " >&6; }
2993 # Just in case
2994 sleep 1
2995 echo timestamp > conftest.file
2996 # Do `set' in a subshell so we don't clobber the current shell's
2997 # arguments.  Must try -L first in case configure is actually a
2998 # symlink; some systems play weird games with the mod time of symlinks
2999 # (eg FreeBSD returns the mod time of the symlink's containing
3000 # directory).
3001 if (
3002    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3003    if test "$*" = "X"; then
3004       # -L didn't work.
3005       set X `ls -t $srcdir/configure conftest.file`
3006    fi
3007    rm -f conftest.file
3008    if test "$*" != "X $srcdir/configure conftest.file" \
3009       && test "$*" != "X conftest.file $srcdir/configure"; then
3010
3011       # If neither matched, then we have a broken ls.  This can happen
3012       # if, for instance, CONFIG_SHELL is bash and it inherits a
3013       # broken ls alias from the environment.  This has actually
3014       # happened.  Such a system could not be considered "sane".
3015       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3016 alias in your environment" >&5
3017 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3018 alias in your environment" >&2;}
3019    { (exit 1); exit 1; }; }
3020    fi
3021
3022    test "$2" = conftest.file
3023    )
3024 then
3025    # Ok.
3026    :
3027 else
3028    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3029 Check your system clock" >&5
3030 $as_echo "$as_me: error: newly created file is older than distributed files!
3031 Check your system clock" >&2;}
3032    { (exit 1); exit 1; }; }
3033 fi
3034 { $as_echo "$as_me:$LINENO: result: yes" >&5
3035 $as_echo "yes" >&6; }
3036 test "$program_prefix" != NONE &&
3037   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3038 # Use a double $ so make ignores it.
3039 test "$program_suffix" != NONE &&
3040   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3041 # Double any \ or $.
3042 # By default was `s,x,x', remove it if useless.
3043 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3044 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3045
3046 # expand $ac_aux_dir to an absolute path
3047 am_aux_dir=`cd $ac_aux_dir && pwd`
3048
3049 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3050 # Use eval to expand $SHELL
3051 if eval "$MISSING --run true"; then
3052   am_missing_run="$MISSING --run "
3053 else
3054   am_missing_run=
3055   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3056 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3057 fi
3058
3059 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061 if test -z "$MKDIR_P"; then
3062   if test "${ac_cv_path_mkdir+set}" = set; then
3063   $as_echo_n "(cached) " >&6
3064 else
3065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070   for ac_prog in mkdir gmkdir; do
3071          for ac_exec_ext in '' $ac_executable_extensions; do
3072            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3073            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074              'mkdir (GNU coreutils) '* | \
3075              'mkdir (coreutils) '* | \
3076              'mkdir (fileutils) '4.1*)
3077                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078                break 3;;
3079            esac
3080          done
3081        done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086
3087   if test "${ac_cv_path_mkdir+set}" = set; then
3088     MKDIR_P="$ac_cv_path_mkdir -p"
3089   else
3090     # As a last resort, use the slow shell script.  Don't cache a
3091     # value for MKDIR_P within a source directory, because that will
3092     # break other packages using the cache if that directory is
3093     # removed, or if the value is a relative name.
3094     test -d ./--version && rmdir ./--version
3095     MKDIR_P="$ac_install_sh -d"
3096   fi
3097 fi
3098 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3099 $as_echo "$MKDIR_P" >&6; }
3100
3101 mkdir_p="$MKDIR_P"
3102 case $mkdir_p in
3103   [\\/$]* | ?:[\\/]*) ;;
3104   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3105 esac
3106
3107 for ac_prog in gawk mawk nawk awk
3108 do
3109   # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_AWK+set}" = set; then
3114   $as_echo_n "(cached) " >&6
3115 else
3116   if test -n "$AWK"; then
3117   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   for ac_exec_ext in '' $ac_executable_extensions; do
3125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126     ac_cv_prog_AWK="$ac_prog"
3127     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 AWK=$ac_cv_prog_AWK
3137 if test -n "$AWK"; then
3138   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3139 $as_echo "$AWK" >&6; }
3140 else
3141   { $as_echo "$as_me:$LINENO: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146   test -n "$AWK" && break
3147 done
3148
3149 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3151 set x ${MAKE-make}
3152 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3153 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3154   $as_echo_n "(cached) " >&6
3155 else
3156   cat >conftest.make <<\_ACEOF
3157 SHELL = /bin/sh
3158 all:
3159         @echo '@@@%%%=$(MAKE)=@@@%%%'
3160 _ACEOF
3161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3163   *@@@%%%=?*=@@@%%%*)
3164     eval ac_cv_prog_make_${ac_make}_set=yes;;
3165   *)
3166     eval ac_cv_prog_make_${ac_make}_set=no;;
3167 esac
3168 rm -f conftest.make
3169 fi
3170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3171   { $as_echo "$as_me:$LINENO: result: yes" >&5
3172 $as_echo "yes" >&6; }
3173   SET_MAKE=
3174 else
3175   { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3177   SET_MAKE="MAKE=${MAKE-make}"
3178 fi
3179
3180 rm -rf .tst 2>/dev/null
3181 mkdir .tst 2>/dev/null
3182 if test -d .tst; then
3183   am__leading_dot=.
3184 else
3185   am__leading_dot=_
3186 fi
3187 rmdir .tst 2>/dev/null
3188
3189 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3190   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3191   # is not polluted with repeated "-I."
3192   am__isrc=' -I$(srcdir)'
3193   # test to see if srcdir already configured
3194   if test -f $srcdir/config.status; then
3195     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3196 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3197    { (exit 1); exit 1; }; }
3198   fi
3199 fi
3200
3201 # test whether we have cygpath
3202 if test -z "$CYGPATH_W"; then
3203   if (cygpath --version) >/dev/null 2>/dev/null; then
3204     CYGPATH_W='cygpath -w'
3205   else
3206     CYGPATH_W=echo
3207   fi
3208 fi
3209
3210
3211 # Define the identity of the package.
3212  PACKAGE=amanda
3213  VERSION="2.6.1p1"
3214
3215
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE "$PACKAGE"
3218 _ACEOF
3219
3220
3221 cat >>confdefs.h <<_ACEOF
3222 #define VERSION "$VERSION"
3223 _ACEOF
3224
3225 # Some tools Automake needs.
3226
3227 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3228
3229
3230 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3231
3232
3233 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3234
3235
3236 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3237
3238
3239 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3240
3241 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3242
3243 # Installed binaries are usually stripped using `strip' when the user
3244 # run `make install-strip'.  However `strip' might not be the right
3245 # tool to use in cross-compilation environments, therefore Automake
3246 # will honor the `STRIP' environment variable to overrule this program.
3247 if test "$cross_compiling" != no; then
3248   if test -n "$ac_tool_prefix"; then
3249   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}strip; ac_word=$2
3251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if test "${ac_cv_prog_STRIP+set}" = set; then
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if test -n "$STRIP"; then
3257   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264   for ac_exec_ext in '' $ac_executable_extensions; do
3265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3267     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 STRIP=$ac_cv_prog_STRIP
3277 if test -n "$STRIP"; then
3278   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3279 $as_echo "$STRIP" >&6; }
3280 else
3281   { $as_echo "$as_me:$LINENO: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286 fi
3287 if test -z "$ac_cv_prog_STRIP"; then
3288   ac_ct_STRIP=$STRIP
3289   # Extract the first word of "strip", so it can be a program name with args.
3290 set dummy strip; ac_word=$2
3291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3294   $as_echo_n "(cached) " >&6
3295 else
3296   if test -n "$ac_ct_STRIP"; then
3297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306     ac_cv_prog_ac_ct_STRIP="strip"
3307     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3317 if test -n "$ac_ct_STRIP"; then
3318   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3319 $as_echo "$ac_ct_STRIP" >&6; }
3320 else
3321   { $as_echo "$as_me:$LINENO: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325   if test "x$ac_ct_STRIP" = x; then
3326     STRIP=":"
3327   else
3328     case $cross_compiling:$ac_tool_warned in
3329 yes:)
3330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332 ac_tool_warned=yes ;;
3333 esac
3334     STRIP=$ac_ct_STRIP
3335   fi
3336 else
3337   STRIP="$ac_cv_prog_STRIP"
3338 fi
3339
3340 fi
3341 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3342
3343 # We need awk for the "check" target.  The system "awk" is bad on
3344 # some platforms.
3345 # Always define AMTAR for backward compatibility.
3346
3347 AMTAR=${AMTAR-"${am_missing_run}tar"}
3348
3349 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3350
3351
3352
3353
3354
3355 ac_config_headers="$ac_config_headers config/config.h"
3356
3357
3358
3359
3360 #
3361 # Take care of some early Amanda-specific setup
3362 #
3363
3364     # initialize warnings file
3365     rm -f config.warnings
3366
3367
3368     if test -f "$srcdir/SNAPSHOT"; then
3369       cat < "$srcdir/SNAPSHOT"
3370
3371       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3372
3373       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3374       SNAPSHOT_STAMP=SNAPSHOT
3375     else
3376       SNAPSHOT_STAMP=
3377     fi
3378
3379
3380
3381
3382     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3383     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3384     VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3385     VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3386
3387
3388     VERSION_SUFFIX="$VERSION"
3389
3390
3391
3392
3393
3394
3395
3396     if test -f config.local; then
3397         echo "running local script ./config.local"
3398         . ./config.local
3399     fi
3400
3401
3402 #
3403 # Set up compiler location, basic flags, and include locations
3404 # and library locations before we start checking the system
3405 # configuration in more detail...
3406 #
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$CC"; then
3421   ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445   { $as_echo "$as_me:$LINENO: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 fi
3451 if test -z "$ac_cv_prog_CC"; then
3452   ac_ct_CC=$CC
3453   # Extract the first word of "gcc", so it can be a program name with args.
3454 set dummy gcc; ac_word=$2
3455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3458   $as_echo_n "(cached) " >&6
3459 else
3460   if test -n "$ac_ct_CC"; then
3461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468   for ac_exec_ext in '' $ac_executable_extensions; do
3469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470     ac_cv_prog_ac_ct_CC="gcc"
3471     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3484 else
3485   { $as_echo "$as_me:$LINENO: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489   if test "x$ac_ct_CC" = x; then
3490     CC=""
3491   else
3492     case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498     CC=$ac_ct_CC
3499   fi
3500 else
3501   CC="$ac_cv_prog_CC"
3502 fi
3503
3504 if test -z "$CC"; then
3505           if test -n "$ac_tool_prefix"; then
3506     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}cc; ac_word=$2
3508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then
3511   $as_echo_n "(cached) " >&6
3512 else
3513   if test -n "$CC"; then
3514   ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523     ac_cv_prog_CC="${ac_tool_prefix}cc"
3524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538   { $as_echo "$as_me:$LINENO: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543   fi
3544 fi
3545 if test -z "$CC"; then
3546   # Extract the first word of "cc", so it can be a program name with args.
3547 set dummy cc; ac_word=$2
3548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then
3551   $as_echo_n "(cached) " >&6
3552 else
3553   if test -n "$CC"; then
3554   ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556   ac_prog_rejected=no
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562   for ac_exec_ext in '' $ac_executable_extensions; do
3563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565        ac_prog_rejected=yes
3566        continue
3567      fi
3568     ac_cv_prog_CC="cc"
3569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 if test $ac_prog_rejected = yes; then
3577   # We found a bogon in the path, so make sure we never use it.
3578   set dummy $ac_cv_prog_CC
3579   shift
3580   if test $# != 0; then
3581     # We chose a different compiler from the bogus one.
3582     # However, it has the same basename, so the bogon will be chosen
3583     # first if we set CC to just the basename; use the full file name.
3584     shift
3585     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586   fi
3587 fi
3588 fi
3589 fi
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3594 else
3595   { $as_echo "$as_me:$LINENO: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 fi
3601 if test -z "$CC"; then
3602   if test -n "$ac_tool_prefix"; then
3603   for ac_prog in cl.exe
3604   do
3605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -n "$CC"; then
3613   ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620   for ac_exec_ext in '' $ac_executable_extensions; do
3621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637   { $as_echo "$as_me:$LINENO: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642     test -n "$CC" && break
3643   done
3644 fi
3645 if test -z "$CC"; then
3646   ac_ct_CC=$CC
3647   for ac_prog in cl.exe
3648 do
3649   # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3654   $as_echo_n "(cached) " >&6
3655 else
3656   if test -n "$ac_ct_CC"; then
3657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for ac_exec_ext in '' $ac_executable_extensions; do
3665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666     ac_cv_prog_ac_ct_CC="$ac_prog"
3667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668     break 2
3669   fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3680 else
3681   { $as_echo "$as_me:$LINENO: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685
3686   test -n "$ac_ct_CC" && break
3687 done
3688
3689   if test "x$ac_ct_CC" = x; then
3690     CC=""
3691   else
3692     case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698     CC=$ac_ct_CC
3699   fi
3700 fi
3701
3702 fi
3703
3704
3705 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details." >&5
3709 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3710 See \`config.log' for more details." >&2;}
3711    { (exit 1); exit 1; }; }; }
3712
3713 # Provide some information about the compiler.
3714 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3715 set X $ac_compile
3716 ac_compiler=$2
3717 { (ac_try="$ac_compiler --version >&5"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724   (eval "$ac_compiler --version >&5") 2>&5
3725   ac_status=$?
3726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }
3728 { (ac_try="$ac_compiler -v >&5"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734 $as_echo "$ac_try_echo") >&5
3735   (eval "$ac_compiler -v >&5") 2>&5
3736   ac_status=$?
3737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }
3739 { (ac_try="$ac_compiler -V >&5"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745 $as_echo "$ac_try_echo") >&5
3746   (eval "$ac_compiler -V >&5") 2>&5
3747   ac_status=$?
3748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }
3750
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3770 # of exeext.
3771 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3772 $as_echo_n "checking for C compiler default output file name... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777
3778 ac_rmfiles=
3779 for ac_file in $ac_files
3780 do
3781   case $ac_file in
3782     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784   esac
3785 done
3786 rm -f $ac_rmfiles
3787
3788 if { (ac_try="$ac_link_default"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795   (eval "$ac_link_default") 2>&5
3796   ac_status=$?
3797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; then
3799   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3803 # Autoconf.
3804 for ac_file in $ac_files ''
3805 do
3806   test -f "$ac_file" || continue
3807   case $ac_file in
3808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3809         ;;
3810     [ab].out )
3811         # We found the default executable, but exeext='' is most
3812         # certainly right.
3813         break;;
3814     *.* )
3815         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3816         then :; else
3817            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818         fi
3819         # We set ac_cv_exeext here because the later test for it is not
3820         # safe: cross compilers may not add the suffix if given an `-o'
3821         # argument, so we may need to know it at that point already.
3822         # Even if this section looks crufty: it has the advantage of
3823         # actually working.
3824         break;;
3825     * )
3826         break;;
3827   esac
3828 done
3829 test "$ac_cv_exeext" = no && ac_cv_exeext=
3830
3831 else
3832   ac_file=''
3833 fi
3834
3835 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3836 $as_echo "$ac_file" >&6; }
3837 if test -z "$ac_file"; then
3838   $as_echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3844 See \`config.log' for more details." >&5
3845 $as_echo "$as_me: error: C compiler cannot create executables
3846 See \`config.log' for more details." >&2;}
3847    { (exit 77); exit 77; }; }; }
3848 fi
3849
3850 ac_exeext=$ac_cv_exeext
3851
3852 # Check that the compiler produces executables we can run.  If not, either
3853 # the compiler is broken, or we cross compile.
3854 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3855 $as_echo_n "checking whether the C compiler works... " >&6; }
3856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3857 # If not cross compiling, check that we can run a simple program.
3858 if test "$cross_compiling" != yes; then
3859   if { ac_try='./$ac_file'
3860   { (case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866   (eval "$ac_try") 2>&5
3867   ac_status=$?
3868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870     cross_compiling=no
3871   else
3872     if test "$cross_compiling" = maybe; then
3873         cross_compiling=yes
3874     else
3875         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3878 If you meant to cross compile, use \`--host'.
3879 See \`config.log' for more details." >&5
3880 $as_echo "$as_me: error: cannot run C compiled programs.
3881 If you meant to cross compile, use \`--host'.
3882 See \`config.log' for more details." >&2;}
3883    { (exit 1); exit 1; }; }; }
3884     fi
3885   fi
3886 fi
3887 { $as_echo "$as_me:$LINENO: result: yes" >&5
3888 $as_echo "yes" >&6; }
3889
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3891 ac_clean_files=$ac_clean_files_save
3892 # Check that the compiler produces executables we can run.  If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3898
3899 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { (ac_try="$ac_link"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908   (eval "$ac_link") 2>&5
3909   ac_status=$?
3910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; then
3912   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3915 # `rm'.
3916 for ac_file in conftest.exe conftest conftest.*; do
3917   test -f "$ac_file" || continue
3918   case $ac_file in
3919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921           break;;
3922     * ) break;;
3923   esac
3924 done
3925 else
3926   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details." >&5
3930 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3931 See \`config.log' for more details." >&2;}
3932    { (exit 1); exit 1; }; }; }
3933 fi
3934
3935 rm -f conftest$ac_cv_exeext
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3937 $as_echo "$ac_cv_exeext" >&6; }
3938
3939 rm -f conftest.$ac_ext
3940 EXEEXT=$ac_cv_exeext
3941 ac_exeext=$EXEEXT
3942 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3943 $as_echo_n "checking for suffix of object files... " >&6; }
3944 if test "${ac_cv_objext+set}" = set; then
3945   $as_echo_n "(cached) " >&6
3946 else
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.o conftest.obj
3963 if { (ac_try="$ac_compile"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969 $as_echo "$ac_try_echo") >&5
3970   (eval "$ac_compile") 2>&5
3971   ac_status=$?
3972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; then
3974   for ac_file in conftest.o conftest.obj conftest.*; do
3975   test -f "$ac_file" || continue;
3976   case $ac_file in
3977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3979        break;;
3980   esac
3981 done
3982 else
3983   $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3989 See \`config.log' for more details." >&5
3990 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." >&2;}
3992    { (exit 1); exit 1; }; }; }
3993 fi
3994
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 fi
3997 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT
4001 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4004   $as_echo_n "(cached) " >&6
4005 else
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017        choke me
4018 #endif
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032   (eval "$ac_compile") 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } && {
4039          test -z "$ac_c_werror_flag" ||
4040          test ! -s conftest.err
4041        } && test -s conftest.$ac_objext; then
4042   ac_compiler_gnu=yes
4043 else
4044   $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047         ac_compiler_gnu=no
4048 fi
4049
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4052
4053 fi
4054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4056 if test $ac_compiler_gnu = yes; then
4057   GCC=yes
4058 else
4059   GCC=
4060 fi
4061 ac_test_CFLAGS=${CFLAGS+set}
4062 ac_save_CFLAGS=$CFLAGS
4063 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4065 if test "${ac_cv_prog_cc_g+set}" = set; then
4066   $as_echo_n "(cached) " >&6
4067 else
4068   ac_save_c_werror_flag=$ac_c_werror_flag
4069    ac_c_werror_flag=yes
4070    ac_cv_prog_cc_g=no
4071    CFLAGS="-g"
4072    cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095   (eval "$ac_compile") 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } && {
4102          test -z "$ac_c_werror_flag" ||
4103          test ! -s conftest.err
4104        } && test -s conftest.$ac_objext; then
4105   ac_cv_prog_cc_g=yes
4106 else
4107   $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110         CFLAGS=""
4111       cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117
4118 int
4119 main ()
4120 {
4121
4122   ;
4123   return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130   *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134   (eval "$ac_compile") 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } && {
4141          test -z "$ac_c_werror_flag" ||
4142          test ! -s conftest.err
4143        } && test -s conftest.$ac_objext; then
4144   :
4145 else
4146   $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149         ac_c_werror_flag=$ac_save_c_werror_flag
4150          CFLAGS="-g"
4151          cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174   (eval "$ac_compile") 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } && {
4181          test -z "$ac_c_werror_flag" ||
4182          test ! -s conftest.err
4183        } && test -s conftest.$ac_objext; then
4184   ac_cv_prog_cc_g=yes
4185 else
4186   $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189
4190 fi
4191
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 fi
4194
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4197
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199    ac_c_werror_flag=$ac_save_c_werror_flag
4200 fi
4201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4202 $as_echo "$ac_cv_prog_cc_g" >&6; }
4203 if test "$ac_test_CFLAGS" = set; then
4204   CFLAGS=$ac_save_CFLAGS
4205 elif test $ac_cv_prog_cc_g = yes; then
4206   if test "$GCC" = yes; then
4207     CFLAGS="-g -O2"
4208   else
4209     CFLAGS="-g"
4210   fi
4211 else
4212   if test "$GCC" = yes; then
4213     CFLAGS="-O2"
4214   else
4215     CFLAGS=
4216   fi
4217 fi
4218 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 if test "${ac_cv_prog_cc_c89+set}" = set; then
4221   $as_echo_n "(cached) " >&6
4222 else
4223   ac_cv_prog_cc_c89=no
4224 ac_save_CC=$CC
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 #include <stdarg.h>
4232 #include <stdio.h>
4233 #include <sys/types.h>
4234 #include <sys/stat.h>
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4239      char **p;
4240      int i;
4241 {
4242   return p[i];
4243 }
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4245 {
4246   char *s;
4247   va_list v;
4248   va_start (v,p);
4249   s = g (p, va_arg (v,int));
4250   va_end (v);
4251   return s;
4252 }
4253
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4255    function prototypes and stuff, but not '\xHH' hex character constants.
4256    These don't provoke an error unfortunately, instead are silently treated
4257    as 'x'.  The following induces an error, until -std is added to get
4258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4259    array size at least.  It's necessary to write '\x00'==0 to get something
4260    that's true only with -std.  */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4262
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264    inside strings and character constants.  */
4265 #define FOO(x) 'x'
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4267
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272 int argc;
4273 char **argv;
4274 int
4275 main ()
4276 {
4277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285   CC="$ac_save_CC $ac_arg"
4286   rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4288 case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4293 $as_echo "$ac_try_echo") >&5
4294   (eval "$ac_compile") 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } && {
4301          test -z "$ac_c_werror_flag" ||
4302          test ! -s conftest.err
4303        } && test -s conftest.$ac_objext; then
4304   ac_cv_prog_cc_c89=$ac_arg
4305 else
4306   $as_echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309
4310 fi
4311
4312 rm -f core conftest.err conftest.$ac_objext
4313   test "x$ac_cv_prog_cc_c89" != "xno" && break
4314 done
4315 rm -f conftest.$ac_ext
4316 CC=$ac_save_CC
4317
4318 fi
4319 # AC_CACHE_VAL
4320 case "x$ac_cv_prog_cc_c89" in
4321   x)
4322     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4324   xno)
4325     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4327   *)
4328     CC="$CC $ac_cv_prog_cc_c89"
4329     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4331 esac
4332
4333
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 DEPDIR="${am__leading_dot}deps"
4340
4341 ac_config_commands="$ac_config_commands depfiles"
4342
4343
4344 am_make=${MAKE-make}
4345 cat > confinc << 'END'
4346 am__doit:
4347         @echo done
4348 .PHONY: am__doit
4349 END
4350 # If we don't find an include directive, just comment out the code.
4351 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4352 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4353 am__include="#"
4354 am__quote=
4355 _am_result=none
4356 # First try GNU make style include.
4357 echo "include confinc" > confmf
4358 # We grep out `Entering directory' and `Leaving directory'
4359 # messages which can occur if `w' ends up in MAKEFLAGS.
4360 # In particular we don't look at `^make:' because GNU make might
4361 # be invoked under some other name (usually "gmake"), in which
4362 # case it prints its new name instead of `make'.
4363 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4364    am__include=include
4365    am__quote=
4366    _am_result=GNU
4367 fi
4368 # Now try BSD make style include.
4369 if test "$am__include" = "#"; then
4370    echo '.include "confinc"' > confmf
4371    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4372       am__include=.include
4373       am__quote="\""
4374       _am_result=BSD
4375    fi
4376 fi
4377
4378
4379 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4380 $as_echo "$_am_result" >&6; }
4381 rm -f confinc confmf
4382
4383 # Check whether --enable-dependency-tracking was given.
4384 if test "${enable_dependency_tracking+set}" = set; then
4385   enableval=$enable_dependency_tracking;
4386 fi
4387
4388 if test "x$enable_dependency_tracking" != xno; then
4389   am_depcomp="$ac_aux_dir/depcomp"
4390   AMDEPBACKSLASH='\'
4391 fi
4392  if test "x$enable_dependency_tracking" != xno; then
4393   AMDEP_TRUE=
4394   AMDEP_FALSE='#'
4395 else
4396   AMDEP_TRUE='#'
4397   AMDEP_FALSE=
4398 fi
4399
4400
4401
4402 depcc="$CC"   am_compiler_list=
4403
4404 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4405 $as_echo_n "checking dependency style of $depcc... " >&6; }
4406 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4410   # We make a subdir and do the tests there.  Otherwise we can end up
4411   # making bogus files that we don't know about and never remove.  For
4412   # instance it was reported that on HP-UX the gcc test will end up
4413   # making a dummy file named `D' -- because `-MD' means `put the output
4414   # in D'.
4415   mkdir conftest.dir
4416   # Copy depcomp to subdir because otherwise we won't find it if we're
4417   # using a relative directory.
4418   cp "$am_depcomp" conftest.dir
4419   cd conftest.dir
4420   # We will build objects and dependencies in a subdirectory because
4421   # it helps to detect inapplicable dependency modes.  For instance
4422   # both Tru64's cc and ICC support -MD to output dependencies as a
4423   # side effect of compilation, but ICC will put the dependencies in
4424   # the current directory while Tru64 will put them in the object
4425   # directory.
4426   mkdir sub
4427
4428   am_cv_CC_dependencies_compiler_type=none
4429   if test "$am_compiler_list" = ""; then
4430      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4431   fi
4432   for depmode in $am_compiler_list; do
4433     # Setup a source with many dependencies, because some compilers
4434     # like to wrap large dependency lists on column 80 (with \), and
4435     # we should not choose a depcomp mode which is confused by this.
4436     #
4437     # We need to recreate these files for each test, as the compiler may
4438     # overwrite some of them when testing with obscure command lines.
4439     # This happens at least with the AIX C compiler.
4440     : > sub/conftest.c
4441     for i in 1 2 3 4 5 6; do
4442       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4443       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4444       # Solaris 8's {/usr,}/bin/sh.
4445       touch sub/conftst$i.h
4446     done
4447     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4448
4449     case $depmode in
4450     nosideeffect)
4451       # after this tag, mechanisms are not by side-effect, so they'll
4452       # only be used when explicitly requested
4453       if test "x$enable_dependency_tracking" = xyes; then
4454         continue
4455       else
4456         break
4457       fi
4458       ;;
4459     none) break ;;
4460     esac
4461     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4462     # mode.  It turns out that the SunPro C++ compiler does not properly
4463     # handle `-M -o', and we need to detect this.
4464     if depmode=$depmode \
4465        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4466        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4467        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4468          >/dev/null 2>conftest.err &&
4469        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4470        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4471        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4472        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4473       # icc doesn't choke on unknown options, it will just issue warnings
4474       # or remarks (even with -Werror).  So we grep stderr for any message
4475       # that says an option was ignored or not supported.
4476       # When given -MP, icc 7.0 and 7.1 complain thusly:
4477       #   icc: Command line warning: ignoring option '-M'; no argument required
4478       # The diagnosis changed in icc 8.0:
4479       #   icc: Command line remark: option '-MP' not supported
4480       if (grep 'ignoring option' conftest.err ||
4481           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4482         am_cv_CC_dependencies_compiler_type=$depmode
4483         break
4484       fi
4485     fi
4486   done
4487
4488   cd ..
4489   rm -rf conftest.dir
4490 else
4491   am_cv_CC_dependencies_compiler_type=none
4492 fi
4493
4494 fi
4495 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4496 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4498
4499  if
4500   test "x$enable_dependency_tracking" != xno \
4501   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4502   am__fastdepCC_TRUE=
4503   am__fastdepCC_FALSE='#'
4504 else
4505   am__fastdepCC_TRUE='#'
4506   am__fastdepCC_FALSE=
4507 fi
4508
4509
4510 if test -n "$ac_tool_prefix"; then
4511   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_RANLIB+set}" = set; then
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if test -n "$RANLIB"; then
4519   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4529     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 RANLIB=$ac_cv_prog_RANLIB
4539 if test -n "$RANLIB"; then
4540   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4541 $as_echo "$RANLIB" >&6; }
4542 else
4543   { $as_echo "$as_me:$LINENO: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 fi
4549 if test -z "$ac_cv_prog_RANLIB"; then
4550   ac_ct_RANLIB=$RANLIB
4551   # Extract the first word of "ranlib", so it can be a program name with args.
4552 set dummy ranlib; ac_word=$2
4553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4556   $as_echo_n "(cached) " >&6
4557 else
4558   if test -n "$ac_ct_RANLIB"; then
4559   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_ac_ct_RANLIB="ranlib"
4569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4579 if test -n "$ac_ct_RANLIB"; then
4580   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4581 $as_echo "$ac_ct_RANLIB" >&6; }
4582 else
4583   { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587   if test "x$ac_ct_RANLIB" = x; then
4588     RANLIB=":"
4589   else
4590     case $cross_compiling:$ac_tool_warned in
4591 yes:)
4592 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 ac_tool_warned=yes ;;
4595 esac
4596     RANLIB=$ac_ct_RANLIB
4597   fi
4598 else
4599   RANLIB="$ac_cv_prog_RANLIB"
4600 fi
4601
4602
4603 ac_ext=c
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4609 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4610 # On Suns, sometimes $CPP names a directory.
4611 if test -n "$CPP" && test -d "$CPP"; then
4612   CPP=
4613 fi
4614 if test -z "$CPP"; then
4615   if test "${ac_cv_prog_CPP+set}" = set; then
4616   $as_echo_n "(cached) " >&6
4617 else
4618       # Double quotes because CPP needs to be expanded
4619     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4620     do
4621       ac_preproc_ok=false
4622 for ac_c_preproc_warn_flag in '' yes
4623 do
4624   # Use a header file that comes with gcc, so configuring glibc
4625   # with a fresh cross-compiler works.
4626   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627   # <limits.h> exists even on freestanding compilers.
4628   # On the NeXT, cc -E runs the code through the compiler's parser,
4629   # not just through cpp. "Syntax error" is here to catch this case.
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #ifdef __STDC__
4637 # include <limits.h>
4638 #else
4639 # include <assert.h>
4640 #endif
4641                      Syntax error
4642 _ACEOF
4643 if { (ac_try="$ac_cpp conftest.$ac_ext"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } >/dev/null && {
4657          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658          test ! -s conftest.err
4659        }; then
4660   :
4661 else
4662   $as_echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665   # Broken: fails on valid input.
4666 continue
4667 fi
4668
4669 rm -f conftest.err conftest.$ac_ext
4670
4671   # OK, works on sane cases.  Now check whether nonexistent headers
4672   # can be detected and how.
4673   cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h.  */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h.  */
4679 #include <ac_nonexistent.h>
4680 _ACEOF
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4687 $as_echo "$ac_try_echo") >&5
4688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689   ac_status=$?
4690   grep -v '^ *+' conftest.er1 >conftest.err
4691   rm -f conftest.er1
4692   cat conftest.err >&5
4693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } >/dev/null && {
4695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4696          test ! -s conftest.err
4697        }; then
4698   # Broken: success on invalid input.
4699 continue
4700 else
4701   $as_echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704   # Passes both tests.
4705 ac_preproc_ok=:
4706 break
4707 fi
4708
4709 rm -f conftest.err conftest.$ac_ext
4710
4711 done
4712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713 rm -f conftest.err conftest.$ac_ext
4714 if $ac_preproc_ok; then
4715   break
4716 fi
4717
4718     done
4719     ac_cv_prog_CPP=$CPP
4720
4721 fi
4722   CPP=$ac_cv_prog_CPP
4723 else
4724   ac_cv_prog_CPP=$CPP
4725 fi
4726 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4727 $as_echo "$CPP" >&6; }
4728 ac_preproc_ok=false
4729 for ac_c_preproc_warn_flag in '' yes
4730 do
4731   # Use a header file that comes with gcc, so configuring glibc
4732   # with a fresh cross-compiler works.
4733   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734   # <limits.h> exists even on freestanding compilers.
4735   # On the NeXT, cc -E runs the code through the compiler's parser,
4736   # not just through cpp. "Syntax error" is here to catch this case.
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748                      Syntax error
4749 _ACEOF
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 case "(($ac_try" in
4752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753   *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } >/dev/null && {
4764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765          test ! -s conftest.err
4766        }; then
4767   :
4768 else
4769   $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772   # Broken: fails on valid input.
4773 continue
4774 fi
4775
4776 rm -f conftest.err conftest.$ac_ext
4777
4778   # OK, works on sane cases.  Now check whether nonexistent headers
4779   # can be detected and how.
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (ac_try="$ac_cpp conftest.$ac_ext"
4789 case "(($ac_try" in
4790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791   *) ac_try_echo=$ac_try;;
4792 esac
4793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794 $as_echo "$ac_try_echo") >&5
4795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4796   ac_status=$?
4797   grep -v '^ *+' conftest.er1 >conftest.err
4798   rm -f conftest.er1
4799   cat conftest.err >&5
4800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); } >/dev/null && {
4802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803          test ! -s conftest.err
4804        }; then
4805   # Broken: success on invalid input.
4806 continue
4807 else
4808   $as_echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811   # Passes both tests.
4812 ac_preproc_ok=:
4813 break
4814 fi
4815
4816 rm -f conftest.err conftest.$ac_ext
4817
4818 done
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4822   :
4823 else
4824   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4826 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4827 See \`config.log' for more details." >&5
4828 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4829 See \`config.log' for more details." >&2;}
4830    { (exit 1); exit 1; }; }; }
4831 fi
4832
4833 ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
4839
4840 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4842 if test "${ac_cv_path_GREP+set}" = set; then
4843   $as_echo_n "(cached) " >&6
4844 else
4845   if test -z "$GREP"; then
4846   ac_path_GREP_found=false
4847   # Loop through the user's path and test for each of PROGNAME-LIST
4848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853   for ac_prog in grep ggrep; do
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4856       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4857 # Check for GNU ac_path_GREP and select it if it is found.
4858   # Check for GNU $ac_path_GREP
4859 case `"$ac_path_GREP" --version 2>&1` in
4860 *GNU*)
4861   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4862 *)
4863   ac_count=0
4864   $as_echo_n 0123456789 >"conftest.in"
4865   while :
4866   do
4867     cat "conftest.in" "conftest.in" >"conftest.tmp"
4868     mv "conftest.tmp" "conftest.in"
4869     cp "conftest.in" "conftest.nl"
4870     $as_echo 'GREP' >> "conftest.nl"
4871     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873     ac_count=`expr $ac_count + 1`
4874     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4875       # Best one so far, save it but keep looking for a better one
4876       ac_cv_path_GREP="$ac_path_GREP"
4877       ac_path_GREP_max=$ac_count
4878     fi
4879     # 10*(2^10) chars as input seems more than enough
4880     test $ac_count -gt 10 && break
4881   done
4882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4883 esac
4884
4885       $ac_path_GREP_found && break 3
4886     done
4887   done
4888 done
4889 IFS=$as_save_IFS
4890   if test -z "$ac_cv_path_GREP"; then
4891     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4892 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4893    { (exit 1); exit 1; }; }
4894   fi
4895 else
4896   ac_cv_path_GREP=$GREP
4897 fi
4898
4899 fi
4900 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4901 $as_echo "$ac_cv_path_GREP" >&6; }
4902  GREP="$ac_cv_path_GREP"
4903
4904
4905 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4906 $as_echo_n "checking for egrep... " >&6; }
4907 if test "${ac_cv_path_EGREP+set}" = set; then
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4911    then ac_cv_path_EGREP="$GREP -E"
4912    else
4913      if test -z "$EGREP"; then
4914   ac_path_EGREP_found=false
4915   # Loop through the user's path and test for each of PROGNAME-LIST
4916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921   for ac_prog in egrep; do
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4924       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4925 # Check for GNU ac_path_EGREP and select it if it is found.
4926   # Check for GNU $ac_path_EGREP
4927 case `"$ac_path_EGREP" --version 2>&1` in
4928 *GNU*)
4929   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4930 *)
4931   ac_count=0
4932   $as_echo_n 0123456789 >"conftest.in"
4933   while :
4934   do
4935     cat "conftest.in" "conftest.in" >"conftest.tmp"
4936     mv "conftest.tmp" "conftest.in"
4937     cp "conftest.in" "conftest.nl"
4938     $as_echo 'EGREP' >> "conftest.nl"
4939     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4940     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4941     ac_count=`expr $ac_count + 1`
4942     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4943       # Best one so far, save it but keep looking for a better one
4944       ac_cv_path_EGREP="$ac_path_EGREP"
4945       ac_path_EGREP_max=$ac_count
4946     fi
4947     # 10*(2^10) chars as input seems more than enough
4948     test $ac_count -gt 10 && break
4949   done
4950   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4951 esac
4952
4953       $ac_path_EGREP_found && break 3
4954     done
4955   done
4956 done
4957 IFS=$as_save_IFS
4958   if test -z "$ac_cv_path_EGREP"; then
4959     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4960 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4961    { (exit 1); exit 1; }; }
4962   fi
4963 else
4964   ac_cv_path_EGREP=$EGREP
4965 fi
4966
4967    fi
4968 fi
4969 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4970 $as_echo "$ac_cv_path_EGREP" >&6; }
4971  EGREP="$ac_cv_path_EGREP"
4972
4973
4974 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4975 $as_echo_n "checking for ANSI C header files... " >&6; }
4976 if test "${ac_cv_header_stdc+set}" = set; then
4977   $as_echo_n "(cached) " >&6
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 #include <stdlib.h>
4986 #include <stdarg.h>
4987 #include <string.h>
4988 #include <float.h>
4989
4990 int
4991 main ()
4992 {
4993
4994   ;
4995   return 0;
4996 }
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5000 case "(($ac_try" in
5001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002   *) ac_try_echo=$ac_try;;
5003 esac
5004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005 $as_echo "$ac_try_echo") >&5
5006   (eval "$ac_compile") 2>conftest.er1
5007   ac_status=$?
5008   grep -v '^ *+' conftest.er1 >conftest.err
5009   rm -f conftest.er1
5010   cat conftest.err >&5
5011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); } && {
5013          test -z "$ac_c_werror_flag" ||
5014          test ! -s conftest.err
5015        } && test -s conftest.$ac_objext; then
5016   ac_cv_header_stdc=yes
5017 else
5018   $as_echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021         ac_cv_header_stdc=no
5022 fi
5023
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025
5026 if test $ac_cv_header_stdc = yes; then
5027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5028   cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 #include <string.h>
5035
5036 _ACEOF
5037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5038   $EGREP "memchr" >/dev/null 2>&1; then
5039   :
5040 else
5041   ac_cv_header_stdc=no
5042 fi
5043 rm -f conftest*
5044
5045 fi
5046
5047 if test $ac_cv_header_stdc = yes; then
5048   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 #include <stdlib.h>
5056
5057 _ACEOF
5058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059   $EGREP "free" >/dev/null 2>&1; then
5060   :
5061 else
5062   ac_cv_header_stdc=no
5063 fi
5064 rm -f conftest*
5065
5066 fi
5067
5068 if test $ac_cv_header_stdc = yes; then
5069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5070   if test "$cross_compiling" = yes; then
5071   :
5072 else
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <ctype.h>
5080 #include <stdlib.h>
5081 #if ((' ' & 0x0FF) == 0x020)
5082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5084 #else
5085 # define ISLOWER(c) \
5086                    (('a' <= (c) && (c) <= 'i') \
5087                      || ('j' <= (c) && (c) <= 'r') \
5088                      || ('s' <= (c) && (c) <= 'z'))
5089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5090 #endif
5091
5092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5093 int
5094 main ()
5095 {
5096   int i;
5097   for (i = 0; i < 256; i++)
5098     if (XOR (islower (i), ISLOWER (i))
5099         || toupper (i) != TOUPPER (i))
5100       return 2;
5101   return 0;
5102 }
5103 _ACEOF
5104 rm -f conftest$ac_exeext
5105 if { (ac_try="$ac_link"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112   (eval "$ac_link") 2>&5
5113   ac_status=$?
5114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5116   { (case "(($ac_try" in
5117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118   *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122   (eval "$ac_try") 2>&5
5123   ac_status=$?
5124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); }; }; then
5126   :
5127 else
5128   $as_echo "$as_me: program exited with status $ac_status" >&5
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 ( exit $ac_status )
5133 ac_cv_header_stdc=no
5134 fi
5135 rm -rf conftest.dSYM
5136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5137 fi
5138
5139
5140 fi
5141 fi
5142 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5143 $as_echo "$ac_cv_header_stdc" >&6; }
5144 if test $ac_cv_header_stdc = yes; then
5145
5146 cat >>confdefs.h <<\_ACEOF
5147 #define STDC_HEADERS 1
5148 _ACEOF
5149
5150 fi
5151
5152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5163                   inttypes.h stdint.h unistd.h
5164 do
5165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5167 $as_echo_n "checking for $ac_header... " >&6; }
5168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5169   $as_echo_n "(cached) " >&6
5170 else
5171   cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 $ac_includes_default
5178
5179 #include <$ac_header>
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5183 case "(($ac_try" in
5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185   *) ac_try_echo=$ac_try;;
5186 esac
5187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5188 $as_echo "$ac_try_echo") >&5
5189   (eval "$ac_compile") 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } && {
5196          test -z "$ac_c_werror_flag" ||
5197          test ! -s conftest.err
5198        } && test -s conftest.$ac_objext; then
5199   eval "$as_ac_Header=yes"
5200 else
5201   $as_echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204         eval "$as_ac_Header=no"
5205 fi
5206
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 ac_res=`eval 'as_val=${'$as_ac_Header'}
5210                  $as_echo "$as_val"'`
5211                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5212 $as_echo "$ac_res" >&6; }
5213 as_val=`eval 'as_val=${'$as_ac_Header'}
5214                  $as_echo "$as_val"'`
5215    if test "x$as_val" = x""yes; then
5216   cat >>confdefs.h <<_ACEOF
5217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5218 _ACEOF
5219
5220 fi
5221
5222 done
5223
5224
5225
5226   if test "${ac_cv_header_minix_config_h+set}" = set; then
5227   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5228 $as_echo_n "checking for minix/config.h... " >&6; }
5229 if test "${ac_cv_header_minix_config_h+set}" = set; then
5230   $as_echo_n "(cached) " >&6
5231 fi
5232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5233 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5234 else
5235   # Is the header compilable?
5236 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5237 $as_echo_n "checking minix/config.h usability... " >&6; }
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 $ac_includes_default
5245 #include <minix/config.h>
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 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_compile") 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } && {
5262          test -z "$ac_c_werror_flag" ||
5263          test ! -s conftest.err
5264        } && test -s conftest.$ac_objext; then
5265   ac_header_compiler=yes
5266 else
5267   $as_echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270         ac_header_compiler=no
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5275 $as_echo "$ac_header_compiler" >&6; }
5276
5277 # Is the header present?
5278 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5279 $as_echo_n "checking minix/config.h presence... " >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #include <minix/config.h>
5287 _ACEOF
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5294 $as_echo "$ac_try_echo") >&5
5295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } >/dev/null && {
5302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5303          test ! -s conftest.err
5304        }; then
5305   ac_header_preproc=yes
5306 else
5307   $as_echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310   ac_header_preproc=no
5311 fi
5312
5313 rm -f conftest.err conftest.$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5315 $as_echo "$ac_header_preproc" >&6; }
5316
5317 # So?  What about this header?
5318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5319   yes:no: )
5320     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5321 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5322     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5323 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5324     ac_header_preproc=yes
5325     ;;
5326   no:yes:* )
5327     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5328 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5329     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5330 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5331     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5332 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5333     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5334 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5335     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5336 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5337     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5338 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5339
5340     ;;
5341 esac
5342 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5343 $as_echo_n "checking for minix/config.h... " >&6; }
5344 if test "${ac_cv_header_minix_config_h+set}" = set; then
5345   $as_echo_n "(cached) " >&6
5346 else
5347   ac_cv_header_minix_config_h=$ac_header_preproc
5348 fi
5349 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5350 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5351
5352 fi
5353 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5354   MINIX=yes
5355 else
5356   MINIX=
5357 fi
5358
5359
5360   if test "$MINIX" = yes; then
5361
5362 cat >>confdefs.h <<\_ACEOF
5363 #define _POSIX_SOURCE 1
5364 _ACEOF
5365
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define _POSIX_1_SOURCE 2
5369 _ACEOF
5370
5371
5372 cat >>confdefs.h <<\_ACEOF
5373 #define _MINIX 1
5374 _ACEOF
5375
5376   fi
5377
5378
5379
5380   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5383   $as_echo_n "(cached) " >&6
5384 else
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391
5392 #         define __EXTENSIONS__ 1
5393           $ac_includes_default
5394 int
5395 main ()
5396 {
5397
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5404 case "(($ac_try" in
5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406   *) ac_try_echo=$ac_try;;
5407 esac
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410   (eval "$ac_compile") 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } && {
5417          test -z "$ac_c_werror_flag" ||
5418          test ! -s conftest.err
5419        } && test -s conftest.$ac_objext; then
5420   ac_cv_safe_to_define___extensions__=yes
5421 else
5422   $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425         ac_cv_safe_to_define___extensions__=no
5426 fi
5427
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5431 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5432   test $ac_cv_safe_to_define___extensions__ = yes &&
5433     cat >>confdefs.h <<\_ACEOF
5434 #define __EXTENSIONS__ 1
5435 _ACEOF
5436
5437   cat >>confdefs.h <<\_ACEOF
5438 #define _ALL_SOURCE 1
5439 _ACEOF
5440
5441   cat >>confdefs.h <<\_ACEOF
5442 #define _GNU_SOURCE 1
5443 _ACEOF
5444
5445   cat >>confdefs.h <<\_ACEOF
5446 #define _POSIX_PTHREAD_SEMANTICS 1
5447 _ACEOF
5448
5449   cat >>confdefs.h <<\_ACEOF
5450 #define _TANDEM_SOURCE 1
5451 _ACEOF
5452
5453
5454
5455
5456
5457
5458
5459     # Check whether --enable-threads was given.
5460 if test "${enable_threads+set}" = set; then
5461   enableval=$enable_threads; gl_use_threads=$enableval
5462 else
5463   case "$host_os" in
5464                             osf*) gl_use_threads=no ;;
5465        *)    gl_use_threads=yes ;;
5466      esac
5467
5468 fi
5469
5470   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5471     # For using <pthread.h>:
5472     case "$host_os" in
5473       osf*)
5474         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5475         # groks <pthread.h>. cc also understands the flag -pthread, but
5476         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5477         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5478         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5479         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5480         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5481         ;;
5482     esac
5483     # Some systems optimize for single-threaded programs by default, and
5484     # need special flags to disable these optimizations. For example, the
5485     # definition of 'errno' in <errno.h>.
5486     case "$host_os" in
5487       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5488       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5489     esac
5490   fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5502 # for constant arguments.  Useless!
5503 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5504 $as_echo_n "checking for working alloca.h... " >&6; }
5505 if test "${ac_cv_working_alloca_h+set}" = set; then
5506   $as_echo_n "(cached) " >&6
5507 else
5508   cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514 #include <alloca.h>
5515 int
5516 main ()
5517 {
5518 char *p = (char *) alloca (2 * sizeof (int));
5519                           if (p) return 0;
5520   ;
5521   return 0;
5522 }
5523 _ACEOF
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (ac_try="$ac_link"
5526 case "(($ac_try" in
5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528   *) ac_try_echo=$ac_try;;
5529 esac
5530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531 $as_echo "$ac_try_echo") >&5
5532   (eval "$ac_link") 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } && {
5539          test -z "$ac_c_werror_flag" ||
5540          test ! -s conftest.err
5541        } && test -s conftest$ac_exeext && {
5542          test "$cross_compiling" = yes ||
5543          $as_test_x conftest$ac_exeext
5544        }; then
5545   ac_cv_working_alloca_h=yes
5546 else
5547   $as_echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550         ac_cv_working_alloca_h=no
5551 fi
5552
5553 rm -rf conftest.dSYM
5554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5555       conftest$ac_exeext conftest.$ac_ext
5556 fi
5557 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5558 $as_echo "$ac_cv_working_alloca_h" >&6; }
5559 if test $ac_cv_working_alloca_h = yes; then
5560
5561 cat >>confdefs.h <<\_ACEOF
5562 #define HAVE_ALLOCA_H 1
5563 _ACEOF
5564
5565 fi
5566
5567 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
5568 $as_echo_n "checking for alloca... " >&6; }
5569 if test "${ac_cv_func_alloca_works+set}" = set; then
5570   $as_echo_n "(cached) " >&6
5571 else
5572   cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578 #ifdef __GNUC__
5579 # define alloca __builtin_alloca
5580 #else
5581 # ifdef _MSC_VER
5582 #  include <malloc.h>
5583 #  define alloca _alloca
5584 # else
5585 #  ifdef HAVE_ALLOCA_H
5586 #   include <alloca.h>
5587 #  else
5588 #   ifdef _AIX
5589  #pragma alloca
5590 #   else
5591 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5592 char *alloca ();
5593 #    endif
5594 #   endif
5595 #  endif
5596 # endif
5597 #endif
5598
5599 int
5600 main ()
5601 {
5602 char *p = (char *) alloca (1);
5603                                     if (p) return 0;
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (ac_try="$ac_link"
5610 case "(($ac_try" in
5611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612   *) ac_try_echo=$ac_try;;
5613 esac
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616   (eval "$ac_link") 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } && {
5623          test -z "$ac_c_werror_flag" ||
5624          test ! -s conftest.err
5625        } && test -s conftest$ac_exeext && {
5626          test "$cross_compiling" = yes ||
5627          $as_test_x conftest$ac_exeext
5628        }; then
5629   ac_cv_func_alloca_works=yes
5630 else
5631   $as_echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634         ac_cv_func_alloca_works=no
5635 fi
5636
5637 rm -rf conftest.dSYM
5638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5639       conftest$ac_exeext conftest.$ac_ext
5640 fi
5641 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5642 $as_echo "$ac_cv_func_alloca_works" >&6; }
5643
5644 if test $ac_cv_func_alloca_works = yes; then
5645
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_ALLOCA 1
5648 _ACEOF
5649
5650 else
5651   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5652 # that cause trouble.  Some versions do not even contain alloca or
5653 # contain a buggy version.  If you still want to use their alloca,
5654 # use ar to extract alloca.o from them instead of compiling alloca.c.
5655
5656
5657
5658
5659
5660 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5661
5662 cat >>confdefs.h <<\_ACEOF
5663 #define C_ALLOCA 1
5664 _ACEOF
5665
5666
5667 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5668 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5669 if test "${ac_cv_os_cray+set}" = set; then
5670   $as_echo_n "(cached) " >&6
5671 else
5672   cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h.  */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h.  */
5678 #if defined CRAY && ! defined CRAY2
5679 webecray
5680 #else
5681 wenotbecray
5682 #endif
5683
5684 _ACEOF
5685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5686   $EGREP "webecray" >/dev/null 2>&1; then
5687   ac_cv_os_cray=yes
5688 else
5689   ac_cv_os_cray=no
5690 fi
5691 rm -f conftest*
5692
5693 fi
5694 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5695 $as_echo "$ac_cv_os_cray" >&6; }
5696 if test $ac_cv_os_cray = yes; then
5697   for ac_func in _getb67 GETB67 getb67; do
5698     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5699 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5700 $as_echo_n "checking for $ac_func... " >&6; }
5701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5702   $as_echo_n "(cached) " >&6
5703 else
5704   cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5712 #define $ac_func innocuous_$ac_func
5713
5714 /* System header to define __stub macros and hopefully few prototypes,
5715     which can conflict with char $ac_func (); below.
5716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717     <limits.h> exists even on freestanding compilers.  */
5718
5719 #ifdef __STDC__
5720 # include <limits.h>
5721 #else
5722 # include <assert.h>
5723 #endif
5724
5725 #undef $ac_func
5726
5727 /* Override any GCC internal prototype to avoid an error.
5728    Use char because int might match the return type of a GCC
5729    builtin and then its argument prototype would still apply.  */
5730 #ifdef __cplusplus
5731 extern "C"
5732 #endif
5733 char $ac_func ();
5734 /* The GNU C library defines this for functions which it implements
5735     to always fail with ENOSYS.  Some functions are actually named
5736     something starting with __ and the normal name is an alias.  */
5737 #if defined __stub_$ac_func || defined __stub___$ac_func
5738 choke me
5739 #endif
5740
5741 int
5742 main ()
5743 {
5744 return $ac_func ();
5745   ;
5746   return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (ac_try="$ac_link"
5751 case "(($ac_try" in
5752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753   *) ac_try_echo=$ac_try;;
5754 esac
5755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756 $as_echo "$ac_try_echo") >&5
5757   (eval "$ac_link") 2>conftest.er1
5758   ac_status=$?
5759   grep -v '^ *+' conftest.er1 >conftest.err
5760   rm -f conftest.er1
5761   cat conftest.err >&5
5762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } && {
5764          test -z "$ac_c_werror_flag" ||
5765          test ! -s conftest.err
5766        } && test -s conftest$ac_exeext && {
5767          test "$cross_compiling" = yes ||
5768          $as_test_x conftest$ac_exeext
5769        }; then
5770   eval "$as_ac_var=yes"
5771 else
5772   $as_echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775         eval "$as_ac_var=no"
5776 fi
5777
5778 rm -rf conftest.dSYM
5779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5780       conftest$ac_exeext conftest.$ac_ext
5781 fi
5782 ac_res=`eval 'as_val=${'$as_ac_var'}
5783                  $as_echo "$as_val"'`
5784                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5785 $as_echo "$ac_res" >&6; }
5786 as_val=`eval 'as_val=${'$as_ac_var'}
5787                  $as_echo "$as_val"'`
5788    if test "x$as_val" = x""yes; then
5789
5790 cat >>confdefs.h <<_ACEOF
5791 #define CRAY_STACKSEG_END $ac_func
5792 _ACEOF
5793
5794     break
5795 fi
5796
5797   done
5798 fi
5799
5800 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5801 $as_echo_n "checking stack direction for C alloca... " >&6; }
5802 if test "${ac_cv_c_stack_direction+set}" = set; then
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test "$cross_compiling" = yes; then
5806   ac_cv_c_stack_direction=0
5807 else
5808   cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 $ac_includes_default
5815 int
5816 find_stack_direction ()
5817 {
5818   static char *addr = 0;
5819   auto char dummy;
5820   if (addr == 0)
5821     {
5822       addr = &dummy;
5823       return find_stack_direction ();
5824     }
5825   else
5826     return (&dummy > addr) ? 1 : -1;
5827 }
5828
5829 int
5830 main ()
5831 {
5832   return find_stack_direction () < 0;
5833 }
5834 _ACEOF
5835 rm -f conftest$ac_exeext
5836 if { (ac_try="$ac_link"
5837 case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5842 $as_echo "$ac_try_echo") >&5
5843   (eval "$ac_link") 2>&5
5844   ac_status=$?
5845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5847   { (case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852 $as_echo "$ac_try_echo") >&5
5853   (eval "$ac_try") 2>&5
5854   ac_status=$?
5855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_cv_c_stack_direction=1
5858 else
5859   $as_echo "$as_me: program exited with status $ac_status" >&5
5860 $as_echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ( exit $ac_status )
5864 ac_cv_c_stack_direction=-1
5865 fi
5866 rm -rf conftest.dSYM
5867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5868 fi
5869
5870
5871 fi
5872 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5873 $as_echo "$ac_cv_c_stack_direction" >&6; }
5874
5875 cat >>confdefs.h <<_ACEOF
5876 #define STACK_DIRECTION $ac_cv_c_stack_direction
5877 _ACEOF
5878
5879
5880 fi
5881
5882
5883
5884
5885
5886
5887 for ac_header in $gl_header_list
5888 do
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5891   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5892 $as_echo_n "checking for $ac_header... " >&6; }
5893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5894   $as_echo_n "(cached) " >&6
5895 fi
5896 ac_res=`eval 'as_val=${'$as_ac_Header'}
5897                  $as_echo "$as_val"'`
5898                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5899 $as_echo "$ac_res" >&6; }
5900 else
5901   # Is the header compilable?
5902 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5903 $as_echo_n "checking $ac_header usability... " >&6; }
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 $ac_includes_default
5911 #include <$ac_header>
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5915 case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5920 $as_echo "$ac_try_echo") >&5
5921   (eval "$ac_compile") 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } && {
5928          test -z "$ac_c_werror_flag" ||
5929          test ! -s conftest.err
5930        } && test -s conftest.$ac_objext; then
5931   ac_header_compiler=yes
5932 else
5933   $as_echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         ac_header_compiler=no
5937 fi
5938
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5941 $as_echo "$ac_header_compiler" >&6; }
5942
5943 # Is the header present?
5944 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5945 $as_echo_n "checking $ac_header presence... " >&6; }
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952 #include <$ac_header>
5953 _ACEOF
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962   ac_status=$?
5963   grep -v '^ *+' conftest.er1 >conftest.err
5964   rm -f conftest.er1
5965   cat conftest.err >&5
5966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); } >/dev/null && {
5968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969          test ! -s conftest.err
5970        }; then
5971   ac_header_preproc=yes
5972 else
5973   $as_echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976   ac_header_preproc=no
5977 fi
5978
5979 rm -f conftest.err conftest.$ac_ext
5980 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5981 $as_echo "$ac_header_preproc" >&6; }
5982
5983 # So?  What about this header?
5984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5985   yes:no: )
5986     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5987 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5988     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5990     ac_header_preproc=yes
5991     ;;
5992   no:yes:* )
5993     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5994 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5995     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5996 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5997     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5998 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6000 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6004 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6005
6006     ;;
6007 esac
6008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 $as_echo_n "checking for $ac_header... " >&6; }
6010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011   $as_echo_n "(cached) " >&6
6012 else
6013   eval "$as_ac_Header=\$ac_header_preproc"
6014 fi
6015 ac_res=`eval 'as_val=${'$as_ac_Header'}
6016                  $as_echo "$as_val"'`
6017                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6018 $as_echo "$ac_res" >&6; }
6019
6020 fi
6021 as_val=`eval 'as_val=${'$as_ac_Header'}
6022                  $as_echo "$as_val"'`
6023    if test "x$as_val" = x""yes; then
6024   cat >>confdefs.h <<_ACEOF
6025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6026 _ACEOF
6027
6028 fi
6029
6030 done
6031
6032
6033
6034
6035
6036
6037 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6038 $as_echo_n "checking for inline... " >&6; }
6039 if test "${ac_cv_c_inline+set}" = set; then
6040   $as_echo_n "(cached) " >&6
6041 else
6042   ac_cv_c_inline=no
6043 for ac_kw in inline __inline__ __inline; do
6044   cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #ifndef __cplusplus
6051 typedef int foo_t;
6052 static $ac_kw foo_t static_foo () {return 0; }
6053 $ac_kw foo_t foo () {return 0; }
6054 #endif
6055
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6059 case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065   (eval "$ac_compile") 2>conftest.er1
6066   ac_status=$?
6067   grep -v '^ *+' conftest.er1 >conftest.err
6068   rm -f conftest.er1
6069   cat conftest.err >&5
6070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } && {
6072          test -z "$ac_c_werror_flag" ||
6073          test ! -s conftest.err
6074        } && test -s conftest.$ac_objext; then
6075   ac_cv_c_inline=$ac_kw
6076 else
6077   $as_echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084   test "$ac_cv_c_inline" != no && break
6085 done
6086
6087 fi
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6089 $as_echo "$ac_cv_c_inline" >&6; }
6090
6091
6092 case $ac_cv_c_inline in
6093   inline | yes) ;;
6094   *)
6095     case $ac_cv_c_inline in
6096       no) ac_val=;;
6097       *) ac_val=$ac_cv_c_inline;;
6098     esac
6099     cat >>confdefs.h <<_ACEOF
6100 #ifndef __cplusplus
6101 #define inline $ac_val
6102 #endif
6103 _ACEOF
6104     ;;
6105 esac
6106
6107 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6108 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6109 if test "${ac_cv_c_restrict+set}" = set; then
6110   $as_echo_n "(cached) " >&6
6111 else
6112   ac_cv_c_restrict=no
6113    # The order here caters to the fact that C++ does not require restrict.
6114    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6115      cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121 typedef int * int_ptr;
6122         int foo (int_ptr $ac_kw ip) {
6123         return ip[0];
6124        }
6125 int
6126 main ()
6127 {
6128 int s[1];
6129         int * $ac_kw t = s;
6130         t[0] = 0;
6131         return foo(t)
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140   *) ac_try_echo=$ac_try;;
6141 esac
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144   (eval "$ac_compile") 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
6148   cat conftest.err >&5
6149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } && {
6151          test -z "$ac_c_werror_flag" ||
6152          test ! -s conftest.err
6153        } && test -s conftest.$ac_objext; then
6154   ac_cv_c_restrict=$ac_kw
6155 else
6156   $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159
6160 fi
6161
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163      test "$ac_cv_c_restrict" != no && break
6164    done
6165
6166 fi
6167 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6168 $as_echo "$ac_cv_c_restrict" >&6; }
6169
6170
6171  case $ac_cv_c_restrict in
6172    restrict) ;;
6173    no) cat >>confdefs.h <<\_ACEOF
6174 #define restrict /**/
6175 _ACEOF
6176  ;;
6177    *)  cat >>confdefs.h <<_ACEOF
6178 #define restrict $ac_cv_c_restrict
6179 _ACEOF
6180  ;;
6181  esac
6182
6183
6184
6185   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6186 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6187 if test "${gl_cv_have_include_next+set}" = set; then
6188   $as_echo_n "(cached) " >&6
6189 else
6190   rm -rf conftestd1 conftestd2
6191      mkdir conftestd1 conftestd2
6192      cat <<EOF > conftestd1/conftest.h
6193 #define DEFINED_IN_CONFTESTD1
6194 #include_next <conftest.h>
6195 #ifdef DEFINED_IN_CONFTESTD2
6196 int foo;
6197 #else
6198 #error "include_next doesn't work"
6199 #endif
6200 EOF
6201      cat <<EOF > conftestd2/conftest.h
6202 #ifndef DEFINED_IN_CONFTESTD1
6203 #error "include_next test doesn't work"
6204 #endif
6205 #define DEFINED_IN_CONFTESTD2
6206 EOF
6207      save_CPPFLAGS="$CPPFLAGS"
6208      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
6209      cat >conftest.$ac_ext <<_ACEOF
6210 #include <conftest.h>
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220   (eval "$ac_compile") 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } && {
6227          test -z "$ac_c_werror_flag" ||
6228          test ! -s conftest.err
6229        } && test -s conftest.$ac_objext; then
6230   gl_cv_have_include_next=yes
6231 else
6232   $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235         gl_cv_have_include_next=no
6236 fi
6237
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239      CPPFLAGS="$save_CPPFLAGS"
6240      rm -rf conftestd1 conftestd2
6241
6242 fi
6243 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6244 $as_echo "$gl_cv_have_include_next" >&6; }
6245   if test $gl_cv_have_include_next = yes; then
6246
6247
6248 cat >>confdefs.h <<\_ACEOF
6249 #define HAVE_INCLUDE_NEXT 1
6250 _ACEOF
6251
6252
6253     INCLUDE_NEXT=include_next
6254   else
6255     INCLUDE_NEXT=include
6256   fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
6291 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
6292 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
6293   $as_echo_n "(cached) " >&6
6294 else
6295
6296       cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 #include <sys/socket.h>
6303 int
6304 main ()
6305 {
6306
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319   (eval "$ac_compile") 2>conftest.er1
6320   ac_status=$?
6321   grep -v '^ *+' conftest.er1 >conftest.err
6322   rm -f conftest.er1
6323   cat conftest.err >&5
6324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } && {
6326          test -z "$ac_c_werror_flag" ||
6327          test ! -s conftest.err
6328        } && test -s conftest.$ac_objext; then
6329   gl_cv_header_sys_socket_h_selfcontained=yes
6330 else
6331   $as_echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334         gl_cv_header_sys_socket_h_selfcontained=no
6335 fi
6336
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338
6339 fi
6340 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
6341 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
6342   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
6343     SYS_SOCKET_H=''
6344   else
6345     SYS_SOCKET_H='sys/socket.h'
6346
6347
6348
6349
6350   :
6351
6352
6353
6354
6355
6356
6357
6358      if test $gl_cv_have_include_next = yes; then
6359        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6360      else
6361        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
6362 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
6363 if test "${gl_cv_next_sys_socket_h+set}" = set; then
6364   $as_echo_n "(cached) " >&6
6365 else
6366
6367           if test $ac_cv_header_sys_socket_h = yes; then
6368             cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #include <sys/socket.h>
6375
6376 _ACEOF
6377                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378                sed -n '\#/sys/socket.h#{
6379                  s#.*"\(.*/sys/socket.h\)".*#\1#
6380                  s#^/[^/]#//&#
6381                  p
6382                  q
6383                }'`'"'
6384           else
6385             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6386           fi
6387
6388 fi
6389 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6390 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
6391      fi
6392      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6393
6394
6395
6396     if test $ac_cv_header_sys_socket_h = yes; then
6397       HAVE_SYS_SOCKET_H=1
6398       HAVE_WINSOCK2_H=0
6399       HAVE_WS2TCPIP_H=0
6400     else
6401       HAVE_SYS_SOCKET_H=0
6402
6403
6404 for ac_header in winsock2.h ws2tcpip.h
6405 do
6406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6408   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 $as_echo_n "checking for $ac_header... " >&6; }
6410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6411   $as_echo_n "(cached) " >&6
6412 fi
6413 ac_res=`eval 'as_val=${'$as_ac_Header'}
6414                  $as_echo "$as_val"'`
6415                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6416 $as_echo "$ac_res" >&6; }
6417 else
6418   # Is the header compilable?
6419 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 $as_echo_n "checking $ac_header usability... " >&6; }
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 $ac_includes_default
6428 #include <$ac_header>
6429 _ACEOF
6430 rm -f conftest.$ac_objext
6431 if { (ac_try="$ac_compile"
6432 case "(($ac_try" in
6433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434   *) ac_try_echo=$ac_try;;
6435 esac
6436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6437 $as_echo "$ac_try_echo") >&5
6438   (eval "$ac_compile") 2>conftest.er1
6439   ac_status=$?
6440   grep -v '^ *+' conftest.er1 >conftest.err
6441   rm -f conftest.er1
6442   cat conftest.err >&5
6443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } && {
6445          test -z "$ac_c_werror_flag" ||
6446          test ! -s conftest.err
6447        } && test -s conftest.$ac_objext; then
6448   ac_header_compiler=yes
6449 else
6450   $as_echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453         ac_header_compiler=no
6454 fi
6455
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6458 $as_echo "$ac_header_compiler" >&6; }
6459
6460 # Is the header present?
6461 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6462 $as_echo_n "checking $ac_header presence... " >&6; }
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 #include <$ac_header>
6470 _ACEOF
6471 if { (ac_try="$ac_cpp conftest.$ac_ext"
6472 case "(($ac_try" in
6473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474   *) ac_try_echo=$ac_try;;
6475 esac
6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6479   ac_status=$?
6480   grep -v '^ *+' conftest.er1 >conftest.err
6481   rm -f conftest.er1
6482   cat conftest.err >&5
6483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); } >/dev/null && {
6485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6486          test ! -s conftest.err
6487        }; then
6488   ac_header_preproc=yes
6489 else
6490   $as_echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493   ac_header_preproc=no
6494 fi
6495
6496 rm -f conftest.err conftest.$ac_ext
6497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6498 $as_echo "$ac_header_preproc" >&6; }
6499
6500 # So?  What about this header?
6501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6502   yes:no: )
6503     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6504 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6505     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6507     ac_header_preproc=yes
6508     ;;
6509   no:yes:* )
6510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6511 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6512     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6513 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6515 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6516     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6517 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6518     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6521 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6522
6523     ;;
6524 esac
6525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 $as_echo_n "checking for $ac_header... " >&6; }
6527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528   $as_echo_n "(cached) " >&6
6529 else
6530   eval "$as_ac_Header=\$ac_header_preproc"
6531 fi
6532 ac_res=`eval 'as_val=${'$as_ac_Header'}
6533                  $as_echo "$as_val"'`
6534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536
6537 fi
6538 as_val=`eval 'as_val=${'$as_ac_Header'}
6539                  $as_echo "$as_val"'`
6540    if test "x$as_val" = x""yes; then
6541   cat >>confdefs.h <<_ACEOF
6542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6543 _ACEOF
6544
6545 fi
6546
6547 done
6548
6549       if test $ac_cv_header_winsock2_h = yes; then
6550         HAVE_WINSOCK2_H=1
6551       else
6552         HAVE_WINSOCK2_H=0
6553       fi
6554       if test $ac_cv_header_ws2tcpip_h = yes; then
6555         HAVE_WS2TCPIP_H=1
6556       else
6557         HAVE_WS2TCPIP_H=0
6558       fi
6559     fi
6560
6561
6562
6563   fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581   :
6582
6583
6584
6585
6586
6587
6588   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
6589 $as_echo_n "checking for IPv4 sockets... " >&6; }
6590   if test "${gl_cv_socket_ipv4+set}" = set; then
6591   $as_echo_n "(cached) " >&6
6592 else
6593   cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 #include <sys/types.h>
6600 #ifdef HAVE_SYS_SOCKET_H
6601 #include <sys/socket.h>
6602 #endif
6603 #ifdef HAVE_NETINET_IN_H
6604 #include <netinet/in.h>
6605 #endif
6606 #ifdef HAVE_WINSOCK2_H
6607 #include <winsock2.h>
6608 #endif
6609 int
6610 main ()
6611 {
6612 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
6613  if (&x && &y && &z) return 0;
6614   ;
6615   return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6620 case "(($ac_try" in
6621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622   *) ac_try_echo=$ac_try;;
6623 esac
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626   (eval "$ac_compile") 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } && {
6633          test -z "$ac_c_werror_flag" ||
6634          test ! -s conftest.err
6635        } && test -s conftest.$ac_objext; then
6636   gl_cv_socket_ipv4=yes
6637 else
6638   $as_echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6640
6641         gl_cv_socket_ipv4=no
6642 fi
6643
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646
6647   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
6648 $as_echo "$gl_cv_socket_ipv4" >&6; }
6649   if test $gl_cv_socket_ipv4 = yes; then
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_IPV4 1
6653 _ACEOF
6654
6655   fi
6656
6657   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
6658 $as_echo_n "checking for IPv6 sockets... " >&6; }
6659   if test "${gl_cv_socket_ipv6+set}" = set; then
6660   $as_echo_n "(cached) " >&6
6661 else
6662   cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h.  */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h.  */
6668 #include <sys/types.h>
6669 #ifdef HAVE_SYS_SOCKET_H
6670 #include <sys/socket.h>
6671 #endif
6672 #ifdef HAVE_NETINET_IN_H
6673 #include <netinet/in.h>
6674 #endif
6675 #ifdef HAVE_WINSOCK2_H
6676 #include <winsock2.h>
6677 #endif
6678 int
6679 main ()
6680 {
6681 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
6682  if (&x && &y && &z) return 0;
6683   ;
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (ac_try="$ac_compile"
6689 case "(($ac_try" in
6690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691   *) ac_try_echo=$ac_try;;
6692 esac
6693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695   (eval "$ac_compile") 2>conftest.er1
6696   ac_status=$?
6697   grep -v '^ *+' conftest.er1 >conftest.err
6698   rm -f conftest.er1
6699   cat conftest.err >&5
6700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } && {
6702          test -z "$ac_c_werror_flag" ||
6703          test ! -s conftest.err
6704        } && test -s conftest.$ac_objext; then
6705   gl_cv_socket_ipv6=yes
6706 else
6707   $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710         gl_cv_socket_ipv6=no
6711 fi
6712
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715
6716   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
6717 $as_echo "$gl_cv_socket_ipv6" >&6; }
6718   if test $gl_cv_socket_ipv6 = yes; then
6719
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_IPV6 1
6722 _ACEOF
6723
6724   fi
6725
6726
6727   if test -z "$GETOPT_H"; then
6728
6729 for ac_header in getopt.h
6730 do
6731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6733   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6734 $as_echo_n "checking for $ac_header... " >&6; }
6735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6736   $as_echo_n "(cached) " >&6
6737 fi
6738 ac_res=`eval 'as_val=${'$as_ac_Header'}
6739                  $as_echo "$as_val"'`
6740                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6741 $as_echo "$ac_res" >&6; }
6742 else
6743   # Is the header compilable?
6744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6745 $as_echo_n "checking $ac_header usability... " >&6; }
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752 $ac_includes_default
6753 #include <$ac_header>
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759   *) ac_try_echo=$ac_try;;
6760 esac
6761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6762 $as_echo "$ac_try_echo") >&5
6763   (eval "$ac_compile") 2>conftest.er1
6764   ac_status=$?
6765   grep -v '^ *+' conftest.er1 >conftest.err
6766   rm -f conftest.er1
6767   cat conftest.err >&5
6768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); } && {
6770          test -z "$ac_c_werror_flag" ||
6771          test ! -s conftest.err
6772        } && test -s conftest.$ac_objext; then
6773   ac_header_compiler=yes
6774 else
6775   $as_echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778         ac_header_compiler=no
6779 fi
6780
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6783 $as_echo "$ac_header_compiler" >&6; }
6784
6785 # Is the header present?
6786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6787 $as_echo_n "checking $ac_header presence... " >&6; }
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794 #include <$ac_header>
6795 _ACEOF
6796 if { (ac_try="$ac_cpp conftest.$ac_ext"
6797 case "(($ac_try" in
6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799   *) ac_try_echo=$ac_try;;
6800 esac
6801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6802 $as_echo "$ac_try_echo") >&5
6803   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6804   ac_status=$?
6805   grep -v '^ *+' conftest.er1 >conftest.err
6806   rm -f conftest.er1
6807   cat conftest.err >&5
6808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); } >/dev/null && {
6810          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6811          test ! -s conftest.err
6812        }; then
6813   ac_header_preproc=yes
6814 else
6815   $as_echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818   ac_header_preproc=no
6819 fi
6820
6821 rm -f conftest.err conftest.$ac_ext
6822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6823 $as_echo "$ac_header_preproc" >&6; }
6824
6825 # So?  What about this header?
6826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6827   yes:no: )
6828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6832     ac_header_preproc=yes
6833     ;;
6834   no:yes:* )
6835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6838 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6842 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6845     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6847
6848     ;;
6849 esac
6850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6851 $as_echo_n "checking for $ac_header... " >&6; }
6852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6853   $as_echo_n "(cached) " >&6
6854 else
6855   eval "$as_ac_Header=\$ac_header_preproc"
6856 fi
6857 ac_res=`eval 'as_val=${'$as_ac_Header'}
6858                  $as_echo "$as_val"'`
6859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6860 $as_echo "$ac_res" >&6; }
6861
6862 fi
6863 as_val=`eval 'as_val=${'$as_ac_Header'}
6864                  $as_echo "$as_val"'`
6865    if test "x$as_val" = x""yes; then
6866   cat >>confdefs.h <<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 _ACEOF
6869
6870 else
6871   GETOPT_H=getopt.h
6872 fi
6873
6874 done
6875
6876   fi
6877
6878   if test -z "$GETOPT_H"; then
6879
6880 for ac_func in getopt_long_only
6881 do
6882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6884 $as_echo_n "checking for $ac_func... " >&6; }
6885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6886   $as_echo_n "(cached) " >&6
6887 else
6888   cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6896 #define $ac_func innocuous_$ac_func
6897
6898 /* System header to define __stub macros and hopefully few prototypes,
6899     which can conflict with char $ac_func (); below.
6900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901     <limits.h> exists even on freestanding compilers.  */
6902
6903 #ifdef __STDC__
6904 # include <limits.h>
6905 #else
6906 # include <assert.h>
6907 #endif
6908
6909 #undef $ac_func
6910
6911 /* Override any GCC internal prototype to avoid an error.
6912    Use char because int might match the return type of a GCC
6913    builtin and then its argument prototype would still apply.  */
6914 #ifdef __cplusplus
6915 extern "C"
6916 #endif
6917 char $ac_func ();
6918 /* The GNU C library defines this for functions which it implements
6919     to always fail with ENOSYS.  Some functions are actually named
6920     something starting with __ and the normal name is an alias.  */
6921 #if defined __stub_$ac_func || defined __stub___$ac_func
6922 choke me
6923 #endif
6924
6925 int
6926 main ()
6927 {
6928 return $ac_func ();
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (ac_try="$ac_link"
6935 case "(($ac_try" in
6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937   *) ac_try_echo=$ac_try;;
6938 esac
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941   (eval "$ac_link") 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } && {
6948          test -z "$ac_c_werror_flag" ||
6949          test ! -s conftest.err
6950        } && test -s conftest$ac_exeext && {
6951          test "$cross_compiling" = yes ||
6952          $as_test_x conftest$ac_exeext
6953        }; then
6954   eval "$as_ac_var=yes"
6955 else
6956   $as_echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959         eval "$as_ac_var=no"
6960 fi
6961
6962 rm -rf conftest.dSYM
6963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6964       conftest$ac_exeext conftest.$ac_ext
6965 fi
6966 ac_res=`eval 'as_val=${'$as_ac_var'}
6967                  $as_echo "$as_val"'`
6968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6969 $as_echo "$ac_res" >&6; }
6970 as_val=`eval 'as_val=${'$as_ac_var'}
6971                  $as_echo "$as_val"'`
6972    if test "x$as_val" = x""yes; then
6973   cat >>confdefs.h <<_ACEOF
6974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6975 _ACEOF
6976
6977 else
6978   GETOPT_H=getopt.h
6979 fi
6980 done
6981
6982   fi
6983
6984       if test -z "$GETOPT_H"; then
6985     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6986 $as_echo_n "checking whether optreset is declared... " >&6; }
6987 if test "${ac_cv_have_decl_optreset+set}" = set; then
6988   $as_echo_n "(cached) " >&6
6989 else
6990   cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996 #include <getopt.h>
6997
6998 int
6999 main ()
7000 {
7001 #ifndef optreset
7002   (void) optreset;
7003 #endif
7004
7005   ;
7006   return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7011 case "(($ac_try" in
7012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013   *) ac_try_echo=$ac_try;;
7014 esac
7015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7016 $as_echo "$ac_try_echo") >&5
7017   (eval "$ac_compile") 2>conftest.er1
7018   ac_status=$?
7019   grep -v '^ *+' conftest.er1 >conftest.err
7020   rm -f conftest.er1
7021   cat conftest.err >&5
7022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); } && {
7024          test -z "$ac_c_werror_flag" ||
7025          test ! -s conftest.err
7026        } && test -s conftest.$ac_objext; then
7027   ac_cv_have_decl_optreset=yes
7028 else
7029   $as_echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032         ac_cv_have_decl_optreset=no
7033 fi
7034
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 fi
7037 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7038 $as_echo "$ac_cv_have_decl_optreset" >&6; }
7039 if test "x$ac_cv_have_decl_optreset" = x""yes; then
7040   GETOPT_H=getopt.h
7041 fi
7042
7043   fi
7044
7045       if test -z "$GETOPT_H"; then
7046     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
7047 $as_echo_n "checking for working GNU getopt function... " >&6; }
7048 if test "${gl_cv_func_gnu_getopt+set}" = set; then
7049   $as_echo_n "(cached) " >&6
7050 else
7051   if test "$cross_compiling" = yes; then
7052                          { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
7053 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
7054 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
7055   $as_echo_n "(cached) " >&6
7056 else
7057   cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h.  */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h.  */
7063 #include <getopt.h>
7064
7065 int
7066 main ()
7067 {
7068 #ifndef getopt_clip
7069   (void) getopt_clip;
7070 #endif
7071
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080   *) ac_try_echo=$ac_try;;
7081 esac
7082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7083 $as_echo "$ac_try_echo") >&5
7084   (eval "$ac_compile") 2>conftest.er1
7085   ac_status=$?
7086   grep -v '^ *+' conftest.er1 >conftest.err
7087   rm -f conftest.er1
7088   cat conftest.err >&5
7089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); } && {
7091          test -z "$ac_c_werror_flag" ||
7092          test ! -s conftest.err
7093        } && test -s conftest.$ac_objext; then
7094   ac_cv_have_decl_getopt_clip=yes
7095 else
7096   $as_echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7098
7099         ac_cv_have_decl_getopt_clip=no
7100 fi
7101
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
7105 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
7106 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
7107   gl_cv_func_gnu_getopt=no
7108 else
7109   gl_cv_func_gnu_getopt=yes
7110 fi
7111
7112 else
7113   cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119 #include <getopt.h>
7120 int
7121 main ()
7122 {
7123
7124              char *myargv[3];
7125              myargv[0] = "conftest";
7126              myargv[1] = "-+";
7127              myargv[2] = 0;
7128              return getopt (2, myargv, "+a") != '?';
7129
7130   ;
7131   return 0;
7132 }
7133 _ACEOF
7134 rm -f conftest$ac_exeext
7135 if { (ac_try="$ac_link"
7136 case "(($ac_try" in
7137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138   *) ac_try_echo=$ac_try;;
7139 esac
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142   (eval "$ac_link") 2>&5
7143   ac_status=$?
7144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7146   { (case "(($ac_try" in
7147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148   *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152   (eval "$ac_try") 2>&5
7153   ac_status=$?
7154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   gl_cv_func_gnu_getopt=yes
7157 else
7158   $as_echo "$as_me: program exited with status $ac_status" >&5
7159 $as_echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 ( exit $ac_status )
7163 gl_cv_func_gnu_getopt=no
7164 fi
7165 rm -rf conftest.dSYM
7166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7167 fi
7168
7169
7170 fi
7171 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
7172 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
7173     if test "$gl_cv_func_gnu_getopt" = "no"; then
7174       GETOPT_H=getopt.h
7175     fi
7176   fi
7177
7178
7179       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7180 $as_echo_n "checking whether getenv is declared... " >&6; }
7181 if test "${ac_cv_have_decl_getenv+set}" = set; then
7182   $as_echo_n "(cached) " >&6
7183 else
7184   cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 $ac_includes_default
7191 int
7192 main ()
7193 {
7194 #ifndef getenv
7195   (void) getenv;
7196 #endif
7197
7198   ;
7199   return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206   *) ac_try_echo=$ac_try;;
7207 esac
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210   (eval "$ac_compile") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && {
7217          test -z "$ac_c_werror_flag" ||
7218          test ! -s conftest.err
7219        } && test -s conftest.$ac_objext; then
7220   ac_cv_have_decl_getenv=yes
7221 else
7222   $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225         ac_cv_have_decl_getenv=no
7226 fi
7227
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 fi
7230 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7231 $as_echo "$ac_cv_have_decl_getenv" >&6; }
7232 if test "x$ac_cv_have_decl_getenv" = x""yes; then
7233
7234 cat >>confdefs.h <<_ACEOF
7235 #define HAVE_DECL_GETENV 1
7236 _ACEOF
7237
7238
7239 else
7240   cat >>confdefs.h <<_ACEOF
7241 #define HAVE_DECL_GETENV 0
7242 _ACEOF
7243
7244
7245 fi
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260   :
7261
7262
7263
7264
7265
7266
7267
7268      if test $gl_cv_have_include_next = yes; then
7269        gl_cv_next_sys_time_h='<'sys/time.h'>'
7270      else
7271        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
7272 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7273 if test "${gl_cv_next_sys_time_h+set}" = set; then
7274   $as_echo_n "(cached) " >&6
7275 else
7276
7277           if test $ac_cv_header_sys_time_h = yes; then
7278             cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <sys/time.h>
7285
7286 _ACEOF
7287                                     gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288                sed -n '\#/sys/time.h#{
7289                  s#.*"\(.*/sys/time.h\)".*#\1#
7290                  s#^/[^/]#//&#
7291                  p
7292                  q
7293                }'`'"'
7294           else
7295             gl_cv_next_sys_time_h='<'sys/time.h'>'
7296           fi
7297
7298 fi
7299 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
7300 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7301      fi
7302      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7303
7304
7305
7306
7307   if test $ac_cv_header_sys_time_h = yes; then
7308     HAVE_SYS_TIME_H=1
7309   else
7310     HAVE_SYS_TIME_H=0
7311   fi
7312
7313
7314   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7315 $as_echo_n "checking for struct timeval... " >&6; }
7316 if test "${gl_cv_sys_struct_timeval+set}" = set; then
7317   $as_echo_n "(cached) " >&6
7318 else
7319   cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h.  */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h.  */
7325 #if HAVE_SYS_TIME_H
7326              #include <sys/time.h>
7327             #endif
7328             #include <time.h>
7329
7330 int
7331 main ()
7332 {
7333 static struct timeval x; x.tv_sec = x.tv_usec;
7334   ;
7335   return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7340 case "(($ac_try" in
7341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342   *) ac_try_echo=$ac_try;;
7343 esac
7344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7345 $as_echo "$ac_try_echo") >&5
7346   (eval "$ac_compile") 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } && {
7353          test -z "$ac_c_werror_flag" ||
7354          test ! -s conftest.err
7355        } && test -s conftest.$ac_objext; then
7356   gl_cv_sys_struct_timeval=yes
7357 else
7358   $as_echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361         gl_cv_sys_struct_timeval=no
7362 fi
7363
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
7367 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7368   if test $gl_cv_sys_struct_timeval = yes; then
7369     HAVE_STRUCT_TIMEVAL=1
7370   else
7371     HAVE_STRUCT_TIMEVAL=0
7372   fi
7373
7374
7375     REPLACE_GETTIMEOFDAY=0
7376
7377   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
7378     SYS_TIME_H=sys/time.h
7379   else
7380     SYS_TIME_H=
7381   fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392 for ac_func in $gl_func_list
7393 do
7394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7396 $as_echo_n "checking for $ac_func... " >&6; }
7397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7398   $as_echo_n "(cached) " >&6
7399 else
7400   cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h.  */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h.  */
7406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7408 #define $ac_func innocuous_$ac_func
7409
7410 /* System header to define __stub macros and hopefully few prototypes,
7411     which can conflict with char $ac_func (); below.
7412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413     <limits.h> exists even on freestanding compilers.  */
7414
7415 #ifdef __STDC__
7416 # include <limits.h>
7417 #else
7418 # include <assert.h>
7419 #endif
7420
7421 #undef $ac_func
7422
7423 /* Override any GCC internal prototype to avoid an error.
7424    Use char because int might match the return type of a GCC
7425    builtin and then its argument prototype would still apply.  */
7426 #ifdef __cplusplus
7427 extern "C"
7428 #endif
7429 char $ac_func ();
7430 /* The GNU C library defines this for functions which it implements
7431     to always fail with ENOSYS.  Some functions are actually named
7432     something starting with __ and the normal name is an alias.  */
7433 #if defined __stub_$ac_func || defined __stub___$ac_func
7434 choke me
7435 #endif
7436
7437 int
7438 main ()
7439 {
7440 return $ac_func ();
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7447 case "(($ac_try" in
7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449   *) ac_try_echo=$ac_try;;
7450 esac
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453   (eval "$ac_link") 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } && {
7460          test -z "$ac_c_werror_flag" ||
7461          test ! -s conftest.err
7462        } && test -s conftest$ac_exeext && {
7463          test "$cross_compiling" = yes ||
7464          $as_test_x conftest$ac_exeext
7465        }; then
7466   eval "$as_ac_var=yes"
7467 else
7468   $as_echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471         eval "$as_ac_var=no"
7472 fi
7473
7474 rm -rf conftest.dSYM
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476       conftest$ac_exeext conftest.$ac_ext
7477 fi
7478 ac_res=`eval 'as_val=${'$as_ac_var'}
7479                  $as_echo "$as_val"'`
7480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7481 $as_echo "$ac_res" >&6; }
7482 as_val=`eval 'as_val=${'$as_ac_var'}
7483                  $as_echo "$as_val"'`
7484    if test "x$as_val" = x""yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7487 _ACEOF
7488
7489 fi
7490 done
7491
7492
7493
7494
7495
7496
7497
7498       if test "X$prefix" = "XNONE"; then
7499     acl_final_prefix="$ac_default_prefix"
7500   else
7501     acl_final_prefix="$prefix"
7502   fi
7503   if test "X$exec_prefix" = "XNONE"; then
7504     acl_final_exec_prefix='${prefix}'
7505   else
7506     acl_final_exec_prefix="$exec_prefix"
7507   fi
7508   acl_save_prefix="$prefix"
7509   prefix="$acl_final_prefix"
7510   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7511   prefix="$acl_save_prefix"
7512
7513
7514 # Check whether --with-gnu-ld was given.
7515 if test "${with_gnu_ld+set}" = set; then
7516   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7517 else
7518   with_gnu_ld=no
7519 fi
7520
7521 # Prepare PATH_SEPARATOR.
7522 # The user is always right.
7523 if test "${PATH_SEPARATOR+set}" != set; then
7524   echo "#! /bin/sh" >conf$$.sh
7525   echo  "exit 0"   >>conf$$.sh
7526   chmod +x conf$$.sh
7527   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7528     PATH_SEPARATOR=';'
7529   else
7530     PATH_SEPARATOR=:
7531   fi
7532   rm -f conf$$.sh
7533 fi
7534 ac_prog=ld
7535 if test "$GCC" = yes; then
7536   # Check if gcc -print-prog-name=ld gives a path.
7537   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7538 $as_echo_n "checking for ld used by GCC... " >&6; }
7539   case $host in
7540   *-*-mingw*)
7541     # gcc leaves a trailing carriage return which upsets mingw
7542     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7543   *)
7544     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7545   esac
7546   case $ac_prog in
7547     # Accept absolute paths.
7548     [\\/]* | [A-Za-z]:[\\/]*)
7549       re_direlt='/[^/][^/]*/\.\./'
7550       # Canonicalize the path of ld
7551       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7552       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7553         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7554       done
7555       test -z "$LD" && LD="$ac_prog"
7556       ;;
7557   "")
7558     # If it fails, then pretend we aren't using GCC.
7559     ac_prog=ld
7560     ;;
7561   *)
7562     # If it is relative, then search for the first ld in PATH.
7563     with_gnu_ld=unknown
7564     ;;
7565   esac
7566 elif test "$with_gnu_ld" = yes; then
7567   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7568 $as_echo_n "checking for GNU ld... " >&6; }
7569 else
7570   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7571 $as_echo_n "checking for non-GNU ld... " >&6; }
7572 fi
7573 if test "${acl_cv_path_LD+set}" = set; then
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -z "$LD"; then
7577   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7578   for ac_dir in $PATH; do
7579     test -z "$ac_dir" && ac_dir=.
7580     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7581       acl_cv_path_LD="$ac_dir/$ac_prog"
7582       # Check to see if the program is GNU ld.  I'd rather use --version,
7583       # but apparently some GNU ld's only accept -v.
7584       # Break only if it was the GNU/non-GNU ld that we prefer.
7585       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7586       *GNU* | *'with BFD'*)
7587         test "$with_gnu_ld" != no && break ;;
7588       *)
7589         test "$with_gnu_ld" != yes && break ;;
7590       esac
7591     fi
7592   done
7593   IFS="$ac_save_ifs"
7594 else
7595   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7596 fi
7597 fi
7598
7599 LD="$acl_cv_path_LD"
7600 if test -n "$LD"; then
7601   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7602 $as_echo "$LD" >&6; }
7603 else
7604   { $as_echo "$as_me:$LINENO: result: no" >&5
7605 $as_echo "no" >&6; }
7606 fi
7607 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7608 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7609    { (exit 1); exit 1; }; }
7610 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7612 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7613   $as_echo_n "(cached) " >&6
7614 else
7615   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7616 case `$LD -v 2>&1 </dev/null` in
7617 *GNU* | *'with BFD'*)
7618   acl_cv_prog_gnu_ld=yes ;;
7619 *)
7620   acl_cv_prog_gnu_ld=no ;;
7621 esac
7622 fi
7623 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7624 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7625 with_gnu_ld=$acl_cv_prog_gnu_ld
7626
7627
7628
7629
7630                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7631 $as_echo_n "checking for shared library run path origin... " >&6; }
7632 if test "${acl_cv_rpath+set}" = set; then
7633   $as_echo_n "(cached) " >&6
7634 else
7635
7636     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7637     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7638     . ./conftest.sh
7639     rm -f ./conftest.sh
7640     acl_cv_rpath=done
7641
7642 fi
7643 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7644 $as_echo "$acl_cv_rpath" >&6; }
7645   wl="$acl_cv_wl"
7646   libext="$acl_cv_libext"
7647   shlibext="$acl_cv_shlibext"
7648   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7649   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7650   hardcode_direct="$acl_cv_hardcode_direct"
7651   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7652     # Check whether --enable-rpath was given.
7653 if test "${enable_rpath+set}" = set; then
7654   enableval=$enable_rpath; :
7655 else
7656   enable_rpath=yes
7657 fi
7658
7659
7660
7661                   acl_libdirstem=lib
7662   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7663   if test -n "$searchpath"; then
7664     acl_save_IFS="${IFS=        }"; IFS=":"
7665     for searchdir in $searchpath; do
7666       if test -d "$searchdir"; then
7667         case "$searchdir" in
7668           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7669           *) searchdir=`cd "$searchdir" && pwd`
7670              case "$searchdir" in
7671                */lib64 ) acl_libdirstem=lib64 ;;
7672              esac ;;
7673         esac
7674       fi
7675     done
7676     IFS="$acl_save_IFS"
7677   fi
7678
7679
7680
7681   gl_threads_api=none
7682   LIBTHREAD=
7683   LTLIBTHREAD=
7684   LIBMULTITHREAD=
7685   LTLIBMULTITHREAD=
7686   if test "$gl_use_threads" != no; then
7687         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
7688 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7689     gl_have_weak=no
7690     cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 extern void xyzzy ();
7697 #pragma weak xyzzy
7698 int
7699 main ()
7700 {
7701 xyzzy();
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (ac_try="$ac_link"
7708 case "(($ac_try" in
7709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710   *) ac_try_echo=$ac_try;;
7711 esac
7712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714   (eval "$ac_link") 2>conftest.er1
7715   ac_status=$?
7716   grep -v '^ *+' conftest.er1 >conftest.err
7717   rm -f conftest.er1
7718   cat conftest.err >&5
7719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } && {
7721          test -z "$ac_c_werror_flag" ||
7722          test ! -s conftest.err
7723        } && test -s conftest$ac_exeext && {
7724          test "$cross_compiling" = yes ||
7725          $as_test_x conftest$ac_exeext
7726        }; then
7727   gl_have_weak=yes
7728 else
7729   $as_echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732
7733 fi
7734
7735 rm -rf conftest.dSYM
7736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7737       conftest$ac_exeext conftest.$ac_ext
7738     { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
7739 $as_echo "$gl_have_weak" >&6; }
7740     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7741       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7742       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
7743       if test "${ac_cv_header_pthread_h+set}" = set; then
7744   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7745 $as_echo_n "checking for pthread.h... " >&6; }
7746 if test "${ac_cv_header_pthread_h+set}" = set; then
7747   $as_echo_n "(cached) " >&6
7748 fi
7749 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7750 $as_echo "$ac_cv_header_pthread_h" >&6; }
7751 else
7752   # Is the header compilable?
7753 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
7754 $as_echo_n "checking pthread.h usability... " >&6; }
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761 $ac_includes_default
7762 #include <pthread.h>
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768   *) ac_try_echo=$ac_try;;
7769 esac
7770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772   (eval "$ac_compile") 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } && {
7779          test -z "$ac_c_werror_flag" ||
7780          test ! -s conftest.err
7781        } && test -s conftest.$ac_objext; then
7782   ac_header_compiler=yes
7783 else
7784   $as_echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787         ac_header_compiler=no
7788 fi
7789
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7792 $as_echo "$ac_header_compiler" >&6; }
7793
7794 # Is the header present?
7795 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
7796 $as_echo_n "checking pthread.h presence... " >&6; }
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803 #include <pthread.h>
7804 _ACEOF
7805 if { (ac_try="$ac_cpp conftest.$ac_ext"
7806 case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } >/dev/null && {
7819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7820          test ! -s conftest.err
7821        }; then
7822   ac_header_preproc=yes
7823 else
7824   $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827   ac_header_preproc=no
7828 fi
7829
7830 rm -f conftest.err conftest.$ac_ext
7831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7832 $as_echo "$ac_header_preproc" >&6; }
7833
7834 # So?  What about this header?
7835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7836   yes:no: )
7837     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7838 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7839     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7840 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7841     ac_header_preproc=yes
7842     ;;
7843   no:yes:* )
7844     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7845 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7846     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
7847 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
7848     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7849 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7850     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
7851 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7852     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7853 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7854     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7855 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7856
7857     ;;
7858 esac
7859 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7860 $as_echo_n "checking for pthread.h... " >&6; }
7861 if test "${ac_cv_header_pthread_h+set}" = set; then
7862   $as_echo_n "(cached) " >&6
7863 else
7864   ac_cv_header_pthread_h=$ac_header_preproc
7865 fi
7866 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7867 $as_echo "$ac_cv_header_pthread_h" >&6; }
7868
7869 fi
7870 if test "x$ac_cv_header_pthread_h" = x""yes; then
7871   gl_have_pthread_h=yes
7872 else
7873   gl_have_pthread_h=no
7874 fi
7875
7876
7877       if test "$gl_have_pthread_h" = yes; then
7878         # Other possible tests:
7879         #   -lpthreads (FSU threads, PCthreads)
7880         #   -lgthreads
7881         gl_have_pthread=
7882         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7883         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7884         # the second one only in libpthread, and lock.c needs it.
7885         cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <pthread.h>
7892 int
7893 main ()
7894 {
7895 pthread_mutex_lock((pthread_mutex_t*)0);
7896            pthread_mutexattr_init((pthread_mutexattr_t*)0);
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7903 case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7908 $as_echo "$ac_try_echo") >&5
7909   (eval "$ac_link") 2>conftest.er1
7910   ac_status=$?
7911   grep -v '^ *+' conftest.er1 >conftest.err
7912   rm -f conftest.er1
7913   cat conftest.err >&5
7914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } && {
7916          test -z "$ac_c_werror_flag" ||
7917          test ! -s conftest.err
7918        } && test -s conftest$ac_exeext && {
7919          test "$cross_compiling" = yes ||
7920          $as_test_x conftest$ac_exeext
7921        }; then
7922   gl_have_pthread=yes
7923 else
7924   $as_echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927
7928 fi
7929
7930 rm -rf conftest.dSYM
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932       conftest$ac_exeext conftest.$ac_ext
7933         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7934         # since it is defined as a macro on OSF/1.)
7935         if test -n "$gl_have_pthread"; then
7936           # The program links fine without libpthread. But it may actually
7937           # need to link with libpthread in order to create multiple threads.
7938           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7939 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7940 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7941   $as_echo_n "(cached) " >&6
7942 else
7943   ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lpthread  $LIBS"
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 /* Override any GCC internal prototype to avoid an error.
7953    Use char because int might match the return type of a GCC
7954    builtin and then its argument prototype would still apply.  */
7955 #ifdef __cplusplus
7956 extern "C"
7957 #endif
7958 char pthread_kill ();
7959 int
7960 main ()
7961 {
7962 return pthread_kill ();
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7969 case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7974 $as_echo "$ac_try_echo") >&5
7975   (eval "$ac_link") 2>conftest.er1
7976   ac_status=$?
7977   grep -v '^ *+' conftest.er1 >conftest.err
7978   rm -f conftest.er1
7979   cat conftest.err >&5
7980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); } && {
7982          test -z "$ac_c_werror_flag" ||
7983          test ! -s conftest.err
7984        } && test -s conftest$ac_exeext && {
7985          test "$cross_compiling" = yes ||
7986          $as_test_x conftest$ac_exeext
7987        }; then
7988   ac_cv_lib_pthread_pthread_kill=yes
7989 else
7990   $as_echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         ac_cv_lib_pthread_pthread_kill=no
7994 fi
7995
7996 rm -rf conftest.dSYM
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998       conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8000 fi
8001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8002 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8003 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8004   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8005              # On Solaris and HP-UX, most pthread functions exist also in libc.
8006              # Therefore pthread_in_use() needs to actually try to create a
8007              # thread: pthread_create from libc will fail, whereas
8008              # pthread_create will actually create a thread.
8009              case "$host_os" in
8010                solaris* | hpux*)
8011
8012 cat >>confdefs.h <<\_ACEOF
8013 #define PTHREAD_IN_USE_DETECTION_HARD 1
8014 _ACEOF
8015
8016              esac
8017
8018 fi
8019
8020         else
8021           # Some library is needed. Try libpthread and libc_r.
8022           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
8023 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8024 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
8025   $as_echo_n "(cached) " >&6
8026 else
8027   ac_check_lib_save_LIBS=$LIBS
8028 LIBS="-lpthread  $LIBS"
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035
8036 /* Override any GCC internal prototype to avoid an error.
8037    Use char because int might match the return type of a GCC
8038    builtin and then its argument prototype would still apply.  */
8039 #ifdef __cplusplus
8040 extern "C"
8041 #endif
8042 char pthread_kill ();
8043 int
8044 main ()
8045 {
8046 return pthread_kill ();
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (ac_try="$ac_link"
8053 case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8058 $as_echo "$ac_try_echo") >&5
8059   (eval "$ac_link") 2>conftest.er1
8060   ac_status=$?
8061   grep -v '^ *+' conftest.er1 >conftest.err
8062   rm -f conftest.er1
8063   cat conftest.err >&5
8064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } && {
8066          test -z "$ac_c_werror_flag" ||
8067          test ! -s conftest.err
8068        } && test -s conftest$ac_exeext && {
8069          test "$cross_compiling" = yes ||
8070          $as_test_x conftest$ac_exeext
8071        }; then
8072   ac_cv_lib_pthread_pthread_kill=yes
8073 else
8074   $as_echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077         ac_cv_lib_pthread_pthread_kill=no
8078 fi
8079
8080 rm -rf conftest.dSYM
8081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8082       conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8084 fi
8085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8086 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8087 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8088   gl_have_pthread=yes
8089              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8090              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8091 fi
8092
8093           if test -z "$gl_have_pthread"; then
8094             # For FreeBSD 4.
8095             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
8096 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8097 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
8098   $as_echo_n "(cached) " >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lc_r  $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 /* Override any GCC internal prototype to avoid an error.
8110    Use char because int might match the return type of a GCC
8111    builtin and then its argument prototype would still apply.  */
8112 #ifdef __cplusplus
8113 extern "C"
8114 #endif
8115 char pthread_kill ();
8116 int
8117 main ()
8118 {
8119 return pthread_kill ();
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (ac_try="$ac_link"
8126 case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8131 $as_echo "$ac_try_echo") >&5
8132   (eval "$ac_link") 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } && {
8139          test -z "$ac_c_werror_flag" ||
8140          test ! -s conftest.err
8141        } && test -s conftest$ac_exeext && {
8142          test "$cross_compiling" = yes ||
8143          $as_test_x conftest$ac_exeext
8144        }; then
8145   ac_cv_lib_c_r_pthread_kill=yes
8146 else
8147   $as_echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         ac_cv_lib_c_r_pthread_kill=no
8151 fi
8152
8153 rm -rf conftest.dSYM
8154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8155       conftest$ac_exeext conftest.$ac_ext
8156 LIBS=$ac_check_lib_save_LIBS
8157 fi
8158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
8159 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8160 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
8161   gl_have_pthread=yes
8162                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8163                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8164 fi
8165
8166           fi
8167         fi
8168         if test -n "$gl_have_pthread"; then
8169           gl_threads_api=posix
8170
8171 cat >>confdefs.h <<\_ACEOF
8172 #define USE_POSIX_THREADS 1
8173 _ACEOF
8174
8175           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8176             if test $gl_have_weak = yes; then
8177
8178 cat >>confdefs.h <<\_ACEOF
8179 #define USE_POSIX_THREADS_WEAK 1
8180 _ACEOF
8181
8182               LIBTHREAD=
8183               LTLIBTHREAD=
8184             fi
8185           fi
8186           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
8187           # pthread_rwlock_* functions.
8188           { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
8189 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
8190 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
8191   $as_echo_n "(cached) " >&6
8192 else
8193   ac_cv_type_pthread_rwlock_t=no
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200 #include <pthread.h>
8201
8202 int
8203 main ()
8204 {
8205 if (sizeof (pthread_rwlock_t))
8206        return 0;
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8213 case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219   (eval "$ac_compile") 2>conftest.er1
8220   ac_status=$?
8221   grep -v '^ *+' conftest.er1 >conftest.err
8222   rm -f conftest.er1
8223   cat conftest.err >&5
8224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); } && {
8226          test -z "$ac_c_werror_flag" ||
8227          test ! -s conftest.err
8228        } && test -s conftest.$ac_objext; then
8229   cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235 #include <pthread.h>
8236
8237 int
8238 main ()
8239 {
8240 if (sizeof ((pthread_rwlock_t)))
8241           return 0;
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250   *) ac_try_echo=$ac_try;;
8251 esac
8252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8253 $as_echo "$ac_try_echo") >&5
8254   (eval "$ac_compile") 2>conftest.er1
8255   ac_status=$?
8256   grep -v '^ *+' conftest.er1 >conftest.err
8257   rm -f conftest.er1
8258   cat conftest.err >&5
8259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } && {
8261          test -z "$ac_c_werror_flag" ||
8262          test ! -s conftest.err
8263        } && test -s conftest.$ac_objext; then
8264   :
8265 else
8266   $as_echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269         ac_cv_type_pthread_rwlock_t=yes
8270 fi
8271
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 else
8274   $as_echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277
8278 fi
8279
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 fi
8282 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
8283 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
8284 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
8285
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_PTHREAD_RWLOCK 1
8288 _ACEOF
8289
8290 fi
8291
8292           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8293           cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299 #include <pthread.h>
8300 int
8301 main ()
8302 {
8303 #if __FreeBSD__ == 4
8304 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8305 #else
8306 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8307 return !x;
8308 #endif
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (ac_try="$ac_compile"
8315 case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8320 $as_echo "$ac_try_echo") >&5
8321   (eval "$ac_compile") 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } && {
8328          test -z "$ac_c_werror_flag" ||
8329          test ! -s conftest.err
8330        } && test -s conftest.$ac_objext; then
8331
8332 cat >>confdefs.h <<\_ACEOF
8333 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
8334 _ACEOF
8335
8336 else
8337   $as_echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340
8341 fi
8342
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344         fi
8345       fi
8346     fi
8347     if test -z "$gl_have_pthread"; then
8348       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8349         gl_have_solaristhread=
8350         gl_save_LIBS="$LIBS"
8351         LIBS="$LIBS -lthread"
8352         cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 #include <thread.h>
8359 #include <synch.h>
8360 int
8361 main ()
8362 {
8363 thr_self();
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8370 case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8375 $as_echo "$ac_try_echo") >&5
8376   (eval "$ac_link") 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } && {
8383          test -z "$ac_c_werror_flag" ||
8384          test ! -s conftest.err
8385        } && test -s conftest$ac_exeext && {
8386          test "$cross_compiling" = yes ||
8387          $as_test_x conftest$ac_exeext
8388        }; then
8389   gl_have_solaristhread=yes
8390 else
8391   $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394
8395 fi
8396
8397 rm -rf conftest.dSYM
8398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8399       conftest$ac_exeext conftest.$ac_ext
8400         LIBS="$gl_save_LIBS"
8401         if test -n "$gl_have_solaristhread"; then
8402           gl_threads_api=solaris
8403           LIBTHREAD=-lthread
8404           LTLIBTHREAD=-lthread
8405           LIBMULTITHREAD="$LIBTHREAD"
8406           LTLIBMULTITHREAD="$LTLIBTHREAD"
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define USE_SOLARIS_THREADS 1
8410 _ACEOF
8411
8412           if test $gl_have_weak = yes; then
8413
8414 cat >>confdefs.h <<\_ACEOF
8415 #define USE_SOLARIS_THREADS_WEAK 1
8416 _ACEOF
8417
8418             LIBTHREAD=
8419             LTLIBTHREAD=
8420           fi
8421         fi
8422       fi
8423     fi
8424     if test "$gl_use_threads" = pth; then
8425       gl_save_CPPFLAGS="$CPPFLAGS"
8426
8427
8428
8429
8430
8431   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
8432 $as_echo_n "checking how to link with libpth... " >&6; }
8433 if test "${ac_cv_libpth_libs+set}" = set; then
8434   $as_echo_n "(cached) " >&6
8435 else
8436
8437
8438
8439
8440     use_additional=yes
8441
8442   acl_save_prefix="$prefix"
8443   prefix="$acl_final_prefix"
8444   acl_save_exec_prefix="$exec_prefix"
8445   exec_prefix="$acl_final_exec_prefix"
8446
8447     eval additional_includedir=\"$includedir\"
8448     eval additional_libdir=\"$libdir\"
8449
8450   exec_prefix="$acl_save_exec_prefix"
8451   prefix="$acl_save_prefix"
8452
8453
8454 # Check whether --with-libpth-prefix was given.
8455 if test "${with_libpth_prefix+set}" = set; then
8456   withval=$with_libpth_prefix;
8457     if test "X$withval" = "Xno"; then
8458       use_additional=no
8459     else
8460       if test "X$withval" = "X"; then
8461
8462   acl_save_prefix="$prefix"
8463   prefix="$acl_final_prefix"
8464   acl_save_exec_prefix="$exec_prefix"
8465   exec_prefix="$acl_final_exec_prefix"
8466
8467           eval additional_includedir=\"$includedir\"
8468           eval additional_libdir=\"$libdir\"
8469
8470   exec_prefix="$acl_save_exec_prefix"
8471   prefix="$acl_save_prefix"
8472
8473       else
8474         additional_includedir="$withval/include"
8475         additional_libdir="$withval/$acl_libdirstem"
8476       fi
8477     fi
8478
8479 fi
8480
8481       LIBPTH=
8482   LTLIBPTH=
8483   INCPTH=
8484   rpathdirs=
8485   ltrpathdirs=
8486   names_already_handled=
8487   names_next_round='pth '
8488   while test -n "$names_next_round"; do
8489     names_this_round="$names_next_round"
8490     names_next_round=
8491     for name in $names_this_round; do
8492       already_handled=
8493       for n in $names_already_handled; do
8494         if test "$n" = "$name"; then
8495           already_handled=yes
8496           break
8497         fi
8498       done
8499       if test -z "$already_handled"; then
8500         names_already_handled="$names_already_handled $name"
8501                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8502         eval value=\"\$HAVE_LIB$uppername\"
8503         if test -n "$value"; then
8504           if test "$value" = yes; then
8505             eval value=\"\$LIB$uppername\"
8506             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8507             eval value=\"\$LTLIB$uppername\"
8508             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8509           else
8510                                     :
8511           fi
8512         else
8513                               found_dir=
8514           found_la=
8515           found_so=
8516           found_a=
8517           if test $use_additional = yes; then
8518             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8519               found_dir="$additional_libdir"
8520               found_so="$additional_libdir/lib$name.$shlibext"
8521               if test -f "$additional_libdir/lib$name.la"; then
8522                 found_la="$additional_libdir/lib$name.la"
8523               fi
8524             else
8525               if test -f "$additional_libdir/lib$name.$libext"; then
8526                 found_dir="$additional_libdir"
8527                 found_a="$additional_libdir/lib$name.$libext"
8528                 if test -f "$additional_libdir/lib$name.la"; then
8529                   found_la="$additional_libdir/lib$name.la"
8530                 fi
8531               fi
8532             fi
8533           fi
8534           if test "X$found_dir" = "X"; then
8535             for x in $LDFLAGS $LTLIBPTH; do
8536
8537   acl_save_prefix="$prefix"
8538   prefix="$acl_final_prefix"
8539   acl_save_exec_prefix="$exec_prefix"
8540   exec_prefix="$acl_final_exec_prefix"
8541   eval x=\"$x\"
8542   exec_prefix="$acl_save_exec_prefix"
8543   prefix="$acl_save_prefix"
8544
8545               case "$x" in
8546                 -L*)
8547                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8548                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8549                     found_dir="$dir"
8550                     found_so="$dir/lib$name.$shlibext"
8551                     if test -f "$dir/lib$name.la"; then
8552                       found_la="$dir/lib$name.la"
8553                     fi
8554                   else
8555                     if test -f "$dir/lib$name.$libext"; then
8556                       found_dir="$dir"
8557                       found_a="$dir/lib$name.$libext"
8558                       if test -f "$dir/lib$name.la"; then
8559                         found_la="$dir/lib$name.la"
8560                       fi
8561                     fi
8562                   fi
8563                   ;;
8564               esac
8565               if test "X$found_dir" != "X"; then
8566                 break
8567               fi
8568             done
8569           fi
8570           if test "X$found_dir" != "X"; then
8571                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8572             if test "X$found_so" != "X"; then
8573                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8574                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8575               else
8576                                                                                 haveit=
8577                 for x in $ltrpathdirs; do
8578                   if test "X$x" = "X$found_dir"; then
8579                     haveit=yes
8580                     break
8581                   fi
8582                 done
8583                 if test -z "$haveit"; then
8584                   ltrpathdirs="$ltrpathdirs $found_dir"
8585                 fi
8586                                 if test "$hardcode_direct" = yes; then
8587                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8588                 else
8589                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8590                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8591                                                             haveit=
8592                     for x in $rpathdirs; do
8593                       if test "X$x" = "X$found_dir"; then
8594                         haveit=yes
8595                         break
8596                       fi
8597                     done
8598                     if test -z "$haveit"; then
8599                       rpathdirs="$rpathdirs $found_dir"
8600                     fi
8601                   else
8602                                                                                 haveit=
8603                     for x in $LDFLAGS $LIBPTH; do
8604
8605   acl_save_prefix="$prefix"
8606   prefix="$acl_final_prefix"
8607   acl_save_exec_prefix="$exec_prefix"
8608   exec_prefix="$acl_final_exec_prefix"
8609   eval x=\"$x\"
8610   exec_prefix="$acl_save_exec_prefix"
8611   prefix="$acl_save_prefix"
8612
8613                       if test "X$x" = "X-L$found_dir"; then
8614                         haveit=yes
8615                         break
8616                       fi
8617                     done
8618                     if test -z "$haveit"; then
8619                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8620                     fi
8621                     if test "$hardcode_minus_L" != no; then
8622                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8623                     else
8624                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8625                     fi
8626                   fi
8627                 fi
8628               fi
8629             else
8630               if test "X$found_a" != "X"; then
8631                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8632               else
8633                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8634               fi
8635             fi
8636                         additional_includedir=
8637             case "$found_dir" in
8638               */$acl_libdirstem | */$acl_libdirstem/)
8639                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8640                 additional_includedir="$basedir/include"
8641                 ;;
8642             esac
8643             if test "X$additional_includedir" != "X"; then
8644                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8645                 haveit=
8646                 if test "X$additional_includedir" = "X/usr/local/include"; then
8647                   if test -n "$GCC"; then
8648                     case $host_os in
8649                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8650                     esac
8651                   fi
8652                 fi
8653                 if test -z "$haveit"; then
8654                   for x in $CPPFLAGS $INCPTH; do
8655
8656   acl_save_prefix="$prefix"
8657   prefix="$acl_final_prefix"
8658   acl_save_exec_prefix="$exec_prefix"
8659   exec_prefix="$acl_final_exec_prefix"
8660   eval x=\"$x\"
8661   exec_prefix="$acl_save_exec_prefix"
8662   prefix="$acl_save_prefix"
8663
8664                     if test "X$x" = "X-I$additional_includedir"; then
8665                       haveit=yes
8666                       break
8667                     fi
8668                   done
8669                   if test -z "$haveit"; then
8670                     if test -d "$additional_includedir"; then
8671                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8672                     fi
8673                   fi
8674                 fi
8675               fi
8676             fi
8677                         if test -n "$found_la"; then
8678                                                         save_libdir="$libdir"
8679               case "$found_la" in
8680                 */* | *\\*) . "$found_la" ;;
8681                 *) . "./$found_la" ;;
8682               esac
8683               libdir="$save_libdir"
8684                             for dep in $dependency_libs; do
8685                 case "$dep" in
8686                   -L*)
8687                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8688                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8689                       haveit=
8690                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8691                         if test -n "$GCC"; then
8692                           case $host_os in
8693                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8694                           esac
8695                         fi
8696                       fi
8697                       if test -z "$haveit"; then
8698                         haveit=
8699                         for x in $LDFLAGS $LIBPTH; do
8700
8701   acl_save_prefix="$prefix"
8702   prefix="$acl_final_prefix"
8703   acl_save_exec_prefix="$exec_prefix"
8704   exec_prefix="$acl_final_exec_prefix"
8705   eval x=\"$x\"
8706   exec_prefix="$acl_save_exec_prefix"
8707   prefix="$acl_save_prefix"
8708
8709                           if test "X$x" = "X-L$additional_libdir"; then
8710                             haveit=yes
8711                             break
8712                           fi
8713                         done
8714                         if test -z "$haveit"; then
8715                           if test -d "$additional_libdir"; then
8716                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8717                           fi
8718                         fi
8719                         haveit=
8720                         for x in $LDFLAGS $LTLIBPTH; do
8721
8722   acl_save_prefix="$prefix"
8723   prefix="$acl_final_prefix"
8724   acl_save_exec_prefix="$exec_prefix"
8725   exec_prefix="$acl_final_exec_prefix"
8726   eval x=\"$x\"
8727   exec_prefix="$acl_save_exec_prefix"
8728   prefix="$acl_save_prefix"
8729
8730                           if test "X$x" = "X-L$additional_libdir"; then
8731                             haveit=yes
8732                             break
8733                           fi
8734                         done
8735                         if test -z "$haveit"; then
8736                           if test -d "$additional_libdir"; then
8737                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8738                           fi
8739                         fi
8740                       fi
8741                     fi
8742                     ;;
8743                   -R*)
8744                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8745                     if test "$enable_rpath" != no; then
8746                                                                   haveit=
8747                       for x in $rpathdirs; do
8748                         if test "X$x" = "X$dir"; then
8749                           haveit=yes
8750                           break
8751                         fi
8752                       done
8753                       if test -z "$haveit"; then
8754                         rpathdirs="$rpathdirs $dir"
8755                       fi
8756                                                                   haveit=
8757                       for x in $ltrpathdirs; do
8758                         if test "X$x" = "X$dir"; then
8759                           haveit=yes
8760                           break
8761                         fi
8762                       done
8763                       if test -z "$haveit"; then
8764                         ltrpathdirs="$ltrpathdirs $dir"
8765                       fi
8766                     fi
8767                     ;;
8768                   -l*)
8769                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8770                     ;;
8771                   *.la)
8772                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8773                     ;;
8774                   *)
8775                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8776                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8777                     ;;
8778                 esac
8779               done
8780             fi
8781           else
8782                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8783             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8784           fi
8785         fi
8786       fi
8787     done
8788   done
8789   if test "X$rpathdirs" != "X"; then
8790     if test -n "$hardcode_libdir_separator"; then
8791                         alldirs=
8792       for found_dir in $rpathdirs; do
8793         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8794       done
8795             acl_save_libdir="$libdir"
8796       libdir="$alldirs"
8797       eval flag=\"$hardcode_libdir_flag_spec\"
8798       libdir="$acl_save_libdir"
8799       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8800     else
8801             for found_dir in $rpathdirs; do
8802         acl_save_libdir="$libdir"
8803         libdir="$found_dir"
8804         eval flag=\"$hardcode_libdir_flag_spec\"
8805         libdir="$acl_save_libdir"
8806         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8807       done
8808     fi
8809   fi
8810   if test "X$ltrpathdirs" != "X"; then
8811             for found_dir in $ltrpathdirs; do
8812       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8813     done
8814   fi
8815
8816     ac_cv_libpth_libs="$LIBPTH"
8817     ac_cv_libpth_ltlibs="$LTLIBPTH"
8818     ac_cv_libpth_cppflags="$INCPTH"
8819
8820 fi
8821 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
8822 $as_echo "$ac_cv_libpth_libs" >&6; }
8823   LIBPTH="$ac_cv_libpth_libs"
8824   LTLIBPTH="$ac_cv_libpth_ltlibs"
8825   INCPTH="$ac_cv_libpth_cppflags"
8826
8827   for element in $INCPTH; do
8828     haveit=
8829     for x in $CPPFLAGS; do
8830
8831   acl_save_prefix="$prefix"
8832   prefix="$acl_final_prefix"
8833   acl_save_exec_prefix="$exec_prefix"
8834   exec_prefix="$acl_final_exec_prefix"
8835   eval x=\"$x\"
8836   exec_prefix="$acl_save_exec_prefix"
8837   prefix="$acl_save_prefix"
8838
8839       if test "X$x" = "X$element"; then
8840         haveit=yes
8841         break
8842       fi
8843     done
8844     if test -z "$haveit"; then
8845       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8846     fi
8847   done
8848
8849
8850
8851       HAVE_LIBPTH=yes
8852
8853
8854
8855       gl_have_pth=
8856       gl_save_LIBS="$LIBS"
8857       LIBS="$LIBS -lpth"
8858       cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864 #include <pth.h>
8865 int
8866 main ()
8867 {
8868 pth_self();
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (ac_try="$ac_link"
8875 case "(($ac_try" in
8876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877   *) ac_try_echo=$ac_try;;
8878 esac
8879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8880 $as_echo "$ac_try_echo") >&5
8881   (eval "$ac_link") 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } && {
8888          test -z "$ac_c_werror_flag" ||
8889          test ! -s conftest.err
8890        } && test -s conftest$ac_exeext && {
8891          test "$cross_compiling" = yes ||
8892          $as_test_x conftest$ac_exeext
8893        }; then
8894   gl_have_pth=yes
8895 else
8896   $as_echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8898
8899
8900 fi
8901
8902 rm -rf conftest.dSYM
8903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8904       conftest$ac_exeext conftest.$ac_ext
8905       LIBS="$gl_save_LIBS"
8906       if test -n "$gl_have_pth"; then
8907         gl_threads_api=pth
8908         LIBTHREAD="$LIBPTH"
8909         LTLIBTHREAD="$LTLIBPTH"
8910         LIBMULTITHREAD="$LIBTHREAD"
8911         LTLIBMULTITHREAD="$LTLIBTHREAD"
8912
8913 cat >>confdefs.h <<\_ACEOF
8914 #define USE_PTH_THREADS 1
8915 _ACEOF
8916
8917         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8918           if test $gl_have_weak = yes; then
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define USE_PTH_THREADS_WEAK 1
8922 _ACEOF
8923
8924             LIBTHREAD=
8925             LTLIBTHREAD=
8926           fi
8927         fi
8928       else
8929         CPPFLAGS="$gl_save_CPPFLAGS"
8930       fi
8931     fi
8932     if test -z "$gl_have_pthread"; then
8933       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
8934         if { case "$host_os" in
8935                mingw*) true;;
8936                *) false;;
8937              esac
8938            }; then
8939           gl_threads_api=win32
8940
8941 cat >>confdefs.h <<\_ACEOF
8942 #define USE_WIN32_THREADS 1
8943 _ACEOF
8944
8945         fi
8946       fi
8947     fi
8948   fi
8949   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
8950 $as_echo_n "checking for multithread API to use... " >&6; }
8951   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
8952 $as_echo "$gl_threads_api" >&6; }
8953
8954
8955
8956
8957
8958
8959   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8960 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
8961 if test "${gl_cv_func_malloc_posix+set}" = set; then
8962   $as_echo_n "(cached) " >&6
8963 else
8964
8965                         cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971
8972 int
8973 main ()
8974 {
8975 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8976          choke me
8977          #endif
8978
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8985 case "(($ac_try" in
8986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987   *) ac_try_echo=$ac_try;;
8988 esac
8989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991   (eval "$ac_compile") 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } && {
8998          test -z "$ac_c_werror_flag" ||
8999          test ! -s conftest.err
9000        } && test -s conftest.$ac_objext; then
9001   gl_cv_func_malloc_posix=yes
9002 else
9003   $as_echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006         gl_cv_func_malloc_posix=no
9007 fi
9008
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010
9011 fi
9012 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
9013 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9014
9015
9016   GNULIB_MALLOC_POSIX=0;
9017   GNULIB_REALLOC_POSIX=0;
9018   GNULIB_CALLOC_POSIX=0;
9019   GNULIB_GETSUBOPT=0;
9020   GNULIB_MKDTEMP=0;
9021   GNULIB_MKSTEMP=0;
9022   GNULIB_PUTENV=0;
9023   GNULIB_SETENV=0;
9024   GNULIB_UNSETENV=0;
9025     HAVE_CALLOC_POSIX=1;
9026   HAVE_GETSUBOPT=1;
9027   HAVE_MALLOC_POSIX=1;
9028   HAVE_MKDTEMP=1;
9029   HAVE_REALLOC_POSIX=1;
9030   HAVE_SETENV=1;
9031   HAVE_UNSETENV=1;
9032   REPLACE_MKSTEMP=0;
9033   REPLACE_PUTENV=0;
9034   VOID_UNSETENV=0;
9035
9036 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9037 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
9038 if test "${gl_cv_var__system_configuration+set}" = set; then
9039   $as_echo_n "(cached) " >&6
9040 else
9041   cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h.  */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h.  */
9047 #include <sys/systemcfg.h>
9048
9049 int
9050 main ()
9051 {
9052 double x = _system_configuration.physmem;
9053                        if (x > 0.0) return 0;
9054   ;
9055   return 0;
9056 }
9057 _ACEOF
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (ac_try="$ac_link"
9060 case "(($ac_try" in
9061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062   *) ac_try_echo=$ac_try;;
9063 esac
9064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9065 $as_echo "$ac_try_echo") >&5
9066   (eval "$ac_link") 2>conftest.er1
9067   ac_status=$?
9068   grep -v '^ *+' conftest.er1 >conftest.err
9069   rm -f conftest.er1
9070   cat conftest.err >&5
9071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } && {
9073          test -z "$ac_c_werror_flag" ||
9074          test ! -s conftest.err
9075        } && test -s conftest$ac_exeext && {
9076          test "$cross_compiling" = yes ||
9077          $as_test_x conftest$ac_exeext
9078        }; then
9079   gl_cv_var__system_configuration=yes
9080 else
9081   $as_echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084         gl_cv_var__system_configuration=no
9085 fi
9086
9087 rm -rf conftest.dSYM
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089       conftest$ac_exeext conftest.$ac_ext
9090 fi
9091 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
9092 $as_echo "$gl_cv_var__system_configuration" >&6; }
9093
9094     if test $gl_cv_var__system_configuration = yes; then
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE__SYSTEM_CONFIGURATION 1
9098 _ACEOF
9099
9100     fi
9101
9102
9103
9104   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9105 $as_echo_n "checking for ssize_t... " >&6; }
9106 if test "${gt_cv_ssize_t+set}" = set; then
9107   $as_echo_n "(cached) " >&6
9108 else
9109   cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 #include <sys/types.h>
9116 int
9117 main ()
9118 {
9119 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9120         return !x;
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9127 case "(($ac_try" in
9128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129   *) ac_try_echo=$ac_try;;
9130 esac
9131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9132 $as_echo "$ac_try_echo") >&5
9133   (eval "$ac_compile") 2>conftest.er1
9134   ac_status=$?
9135   grep -v '^ *+' conftest.er1 >conftest.err
9136   rm -f conftest.er1
9137   cat conftest.err >&5
9138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } && {
9140          test -z "$ac_c_werror_flag" ||
9141          test ! -s conftest.err
9142        } && test -s conftest.$ac_objext; then
9143   gt_cv_ssize_t=yes
9144 else
9145   $as_echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148         gt_cv_ssize_t=no
9149 fi
9150
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 fi
9153 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9154 $as_echo "$gt_cv_ssize_t" >&6; }
9155   if test $gt_cv_ssize_t = no; then
9156
9157 cat >>confdefs.h <<\_ACEOF
9158 #define ssize_t int
9159 _ACEOF
9160
9161   fi
9162
9163
9164   GNULIB_FPRINTF_POSIX=0;
9165   GNULIB_PRINTF_POSIX=0;
9166   GNULIB_SNPRINTF=0;
9167   GNULIB_SPRINTF_POSIX=0;
9168   GNULIB_VFPRINTF_POSIX=0;
9169   GNULIB_VPRINTF_POSIX=0;
9170   GNULIB_VSNPRINTF=0;
9171   GNULIB_VSPRINTF_POSIX=0;
9172   GNULIB_VASPRINTF=0;
9173   GNULIB_FOPEN=0;
9174   GNULIB_FREOPEN=0;
9175   GNULIB_FSEEK=0;
9176   GNULIB_FSEEKO=0;
9177   GNULIB_FTELL=0;
9178   GNULIB_FTELLO=0;
9179   GNULIB_FFLUSH=0;
9180   GNULIB_GETDELIM=0;
9181   GNULIB_GETLINE=0;
9182     REPLACE_FPRINTF=0;
9183   REPLACE_VFPRINTF=0;
9184   REPLACE_PRINTF=0;
9185   REPLACE_VPRINTF=0;
9186   REPLACE_SNPRINTF=0;
9187   HAVE_DECL_SNPRINTF=1;
9188   REPLACE_VSNPRINTF=0;
9189   HAVE_DECL_VSNPRINTF=1;
9190   REPLACE_SPRINTF=0;
9191   REPLACE_VSPRINTF=0;
9192   HAVE_VASPRINTF=1;
9193   REPLACE_VASPRINTF=0;
9194   REPLACE_FOPEN=0;
9195   REPLACE_FREOPEN=0;
9196   HAVE_FSEEKO=1;
9197   REPLACE_FSEEKO=0;
9198   REPLACE_FSEEK=0;
9199   HAVE_FTELLO=1;
9200   REPLACE_FTELLO=0;
9201   REPLACE_FTELL=0;
9202   REPLACE_FFLUSH=0;
9203   HAVE_DECL_GETDELIM=1;
9204   HAVE_DECL_GETLINE=1;
9205   REPLACE_GETLINE=0;
9206
9207
9208       { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9209 $as_echo_n "checking whether snprintf is declared... " >&6; }
9210 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9211   $as_echo_n "(cached) " >&6
9212 else
9213   cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219 $ac_includes_default
9220 int
9221 main ()
9222 {
9223 #ifndef snprintf
9224   (void) snprintf;
9225 #endif
9226
9227   ;
9228   return 0;
9229 }
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9233 case "(($ac_try" in
9234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235   *) ac_try_echo=$ac_try;;
9236 esac
9237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9238 $as_echo "$ac_try_echo") >&5
9239   (eval "$ac_compile") 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } && {
9246          test -z "$ac_c_werror_flag" ||
9247          test ! -s conftest.err
9248        } && test -s conftest.$ac_objext; then
9249   ac_cv_have_decl_snprintf=yes
9250 else
9251   $as_echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254         ac_cv_have_decl_snprintf=no
9255 fi
9256
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9260 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
9261 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_DECL_SNPRINTF 1
9265 _ACEOF
9266
9267
9268 else
9269   cat >>confdefs.h <<_ACEOF
9270 #define HAVE_DECL_SNPRINTF 0
9271 _ACEOF
9272
9273
9274 fi
9275
9276
9277
9278 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9279 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9280 if test "${ac_cv_header_stdbool_h+set}" = set; then
9281   $as_echo_n "(cached) " >&6
9282 else
9283   cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289
9290           #include <stdbool.h>
9291           #ifndef bool
9292            "error: bool is not defined"
9293           #endif
9294           #ifndef false
9295            "error: false is not defined"
9296           #endif
9297           #if false
9298            "error: false is not 0"
9299           #endif
9300           #ifndef true
9301            "error: true is not defined"
9302           #endif
9303           #if true != 1
9304            "error: true is not 1"
9305           #endif
9306           #ifndef __bool_true_false_are_defined
9307            "error: __bool_true_false_are_defined is not defined"
9308           #endif
9309
9310           struct s { _Bool s: 1; _Bool t; } s;
9311
9312           char a[true == 1 ? 1 : -1];
9313           char b[false == 0 ? 1 : -1];
9314           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9315           char d[(bool) 0.5 == true ? 1 : -1];
9316           bool e = &s;
9317           char f[(_Bool) 0.0 == false ? 1 : -1];
9318           char g[true];
9319           char h[sizeof (_Bool)];
9320           char i[sizeof s.t];
9321           enum { j = false, k = true, l = false * true, m = true * 256 };
9322           _Bool n[m];
9323           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9324           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9325           #if defined __xlc__ || defined __GNUC__
9326            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9327               reported by James Lemley on 2005-10-05; see
9328               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9329               This test is not quite right, since xlc is allowed to
9330               reject this program, as the initializer for xlcbug is
9331               not one of the forms that C requires support for.
9332               However, doing the test right would require a run-time
9333               test, and that would make cross-compilation harder.
9334               Let us hope that IBM fixes the xlc bug, and also adds
9335               support for this kind of constant expression.  In the
9336               meantime, this test will reject xlc, which is OK, since
9337               our stdbool.h substitute should suffice.  We also test
9338               this with GCC, where it should work, to detect more
9339               quickly whether someone messes up the test in the
9340               future.  */
9341            char digs[] = "0123456789";
9342            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9343           #endif
9344           /* Catch a bug in an HP-UX C compiler.  See
9345              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9346              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9347            */
9348           _Bool q = true;
9349           _Bool *pq = &q;
9350
9351 int
9352 main ()
9353 {
9354
9355           *pq |= q;
9356           *pq |= ! q;
9357           /* Refer to every declared value, to avoid compiler optimizations.  */
9358           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9359                   + !m + !n + !o + !p + !q + !pq);
9360
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (ac_try="$ac_compile"
9367 case "(($ac_try" in
9368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369   *) ac_try_echo=$ac_try;;
9370 esac
9371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372 $as_echo "$ac_try_echo") >&5
9373   (eval "$ac_compile") 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } && {
9380          test -z "$ac_c_werror_flag" ||
9381          test ! -s conftest.err
9382        } && test -s conftest.$ac_objext; then
9383   ac_cv_header_stdbool_h=yes
9384 else
9385   $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388         ac_cv_header_stdbool_h=no
9389 fi
9390
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 fi
9393 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9394 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9395    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9396 $as_echo_n "checking for _Bool... " >&6; }
9397 if test "${ac_cv_type__Bool+set}" = set; then
9398   $as_echo_n "(cached) " >&6
9399 else
9400   ac_cv_type__Bool=no
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 $ac_includes_default
9408 int
9409 main ()
9410 {
9411 if (sizeof (_Bool))
9412        return 0;
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9419 case "(($ac_try" in
9420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421   *) ac_try_echo=$ac_try;;
9422 esac
9423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9424 $as_echo "$ac_try_echo") >&5
9425   (eval "$ac_compile") 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } && {
9432          test -z "$ac_c_werror_flag" ||
9433          test ! -s conftest.err
9434        } && test -s conftest.$ac_objext; then
9435   cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441 $ac_includes_default
9442 int
9443 main ()
9444 {
9445 if (sizeof ((_Bool)))
9446           return 0;
9447   ;
9448   return 0;
9449 }
9450 _ACEOF
9451 rm -f conftest.$ac_objext
9452 if { (ac_try="$ac_compile"
9453 case "(($ac_try" in
9454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455   *) ac_try_echo=$ac_try;;
9456 esac
9457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9458 $as_echo "$ac_try_echo") >&5
9459   (eval "$ac_compile") 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && {
9466          test -z "$ac_c_werror_flag" ||
9467          test ! -s conftest.err
9468        } && test -s conftest.$ac_objext; then
9469   :
9470 else
9471   $as_echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474         ac_cv_type__Bool=yes
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 else
9479   $as_echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482
9483 fi
9484
9485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9486 fi
9487 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9488 $as_echo "$ac_cv_type__Bool" >&6; }
9489 if test "x$ac_cv_type__Bool" = x""yes; then
9490
9491 cat >>confdefs.h <<_ACEOF
9492 #define HAVE__BOOL 1
9493 _ACEOF
9494
9495
9496 fi
9497
9498    if test $ac_cv_header_stdbool_h = yes; then
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_STDBOOL_H 1
9502 _ACEOF
9503
9504    fi
9505
9506   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
9507 $as_echo_n "checking for long long int... " >&6; }
9508 if test "${ac_cv_type_long_long_int+set}" = set; then
9509   $as_echo_n "(cached) " >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512
9513   /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518 /* For now, do not test the preprocessor; as of 2007 there are too many
9519          implementations with broken preprocessors.  Perhaps this can
9520          be revisited in 2012.  In the meantime, code should not expect
9521          #if to work with literals wider than 32 bits.  */
9522       /* Test literals.  */
9523       long long int ll = 9223372036854775807ll;
9524       long long int nll = -9223372036854775807LL;
9525       unsigned long long int ull = 18446744073709551615ULL;
9526       /* Test constant expressions.   */
9527       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9528                      ? 1 : -1)];
9529       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9530                      ? 1 : -1)];
9531       int i = 63;
9532 int
9533 main ()
9534 {
9535 /* Test availability of runtime routines for shift and division.  */
9536       long long int llmax = 9223372036854775807ll;
9537       unsigned long long int ullmax = 18446744073709551615ull;
9538       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9539               | (llmax / ll) | (llmax % ll)
9540               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9541               | (ullmax / ull) | (ullmax % ull));
9542   ;
9543   return 0;
9544 }
9545
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9549 case "(($ac_try" in
9550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551   *) ac_try_echo=$ac_try;;
9552 esac
9553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9554 $as_echo "$ac_try_echo") >&5
9555   (eval "$ac_link") 2>conftest.er1
9556   ac_status=$?
9557   grep -v '^ *+' conftest.er1 >conftest.err
9558   rm -f conftest.er1
9559   cat conftest.err >&5
9560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } && {
9562          test -z "$ac_c_werror_flag" ||
9563          test ! -s conftest.err
9564        } && test -s conftest$ac_exeext && {
9565          test "$cross_compiling" = yes ||
9566          $as_test_x conftest$ac_exeext
9567        }; then
9568                         if test "$cross_compiling" = yes; then
9569   ac_cv_type_long_long_int=yes
9570 else
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577 #include <limits.h>
9578                #ifndef LLONG_MAX
9579                # define HALF \
9580                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9581                # define LLONG_MAX (HALF - 1 + HALF)
9582                #endif
9583 int
9584 main ()
9585 {
9586 long long int n = 1;
9587                int i;
9588                for (i = 0; ; i++)
9589                  {
9590                    long long int m = n << i;
9591                    if (m >> i != n)
9592                      return 1;
9593                    if (LLONG_MAX / 2 < m)
9594                      break;
9595                  }
9596                return 0;
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9608 $as_echo "$ac_try_echo") >&5
9609   (eval "$ac_link") 2>&5
9610   ac_status=$?
9611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9613   { (case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9618 $as_echo "$ac_try_echo") >&5
9619   (eval "$ac_try") 2>&5
9620   ac_status=$?
9621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; }; then
9623   ac_cv_type_long_long_int=yes
9624 else
9625   $as_echo "$as_me: program exited with status $ac_status" >&5
9626 $as_echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ( exit $ac_status )
9630 ac_cv_type_long_long_int=no
9631 fi
9632 rm -rf conftest.dSYM
9633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 fi
9635
9636
9637 else
9638   $as_echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641         ac_cv_type_long_long_int=no
9642 fi
9643
9644 rm -rf conftest.dSYM
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646       conftest$ac_exeext conftest.$ac_ext
9647 fi
9648 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9649 $as_echo "$ac_cv_type_long_long_int" >&6; }
9650   if test $ac_cv_type_long_long_int = yes; then
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_LONG_LONG_INT 1
9654 _ACEOF
9655
9656   fi
9657
9658
9659   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
9660 $as_echo_n "checking for unsigned long long int... " >&6; }
9661 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
9662   $as_echo_n "(cached) " >&6
9663 else
9664   cat >conftest.$ac_ext <<_ACEOF
9665
9666   /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671 /* For now, do not test the preprocessor; as of 2007 there are too many
9672          implementations with broken preprocessors.  Perhaps this can
9673          be revisited in 2012.  In the meantime, code should not expect
9674          #if to work with literals wider than 32 bits.  */
9675       /* Test literals.  */
9676       long long int ll = 9223372036854775807ll;
9677       long long int nll = -9223372036854775807LL;
9678       unsigned long long int ull = 18446744073709551615ULL;
9679       /* Test constant expressions.   */
9680       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9681                      ? 1 : -1)];
9682       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9683                      ? 1 : -1)];
9684       int i = 63;
9685 int
9686 main ()
9687 {
9688 /* Test availability of runtime routines for shift and division.  */
9689       long long int llmax = 9223372036854775807ll;
9690       unsigned long long int ullmax = 18446744073709551615ull;
9691       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9692               | (llmax / ll) | (llmax % ll)
9693               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9694               | (ullmax / ull) | (ullmax % ull));
9695   ;
9696   return 0;
9697 }
9698
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9702 case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9707 $as_echo "$ac_try_echo") >&5
9708   (eval "$ac_link") 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } && {
9715          test -z "$ac_c_werror_flag" ||
9716          test ! -s conftest.err
9717        } && test -s conftest$ac_exeext && {
9718          test "$cross_compiling" = yes ||
9719          $as_test_x conftest$ac_exeext
9720        }; then
9721   ac_cv_type_unsigned_long_long_int=yes
9722 else
9723   $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726         ac_cv_type_unsigned_long_long_int=no
9727 fi
9728
9729 rm -rf conftest.dSYM
9730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9731       conftest$ac_exeext conftest.$ac_ext
9732 fi
9733 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
9734 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9735   if test $ac_cv_type_unsigned_long_long_int = yes; then
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_UNSIGNED_LONG_LONG_INT 1
9739 _ACEOF
9740
9741   fi
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768   GNULIB_MEMMEM=0;
9769   GNULIB_MEMPCPY=0;
9770   GNULIB_MEMRCHR=0;
9771   GNULIB_STPCPY=0;
9772   GNULIB_STPNCPY=0;
9773   GNULIB_STRCHRNUL=0;
9774   GNULIB_STRDUP=0;
9775   GNULIB_STRNDUP=0;
9776   GNULIB_STRNLEN=0;
9777   GNULIB_STRPBRK=0;
9778   GNULIB_STRSEP=0;
9779   GNULIB_STRSTR=0;
9780   GNULIB_STRCASESTR=0;
9781   GNULIB_STRTOK_R=0;
9782   GNULIB_MBSLEN=0;
9783   GNULIB_MBSNLEN=0;
9784   GNULIB_MBSCHR=0;
9785   GNULIB_MBSRCHR=0;
9786   GNULIB_MBSSTR=0;
9787   GNULIB_MBSCASECMP=0;
9788   GNULIB_MBSNCASECMP=0;
9789   GNULIB_MBSPCASECMP=0;
9790   GNULIB_MBSCASESTR=0;
9791   GNULIB_MBSCSPN=0;
9792   GNULIB_MBSPBRK=0;
9793   GNULIB_MBSSPN=0;
9794   GNULIB_MBSSEP=0;
9795   GNULIB_MBSTOK_R=0;
9796   GNULIB_STRERROR=0;
9797   GNULIB_STRSIGNAL=0;
9798     HAVE_DECL_MEMMEM=1;
9799   HAVE_MEMPCPY=1;
9800   HAVE_DECL_MEMRCHR=1;
9801   HAVE_STPCPY=1;
9802   HAVE_STPNCPY=1;
9803   HAVE_STRCHRNUL=1;
9804   HAVE_DECL_STRDUP=1;
9805   HAVE_STRNDUP=1;
9806   HAVE_DECL_STRNDUP=1;
9807   HAVE_DECL_STRNLEN=1;
9808   HAVE_STRPBRK=1;
9809   HAVE_STRSEP=1;
9810   HAVE_STRCASESTR=1;
9811   HAVE_DECL_STRTOK_R=1;
9812   HAVE_DECL_STRERROR=1;
9813   HAVE_DECL_STRSIGNAL=1;
9814   REPLACE_STRERROR=0;
9815   REPLACE_STRSIGNAL=0;
9816   REPLACE_MEMMEM=0;
9817   REPLACE_STRCASESTR=0;
9818   REPLACE_STRSTR=0;
9819
9820
9821       { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
9822 $as_echo_n "checking whether strdup is declared... " >&6; }
9823 if test "${ac_cv_have_decl_strdup+set}" = set; then
9824   $as_echo_n "(cached) " >&6
9825 else
9826   cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832 $ac_includes_default
9833 int
9834 main ()
9835 {
9836 #ifndef strdup
9837   (void) strdup;
9838 #endif
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852   (eval "$ac_compile") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest.$ac_objext; then
9862   ac_cv_have_decl_strdup=yes
9863 else
9864   $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867         ac_cv_have_decl_strdup=no
9868 fi
9869
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 fi
9872 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
9873 $as_echo "$ac_cv_have_decl_strdup" >&6; }
9874 if test "x$ac_cv_have_decl_strdup" = x""yes; then
9875
9876 cat >>confdefs.h <<_ACEOF
9877 #define HAVE_DECL_STRDUP 1
9878 _ACEOF
9879
9880
9881 else
9882   cat >>confdefs.h <<_ACEOF
9883 #define HAVE_DECL_STRDUP 0
9884 _ACEOF
9885
9886
9887 fi
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903   :
9904
9905
9906
9907
9908
9909
9910
9911      if test $gl_cv_have_include_next = yes; then
9912        gl_cv_next_string_h='<'string.h'>'
9913      else
9914        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
9915 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9916 if test "${gl_cv_next_string_h+set}" = set; then
9917   $as_echo_n "(cached) " >&6
9918 else
9919
9920           if test $ac_cv_header_string_h = yes; then
9921             cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927 #include <string.h>
9928
9929 _ACEOF
9930                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931                sed -n '\#/string.h#{
9932                  s#.*"\(.*/string.h\)".*#\1#
9933                  s#^/[^/]#//&#
9934                  p
9935                  q
9936                }'`'"'
9937           else
9938             gl_cv_next_string_h='<'string.h'>'
9939           fi
9940
9941 fi
9942 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
9943 $as_echo "$gl_cv_next_string_h" >&6; }
9944      fi
9945      NEXT_STRING_H=$gl_cv_next_string_h
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9957 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9958 if test "${ac_cv_header_stat_broken+set}" = set; then
9959   $as_echo_n "(cached) " >&6
9960 else
9961   cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #include <sys/types.h>
9968 #include <sys/stat.h>
9969
9970 #if defined S_ISBLK && defined S_IFDIR
9971 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9972 #endif
9973
9974 #if defined S_ISBLK && defined S_IFCHR
9975 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9976 #endif
9977
9978 #if defined S_ISLNK && defined S_IFREG
9979 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9980 #endif
9981
9982 #if defined S_ISSOCK && defined S_IFREG
9983 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9984 #endif
9985
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9994 $as_echo "$ac_try_echo") >&5
9995   (eval "$ac_compile") 2>conftest.er1
9996   ac_status=$?
9997   grep -v '^ *+' conftest.er1 >conftest.err
9998   rm -f conftest.er1
9999   cat conftest.err >&5
10000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } && {
10002          test -z "$ac_c_werror_flag" ||
10003          test ! -s conftest.err
10004        } && test -s conftest.$ac_objext; then
10005   ac_cv_header_stat_broken=no
10006 else
10007   $as_echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010         ac_cv_header_stat_broken=yes
10011 fi
10012
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10016 $as_echo "$ac_cv_header_stat_broken" >&6; }
10017 if test $ac_cv_header_stat_broken = yes; then
10018
10019 cat >>confdefs.h <<\_ACEOF
10020 #define STAT_MACROS_BROKEN 1
10021 _ACEOF
10022
10023 fi
10024
10025
10026
10027
10028
10029
10030
10031 # Check whether --enable-largefile was given.
10032 if test "${enable_largefile+set}" = set; then
10033   enableval=$enable_largefile;
10034 fi
10035
10036 if test "$enable_largefile" != no; then
10037
10038   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10039 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10040 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10041   $as_echo_n "(cached) " >&6
10042 else
10043   ac_cv_sys_largefile_CC=no
10044      if test "$GCC" != yes; then
10045        ac_save_CC=$CC
10046        while :; do
10047          # IRIX 6.2 and later do not support large files by default,
10048          # so use the C compiler's -n32 option if that helps.
10049          cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055 #include <sys/types.h>
10056  /* Check that off_t can represent 2**63 - 1 correctly.
10057     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10058     since some C++ compilers masquerading as C compilers
10059     incorrectly reject 9223372036854775807.  */
10060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10061   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10062                        && LARGE_OFF_T % 2147483647 == 1)
10063                       ? 1 : -1];
10064 int
10065 main ()
10066 {
10067
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072          rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10079 $as_echo "$ac_try_echo") >&5
10080   (eval "$ac_compile") 2>conftest.er1
10081   ac_status=$?
10082   grep -v '^ *+' conftest.er1 >conftest.err
10083   rm -f conftest.er1
10084   cat conftest.err >&5
10085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); } && {
10087          test -z "$ac_c_werror_flag" ||
10088          test ! -s conftest.err
10089        } && test -s conftest.$ac_objext; then
10090   break
10091 else
10092   $as_echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095
10096 fi
10097
10098 rm -f core conftest.err conftest.$ac_objext
10099          CC="$CC -n32"
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   ac_cv_sys_largefile_CC=' -n32'; break
10119 else
10120   $as_echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext
10127          break
10128        done
10129        CC=$ac_save_CC
10130        rm -f conftest.$ac_ext
10131     fi
10132 fi
10133 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10134 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10135   if test "$ac_cv_sys_largefile_CC" != no; then
10136     CC=$CC$ac_cv_sys_largefile_CC
10137   fi
10138
10139   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10140 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10141 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10142   $as_echo_n "(cached) " >&6
10143 else
10144   while :; do
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 #include <sys/types.h>
10152  /* Check that off_t can represent 2**63 - 1 correctly.
10153     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10154     since some C++ compilers masquerading as C compilers
10155     incorrectly reject 9223372036854775807.  */
10156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10157   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10158                        && LARGE_OFF_T % 2147483647 == 1)
10159                       ? 1 : -1];
10160 int
10161 main ()
10162 {
10163
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176   (eval "$ac_compile") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } && {
10183          test -z "$ac_c_werror_flag" ||
10184          test ! -s conftest.err
10185        } && test -s conftest.$ac_objext; then
10186   ac_cv_sys_file_offset_bits=no; break
10187 else
10188   $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195   cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 #define _FILE_OFFSET_BITS 64
10202 #include <sys/types.h>
10203  /* Check that off_t can represent 2**63 - 1 correctly.
10204     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10205     since some C++ compilers masquerading as C compilers
10206     incorrectly reject 9223372036854775807.  */
10207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10208   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10209                        && LARGE_OFF_T % 2147483647 == 1)
10210                       ? 1 : -1];
10211 int
10212 main ()
10213 {
10214
10215   ;
10216   return 0;
10217 }
10218 _ACEOF
10219 rm -f conftest.$ac_objext
10220 if { (ac_try="$ac_compile"
10221 case "(($ac_try" in
10222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223   *) ac_try_echo=$ac_try;;
10224 esac
10225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10226 $as_echo "$ac_try_echo") >&5
10227   (eval "$ac_compile") 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } && {
10234          test -z "$ac_c_werror_flag" ||
10235          test ! -s conftest.err
10236        } && test -s conftest.$ac_objext; then
10237   ac_cv_sys_file_offset_bits=64; break
10238 else
10239   $as_echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242
10243 fi
10244
10245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246   ac_cv_sys_file_offset_bits=unknown
10247   break
10248 done
10249 fi
10250 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10251 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10252 case $ac_cv_sys_file_offset_bits in #(
10253   no | unknown) ;;
10254   *)
10255 cat >>confdefs.h <<_ACEOF
10256 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10257 _ACEOF
10258 ;;
10259 esac
10260 rm -rf conftest*
10261   if test $ac_cv_sys_file_offset_bits = unknown; then
10262     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10263 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10264 if test "${ac_cv_sys_large_files+set}" = set; then
10265   $as_echo_n "(cached) " >&6
10266 else
10267   while :; do
10268   cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 #include <sys/types.h>
10275  /* Check that off_t can represent 2**63 - 1 correctly.
10276     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10277     since some C++ compilers masquerading as C compilers
10278     incorrectly reject 9223372036854775807.  */
10279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10280   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10281                        && LARGE_OFF_T % 2147483647 == 1)
10282                       ? 1 : -1];
10283 int
10284 main ()
10285 {
10286
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299   (eval "$ac_compile") 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } && {
10306          test -z "$ac_c_werror_flag" ||
10307          test ! -s conftest.err
10308        } && test -s conftest.$ac_objext; then
10309   ac_cv_sys_large_files=no; break
10310 else
10311   $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314
10315 fi
10316
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318   cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 #define _LARGE_FILES 1
10325 #include <sys/types.h>
10326  /* Check that off_t can represent 2**63 - 1 correctly.
10327     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10328     since some C++ compilers masquerading as C compilers
10329     incorrectly reject 9223372036854775807.  */
10330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10331   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10332                        && LARGE_OFF_T % 2147483647 == 1)
10333                       ? 1 : -1];
10334 int
10335 main ()
10336 {
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (ac_try="$ac_compile"
10344 case "(($ac_try" in
10345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346   *) ac_try_echo=$ac_try;;
10347 esac
10348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10349 $as_echo "$ac_try_echo") >&5
10350   (eval "$ac_compile") 2>conftest.er1
10351   ac_status=$?
10352   grep -v '^ *+' conftest.er1 >conftest.err
10353   rm -f conftest.er1
10354   cat conftest.err >&5
10355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } && {
10357          test -z "$ac_c_werror_flag" ||
10358          test ! -s conftest.err
10359        } && test -s conftest.$ac_objext; then
10360   ac_cv_sys_large_files=1; break
10361 else
10362   $as_echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365
10366 fi
10367
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369   ac_cv_sys_large_files=unknown
10370   break
10371 done
10372 fi
10373 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10374 $as_echo "$ac_cv_sys_large_files" >&6; }
10375 case $ac_cv_sys_large_files in #(
10376   no | unknown) ;;
10377   *)
10378 cat >>confdefs.h <<_ACEOF
10379 #define _LARGE_FILES $ac_cv_sys_large_files
10380 _ACEOF
10381 ;;
10382 esac
10383 rm -rf conftest*
10384   fi
10385 fi
10386
10387
10388   GNULIB_CHOWN=0;
10389   GNULIB_DUP2=0;
10390   GNULIB_ENVIRON=0;
10391   GNULIB_FCHDIR=0;
10392   GNULIB_FTRUNCATE=0;
10393   GNULIB_GETCWD=0;
10394   GNULIB_GETLOGIN_R=0;
10395   GNULIB_GETPAGESIZE=0;
10396   GNULIB_LCHOWN=0;
10397   GNULIB_LSEEK=0;
10398   GNULIB_READLINK=0;
10399   GNULIB_SLEEP=0;
10400     HAVE_DUP2=1;
10401   HAVE_FTRUNCATE=1;
10402   HAVE_GETPAGESIZE=1;
10403   HAVE_READLINK=1;
10404   HAVE_SLEEP=1;
10405   HAVE_DECL_ENVIRON=1;
10406   HAVE_DECL_GETLOGIN_R=1;
10407   HAVE_OS_H=0;
10408   HAVE_SYS_PARAM_H=0;
10409   REPLACE_CHOWN=0;
10410   REPLACE_FCHDIR=0;
10411   REPLACE_GETCWD=0;
10412   REPLACE_GETPAGESIZE=0;
10413   REPLACE_LCHOWN=0;
10414   REPLACE_LSEEK=0;
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424   { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
10425 $as_echo_n "checking for EOVERFLOW... " >&6; }
10426 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
10427   $as_echo_n "(cached) " >&6
10428 else
10429
10430     cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436
10437 #include <errno.h>
10438 #ifdef EOVERFLOW
10439 yes
10440 #endif
10441
10442 _ACEOF
10443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10444   $EGREP "yes" >/dev/null 2>&1; then
10445   have_eoverflow=1
10446 fi
10447 rm -f conftest*
10448
10449     if test -n "$have_eoverflow"; then
10450             ac_cv_decl_EOVERFLOW=yes
10451     else
10452       cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458
10459 #define _XOPEN_SOURCE_EXTENDED 1
10460 #include <errno.h>
10461 #ifdef EOVERFLOW
10462 yes
10463 #endif
10464
10465 _ACEOF
10466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10467   $EGREP "yes" >/dev/null 2>&1; then
10468   have_eoverflow=1
10469 fi
10470 rm -f conftest*
10471
10472       if test -n "$have_eoverflow"; then
10473                         if test "$cross_compiling" = yes; then
10474   # Depending upon the size, compute the lo and hi bounds.
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h.  */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h.  */
10481
10482 #define _XOPEN_SOURCE_EXTENDED 1
10483 #include <errno.h>
10484 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10485 #include <stdio.h>
10486 #include <stdlib.h>
10487
10488 int
10489 main ()
10490 {
10491 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
10492 test_array [0] = 0
10493
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506   (eval "$ac_compile") 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } && {
10513          test -z "$ac_c_werror_flag" ||
10514          test ! -s conftest.err
10515        } && test -s conftest.$ac_objext; then
10516   ac_lo=0 ac_mid=0
10517   while :; do
10518     cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524
10525 #define _XOPEN_SOURCE_EXTENDED 1
10526 #include <errno.h>
10527 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10528 #include <stdio.h>
10529 #include <stdlib.h>
10530
10531 int
10532 main ()
10533 {
10534 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10535 test_array [0] = 0
10536
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (ac_try="$ac_compile"
10543 case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10548 $as_echo "$ac_try_echo") >&5
10549   (eval "$ac_compile") 2>conftest.er1
10550   ac_status=$?
10551   grep -v '^ *+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && {
10556          test -z "$ac_c_werror_flag" ||
10557          test ! -s conftest.err
10558        } && test -s conftest.$ac_objext; then
10559   ac_hi=$ac_mid; break
10560 else
10561   $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564         ac_lo=`expr $ac_mid + 1`
10565                         if test $ac_lo -le $ac_mid; then
10566                           ac_lo= ac_hi=
10567                           break
10568                         fi
10569                         ac_mid=`expr 2 '*' $ac_mid + 1`
10570 fi
10571
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573   done
10574 else
10575   $as_echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584
10585 #define _XOPEN_SOURCE_EXTENDED 1
10586 #include <errno.h>
10587 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10588 #include <stdio.h>
10589 #include <stdlib.h>
10590
10591 int
10592 main ()
10593 {
10594 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
10595 test_array [0] = 0
10596
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608 $as_echo "$ac_try_echo") >&5
10609   (eval "$ac_compile") 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } && {
10616          test -z "$ac_c_werror_flag" ||
10617          test ! -s conftest.err
10618        } && test -s conftest.$ac_objext; then
10619   ac_hi=-1 ac_mid=-1
10620   while :; do
10621     cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627
10628 #define _XOPEN_SOURCE_EXTENDED 1
10629 #include <errno.h>
10630 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10631 #include <stdio.h>
10632 #include <stdlib.h>
10633
10634 int
10635 main ()
10636 {
10637 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
10638 test_array [0] = 0
10639
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 rm -f conftest.$ac_objext
10645 if { (ac_try="$ac_compile"
10646 case "(($ac_try" in
10647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648   *) ac_try_echo=$ac_try;;
10649 esac
10650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10651 $as_echo "$ac_try_echo") >&5
10652   (eval "$ac_compile") 2>conftest.er1
10653   ac_status=$?
10654   grep -v '^ *+' conftest.er1 >conftest.err
10655   rm -f conftest.er1
10656   cat conftest.err >&5
10657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); } && {
10659          test -z "$ac_c_werror_flag" ||
10660          test ! -s conftest.err
10661        } && test -s conftest.$ac_objext; then
10662   ac_lo=$ac_mid; break
10663 else
10664   $as_echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667         ac_hi=`expr '(' $ac_mid ')' - 1`
10668                         if test $ac_mid -le $ac_hi; then
10669                           ac_lo= ac_hi=
10670                           break
10671                         fi
10672                         ac_mid=`expr 2 '*' $ac_mid`
10673 fi
10674
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676   done
10677 else
10678   $as_echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681         ac_lo= ac_hi=
10682 fi
10683
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 # Binary search between lo and hi bounds.
10689 while test "x$ac_lo" != "x$ac_hi"; do
10690   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10691   cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697
10698 #define _XOPEN_SOURCE_EXTENDED 1
10699 #include <errno.h>
10700 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10701 #include <stdio.h>
10702 #include <stdlib.h>
10703
10704 int
10705 main ()
10706 {
10707 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10708 test_array [0] = 0
10709
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (ac_try="$ac_compile"
10716 case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10721 $as_echo "$ac_try_echo") >&5
10722   (eval "$ac_compile") 2>conftest.er1
10723   ac_status=$?
10724   grep -v '^ *+' conftest.er1 >conftest.err
10725   rm -f conftest.er1
10726   cat conftest.err >&5
10727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); } && {
10729          test -z "$ac_c_werror_flag" ||
10730          test ! -s conftest.err
10731        } && test -s conftest.$ac_objext; then
10732   ac_hi=$ac_mid
10733 else
10734   $as_echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737         ac_lo=`expr '(' $ac_mid ')' + 1`
10738 fi
10739
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741 done
10742 case $ac_lo in
10743 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
10744 '')  ;;
10745 esac
10746 else
10747   cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753
10754 #define _XOPEN_SOURCE_EXTENDED 1
10755 #include <errno.h>
10756 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
10757 #include <stdio.h>
10758 #include <stdlib.h>
10759
10760 static long int longval () { return EOVERFLOW; }
10761 static unsigned long int ulongval () { return EOVERFLOW; }
10762 #include <stdio.h>
10763 #include <stdlib.h>
10764 int
10765 main ()
10766 {
10767
10768   FILE *f = fopen ("conftest.val", "w");
10769   if (! f)
10770     return 1;
10771   if ((EOVERFLOW) < 0)
10772     {
10773       long int i = longval ();
10774       if (i != (EOVERFLOW))
10775         return 1;
10776       fprintf (f, "%ld", i);
10777     }
10778   else
10779     {
10780       unsigned long int i = ulongval ();
10781       if (i != (EOVERFLOW))
10782         return 1;
10783       fprintf (f, "%lu", i);
10784     }
10785   /* Do not output a trailing newline, as this causes \r\n confusion
10786      on some platforms.  */
10787   return ferror (f) || fclose (f) != 0;
10788
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800 $as_echo "$ac_try_echo") >&5
10801   (eval "$ac_link") 2>&5
10802   ac_status=$?
10803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10805   { (case "(($ac_try" in
10806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807   *) ac_try_echo=$ac_try;;
10808 esac
10809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10810 $as_echo "$ac_try_echo") >&5
10811   (eval "$ac_try") 2>&5
10812   ac_status=$?
10813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   ac_cv_decl_EOVERFLOW=`cat conftest.val`
10816 else
10817   $as_echo "$as_me: program exited with status $ac_status" >&5
10818 $as_echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821 fi
10822 rm -rf conftest.dSYM
10823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10824 fi
10825 rm -f conftest.val
10826       else
10827                                 ac_cv_decl_EOVERFLOW=E2BIG
10828       fi
10829     fi
10830
10831 fi
10832 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
10833 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
10834   if test "$ac_cv_decl_EOVERFLOW" != yes; then
10835
10836 cat >>confdefs.h <<_ACEOF
10837 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
10838 _ACEOF
10839
10840     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
10841
10842   fi
10843
10844
10845
10846
10847
10848
10849
10850
10851   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
10852 $as_echo_n "checking for wchar_t... " >&6; }
10853 if test "${gt_cv_c_wchar_t+set}" = set; then
10854   $as_echo_n "(cached) " >&6
10855 else
10856   cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h.  */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h.  */
10862 #include <stddef.h>
10863        wchar_t foo = (wchar_t)'\0';
10864 int
10865 main ()
10866 {
10867
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (ac_try="$ac_compile"
10874 case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10879 $as_echo "$ac_try_echo") >&5
10880   (eval "$ac_compile") 2>conftest.er1
10881   ac_status=$?
10882   grep -v '^ *+' conftest.er1 >conftest.err
10883   rm -f conftest.er1
10884   cat conftest.err >&5
10885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); } && {
10887          test -z "$ac_c_werror_flag" ||
10888          test ! -s conftest.err
10889        } && test -s conftest.$ac_objext; then
10890   gt_cv_c_wchar_t=yes
10891 else
10892   $as_echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895         gt_cv_c_wchar_t=no
10896 fi
10897
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899 fi
10900 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
10901 $as_echo "$gt_cv_c_wchar_t" >&6; }
10902   if test $gt_cv_c_wchar_t = yes; then
10903
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_WCHAR_T 1
10906 _ACEOF
10907
10908   fi
10909
10910
10911   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
10912 $as_echo_n "checking for wint_t... " >&6; }
10913 if test "${gt_cv_c_wint_t+set}" = set; then
10914   $as_echo_n "(cached) " >&6
10915 else
10916   cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h.  */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h.  */
10922 #include <wchar.h>
10923        wint_t foo = (wchar_t)'\0';
10924 int
10925 main ()
10926 {
10927
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10939 $as_echo "$ac_try_echo") >&5
10940   (eval "$ac_compile") 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } && {
10947          test -z "$ac_c_werror_flag" ||
10948          test ! -s conftest.err
10949        } && test -s conftest.$ac_objext; then
10950   gt_cv_c_wint_t=yes
10951 else
10952   $as_echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         gt_cv_c_wint_t=no
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
10961 $as_echo "$gt_cv_c_wint_t" >&6; }
10962   if test $gt_cv_c_wint_t = yes; then
10963
10964 cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_WINT_T 1
10966 _ACEOF
10967
10968   fi
10969
10970 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10971 $as_echo_n "checking for size_t... " >&6; }
10972 if test "${ac_cv_type_size_t+set}" = set; then
10973   $as_echo_n "(cached) " >&6
10974 else
10975   ac_cv_type_size_t=no
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 $ac_includes_default
10983 int
10984 main ()
10985 {
10986 if (sizeof (size_t))
10987        return 0;
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000   (eval "$ac_compile") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } && {
11007          test -z "$ac_c_werror_flag" ||
11008          test ! -s conftest.err
11009        } && test -s conftest.$ac_objext; then
11010   cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h.  */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h.  */
11016 $ac_includes_default
11017 int
11018 main ()
11019 {
11020 if (sizeof ((size_t)))
11021           return 0;
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030   *) ac_try_echo=$ac_try;;
11031 esac
11032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11033 $as_echo "$ac_try_echo") >&5
11034   (eval "$ac_compile") 2>conftest.er1
11035   ac_status=$?
11036   grep -v '^ *+' conftest.er1 >conftest.err
11037   rm -f conftest.er1
11038   cat conftest.err >&5
11039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } && {
11041          test -z "$ac_c_werror_flag" ||
11042          test ! -s conftest.err
11043        } && test -s conftest.$ac_objext; then
11044   :
11045 else
11046   $as_echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         ac_cv_type_size_t=yes
11050 fi
11051
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 else
11054   $as_echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057
11058 fi
11059
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 fi
11062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11063 $as_echo "$ac_cv_type_size_t" >&6; }
11064 if test "x$ac_cv_type_size_t" = x""yes; then
11065   :
11066 else
11067
11068 cat >>confdefs.h <<_ACEOF
11069 #define size_t unsigned int
11070 _ACEOF
11071
11072 fi
11073
11074
11075   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
11076 $as_echo_n "checking for inttypes.h... " >&6; }
11077 if test "${gl_cv_header_inttypes_h+set}" = set; then
11078   $as_echo_n "(cached) " >&6
11079 else
11080   cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086 #include <sys/types.h>
11087 #include <inttypes.h>
11088 int
11089 main ()
11090 {
11091 uintmax_t i = (uintmax_t) -1;
11092   ;
11093   return 0;
11094 }
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (ac_try="$ac_compile"
11098 case "(($ac_try" in
11099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100   *) ac_try_echo=$ac_try;;
11101 esac
11102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11103 $as_echo "$ac_try_echo") >&5
11104   (eval "$ac_compile") 2>conftest.er1
11105   ac_status=$?
11106   grep -v '^ *+' conftest.er1 >conftest.err
11107   rm -f conftest.er1
11108   cat conftest.err >&5
11109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); } && {
11111          test -z "$ac_c_werror_flag" ||
11112          test ! -s conftest.err
11113        } && test -s conftest.$ac_objext; then
11114   gl_cv_header_inttypes_h=yes
11115 else
11116   $as_echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119         gl_cv_header_inttypes_h=no
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 fi
11124 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11125 $as_echo "$gl_cv_header_inttypes_h" >&6; }
11126   if test $gl_cv_header_inttypes_h = yes; then
11127
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11130 _ACEOF
11131
11132   fi
11133
11134
11135   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11136 $as_echo_n "checking for stdint.h... " >&6; }
11137 if test "${gl_cv_header_stdint_h+set}" = set; then
11138   $as_echo_n "(cached) " >&6
11139 else
11140   cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 #include <sys/types.h>
11147 #include <stdint.h>
11148 int
11149 main ()
11150 {
11151 uintmax_t i = (uintmax_t) -1;
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164   (eval "$ac_compile") 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } && {
11171          test -z "$ac_c_werror_flag" ||
11172          test ! -s conftest.err
11173        } && test -s conftest.$ac_objext; then
11174   gl_cv_header_stdint_h=yes
11175 else
11176   $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179         gl_cv_header_stdint_h=no
11180 fi
11181
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 fi
11184 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11185 $as_echo "$gl_cv_header_stdint_h" >&6; }
11186   if test $gl_cv_header_stdint_h = yes; then
11187
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_STDINT_H_WITH_UINTMAX 1
11190 _ACEOF
11191
11192   fi
11193
11194
11195
11196
11197   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
11198 $as_echo_n "checking for intmax_t... " >&6; }
11199 if test "${gt_cv_c_intmax_t+set}" = set; then
11200   $as_echo_n "(cached) " >&6
11201 else
11202   cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h.  */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h.  */
11208
11209 #include <stddef.h>
11210 #include <stdlib.h>
11211 #if HAVE_STDINT_H_WITH_UINTMAX
11212 #include <stdint.h>
11213 #endif
11214 #if HAVE_INTTYPES_H_WITH_UINTMAX
11215 #include <inttypes.h>
11216 #endif
11217
11218 int
11219 main ()
11220 {
11221 intmax_t x = -1; return !x;
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11233 $as_echo "$ac_try_echo") >&5
11234   (eval "$ac_compile") 2>conftest.er1
11235   ac_status=$?
11236   grep -v '^ *+' conftest.er1 >conftest.err
11237   rm -f conftest.er1
11238   cat conftest.err >&5
11239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } && {
11241          test -z "$ac_c_werror_flag" ||
11242          test ! -s conftest.err
11243        } && test -s conftest.$ac_objext; then
11244   gt_cv_c_intmax_t=yes
11245 else
11246   $as_echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249         gt_cv_c_intmax_t=no
11250 fi
11251
11252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 fi
11254 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
11255 $as_echo "$gt_cv_c_intmax_t" >&6; }
11256   if test $gt_cv_c_intmax_t = yes; then
11257
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_INTMAX_T 1
11260 _ACEOF
11261
11262   else
11263
11264     test $ac_cv_type_long_long_int = yes \
11265       && ac_type='long long' \
11266       || ac_type='long'
11267
11268 cat >>confdefs.h <<_ACEOF
11269 #define intmax_t $ac_type
11270 _ACEOF
11271
11272   fi
11273
11274
11275   GNULIB_WCWIDTH=0;
11276     HAVE_DECL_WCWIDTH=1;
11277   REPLACE_WCWIDTH=0;
11278   WCHAR_H=
11279
11280
11281
11282    if true; then
11283   GL_COND_LIBTOOL_TRUE=
11284   GL_COND_LIBTOOL_FALSE='#'
11285 else
11286   GL_COND_LIBTOOL_TRUE='#'
11287   GL_COND_LIBTOOL_FALSE=
11288 fi
11289
11290   gl_cond_libtool=true
11291
11292
11293
11294   gl_source_base='gnulib'
11295
11296
11297
11298
11299
11300   if test $ac_cv_func_alloca_works = no; then
11301     :
11302   fi
11303
11304   # Define an additional variable used in the Makefile substitution.
11305   if test $ac_cv_working_alloca_h = yes; then
11306     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
11307 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11308 if test "${gl_cv_rpl_alloca+set}" = set; then
11309   $as_echo_n "(cached) " >&6
11310 else
11311
11312       cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h.  */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h.  */
11318
11319 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11320         Need own alloca
11321 #endif
11322
11323 _ACEOF
11324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11325   $EGREP "Need own alloca" >/dev/null 2>&1; then
11326   gl_cv_rpl_alloca=yes
11327 else
11328   gl_cv_rpl_alloca=no
11329 fi
11330 rm -f conftest*
11331
11332
11333 fi
11334 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
11335 $as_echo "$gl_cv_rpl_alloca" >&6; }
11336     if test $gl_cv_rpl_alloca = yes; then
11337
11338 cat >>confdefs.h <<\_ACEOF
11339 #define HAVE_ALLOCA 1
11340 _ACEOF
11341
11342       ALLOCA_H=alloca.h
11343     else
11344                   ALLOCA_H=
11345     fi
11346   else
11347     ALLOCA_H=alloca.h
11348   fi
11349
11350
11351
11352
11353   :
11354
11355
11356
11357
11358
11359   if test $ac_cv_header_arpa_inet_h = yes; then
11360     ARPA_INET_H=''
11361   else
11362     ARPA_INET_H='arpa/inet.h'
11363   fi
11364
11365
11366   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11367 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11368 if test -z "$MKDIR_P"; then
11369   if test "${ac_cv_path_mkdir+set}" = set; then
11370   $as_echo_n "(cached) " >&6
11371 else
11372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11374 do
11375   IFS=$as_save_IFS
11376   test -z "$as_dir" && as_dir=.
11377   for ac_prog in mkdir gmkdir; do
11378          for ac_exec_ext in '' $ac_executable_extensions; do
11379            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11380            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11381              'mkdir (GNU coreutils) '* | \
11382              'mkdir (coreutils) '* | \
11383              'mkdir (fileutils) '4.1*)
11384                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11385                break 3;;
11386            esac
11387          done
11388        done
11389 done
11390 IFS=$as_save_IFS
11391
11392 fi
11393
11394   if test "${ac_cv_path_mkdir+set}" = set; then
11395     MKDIR_P="$ac_cv_path_mkdir -p"
11396   else
11397     # As a last resort, use the slow shell script.  Don't cache a
11398     # value for MKDIR_P within a source directory, because that will
11399     # break other packages using the cache if that directory is
11400     # removed, or if the value is a relative name.
11401     test -d ./--version && rmdir ./--version
11402     MKDIR_P="$ac_install_sh -d"
11403   fi
11404 fi
11405 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11406 $as_echo "$MKDIR_P" >&6; }
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417   FLOAT_H=
11418   case "$host_os" in
11419     beos* | openbsd*)
11420       FLOAT_H=float.h
11421
11422
11423
11424   :
11425
11426
11427
11428
11429
11430
11431
11432      if test $gl_cv_have_include_next = yes; then
11433        gl_cv_next_float_h='<'float.h'>'
11434      else
11435        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
11436 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11437 if test "${gl_cv_next_float_h+set}" = set; then
11438   $as_echo_n "(cached) " >&6
11439 else
11440
11441           if test $ac_cv_header_float_h = yes; then
11442             cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448 #include <float.h>
11449
11450 _ACEOF
11451                                     gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11452                sed -n '\#/float.h#{
11453                  s#.*"\(.*/float.h\)".*#\1#
11454                  s#^/[^/]#//&#
11455                  p
11456                  q
11457                }'`'"'
11458           else
11459             gl_cv_next_float_h='<'float.h'>'
11460           fi
11461
11462 fi
11463 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
11464 $as_echo "$gl_cv_next_float_h" >&6; }
11465      fi
11466      NEXT_FLOAT_H=$gl_cv_next_float_h
11467
11468
11469
11470       ;;
11471   esac
11472
11473
11474
11475
11476   :
11477
11478
11479
11480
11481
11482
11483   :
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493 for ac_header in sys/mount.h
11494 do
11495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11497 $as_echo_n "checking for $ac_header... " >&6; }
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499   $as_echo_n "(cached) " >&6
11500 else
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 $ac_includes_default
11508      #if HAVE_SYS_PARAM_H
11509        #include <sys/param.h>
11510       #endif
11511
11512 #include <$ac_header>
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11521 $as_echo "$ac_try_echo") >&5
11522   (eval "$ac_compile") 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } && {
11529          test -z "$ac_c_werror_flag" ||
11530          test ! -s conftest.err
11531        } && test -s conftest.$ac_objext; then
11532   eval "$as_ac_Header=yes"
11533 else
11534   $as_echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537         eval "$as_ac_Header=no"
11538 fi
11539
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 fi
11542 ac_res=`eval 'as_val=${'$as_ac_Header'}
11543                  $as_echo "$as_val"'`
11544                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11545 $as_echo "$ac_res" >&6; }
11546 as_val=`eval 'as_val=${'$as_ac_Header'}
11547                  $as_echo "$as_val"'`
11548    if test "x$as_val" = x""yes; then
11549   cat >>confdefs.h <<_ACEOF
11550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11551 _ACEOF
11552
11553 fi
11554
11555 done
11556
11557
11558
11559 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
11560 $as_echo "$as_me: checking how to get file system space usage" >&6;}
11561 ac_fsusage_space=no
11562
11563 # Perform only the link test since it seems there are no variants of the
11564 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
11565 # because that got a false positive on SCO OSR5.  Adding the declaration
11566 # of a `struct statvfs' causes this test to fail (as it should) on such
11567 # systems.  That system is reported to work fine with STAT_STATFS4 which
11568 # is what it gets when this test fails.
11569 if test $ac_fsusage_space = no; then
11570   # SVR4
11571   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
11572 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
11573 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
11574   $as_echo_n "(cached) " >&6
11575 else
11576   cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 #include <sys/types.h>
11583 #if defined __GLIBC__ && !defined __BEOS__
11584 Do not use statvfs on systems with GNU libc, because that function stats
11585 all preceding entries in /proc/mounts, and that makes df hang if even
11586 one of the corresponding file systems is hard-mounted, but not available.
11587 statvfs in GNU libc on BeOS operates differently: it only makes a system
11588 call.
11589 #endif
11590
11591 #ifdef __osf__
11592 "Do not use Tru64's statvfs implementation"
11593 #endif
11594
11595 #include <sys/statvfs.h>
11596 int
11597 main ()
11598 {
11599 struct statvfs fsd; statvfs (0, &fsd);
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (ac_try="$ac_link"
11606 case "(($ac_try" in
11607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608   *) ac_try_echo=$ac_try;;
11609 esac
11610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611 $as_echo "$ac_try_echo") >&5
11612   (eval "$ac_link") 2>conftest.er1
11613   ac_status=$?
11614   grep -v '^ *+' conftest.er1 >conftest.err
11615   rm -f conftest.er1
11616   cat conftest.err >&5
11617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } && {
11619          test -z "$ac_c_werror_flag" ||
11620          test ! -s conftest.err
11621        } && test -s conftest$ac_exeext && {
11622          test "$cross_compiling" = yes ||
11623          $as_test_x conftest$ac_exeext
11624        }; then
11625   fu_cv_sys_stat_statvfs=yes
11626 else
11627   $as_echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630         fu_cv_sys_stat_statvfs=no
11631 fi
11632
11633 rm -rf conftest.dSYM
11634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11635       conftest$ac_exeext conftest.$ac_ext
11636 fi
11637 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
11638 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
11639   if test $fu_cv_sys_stat_statvfs = yes; then
11640     ac_fsusage_space=yes
11641
11642 cat >>confdefs.h <<\_ACEOF
11643 #define STAT_STATVFS 1
11644 _ACEOF
11645
11646   fi
11647 fi
11648
11649 if test $ac_fsusage_space = no; then
11650   # DEC Alpha running OSF/1
11651   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
11652 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
11653   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
11654   $as_echo_n "(cached) " >&6
11655 else
11656   if test "$cross_compiling" = yes; then
11657   fu_cv_sys_stat_statfs3_osf1=no
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665
11666 #include <sys/param.h>
11667 #include <sys/types.h>
11668 #include <sys/mount.h>
11669   int
11670   main ()
11671   {
11672     struct statfs fsd;
11673     fsd.f_fsize = 0;
11674     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
11675   }
11676 _ACEOF
11677 rm -f conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684 $as_echo "$ac_try_echo") >&5
11685   (eval "$ac_link") 2>&5
11686   ac_status=$?
11687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11689   { (case "(($ac_try" in
11690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691   *) ac_try_echo=$ac_try;;
11692 esac
11693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11694 $as_echo "$ac_try_echo") >&5
11695   (eval "$ac_try") 2>&5
11696   ac_status=$?
11697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; }; then
11699   fu_cv_sys_stat_statfs3_osf1=yes
11700 else
11701   $as_echo "$as_me: program exited with status $ac_status" >&5
11702 $as_echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 ( exit $ac_status )
11706 fu_cv_sys_stat_statfs3_osf1=no
11707 fi
11708 rm -rf conftest.dSYM
11709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11710 fi
11711
11712
11713 fi
11714
11715   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
11716 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
11717   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11718     ac_fsusage_space=yes
11719
11720 cat >>confdefs.h <<\_ACEOF
11721 #define STAT_STATFS3_OSF1 1
11722 _ACEOF
11723
11724   fi
11725 fi
11726
11727 if test $ac_fsusage_space = no; then
11728 # AIX
11729   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11730 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
11731   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
11732   $as_echo_n "(cached) " >&6
11733 else
11734   if test "$cross_compiling" = yes; then
11735   fu_cv_sys_stat_statfs2_bsize=no
11736 else
11737   cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743
11744 #ifdef HAVE_SYS_PARAM_H
11745 #include <sys/param.h>
11746 #endif
11747 #ifdef HAVE_SYS_MOUNT_H
11748 #include <sys/mount.h>
11749 #endif
11750 #ifdef HAVE_SYS_VFS_H
11751 #include <sys/vfs.h>
11752 #endif
11753   int
11754   main ()
11755   {
11756   struct statfs fsd;
11757   fsd.f_bsize = 0;
11758   return statfs (".", &fsd) != 0;
11759   }
11760 _ACEOF
11761 rm -f conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11768 $as_echo "$ac_try_echo") >&5
11769   (eval "$ac_link") 2>&5
11770   ac_status=$?
11771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11773   { (case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779   (eval "$ac_try") 2>&5
11780   ac_status=$?
11781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   fu_cv_sys_stat_statfs2_bsize=yes
11784 else
11785   $as_echo "$as_me: program exited with status $ac_status" >&5
11786 $as_echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 ( exit $ac_status )
11790 fu_cv_sys_stat_statfs2_bsize=no
11791 fi
11792 rm -rf conftest.dSYM
11793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11794 fi
11795
11796
11797 fi
11798
11799   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
11800 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
11801   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11802     ac_fsusage_space=yes
11803
11804 cat >>confdefs.h <<\_ACEOF
11805 #define STAT_STATFS2_BSIZE 1
11806 _ACEOF
11807
11808   fi
11809 fi
11810
11811 if test $ac_fsusage_space = no; then
11812 # SVR3
11813   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11814 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
11815   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
11816   $as_echo_n "(cached) " >&6
11817 else
11818   if test "$cross_compiling" = yes; then
11819   fu_cv_sys_stat_statfs4=no
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 #include <sys/types.h>
11828 #include <sys/statfs.h>
11829   int
11830   main ()
11831   {
11832   struct statfs fsd;
11833   return statfs (".", &fsd, sizeof fsd, 0) != 0;
11834   }
11835 _ACEOF
11836 rm -f conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844   (eval "$ac_link") 2>&5
11845   ac_status=$?
11846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11848   { (case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854   (eval "$ac_try") 2>&5
11855   ac_status=$?
11856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   fu_cv_sys_stat_statfs4=yes
11859 else
11860   $as_echo "$as_me: program exited with status $ac_status" >&5
11861 $as_echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ( exit $ac_status )
11865 fu_cv_sys_stat_statfs4=no
11866 fi
11867 rm -rf conftest.dSYM
11868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11869 fi
11870
11871
11872 fi
11873
11874   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
11875 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
11876   if test $fu_cv_sys_stat_statfs4 = yes; then
11877     ac_fsusage_space=yes
11878
11879 cat >>confdefs.h <<\_ACEOF
11880 #define STAT_STATFS4 1
11881 _ACEOF
11882
11883   fi
11884 fi
11885
11886 if test $ac_fsusage_space = no; then
11887 # 4.4BSD and NetBSD
11888   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11889 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
11890   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
11891   $as_echo_n "(cached) " >&6
11892 else
11893   if test "$cross_compiling" = yes; then
11894   fu_cv_sys_stat_statfs2_fsize=no
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902 #include <sys/types.h>
11903 #ifdef HAVE_SYS_PARAM_H
11904 #include <sys/param.h>
11905 #endif
11906 #ifdef HAVE_SYS_MOUNT_H
11907 #include <sys/mount.h>
11908 #endif
11909   int
11910   main ()
11911   {
11912   struct statfs fsd;
11913   fsd.f_fsize = 0;
11914   return statfs (".", &fsd) != 0;
11915   }
11916 _ACEOF
11917 rm -f conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925   (eval "$ac_link") 2>&5
11926   ac_status=$?
11927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11929   { (case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934 $as_echo "$ac_try_echo") >&5
11935   (eval "$ac_try") 2>&5
11936   ac_status=$?
11937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }; then
11939   fu_cv_sys_stat_statfs2_fsize=yes
11940 else
11941   $as_echo "$as_me: program exited with status $ac_status" >&5
11942 $as_echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ( exit $ac_status )
11946 fu_cv_sys_stat_statfs2_fsize=no
11947 fi
11948 rm -rf conftest.dSYM
11949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11950 fi
11951
11952
11953 fi
11954
11955   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
11956 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
11957   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11958     ac_fsusage_space=yes
11959
11960 cat >>confdefs.h <<\_ACEOF
11961 #define STAT_STATFS2_FSIZE 1
11962 _ACEOF
11963
11964   fi
11965 fi
11966
11967 if test $ac_fsusage_space = no; then
11968   # Ultrix
11969   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11970 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
11971   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
11972   $as_echo_n "(cached) " >&6
11973 else
11974   if test "$cross_compiling" = yes; then
11975   fu_cv_sys_stat_fs_data=no
11976 else
11977   cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 #include <sys/types.h>
11984 #ifdef HAVE_SYS_PARAM_H
11985 #include <sys/param.h>
11986 #endif
11987 #ifdef HAVE_SYS_MOUNT_H
11988 #include <sys/mount.h>
11989 #endif
11990 #ifdef HAVE_SYS_FS_TYPES_H
11991 #include <sys/fs_types.h>
11992 #endif
11993   int
11994   main ()
11995   {
11996   struct fs_data fsd;
11997   /* Ultrix's statfs returns 1 for success,
11998      0 for not mounted, -1 for failure.  */
11999   return statfs (".", &fsd) != 1;
12000   }
12001 _ACEOF
12002 rm -f conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010   (eval "$ac_link") 2>&5
12011   ac_status=$?
12012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12014   { (case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019 $as_echo "$ac_try_echo") >&5
12020   (eval "$ac_try") 2>&5
12021   ac_status=$?
12022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   fu_cv_sys_stat_fs_data=yes
12025 else
12026   $as_echo "$as_me: program exited with status $ac_status" >&5
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 ( exit $ac_status )
12031 fu_cv_sys_stat_fs_data=no
12032 fi
12033 rm -rf conftest.dSYM
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12035 fi
12036
12037
12038 fi
12039
12040   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12041 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
12042   if test $fu_cv_sys_stat_fs_data = yes; then
12043     ac_fsusage_space=yes
12044
12045 cat >>confdefs.h <<\_ACEOF
12046 #define STAT_STATFS2_FS_DATA 1
12047 _ACEOF
12048
12049   fi
12050 fi
12051
12052 if test $ac_fsusage_space = no; then
12053   # SVR2
12054   cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 #include <sys/filsys.h>
12061
12062 _ACEOF
12063 if { (ac_try="$ac_cpp conftest.$ac_ext"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069 $as_echo "$ac_try_echo") >&5
12070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } >/dev/null && {
12077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12078          test ! -s conftest.err
12079        }; then
12080
12081 cat >>confdefs.h <<\_ACEOF
12082 #define STAT_READ_FILSYS 1
12083 _ACEOF
12084
12085     ac_fsusage_space=yes
12086 else
12087   $as_echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090
12091 fi
12092
12093 rm -f conftest.err conftest.$ac_ext
12094 fi
12095
12096 if test $ac_fsusage_space = yes; then
12097   gl_cv_fs_space=yes
12098 else
12099   gl_cv_fs_space=no
12100 fi
12101
12102
12103
12104   if test $gl_cv_fs_space = yes; then
12105
12106
12107
12108
12109
12110
12111
12112   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
12113
12114
12115
12116
12117
12118
12119 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
12120 do
12121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12124 $as_echo_n "checking for $ac_header... " >&6; }
12125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12126   $as_echo_n "(cached) " >&6
12127 fi
12128 ac_res=`eval 'as_val=${'$as_ac_Header'}
12129                  $as_echo "$as_val"'`
12130                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12131 $as_echo "$ac_res" >&6; }
12132 else
12133   # Is the header compilable?
12134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12135 $as_echo_n "checking $ac_header usability... " >&6; }
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h.  */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h.  */
12142 $ac_includes_default
12143 #include <$ac_header>
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (ac_try="$ac_compile"
12147 case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12152 $as_echo "$ac_try_echo") >&5
12153   (eval "$ac_compile") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } && {
12160          test -z "$ac_c_werror_flag" ||
12161          test ! -s conftest.err
12162        } && test -s conftest.$ac_objext; then
12163   ac_header_compiler=yes
12164 else
12165   $as_echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168         ac_header_compiler=no
12169 fi
12170
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12173 $as_echo "$ac_header_compiler" >&6; }
12174
12175 # Is the header present?
12176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12177 $as_echo_n "checking $ac_header presence... " >&6; }
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184 #include <$ac_header>
12185 _ACEOF
12186 if { (ac_try="$ac_cpp conftest.$ac_ext"
12187 case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12192 $as_echo "$ac_try_echo") >&5
12193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12194   ac_status=$?
12195   grep -v '^ *+' conftest.er1 >conftest.err
12196   rm -f conftest.er1
12197   cat conftest.err >&5
12198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } >/dev/null && {
12200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12201          test ! -s conftest.err
12202        }; then
12203   ac_header_preproc=yes
12204 else
12205   $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208   ac_header_preproc=no
12209 fi
12210
12211 rm -f conftest.err conftest.$ac_ext
12212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12213 $as_echo "$ac_header_preproc" >&6; }
12214
12215 # So?  What about this header?
12216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12217   yes:no: )
12218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12222     ac_header_preproc=yes
12223     ;;
12224   no:yes:* )
12225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12228 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12232 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12237
12238     ;;
12239 esac
12240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12241 $as_echo_n "checking for $ac_header... " >&6; }
12242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243   $as_echo_n "(cached) " >&6
12244 else
12245   eval "$as_ac_Header=\$ac_header_preproc"
12246 fi
12247 ac_res=`eval 'as_val=${'$as_ac_Header'}
12248                  $as_echo "$as_val"'`
12249                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12250 $as_echo "$ac_res" >&6; }
12251
12252 fi
12253 as_val=`eval 'as_val=${'$as_ac_Header'}
12254                  $as_echo "$as_val"'`
12255    if test "x$as_val" = x""yes; then
12256   cat >>confdefs.h <<_ACEOF
12257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12258 _ACEOF
12259
12260 fi
12261
12262 done
12263
12264
12265   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
12266 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
12267   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12268   $as_echo_n "(cached) " >&6
12269 else
12270   cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276
12277 #if !defined(sun) && !defined(__sun)
12278 choke -- this is a workaround for a Sun-specific problem
12279 #endif
12280 #include <sys/types.h>
12281 #include <sys/vfs.h>
12282 int
12283 main ()
12284 {
12285 struct statfs t; long c = *(t.f_spare);
12286       if (c) return 0;
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (ac_try="$ac_compile"
12293 case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12298 $as_echo "$ac_try_echo") >&5
12299   (eval "$ac_compile") 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } && {
12306          test -z "$ac_c_werror_flag" ||
12307          test ! -s conftest.err
12308        } && test -s conftest.$ac_objext; then
12309   fu_cv_sys_truncating_statfs=yes
12310 else
12311   $as_echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314         fu_cv_sys_truncating_statfs=no
12315 fi
12316
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 fi
12319
12320   if test $fu_cv_sys_truncating_statfs = yes; then
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
12324 _ACEOF
12325
12326   fi
12327   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
12328 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
12329
12330
12331   fi
12332
12333
12334     { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
12335 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
12336
12337
12338   :
12339
12340
12341
12342
12343
12344
12345   { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
12346 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12347 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12348   $as_echo_n "(cached) " >&6
12349 else
12350   ac_func_search_save_LIBS=$LIBS
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358 /* Override any GCC internal prototype to avoid an error.
12359    Use char because int might match the return type of a GCC
12360    builtin and then its argument prototype would still apply.  */
12361 #ifdef __cplusplus
12362 extern "C"
12363 #endif
12364 char getaddrinfo ();
12365 int
12366 main ()
12367 {
12368 return getaddrinfo ();
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 for ac_lib in '' nsl socket; do
12374   if test -z "$ac_lib"; then
12375     ac_res="none required"
12376   else
12377     ac_res=-l$ac_lib
12378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12379   fi
12380   rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (ac_try="$ac_link"
12382 case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12387 $as_echo "$ac_try_echo") >&5
12388   (eval "$ac_link") 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } && {
12395          test -z "$ac_c_werror_flag" ||
12396          test ! -s conftest.err
12397        } && test -s conftest$ac_exeext && {
12398          test "$cross_compiling" = yes ||
12399          $as_test_x conftest$ac_exeext
12400        }; then
12401   ac_cv_search_getaddrinfo=$ac_res
12402 else
12403   $as_echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406
12407 fi
12408
12409 rm -rf conftest.dSYM
12410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12411       conftest$ac_exeext
12412   if test "${ac_cv_search_getaddrinfo+set}" = set; then
12413   break
12414 fi
12415 done
12416 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12417   :
12418 else
12419   ac_cv_search_getaddrinfo=no
12420 fi
12421 rm conftest.$ac_ext
12422 LIBS=$ac_func_search_save_LIBS
12423 fi
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
12425 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12426 ac_res=$ac_cv_search_getaddrinfo
12427 if test "$ac_res" != no; then
12428   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12429
12430 fi
12431
12432   { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12433 $as_echo_n "checking for getaddrinfo... " >&6; }
12434 if test "${gl_cv_func_getaddrinfo+set}" = set; then
12435   $as_echo_n "(cached) " >&6
12436 else
12437
12438     cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444
12445 #include <sys/types.h>
12446 #ifdef HAVE_SYS_SOCKET_H
12447 #include <sys/socket.h>
12448 #endif
12449 #ifdef HAVE_NETDB_H
12450 #include <netdb.h>
12451 #endif
12452 #include <stddef.h>
12453
12454 int
12455 main ()
12456 {
12457 getaddrinfo("", "", NULL, NULL);
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (ac_try="$ac_link"
12464 case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12469 $as_echo "$ac_try_echo") >&5
12470   (eval "$ac_link") 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } && {
12477          test -z "$ac_c_werror_flag" ||
12478          test ! -s conftest.err
12479        } && test -s conftest$ac_exeext && {
12480          test "$cross_compiling" = yes ||
12481          $as_test_x conftest$ac_exeext
12482        }; then
12483   gl_cv_func_getaddrinfo=yes
12484 else
12485   $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488         gl_cv_func_getaddrinfo=no
12489 fi
12490
12491 rm -rf conftest.dSYM
12492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12493       conftest$ac_exeext conftest.$ac_ext
12494 fi
12495 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
12496 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
12497   if test $gl_cv_func_getaddrinfo = no; then
12498     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
12499 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
12500 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
12501   $as_echo_n "(cached) " >&6
12502 else
12503
12504       gl_cv_w32_getaddrinfo=no
12505       am_save_LIBS="$LIBS"
12506       LIBS="$LIBS -lws2_32"
12507       cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513
12514 #ifdef HAVE_WS2TCPIP_H
12515 #include <ws2tcpip.h>
12516 #endif
12517 #include <stddef.h>
12518
12519 int
12520 main ()
12521 {
12522 getaddrinfo(NULL, NULL, NULL, NULL);
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12534 $as_echo "$ac_try_echo") >&5
12535   (eval "$ac_link") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } && {
12542          test -z "$ac_c_werror_flag" ||
12543          test ! -s conftest.err
12544        } && test -s conftest$ac_exeext && {
12545          test "$cross_compiling" = yes ||
12546          $as_test_x conftest$ac_exeext
12547        }; then
12548   gl_cv_w32_getaddrinfo=yes
12549 else
12550   $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553
12554 fi
12555
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558       conftest$ac_exeext conftest.$ac_ext
12559     LIBS="$am_save_LIBS"
12560 fi
12561 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
12562 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
12563     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
12564       LIBS="$LIBS -lws2_32"
12565     else
12566
12567
12568
12569
12570
12571
12572
12573   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
12574
12575     fi
12576   fi
12577
12578   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
12579   # inline function declared in ws2tcpip.h, so we need to get that
12580   # header included somehow.
12581   { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
12582 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
12583 if test "${gl_cv_func_gai_strerror+set}" = set; then
12584   $as_echo_n "(cached) " >&6
12585 else
12586
12587       cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 #include <sys/types.h>
12595 #ifdef HAVE_SYS_SOCKET_H
12596 #include <sys/socket.h>
12597 #endif
12598 #ifdef HAVE_NETDB_H
12599 #include <netdb.h>
12600 #endif
12601 #ifdef HAVE_WS2TCPIP_H
12602 #include <ws2tcpip.h>
12603 #endif
12604 #include <stddef.h>
12605
12606 int
12607 main ()
12608 {
12609 gai_strerror (NULL);
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621 $as_echo "$ac_try_echo") >&5
12622   (eval "$ac_link") 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } && {
12629          test -z "$ac_c_werror_flag" ||
12630          test ! -s conftest.err
12631        } && test -s conftest$ac_exeext && {
12632          test "$cross_compiling" = yes ||
12633          $as_test_x conftest$ac_exeext
12634        }; then
12635   gl_cv_func_gai_strerror=yes
12636 else
12637   $as_echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640         gl_cv_func_gai_strerror=no
12641 fi
12642
12643 rm -rf conftest.dSYM
12644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12645       conftest$ac_exeext conftest.$ac_ext
12646 fi
12647 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
12648 $as_echo "$gl_cv_func_gai_strerror" >&6; }
12649   if test $gl_cv_func_gai_strerror = no; then
12650
12651
12652
12653
12654
12655
12656
12657   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
12658
12659   fi
12660
12661
12662     { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12663 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12664 if test "${ac_cv_search_gethostbyname+set}" = set; then
12665   $as_echo_n "(cached) " >&6
12666 else
12667   ac_func_search_save_LIBS=$LIBS
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h.  */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h.  */
12674
12675 /* Override any GCC internal prototype to avoid an error.
12676    Use char because int might match the return type of a GCC
12677    builtin and then its argument prototype would still apply.  */
12678 #ifdef __cplusplus
12679 extern "C"
12680 #endif
12681 char gethostbyname ();
12682 int
12683 main ()
12684 {
12685 return gethostbyname ();
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 for ac_lib in '' inet nsl; do
12691   if test -z "$ac_lib"; then
12692     ac_res="none required"
12693   else
12694     ac_res=-l$ac_lib
12695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12696   fi
12697   rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705   (eval "$ac_link") 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } && {
12712          test -z "$ac_c_werror_flag" ||
12713          test ! -s conftest.err
12714        } && test -s conftest$ac_exeext && {
12715          test "$cross_compiling" = yes ||
12716          $as_test_x conftest$ac_exeext
12717        }; then
12718   ac_cv_search_gethostbyname=$ac_res
12719 else
12720   $as_echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723
12724 fi
12725
12726 rm -rf conftest.dSYM
12727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12728       conftest$ac_exeext
12729   if test "${ac_cv_search_gethostbyname+set}" = set; then
12730   break
12731 fi
12732 done
12733 if test "${ac_cv_search_gethostbyname+set}" = set; then
12734   :
12735 else
12736   ac_cv_search_gethostbyname=no
12737 fi
12738 rm conftest.$ac_ext
12739 LIBS=$ac_func_search_save_LIBS
12740 fi
12741 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12742 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12743 ac_res=$ac_cv_search_gethostbyname
12744 if test "$ac_res" != no; then
12745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12746
12747 fi
12748
12749   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
12750 $as_echo_n "checking for library containing getservbyname... " >&6; }
12751 if test "${ac_cv_search_getservbyname+set}" = set; then
12752   $as_echo_n "(cached) " >&6
12753 else
12754   ac_func_search_save_LIBS=$LIBS
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h.  */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h.  */
12761
12762 /* Override any GCC internal prototype to avoid an error.
12763    Use char because int might match the return type of a GCC
12764    builtin and then its argument prototype would still apply.  */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 char getservbyname ();
12769 int
12770 main ()
12771 {
12772 return getservbyname ();
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 for ac_lib in '' inet nsl socket xnet; do
12778   if test -z "$ac_lib"; then
12779     ac_res="none required"
12780   else
12781     ac_res=-l$ac_lib
12782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12783   fi
12784   rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792   (eval "$ac_link") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } && {
12799          test -z "$ac_c_werror_flag" ||
12800          test ! -s conftest.err
12801        } && test -s conftest$ac_exeext && {
12802          test "$cross_compiling" = yes ||
12803          $as_test_x conftest$ac_exeext
12804        }; then
12805   ac_cv_search_getservbyname=$ac_res
12806 else
12807   $as_echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810
12811 fi
12812
12813 rm -rf conftest.dSYM
12814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815       conftest$ac_exeext
12816   if test "${ac_cv_search_getservbyname+set}" = set; then
12817   break
12818 fi
12819 done
12820 if test "${ac_cv_search_getservbyname+set}" = set; then
12821   :
12822 else
12823   ac_cv_search_getservbyname=no
12824 fi
12825 rm conftest.$ac_ext
12826 LIBS=$ac_func_search_save_LIBS
12827 fi
12828 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
12829 $as_echo "$ac_cv_search_getservbyname" >&6; }
12830 ac_res=$ac_cv_search_getservbyname
12831 if test "$ac_res" != no; then
12832   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12833
12834 fi
12835
12836
12837 for ac_func in gethostbyname
12838 do
12839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 $as_echo_n "checking for $ac_func... " >&6; }
12842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12843   $as_echo_n "(cached) " >&6
12844 else
12845   cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h.  */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h.  */
12851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12853 #define $ac_func innocuous_$ac_func
12854
12855 /* System header to define __stub macros and hopefully few prototypes,
12856     which can conflict with char $ac_func (); below.
12857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12858     <limits.h> exists even on freestanding compilers.  */
12859
12860 #ifdef __STDC__
12861 # include <limits.h>
12862 #else
12863 # include <assert.h>
12864 #endif
12865
12866 #undef $ac_func
12867
12868 /* Override any GCC internal prototype to avoid an error.
12869    Use char because int might match the return type of a GCC
12870    builtin and then its argument prototype would still apply.  */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char $ac_func ();
12875 /* The GNU C library defines this for functions which it implements
12876     to always fail with ENOSYS.  Some functions are actually named
12877     something starting with __ and the normal name is an alias.  */
12878 #if defined __stub_$ac_func || defined __stub___$ac_func
12879 choke me
12880 #endif
12881
12882 int
12883 main ()
12884 {
12885 return $ac_func ();
12886   ;
12887   return 0;
12888 }
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898   (eval "$ac_link") 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } && {
12905          test -z "$ac_c_werror_flag" ||
12906          test ! -s conftest.err
12907        } && test -s conftest$ac_exeext && {
12908          test "$cross_compiling" = yes ||
12909          $as_test_x conftest$ac_exeext
12910        }; then
12911   eval "$as_ac_var=yes"
12912 else
12913   $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916         eval "$as_ac_var=no"
12917 fi
12918
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921       conftest$ac_exeext conftest.$ac_ext
12922 fi
12923 ac_res=`eval 'as_val=${'$as_ac_var'}
12924                  $as_echo "$as_val"'`
12925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927 as_val=`eval 'as_val=${'$as_ac_var'}
12928                  $as_echo "$as_val"'`
12929    if test "x$as_val" = x""yes; then
12930   cat >>confdefs.h <<_ACEOF
12931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12932 _ACEOF
12933
12934 else
12935
12936     { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
12937 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
12938 if test "${gl_cv_w32_gethostbyname+set}" = set; then
12939   $as_echo_n "(cached) " >&6
12940 else
12941
12942       gl_cv_w32_gethostbyname=no
12943       am_save_LIBS="$LIBS"
12944       LIBS="$LIBS -lws2_32"
12945       cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951
12952 #ifdef HAVE_WINSOCK2_H
12953 #include <winsock2.h>
12954 #endif
12955 #include <stddef.h>
12956
12957 int
12958 main ()
12959 {
12960 gethostbyname(NULL);
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969   *) ac_try_echo=$ac_try;;
12970 esac
12971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972 $as_echo "$ac_try_echo") >&5
12973   (eval "$ac_link") 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } && {
12980          test -z "$ac_c_werror_flag" ||
12981          test ! -s conftest.err
12982        } && test -s conftest$ac_exeext && {
12983          test "$cross_compiling" = yes ||
12984          $as_test_x conftest$ac_exeext
12985        }; then
12986   gl_cv_w32_gethostbyname=yes
12987 else
12988   $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991
12992 fi
12993
12994 rm -rf conftest.dSYM
12995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996       conftest$ac_exeext conftest.$ac_ext
12997     LIBS="$am_save_LIBS"
12998 fi
12999 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
13000 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
13001     if test "$gl_cv_w32_gethostbyname" = "yes"; then
13002       LIBS="$LIBS -lws2_32"
13003     fi
13004
13005 fi
13006 done
13007
13008
13009
13010
13011
13012
13013
13014   :
13015
13016
13017
13018
13019
13020
13021
13022
13023   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
13024 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
13025 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
13026   $as_echo_n "(cached) " >&6
13027 else
13028   cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034
13035   /* sys/types.h is not needed according to POSIX, but the
13036      sys/socket.h in i386-unknown-freebsd4.10 and
13037      powerpc-apple-darwin5.5 required it. */
13038 #include <sys/types.h>
13039 #ifdef HAVE_SYS_SOCKET_H
13040 #include <sys/socket.h>
13041 #endif
13042 #ifdef HAVE_NETDB_H
13043 #include <netdb.h>
13044 #endif
13045 #ifdef HAVE_WS2TCPIP_H
13046 #include <ws2tcpip.h>
13047 #endif
13048
13049
13050 int
13051 main ()
13052 {
13053 #ifndef getaddrinfo
13054   (void) getaddrinfo;
13055 #endif
13056
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext
13062 if { (ac_try="$ac_compile"
13063 case "(($ac_try" in
13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065   *) ac_try_echo=$ac_try;;
13066 esac
13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068 $as_echo "$ac_try_echo") >&5
13069   (eval "$ac_compile") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } && {
13076          test -z "$ac_c_werror_flag" ||
13077          test ! -s conftest.err
13078        } && test -s conftest.$ac_objext; then
13079   ac_cv_have_decl_getaddrinfo=yes
13080 else
13081   $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084         ac_cv_have_decl_getaddrinfo=no
13085 fi
13086
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088 fi
13089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
13090 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
13091 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
13092
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_DECL_GETADDRINFO 1
13095 _ACEOF
13096
13097
13098 else
13099   cat >>confdefs.h <<_ACEOF
13100 #define HAVE_DECL_GETADDRINFO 0
13101 _ACEOF
13102
13103
13104 fi
13105 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
13106 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
13107 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
13108   $as_echo_n "(cached) " >&6
13109 else
13110   cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116
13117   /* sys/types.h is not needed according to POSIX, but the
13118      sys/socket.h in i386-unknown-freebsd4.10 and
13119      powerpc-apple-darwin5.5 required it. */
13120 #include <sys/types.h>
13121 #ifdef HAVE_SYS_SOCKET_H
13122 #include <sys/socket.h>
13123 #endif
13124 #ifdef HAVE_NETDB_H
13125 #include <netdb.h>
13126 #endif
13127 #ifdef HAVE_WS2TCPIP_H
13128 #include <ws2tcpip.h>
13129 #endif
13130
13131
13132 int
13133 main ()
13134 {
13135 #ifndef freeaddrinfo
13136   (void) freeaddrinfo;
13137 #endif
13138
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13150 $as_echo "$ac_try_echo") >&5
13151   (eval "$ac_compile") 2>conftest.er1
13152   ac_status=$?
13153   grep -v '^ *+' conftest.er1 >conftest.err
13154   rm -f conftest.er1
13155   cat conftest.err >&5
13156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } && {
13158          test -z "$ac_c_werror_flag" ||
13159          test ! -s conftest.err
13160        } && test -s conftest.$ac_objext; then
13161   ac_cv_have_decl_freeaddrinfo=yes
13162 else
13163   $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166         ac_cv_have_decl_freeaddrinfo=no
13167 fi
13168
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 fi
13171 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
13172 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
13173 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
13174
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_DECL_FREEADDRINFO 1
13177 _ACEOF
13178
13179
13180 else
13181   cat >>confdefs.h <<_ACEOF
13182 #define HAVE_DECL_FREEADDRINFO 0
13183 _ACEOF
13184
13185
13186 fi
13187 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
13188 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
13189 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
13190   $as_echo_n "(cached) " >&6
13191 else
13192   cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198
13199   /* sys/types.h is not needed according to POSIX, but the
13200      sys/socket.h in i386-unknown-freebsd4.10 and
13201      powerpc-apple-darwin5.5 required it. */
13202 #include <sys/types.h>
13203 #ifdef HAVE_SYS_SOCKET_H
13204 #include <sys/socket.h>
13205 #endif
13206 #ifdef HAVE_NETDB_H
13207 #include <netdb.h>
13208 #endif
13209 #ifdef HAVE_WS2TCPIP_H
13210 #include <ws2tcpip.h>
13211 #endif
13212
13213
13214 int
13215 main ()
13216 {
13217 #ifndef gai_strerror
13218   (void) gai_strerror;
13219 #endif
13220
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (ac_try="$ac_compile"
13227 case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13232 $as_echo "$ac_try_echo") >&5
13233   (eval "$ac_compile") 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } && {
13240          test -z "$ac_c_werror_flag" ||
13241          test ! -s conftest.err
13242        } && test -s conftest.$ac_objext; then
13243   ac_cv_have_decl_gai_strerror=yes
13244 else
13245   $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13247
13248         ac_cv_have_decl_gai_strerror=no
13249 fi
13250
13251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252 fi
13253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
13254 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
13255 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define HAVE_DECL_GAI_STRERROR 1
13259 _ACEOF
13260
13261
13262 else
13263   cat >>confdefs.h <<_ACEOF
13264 #define HAVE_DECL_GAI_STRERROR 0
13265 _ACEOF
13266
13267
13268 fi
13269 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
13270 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
13271 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
13272   $as_echo_n "(cached) " >&6
13273 else
13274   cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281   /* sys/types.h is not needed according to POSIX, but the
13282      sys/socket.h in i386-unknown-freebsd4.10 and
13283      powerpc-apple-darwin5.5 required it. */
13284 #include <sys/types.h>
13285 #ifdef HAVE_SYS_SOCKET_H
13286 #include <sys/socket.h>
13287 #endif
13288 #ifdef HAVE_NETDB_H
13289 #include <netdb.h>
13290 #endif
13291 #ifdef HAVE_WS2TCPIP_H
13292 #include <ws2tcpip.h>
13293 #endif
13294
13295
13296 int
13297 main ()
13298 {
13299 #ifndef getnameinfo
13300   (void) getnameinfo;
13301 #endif
13302
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311   *) ac_try_echo=$ac_try;;
13312 esac
13313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13314 $as_echo "$ac_try_echo") >&5
13315   (eval "$ac_compile") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } && {
13322          test -z "$ac_c_werror_flag" ||
13323          test ! -s conftest.err
13324        } && test -s conftest.$ac_objext; then
13325   ac_cv_have_decl_getnameinfo=yes
13326 else
13327   $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330         ac_cv_have_decl_getnameinfo=no
13331 fi
13332
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 fi
13335 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
13336 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
13337 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
13338
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_DECL_GETNAMEINFO 1
13341 _ACEOF
13342
13343
13344 else
13345   cat >>confdefs.h <<_ACEOF
13346 #define HAVE_DECL_GETNAMEINFO 0
13347 _ACEOF
13348
13349
13350 fi
13351
13352
13353   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13354 $as_echo_n "checking for struct addrinfo... " >&6; }
13355 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13356   $as_echo_n "(cached) " >&6
13357 else
13358   ac_cv_type_struct_addrinfo=no
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h.  */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h.  */
13365
13366 #include <sys/types.h>
13367 #ifdef HAVE_SYS_SOCKET_H
13368 #include <sys/socket.h>
13369 #endif
13370 #ifdef HAVE_NETDB_H
13371 #include <netdb.h>
13372 #endif
13373 #ifdef HAVE_WS2TCPIP_H
13374 #include <ws2tcpip.h>
13375 #endif
13376
13377
13378 int
13379 main ()
13380 {
13381 if (sizeof (struct addrinfo))
13382        return 0;
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395   (eval "$ac_compile") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_c_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest.$ac_objext; then
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411
13412 #include <sys/types.h>
13413 #ifdef HAVE_SYS_SOCKET_H
13414 #include <sys/socket.h>
13415 #endif
13416 #ifdef HAVE_NETDB_H
13417 #include <netdb.h>
13418 #endif
13419 #ifdef HAVE_WS2TCPIP_H
13420 #include <ws2tcpip.h>
13421 #endif
13422
13423
13424 int
13425 main ()
13426 {
13427 if (sizeof ((struct addrinfo)))
13428           return 0;
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (ac_try="$ac_compile"
13435 case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13440 $as_echo "$ac_try_echo") >&5
13441   (eval "$ac_compile") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } && {
13448          test -z "$ac_c_werror_flag" ||
13449          test ! -s conftest.err
13450        } && test -s conftest.$ac_objext; then
13451   :
13452 else
13453   $as_echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456         ac_cv_type_struct_addrinfo=yes
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 else
13461   $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464
13465 fi
13466
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 fi
13469 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13470 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
13471 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
13472
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_STRUCT_ADDRINFO 1
13475 _ACEOF
13476
13477
13478 fi
13479
13480
13481
13482
13483
13484   if test -n "$GETOPT_H"; then
13485
13486
13487
13488
13489
13490
13491
13492
13493   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13494
13495
13496
13497
13498
13499
13500
13501
13502   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13503
13504
13505   GETOPT_H=getopt.h
13506
13507 cat >>confdefs.h <<\_ACEOF
13508 #define __GETOPT_PREFIX rpl_
13509 _ACEOF
13510
13511
13512
13513
13514
13515   :
13516
13517
13518
13519
13520
13521
13522
13523 fi
13524
13525
13526
13527
13528
13529
13530
13531
13532   :
13533
13534
13535
13536
13537
13538
13539   { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
13540 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13541 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
13542   $as_echo_n "(cached) " >&6
13543 else
13544   cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h.  */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h.  */
13550 #include <sys/time.h>
13551             struct timeval c;
13552
13553 int
13554 main ()
13555 {
13556
13557             int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
13558             int x = f (&c, 0);
13559             return !(x | c.tv_sec | c.tv_usec);
13560
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573   (eval "$ac_compile") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } && {
13580          test -z "$ac_c_werror_flag" ||
13581          test ! -s conftest.err
13582        } && test -s conftest.$ac_objext; then
13583   gl_cv_func_gettimeofday_posix_signature=yes
13584 else
13585   $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         gl_cv_func_gettimeofday_posix_signature=no
13589 fi
13590
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 fi
13593 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13594 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13595
13596
13597
13598
13599  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
13600 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13601 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
13602   $as_echo_n "(cached) " >&6
13603 else
13604   if test "$cross_compiling" = yes; then
13605        gl_cv_func_gettimeofday_clobber=yes
13606 else
13607   cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613 #include <string.h>
13614           #include <sys/time.h>
13615           #include <time.h>
13616           #include <stdlib.h>
13617
13618 int
13619 main ()
13620 {
13621
13622           time_t t = 0;
13623           struct tm *lt;
13624           struct tm saved_lt;
13625           struct timeval tv;
13626           lt = localtime (&t);
13627           saved_lt = *lt;
13628           gettimeofday (&tv, NULL);
13629           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13630
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest$ac_exeext
13636 if { (ac_try="$ac_link"
13637 case "(($ac_try" in
13638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639   *) ac_try_echo=$ac_try;;
13640 esac
13641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13642 $as_echo "$ac_try_echo") >&5
13643   (eval "$ac_link") 2>&5
13644   ac_status=$?
13645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13647   { (case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13652 $as_echo "$ac_try_echo") >&5
13653   (eval "$ac_try") 2>&5
13654   ac_status=$?
13655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   gl_cv_func_gettimeofday_clobber=no
13658 else
13659   $as_echo "$as_me: program exited with status $ac_status" >&5
13660 $as_echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 ( exit $ac_status )
13664 gl_cv_func_gettimeofday_clobber=yes
13665 fi
13666 rm -rf conftest.dSYM
13667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13668 fi
13669
13670
13671 fi
13672 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
13673 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13674
13675  if test $gl_cv_func_gettimeofday_clobber = yes; then
13676    REPLACE_GETTIMEOFDAY=1
13677    SYS_TIME_H=sys/time.h
13678
13679
13680
13681
13682
13683
13684
13685
13686   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13687
13688
13689
13690 for ac_header in sys/timeb.h
13691 do
13692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 $as_echo_n "checking for $ac_header... " >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697   $as_echo_n "(cached) " >&6
13698 fi
13699 ac_res=`eval 'as_val=${'$as_ac_Header'}
13700                  $as_echo "$as_val"'`
13701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13702 $as_echo "$ac_res" >&6; }
13703 else
13704   # Is the header compilable?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13706 $as_echo_n "checking $ac_header usability... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 $ac_includes_default
13714 #include <$ac_header>
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724   (eval "$ac_compile") 2>conftest.er1
13725   ac_status=$?
13726   grep -v '^ *+' conftest.er1 >conftest.err
13727   rm -f conftest.er1
13728   cat conftest.err >&5
13729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } && {
13731          test -z "$ac_c_werror_flag" ||
13732          test ! -s conftest.err
13733        } && test -s conftest.$ac_objext; then
13734   ac_header_compiler=yes
13735 else
13736   $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739         ac_header_compiler=no
13740 fi
13741
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 $as_echo "$ac_header_compiler" >&6; }
13745
13746 # Is the header present?
13747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 $as_echo_n "checking $ac_header presence... " >&6; }
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 #include <$ac_header>
13756 _ACEOF
13757 if { (ac_try="$ac_cpp conftest.$ac_ext"
13758 case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } >/dev/null && {
13771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772          test ! -s conftest.err
13773        }; then
13774   ac_header_preproc=yes
13775 else
13776   $as_echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779   ac_header_preproc=no
13780 fi
13781
13782 rm -f conftest.err conftest.$ac_ext
13783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 $as_echo "$ac_header_preproc" >&6; }
13785
13786 # So?  What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788   yes:no: )
13789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793     ac_header_preproc=yes
13794     ;;
13795   no:yes:* )
13796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13799 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13803 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808
13809     ;;
13810 esac
13811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13812 $as_echo_n "checking for $ac_header... " >&6; }
13813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814   $as_echo_n "(cached) " >&6
13815 else
13816   eval "$as_ac_Header=\$ac_header_preproc"
13817 fi
13818 ac_res=`eval 'as_val=${'$as_ac_Header'}
13819                  $as_echo "$as_val"'`
13820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13821 $as_echo "$ac_res" >&6; }
13822
13823 fi
13824 as_val=`eval 'as_val=${'$as_ac_Header'}
13825                  $as_echo "$as_val"'`
13826    if test "x$as_val" = x""yes; then
13827   cat >>confdefs.h <<_ACEOF
13828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13829 _ACEOF
13830
13831 fi
13832
13833 done
13834
13835
13836 for ac_func in _ftime
13837 do
13838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13840 $as_echo_n "checking for $ac_func... " >&6; }
13841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13842   $as_echo_n "(cached) " >&6
13843 else
13844   cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13852 #define $ac_func innocuous_$ac_func
13853
13854 /* System header to define __stub macros and hopefully few prototypes,
13855     which can conflict with char $ac_func (); below.
13856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857     <limits.h> exists even on freestanding compilers.  */
13858
13859 #ifdef __STDC__
13860 # include <limits.h>
13861 #else
13862 # include <assert.h>
13863 #endif
13864
13865 #undef $ac_func
13866
13867 /* Override any GCC internal prototype to avoid an error.
13868    Use char because int might match the return type of a GCC
13869    builtin and then its argument prototype would still apply.  */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 char $ac_func ();
13874 /* The GNU C library defines this for functions which it implements
13875     to always fail with ENOSYS.  Some functions are actually named
13876     something starting with __ and the normal name is an alias.  */
13877 #if defined __stub_$ac_func || defined __stub___$ac_func
13878 choke me
13879 #endif
13880
13881 int
13882 main ()
13883 {
13884 return $ac_func ();
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
13897   (eval "$ac_link") 2>conftest.er1
13898   ac_status=$?
13899   grep -v '^ *+' conftest.er1 >conftest.err
13900   rm -f conftest.er1
13901   cat conftest.err >&5
13902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } && {
13904          test -z "$ac_c_werror_flag" ||
13905          test ! -s conftest.err
13906        } && test -s conftest$ac_exeext && {
13907          test "$cross_compiling" = yes ||
13908          $as_test_x conftest$ac_exeext
13909        }; then
13910   eval "$as_ac_var=yes"
13911 else
13912   $as_echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915         eval "$as_ac_var=no"
13916 fi
13917
13918 rm -rf conftest.dSYM
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920       conftest$ac_exeext conftest.$ac_ext
13921 fi
13922 ac_res=`eval 'as_val=${'$as_ac_var'}
13923                  $as_echo "$as_val"'`
13924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13925 $as_echo "$ac_res" >&6; }
13926 as_val=`eval 'as_val=${'$as_ac_var'}
13927                  $as_echo "$as_val"'`
13928    if test "x$as_val" = x""yes; then
13929   cat >>confdefs.h <<_ACEOF
13930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13931 _ACEOF
13932
13933 fi
13934 done
13935
13936
13937
13938 cat >>confdefs.h <<\_ACEOF
13939 #define gmtime rpl_gmtime
13940 _ACEOF
13941
13942
13943 cat >>confdefs.h <<\_ACEOF
13944 #define localtime rpl_localtime
13945 _ACEOF
13946
13947
13948
13949 cat >>confdefs.h <<\_ACEOF
13950 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
13951 _ACEOF
13952
13953  fi
13954
13955
13956   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
13957     REPLACE_GETTIMEOFDAY=1
13958     SYS_TIME_H=sys/time.h
13959     if test $gl_cv_func_gettimeofday_clobber != yes; then
13960
13961
13962
13963
13964
13965
13966
13967   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13968
13969
13970
13971 for ac_header in sys/timeb.h
13972 do
13973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13975   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13976 $as_echo_n "checking for $ac_header... " >&6; }
13977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13978   $as_echo_n "(cached) " >&6
13979 fi
13980 ac_res=`eval 'as_val=${'$as_ac_Header'}
13981                  $as_echo "$as_val"'`
13982                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13983 $as_echo "$ac_res" >&6; }
13984 else
13985   # Is the header compilable?
13986 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13987 $as_echo_n "checking $ac_header usability... " >&6; }
13988 cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 $ac_includes_default
13995 #include <$ac_header>
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (ac_try="$ac_compile"
13999 case "(($ac_try" in
14000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001   *) ac_try_echo=$ac_try;;
14002 esac
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005   (eval "$ac_compile") 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } && {
14012          test -z "$ac_c_werror_flag" ||
14013          test ! -s conftest.err
14014        } && test -s conftest.$ac_objext; then
14015   ac_header_compiler=yes
14016 else
14017   $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020         ac_header_compiler=no
14021 fi
14022
14023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14025 $as_echo "$ac_header_compiler" >&6; }
14026
14027 # Is the header present?
14028 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14029 $as_echo_n "checking $ac_header presence... " >&6; }
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036 #include <$ac_header>
14037 _ACEOF
14038 if { (ac_try="$ac_cpp conftest.$ac_ext"
14039 case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14044 $as_echo "$ac_try_echo") >&5
14045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14046   ac_status=$?
14047   grep -v '^ *+' conftest.er1 >conftest.err
14048   rm -f conftest.er1
14049   cat conftest.err >&5
14050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); } >/dev/null && {
14052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14053          test ! -s conftest.err
14054        }; then
14055   ac_header_preproc=yes
14056 else
14057   $as_echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060   ac_header_preproc=no
14061 fi
14062
14063 rm -f conftest.err conftest.$ac_ext
14064 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14065 $as_echo "$ac_header_preproc" >&6; }
14066
14067 # So?  What about this header?
14068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14069   yes:no: )
14070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14071 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14074     ac_header_preproc=yes
14075     ;;
14076   no:yes:* )
14077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14078 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14080 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14082 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14084 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14088 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14089
14090     ;;
14091 esac
14092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14093 $as_echo_n "checking for $ac_header... " >&6; }
14094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14095   $as_echo_n "(cached) " >&6
14096 else
14097   eval "$as_ac_Header=\$ac_header_preproc"
14098 fi
14099 ac_res=`eval 'as_val=${'$as_ac_Header'}
14100                  $as_echo "$as_val"'`
14101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14102 $as_echo "$ac_res" >&6; }
14103
14104 fi
14105 as_val=`eval 'as_val=${'$as_ac_Header'}
14106                  $as_echo "$as_val"'`
14107    if test "x$as_val" = x""yes; then
14108   cat >>confdefs.h <<_ACEOF
14109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14110 _ACEOF
14111
14112 fi
14113
14114 done
14115
14116
14117 for ac_func in _ftime
14118 do
14119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14120 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14121 $as_echo_n "checking for $ac_func... " >&6; }
14122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14123   $as_echo_n "(cached) " >&6
14124 else
14125   cat >conftest.$ac_ext <<_ACEOF
14126 /* confdefs.h.  */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h.  */
14131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14133 #define $ac_func innocuous_$ac_func
14134
14135 /* System header to define __stub macros and hopefully few prototypes,
14136     which can conflict with char $ac_func (); below.
14137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14138     <limits.h> exists even on freestanding compilers.  */
14139
14140 #ifdef __STDC__
14141 # include <limits.h>
14142 #else
14143 # include <assert.h>
14144 #endif
14145
14146 #undef $ac_func
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149    Use char because int might match the return type of a GCC
14150    builtin and then its argument prototype would still apply.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char $ac_func ();
14155 /* The GNU C library defines this for functions which it implements
14156     to always fail with ENOSYS.  Some functions are actually named
14157     something starting with __ and the normal name is an alias.  */
14158 #if defined __stub_$ac_func || defined __stub___$ac_func
14159 choke me
14160 #endif
14161
14162 int
14163 main ()
14164 {
14165 return $ac_func ();
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178   (eval "$ac_link") 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } && {
14185          test -z "$ac_c_werror_flag" ||
14186          test ! -s conftest.err
14187        } && test -s conftest$ac_exeext && {
14188          test "$cross_compiling" = yes ||
14189          $as_test_x conftest$ac_exeext
14190        }; then
14191   eval "$as_ac_var=yes"
14192 else
14193   $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196         eval "$as_ac_var=no"
14197 fi
14198
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201       conftest$ac_exeext conftest.$ac_ext
14202 fi
14203 ac_res=`eval 'as_val=${'$as_ac_var'}
14204                  $as_echo "$as_val"'`
14205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14206 $as_echo "$ac_res" >&6; }
14207 as_val=`eval 'as_val=${'$as_ac_var'}
14208                  $as_echo "$as_val"'`
14209    if test "x$as_val" = x""yes; then
14210   cat >>confdefs.h <<_ACEOF
14211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14212 _ACEOF
14213
14214 fi
14215 done
14216
14217
14218     fi
14219   fi
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230 for ac_func in inet_ntop
14231 do
14232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14234 $as_echo_n "checking for $ac_func... " >&6; }
14235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14236   $as_echo_n "(cached) " >&6
14237 else
14238   cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14246 #define $ac_func innocuous_$ac_func
14247
14248 /* System header to define __stub macros and hopefully few prototypes,
14249     which can conflict with char $ac_func (); below.
14250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251     <limits.h> exists even on freestanding compilers.  */
14252
14253 #ifdef __STDC__
14254 # include <limits.h>
14255 #else
14256 # include <assert.h>
14257 #endif
14258
14259 #undef $ac_func
14260
14261 /* Override any GCC internal prototype to avoid an error.
14262    Use char because int might match the return type of a GCC
14263    builtin and then its argument prototype would still apply.  */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char $ac_func ();
14268 /* The GNU C library defines this for functions which it implements
14269     to always fail with ENOSYS.  Some functions are actually named
14270     something starting with __ and the normal name is an alias.  */
14271 #if defined __stub_$ac_func || defined __stub___$ac_func
14272 choke me
14273 #endif
14274
14275 int
14276 main ()
14277 {
14278 return $ac_func ();
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (ac_try="$ac_link"
14285 case "(($ac_try" in
14286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287   *) ac_try_echo=$ac_try;;
14288 esac
14289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14290 $as_echo "$ac_try_echo") >&5
14291   (eval "$ac_link") 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } && {
14298          test -z "$ac_c_werror_flag" ||
14299          test ! -s conftest.err
14300        } && test -s conftest$ac_exeext && {
14301          test "$cross_compiling" = yes ||
14302          $as_test_x conftest$ac_exeext
14303        }; then
14304   eval "$as_ac_var=yes"
14305 else
14306   $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309         eval "$as_ac_var=no"
14310 fi
14311
14312 rm -rf conftest.dSYM
14313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314       conftest$ac_exeext conftest.$ac_ext
14315 fi
14316 ac_res=`eval 'as_val=${'$as_ac_var'}
14317                  $as_echo "$as_val"'`
14318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14319 $as_echo "$ac_res" >&6; }
14320 as_val=`eval 'as_val=${'$as_ac_var'}
14321                  $as_echo "$as_val"'`
14322    if test "x$as_val" = x""yes; then
14323   cat >>confdefs.h <<_ACEOF
14324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325 _ACEOF
14326
14327 else
14328
14329     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14330
14331 fi
14332 done
14333
14334
14335
14336
14337   :
14338
14339
14340
14341
14342
14343
14344
14345
14346   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
14347 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
14348 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
14349   $as_echo_n "(cached) " >&6
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357 #include <arpa/inet.h>
14358
14359 int
14360 main ()
14361 {
14362 #ifndef inet_ntop
14363   (void) inet_ntop;
14364 #endif
14365
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378   (eval "$ac_compile") 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } && {
14385          test -z "$ac_c_werror_flag" ||
14386          test ! -s conftest.err
14387        } && test -s conftest.$ac_objext; then
14388   ac_cv_have_decl_inet_ntop=yes
14389 else
14390   $as_echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393         ac_cv_have_decl_inet_ntop=no
14394 fi
14395
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 fi
14398 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
14399 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
14400 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
14401
14402 cat >>confdefs.h <<_ACEOF
14403 #define HAVE_DECL_INET_NTOP 1
14404 _ACEOF
14405
14406
14407 else
14408   cat >>confdefs.h <<_ACEOF
14409 #define HAVE_DECL_INET_NTOP 0
14410 _ACEOF
14411
14412
14413 fi
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429   if test $gl_cv_func_malloc_posix = yes; then
14430     HAVE_MALLOC_POSIX=1
14431
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_MALLOC_POSIX 1
14434 _ACEOF
14435
14436   else
14437
14438
14439
14440
14441
14442
14443
14444   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14445
14446     HAVE_MALLOC_POSIX=0
14447   fi
14448
14449
14450
14451
14452   GNULIB_MALLOC_POSIX=1
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464 for ac_func in mkdtemp
14465 do
14466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14468 $as_echo_n "checking for $ac_func... " >&6; }
14469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14470   $as_echo_n "(cached) " >&6
14471 else
14472   cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14480 #define $ac_func innocuous_$ac_func
14481
14482 /* System header to define __stub macros and hopefully few prototypes,
14483     which can conflict with char $ac_func (); below.
14484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485     <limits.h> exists even on freestanding compilers.  */
14486
14487 #ifdef __STDC__
14488 # include <limits.h>
14489 #else
14490 # include <assert.h>
14491 #endif
14492
14493 #undef $ac_func
14494
14495 /* Override any GCC internal prototype to avoid an error.
14496    Use char because int might match the return type of a GCC
14497    builtin and then its argument prototype would still apply.  */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char $ac_func ();
14502 /* The GNU C library defines this for functions which it implements
14503     to always fail with ENOSYS.  Some functions are actually named
14504     something starting with __ and the normal name is an alias.  */
14505 #if defined __stub_$ac_func || defined __stub___$ac_func
14506 choke me
14507 #endif
14508
14509 int
14510 main ()
14511 {
14512 return $ac_func ();
14513   ;
14514   return 0;
14515 }
14516 _ACEOF
14517 rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (ac_try="$ac_link"
14519 case "(($ac_try" in
14520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521   *) ac_try_echo=$ac_try;;
14522 esac
14523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525   (eval "$ac_link") 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } && {
14532          test -z "$ac_c_werror_flag" ||
14533          test ! -s conftest.err
14534        } && test -s conftest$ac_exeext && {
14535          test "$cross_compiling" = yes ||
14536          $as_test_x conftest$ac_exeext
14537        }; then
14538   eval "$as_ac_var=yes"
14539 else
14540   $as_echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543         eval "$as_ac_var=no"
14544 fi
14545
14546 rm -rf conftest.dSYM
14547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14548       conftest$ac_exeext conftest.$ac_ext
14549 fi
14550 ac_res=`eval 'as_val=${'$as_ac_var'}
14551                  $as_echo "$as_val"'`
14552                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14553 $as_echo "$ac_res" >&6; }
14554 as_val=`eval 'as_val=${'$as_ac_var'}
14555                  $as_echo "$as_val"'`
14556    if test "x$as_val" = x""yes; then
14557   cat >>confdefs.h <<_ACEOF
14558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14559 _ACEOF
14560
14561 else
14562
14563     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14564
14565 fi
14566 done
14567
14568
14569   if test $ac_cv_func_mkdtemp = no; then
14570     HAVE_MKDTEMP=0
14571     :
14572
14573   fi
14574
14575
14576
14577   GNULIB_MKDTEMP=1
14578
14579
14580   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
14581 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
14582 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
14583   $as_echo_n "(cached) " >&6
14584 else
14585
14586       cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592 #include <netinet/in.h>
14593 int
14594 main ()
14595 {
14596
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (ac_try="$ac_compile"
14603 case "(($ac_try" in
14604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605   *) ac_try_echo=$ac_try;;
14606 esac
14607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14608 $as_echo "$ac_try_echo") >&5
14609   (eval "$ac_compile") 2>conftest.er1
14610   ac_status=$?
14611   grep -v '^ *+' conftest.er1 >conftest.err
14612   rm -f conftest.er1
14613   cat conftest.err >&5
14614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } && {
14616          test -z "$ac_c_werror_flag" ||
14617          test ! -s conftest.err
14618        } && test -s conftest.$ac_objext; then
14619   gl_cv_header_netinet_in_h_selfcontained=yes
14620 else
14621   $as_echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624         gl_cv_header_netinet_in_h_selfcontained=no
14625 fi
14626
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628
14629 fi
14630 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
14631 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
14632   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
14633     NETINET_IN_H=''
14634   else
14635     NETINET_IN_H='netinet/in.h'
14636
14637 for ac_header in netinet/in.h
14638 do
14639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14642 $as_echo_n "checking for $ac_header... " >&6; }
14643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14644   $as_echo_n "(cached) " >&6
14645 fi
14646 ac_res=`eval 'as_val=${'$as_ac_Header'}
14647                  $as_echo "$as_val"'`
14648                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14649 $as_echo "$ac_res" >&6; }
14650 else
14651   # Is the header compilable?
14652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14653 $as_echo_n "checking $ac_header usability... " >&6; }
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h.  */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h.  */
14660 $ac_includes_default
14661 #include <$ac_header>
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667   *) ac_try_echo=$ac_try;;
14668 esac
14669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14670 $as_echo "$ac_try_echo") >&5
14671   (eval "$ac_compile") 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } && {
14678          test -z "$ac_c_werror_flag" ||
14679          test ! -s conftest.err
14680        } && test -s conftest.$ac_objext; then
14681   ac_header_compiler=yes
14682 else
14683   $as_echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686         ac_header_compiler=no
14687 fi
14688
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14691 $as_echo "$ac_header_compiler" >&6; }
14692
14693 # Is the header present?
14694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14695 $as_echo_n "checking $ac_header presence... " >&6; }
14696 cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h.  */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h.  */
14702 #include <$ac_header>
14703 _ACEOF
14704 if { (ac_try="$ac_cpp conftest.$ac_ext"
14705 case "(($ac_try" in
14706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707   *) ac_try_echo=$ac_try;;
14708 esac
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } >/dev/null && {
14718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14719          test ! -s conftest.err
14720        }; then
14721   ac_header_preproc=yes
14722 else
14723   $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726   ac_header_preproc=no
14727 fi
14728
14729 rm -f conftest.err conftest.$ac_ext
14730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731 $as_echo "$ac_header_preproc" >&6; }
14732
14733 # So?  What about this header?
14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14735   yes:no: )
14736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740     ac_header_preproc=yes
14741     ;;
14742   no:yes:* )
14743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14746 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14750 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14755
14756     ;;
14757 esac
14758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14759 $as_echo_n "checking for $ac_header... " >&6; }
14760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761   $as_echo_n "(cached) " >&6
14762 else
14763   eval "$as_ac_Header=\$ac_header_preproc"
14764 fi
14765 ac_res=`eval 'as_val=${'$as_ac_Header'}
14766                  $as_echo "$as_val"'`
14767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14768 $as_echo "$ac_res" >&6; }
14769
14770 fi
14771 as_val=`eval 'as_val=${'$as_ac_Header'}
14772                  $as_echo "$as_val"'`
14773    if test "x$as_val" = x""yes; then
14774   cat >>confdefs.h <<_ACEOF
14775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14776 _ACEOF
14777
14778 fi
14779
14780 done
14781
14782
14783
14784
14785   :
14786
14787
14788
14789
14790
14791
14792
14793      if test $gl_cv_have_include_next = yes; then
14794        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14795      else
14796        { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
14797 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
14798 if test "${gl_cv_next_netinet_in_h+set}" = set; then
14799   $as_echo_n "(cached) " >&6
14800 else
14801
14802           if test $ac_cv_header_netinet_in_h = yes; then
14803             cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 #include <netinet/in.h>
14810
14811 _ACEOF
14812                                     gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813                sed -n '\#/netinet/in.h#{
14814                  s#.*"\(.*/netinet/in.h\)".*#\1#
14815                  s#^/[^/]#//&#
14816                  p
14817                  q
14818                }'`'"'
14819           else
14820             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14821           fi
14822
14823 fi
14824 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
14825 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
14826      fi
14827      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
14828
14829
14830
14831     if test $ac_cv_header_netinet_in_h = yes; then
14832       HAVE_NETINET_IN_H=1
14833     else
14834       HAVE_NETINET_IN_H=0
14835     fi
14836
14837   fi
14838
14839
14840   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14841 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14842 if test -z "$MKDIR_P"; then
14843   if test "${ac_cv_path_mkdir+set}" = set; then
14844   $as_echo_n "(cached) " >&6
14845 else
14846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14847 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14848 do
14849   IFS=$as_save_IFS
14850   test -z "$as_dir" && as_dir=.
14851   for ac_prog in mkdir gmkdir; do
14852          for ac_exec_ext in '' $ac_executable_extensions; do
14853            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14854            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14855              'mkdir (GNU coreutils) '* | \
14856              'mkdir (coreutils) '* | \
14857              'mkdir (fileutils) '4.1*)
14858                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14859                break 3;;
14860            esac
14861          done
14862        done
14863 done
14864 IFS=$as_save_IFS
14865
14866 fi
14867
14868   if test "${ac_cv_path_mkdir+set}" = set; then
14869     MKDIR_P="$ac_cv_path_mkdir -p"
14870   else
14871     # As a last resort, use the slow shell script.  Don't cache a
14872     # value for MKDIR_P within a source directory, because that will
14873     # break other packages using the cache if that directory is
14874     # removed, or if the value is a relative name.
14875     test -d ./--version && rmdir ./--version
14876     MKDIR_P="$ac_install_sh -d"
14877   fi
14878 fi
14879 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14880 $as_echo "$MKDIR_P" >&6; }
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
14891
14892
14893   # Prerequisites of lib/physmem.c.
14894
14895
14896
14897
14898
14899
14900
14901
14902 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
14903     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
14904     sys/systemcfg.h
14905 do
14906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 $as_echo_n "checking for $ac_header... " >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910   $as_echo_n "(cached) " >&6
14911 else
14912   cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918 $ac_includes_default
14919
14920 #include <$ac_header>
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (ac_try="$ac_compile"
14924 case "(($ac_try" in
14925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926   *) ac_try_echo=$ac_try;;
14927 esac
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930   (eval "$ac_compile") 2>conftest.er1
14931   ac_status=$?
14932   grep -v '^ *+' conftest.er1 >conftest.err
14933   rm -f conftest.er1
14934   cat conftest.err >&5
14935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } && {
14937          test -z "$ac_c_werror_flag" ||
14938          test ! -s conftest.err
14939        } && test -s conftest.$ac_objext; then
14940   eval "$as_ac_Header=yes"
14941 else
14942   $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945         eval "$as_ac_Header=no"
14946 fi
14947
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 fi
14950 ac_res=`eval 'as_val=${'$as_ac_Header'}
14951                  $as_echo "$as_val"'`
14952                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14953 $as_echo "$ac_res" >&6; }
14954 as_val=`eval 'as_val=${'$as_ac_Header'}
14955                  $as_echo "$as_val"'`
14956    if test "x$as_val" = x""yes; then
14957   cat >>confdefs.h <<_ACEOF
14958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14959 _ACEOF
14960
14961 fi
14962
14963 done
14964
14965
14966
14967
14968
14969
14970
14971
14972 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
14973 do
14974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14976 $as_echo_n "checking for $ac_func... " >&6; }
14977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14978   $as_echo_n "(cached) " >&6
14979 else
14980   cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14988 #define $ac_func innocuous_$ac_func
14989
14990 /* System header to define __stub macros and hopefully few prototypes,
14991     which can conflict with char $ac_func (); below.
14992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14993     <limits.h> exists even on freestanding compilers.  */
14994
14995 #ifdef __STDC__
14996 # include <limits.h>
14997 #else
14998 # include <assert.h>
14999 #endif
15000
15001 #undef $ac_func
15002
15003 /* Override any GCC internal prototype to avoid an error.
15004    Use char because int might match the return type of a GCC
15005    builtin and then its argument prototype would still apply.  */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 char $ac_func ();
15010 /* The GNU C library defines this for functions which it implements
15011     to always fail with ENOSYS.  Some functions are actually named
15012     something starting with __ and the normal name is an alias.  */
15013 #if defined __stub_$ac_func || defined __stub___$ac_func
15014 choke me
15015 #endif
15016
15017 int
15018 main ()
15019 {
15020 return $ac_func ();
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (ac_try="$ac_link"
15027 case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033   (eval "$ac_link") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_c_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest$ac_exeext && {
15043          test "$cross_compiling" = yes ||
15044          $as_test_x conftest$ac_exeext
15045        }; then
15046   eval "$as_ac_var=yes"
15047 else
15048   $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051         eval "$as_ac_var=no"
15052 fi
15053
15054 rm -rf conftest.dSYM
15055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15056       conftest$ac_exeext conftest.$ac_ext
15057 fi
15058 ac_res=`eval 'as_val=${'$as_ac_var'}
15059                  $as_echo "$as_val"'`
15060                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15061 $as_echo "$ac_res" >&6; }
15062 as_val=`eval 'as_val=${'$as_ac_var'}
15063                  $as_echo "$as_val"'`
15064    if test "x$as_val" = x""yes; then
15065   cat >>confdefs.h <<_ACEOF
15066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15067 _ACEOF
15068
15069 fi
15070 done
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108 for ac_header in stdint.h
15109 do
15110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 $as_echo_n "checking for $ac_header... " >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115   $as_echo_n "(cached) " >&6
15116 fi
15117 ac_res=`eval 'as_val=${'$as_ac_Header'}
15118                  $as_echo "$as_val"'`
15119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15120 $as_echo "$ac_res" >&6; }
15121 else
15122   # Is the header compilable?
15123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15124 $as_echo_n "checking $ac_header usability... " >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131 $ac_includes_default
15132 #include <$ac_header>
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142   (eval "$ac_compile") 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } && {
15149          test -z "$ac_c_werror_flag" ||
15150          test ! -s conftest.err
15151        } && test -s conftest.$ac_objext; then
15152   ac_header_compiler=yes
15153 else
15154   $as_echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15156
15157         ac_header_compiler=no
15158 fi
15159
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15162 $as_echo "$ac_header_compiler" >&6; }
15163
15164 # Is the header present?
15165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15166 $as_echo_n "checking $ac_header presence... " >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 #include <$ac_header>
15174 _ACEOF
15175 if { (ac_try="$ac_cpp conftest.$ac_ext"
15176 case "(($ac_try" in
15177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178   *) ac_try_echo=$ac_try;;
15179 esac
15180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15181 $as_echo "$ac_try_echo") >&5
15182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15183   ac_status=$?
15184   grep -v '^ *+' conftest.er1 >conftest.err
15185   rm -f conftest.er1
15186   cat conftest.err >&5
15187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } >/dev/null && {
15189          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15190          test ! -s conftest.err
15191        }; then
15192   ac_header_preproc=yes
15193 else
15194   $as_echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197   ac_header_preproc=no
15198 fi
15199
15200 rm -f conftest.err conftest.$ac_ext
15201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15202 $as_echo "$ac_header_preproc" >&6; }
15203
15204 # So?  What about this header?
15205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15206   yes:no: )
15207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15211     ac_header_preproc=yes
15212     ;;
15213   no:yes:* )
15214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15217 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15221 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15226
15227     ;;
15228 esac
15229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 $as_echo_n "checking for $ac_header... " >&6; }
15231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15232   $as_echo_n "(cached) " >&6
15233 else
15234   eval "$as_ac_Header=\$ac_header_preproc"
15235 fi
15236 ac_res=`eval 'as_val=${'$as_ac_Header'}
15237                  $as_echo "$as_val"'`
15238                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15239 $as_echo "$ac_res" >&6; }
15240
15241 fi
15242 as_val=`eval 'as_val=${'$as_ac_Header'}
15243                  $as_echo "$as_val"'`
15244    if test "x$as_val" = x""yes; then
15245   cat >>confdefs.h <<_ACEOF
15246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15247 _ACEOF
15248
15249 fi
15250
15251 done
15252
15253     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15254 $as_echo_n "checking for SIZE_MAX... " >&6; }
15255   result=
15256   cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262
15263 #include <limits.h>
15264 #if HAVE_STDINT_H
15265 #include <stdint.h>
15266 #endif
15267 #ifdef SIZE_MAX
15268 Found it
15269 #endif
15270
15271 _ACEOF
15272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273   $EGREP "Found it" >/dev/null 2>&1; then
15274   result=yes
15275 fi
15276 rm -f conftest*
15277
15278   if test -z "$result"; then
15279                 if test "$cross_compiling" = yes; then
15280   # Depending upon the size, compute the lo and hi bounds.
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287 #include <stddef.h>
15288 #include <limits.h>
15289 int
15290 main ()
15291 {
15292 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
15293 test_array [0] = 0
15294
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307   (eval "$ac_compile") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } && {
15314          test -z "$ac_c_werror_flag" ||
15315          test ! -s conftest.err
15316        } && test -s conftest.$ac_objext; then
15317   ac_lo=0 ac_mid=0
15318   while :; do
15319     cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h.  */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h.  */
15325 #include <stddef.h>
15326 #include <limits.h>
15327 int
15328 main ()
15329 {
15330 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15331 test_array [0] = 0
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext
15338 if { (ac_try="$ac_compile"
15339 case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15344 $as_echo "$ac_try_echo") >&5
15345   (eval "$ac_compile") 2>conftest.er1
15346   ac_status=$?
15347   grep -v '^ *+' conftest.er1 >conftest.err
15348   rm -f conftest.er1
15349   cat conftest.err >&5
15350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } && {
15352          test -z "$ac_c_werror_flag" ||
15353          test ! -s conftest.err
15354        } && test -s conftest.$ac_objext; then
15355   ac_hi=$ac_mid; break
15356 else
15357   $as_echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360         ac_lo=`expr $ac_mid + 1`
15361                         if test $ac_lo -le $ac_mid; then
15362                           ac_lo= ac_hi=
15363                           break
15364                         fi
15365                         ac_mid=`expr 2 '*' $ac_mid + 1`
15366 fi
15367
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15369   done
15370 else
15371   $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374         cat >conftest.$ac_ext <<_ACEOF
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380 #include <stddef.h>
15381 #include <limits.h>
15382 int
15383 main ()
15384 {
15385 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
15386 test_array [0] = 0
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396   *) ac_try_echo=$ac_try;;
15397 esac
15398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15399 $as_echo "$ac_try_echo") >&5
15400   (eval "$ac_compile") 2>conftest.er1
15401   ac_status=$?
15402   grep -v '^ *+' conftest.er1 >conftest.err
15403   rm -f conftest.er1
15404   cat conftest.err >&5
15405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); } && {
15407          test -z "$ac_c_werror_flag" ||
15408          test ! -s conftest.err
15409        } && test -s conftest.$ac_objext; then
15410   ac_hi=-1 ac_mid=-1
15411   while :; do
15412     cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418 #include <stddef.h>
15419 #include <limits.h>
15420 int
15421 main ()
15422 {
15423 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
15424 test_array [0] = 0
15425
15426   ;
15427   return 0;
15428 }
15429 _ACEOF
15430 rm -f conftest.$ac_objext
15431 if { (ac_try="$ac_compile"
15432 case "(($ac_try" in
15433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434   *) ac_try_echo=$ac_try;;
15435 esac
15436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15437 $as_echo "$ac_try_echo") >&5
15438   (eval "$ac_compile") 2>conftest.er1
15439   ac_status=$?
15440   grep -v '^ *+' conftest.er1 >conftest.err
15441   rm -f conftest.er1
15442   cat conftest.err >&5
15443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); } && {
15445          test -z "$ac_c_werror_flag" ||
15446          test ! -s conftest.err
15447        } && test -s conftest.$ac_objext; then
15448   ac_lo=$ac_mid; break
15449 else
15450   $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453         ac_hi=`expr '(' $ac_mid ')' - 1`
15454                         if test $ac_mid -le $ac_hi; then
15455                           ac_lo= ac_hi=
15456                           break
15457                         fi
15458                         ac_mid=`expr 2 '*' $ac_mid`
15459 fi
15460
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462   done
15463 else
15464   $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467         ac_lo= ac_hi=
15468 fi
15469
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 fi
15472
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 # Binary search between lo and hi bounds.
15475 while test "x$ac_lo" != "x$ac_hi"; do
15476   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15477   cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h.  */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h.  */
15483 #include <stddef.h>
15484 #include <limits.h>
15485 int
15486 main ()
15487 {
15488 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15489 test_array [0] = 0
15490
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext
15496 if { (ac_try="$ac_compile"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15502 $as_echo "$ac_try_echo") >&5
15503   (eval "$ac_compile") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && {
15510          test -z "$ac_c_werror_flag" ||
15511          test ! -s conftest.err
15512        } && test -s conftest.$ac_objext; then
15513   ac_hi=$ac_mid
15514 else
15515   $as_echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518         ac_lo=`expr '(' $ac_mid ')' + 1`
15519 fi
15520
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522 done
15523 case $ac_lo in
15524 ?*) size_t_bits_minus_1=$ac_lo;;
15525 '') size_t_bits_minus_1= ;;
15526 esac
15527 else
15528   cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534 #include <stddef.h>
15535 #include <limits.h>
15536 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
15537 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
15538 #include <stdio.h>
15539 #include <stdlib.h>
15540 int
15541 main ()
15542 {
15543
15544   FILE *f = fopen ("conftest.val", "w");
15545   if (! f)
15546     return 1;
15547   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
15548     {
15549       long int i = longval ();
15550       if (i != (sizeof (size_t) * CHAR_BIT - 1))
15551         return 1;
15552       fprintf (f, "%ld", i);
15553     }
15554   else
15555     {
15556       unsigned long int i = ulongval ();
15557       if (i != (sizeof (size_t) * CHAR_BIT - 1))
15558         return 1;
15559       fprintf (f, "%lu", i);
15560     }
15561   /* Do not output a trailing newline, as this causes \r\n confusion
15562      on some platforms.  */
15563   return ferror (f) || fclose (f) != 0;
15564
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15576 $as_echo "$ac_try_echo") >&5
15577   (eval "$ac_link") 2>&5
15578   ac_status=$?
15579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15581   { (case "(($ac_try" in
15582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583   *) ac_try_echo=$ac_try;;
15584 esac
15585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15586 $as_echo "$ac_try_echo") >&5
15587   (eval "$ac_try") 2>&5
15588   ac_status=$?
15589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   size_t_bits_minus_1=`cat conftest.val`
15592 else
15593   $as_echo "$as_me: program exited with status $ac_status" >&5
15594 $as_echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ( exit $ac_status )
15598 size_t_bits_minus_1=
15599 fi
15600 rm -rf conftest.dSYM
15601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15602 fi
15603 rm -f conftest.val
15604
15605     if test "$cross_compiling" = yes; then
15606   # Depending upon the size, compute the lo and hi bounds.
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h.  */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h.  */
15613 #include <stddef.h>
15614 int
15615 main ()
15616 {
15617 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
15618 test_array [0] = 0
15619
15620   ;
15621   return 0;
15622 }
15623 _ACEOF
15624 rm -f conftest.$ac_objext
15625 if { (ac_try="$ac_compile"
15626 case "(($ac_try" in
15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628   *) ac_try_echo=$ac_try;;
15629 esac
15630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15631 $as_echo "$ac_try_echo") >&5
15632   (eval "$ac_compile") 2>conftest.er1
15633   ac_status=$?
15634   grep -v '^ *+' conftest.er1 >conftest.err
15635   rm -f conftest.er1
15636   cat conftest.err >&5
15637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } && {
15639          test -z "$ac_c_werror_flag" ||
15640          test ! -s conftest.err
15641        } && test -s conftest.$ac_objext; then
15642   ac_lo=0 ac_mid=0
15643   while :; do
15644     cat >conftest.$ac_ext <<_ACEOF
15645 /* confdefs.h.  */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h.  */
15650 #include <stddef.h>
15651 int
15652 main ()
15653 {
15654 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15655 test_array [0] = 0
15656
15657   ;
15658   return 0;
15659 }
15660 _ACEOF
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665   *) ac_try_echo=$ac_try;;
15666 esac
15667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15668 $as_echo "$ac_try_echo") >&5
15669   (eval "$ac_compile") 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } && {
15676          test -z "$ac_c_werror_flag" ||
15677          test ! -s conftest.err
15678        } && test -s conftest.$ac_objext; then
15679   ac_hi=$ac_mid; break
15680 else
15681   $as_echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         ac_lo=`expr $ac_mid + 1`
15685                         if test $ac_lo -le $ac_mid; then
15686                           ac_lo= ac_hi=
15687                           break
15688                         fi
15689                         ac_mid=`expr 2 '*' $ac_mid + 1`
15690 fi
15691
15692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693   done
15694 else
15695   $as_echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698         cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h.  */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h.  */
15704 #include <stddef.h>
15705 int
15706 main ()
15707 {
15708 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
15709 test_array [0] = 0
15710
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719   *) ac_try_echo=$ac_try;;
15720 esac
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723   (eval "$ac_compile") 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } && {
15730          test -z "$ac_c_werror_flag" ||
15731          test ! -s conftest.err
15732        } && test -s conftest.$ac_objext; then
15733   ac_hi=-1 ac_mid=-1
15734   while :; do
15735     cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 #include <stddef.h>
15742 int
15743 main ()
15744 {
15745 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
15746 test_array [0] = 0
15747
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760   (eval "$ac_compile") 2>conftest.er1
15761   ac_status=$?
15762   grep -v '^ *+' conftest.er1 >conftest.err
15763   rm -f conftest.er1
15764   cat conftest.err >&5
15765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); } && {
15767          test -z "$ac_c_werror_flag" ||
15768          test ! -s conftest.err
15769        } && test -s conftest.$ac_objext; then
15770   ac_lo=$ac_mid; break
15771 else
15772   $as_echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775         ac_hi=`expr '(' $ac_mid ')' - 1`
15776                         if test $ac_mid -le $ac_hi; then
15777                           ac_lo= ac_hi=
15778                           break
15779                         fi
15780                         ac_mid=`expr 2 '*' $ac_mid`
15781 fi
15782
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784   done
15785 else
15786   $as_echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789         ac_lo= ac_hi=
15790 fi
15791
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 fi
15794
15795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15796 # Binary search between lo and hi bounds.
15797 while test "x$ac_lo" != "x$ac_hi"; do
15798   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15799   cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805 #include <stddef.h>
15806 int
15807 main ()
15808 {
15809 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15810 test_array [0] = 0
15811
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820   *) ac_try_echo=$ac_try;;
15821 esac
15822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15823 $as_echo "$ac_try_echo") >&5
15824   (eval "$ac_compile") 2>conftest.er1
15825   ac_status=$?
15826   grep -v '^ *+' conftest.er1 >conftest.err
15827   rm -f conftest.er1
15828   cat conftest.err >&5
15829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } && {
15831          test -z "$ac_c_werror_flag" ||
15832          test ! -s conftest.err
15833        } && test -s conftest.$ac_objext; then
15834   ac_hi=$ac_mid
15835 else
15836   $as_echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839         ac_lo=`expr '(' $ac_mid ')' + 1`
15840 fi
15841
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 done
15844 case $ac_lo in
15845 ?*) fits_in_uint=$ac_lo;;
15846 '') fits_in_uint= ;;
15847 esac
15848 else
15849   cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855 #include <stddef.h>
15856 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
15857 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
15858 #include <stdio.h>
15859 #include <stdlib.h>
15860 int
15861 main ()
15862 {
15863
15864   FILE *f = fopen ("conftest.val", "w");
15865   if (! f)
15866     return 1;
15867   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
15868     {
15869       long int i = longval ();
15870       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15871         return 1;
15872       fprintf (f, "%ld", i);
15873     }
15874   else
15875     {
15876       unsigned long int i = ulongval ();
15877       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15878         return 1;
15879       fprintf (f, "%lu", i);
15880     }
15881   /* Do not output a trailing newline, as this causes \r\n confusion
15882      on some platforms.  */
15883   return ferror (f) || fclose (f) != 0;
15884
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest$ac_exeext
15890 if { (ac_try="$ac_link"
15891 case "(($ac_try" in
15892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893   *) ac_try_echo=$ac_try;;
15894 esac
15895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15896 $as_echo "$ac_try_echo") >&5
15897   (eval "$ac_link") 2>&5
15898   ac_status=$?
15899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15901   { (case "(($ac_try" in
15902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903   *) ac_try_echo=$ac_try;;
15904 esac
15905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907   (eval "$ac_try") 2>&5
15908   ac_status=$?
15909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; }; then
15911   fits_in_uint=`cat conftest.val`
15912 else
15913   $as_echo "$as_me: program exited with status $ac_status" >&5
15914 $as_echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917 ( exit $ac_status )
15918 fits_in_uint=
15919 fi
15920 rm -rf conftest.dSYM
15921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15922 fi
15923 rm -f conftest.val
15924
15925     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
15926       if test $fits_in_uint = 1; then
15927                         cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 #include <stddef.h>
15934           extern size_t foo;
15935           extern unsigned long foo;
15936
15937 int
15938 main ()
15939 {
15940
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15952 $as_echo "$ac_try_echo") >&5
15953   (eval "$ac_compile") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } && {
15960          test -z "$ac_c_werror_flag" ||
15961          test ! -s conftest.err
15962        } && test -s conftest.$ac_objext; then
15963   fits_in_uint=0
15964 else
15965   $as_echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15972       fi
15973                         if test $fits_in_uint = 1; then
15974         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
15975       else
15976         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
15977       fi
15978     else
15979             result='((size_t)~(size_t)0)'
15980     fi
15981   fi
15982   { $as_echo "$as_me:$LINENO: result: $result" >&5
15983 $as_echo "$result" >&6; }
15984   if test "$result" != yes; then
15985
15986 cat >>confdefs.h <<_ACEOF
15987 #define SIZE_MAX $result
15988 _ACEOF
15989
15990   fi
15991
15992
15993
15994
15995 for ac_func in snprintf
15996 do
15997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15999 $as_echo_n "checking for $ac_func... " >&6; }
16000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16001   $as_echo_n "(cached) " >&6
16002 else
16003   cat >conftest.$ac_ext <<_ACEOF
16004 /* confdefs.h.  */
16005 _ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h.  */
16009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16011 #define $ac_func innocuous_$ac_func
16012
16013 /* System header to define __stub macros and hopefully few prototypes,
16014     which can conflict with char $ac_func (); below.
16015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16016     <limits.h> exists even on freestanding compilers.  */
16017
16018 #ifdef __STDC__
16019 # include <limits.h>
16020 #else
16021 # include <assert.h>
16022 #endif
16023
16024 #undef $ac_func
16025
16026 /* Override any GCC internal prototype to avoid an error.
16027    Use char because int might match the return type of a GCC
16028    builtin and then its argument prototype would still apply.  */
16029 #ifdef __cplusplus
16030 extern "C"
16031 #endif
16032 char $ac_func ();
16033 /* The GNU C library defines this for functions which it implements
16034     to always fail with ENOSYS.  Some functions are actually named
16035     something starting with __ and the normal name is an alias.  */
16036 #if defined __stub_$ac_func || defined __stub___$ac_func
16037 choke me
16038 #endif
16039
16040 int
16041 main ()
16042 {
16043 return $ac_func ();
16044   ;
16045   return 0;
16046 }
16047 _ACEOF
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (ac_try="$ac_link"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056   (eval "$ac_link") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } && {
16063          test -z "$ac_c_werror_flag" ||
16064          test ! -s conftest.err
16065        } && test -s conftest$ac_exeext && {
16066          test "$cross_compiling" = yes ||
16067          $as_test_x conftest$ac_exeext
16068        }; then
16069   eval "$as_ac_var=yes"
16070 else
16071   $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074         eval "$as_ac_var=no"
16075 fi
16076
16077 rm -rf conftest.dSYM
16078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16079       conftest$ac_exeext conftest.$ac_ext
16080 fi
16081 ac_res=`eval 'as_val=${'$as_ac_var'}
16082                  $as_echo "$as_val"'`
16083                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16084 $as_echo "$ac_res" >&6; }
16085 as_val=`eval 'as_val=${'$as_ac_var'}
16086                  $as_echo "$as_val"'`
16087    if test "x$as_val" = x""yes; then
16088   cat >>confdefs.h <<_ACEOF
16089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16090 _ACEOF
16091
16092 fi
16093 done
16094
16095   if test $ac_cv_func_snprintf = no; then
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
16106
16107   if test $ac_cv_func_snprintf = yes; then
16108     REPLACE_SNPRINTF=1
16109   fi
16110   :
16111
16112   fi
16113
16114   :
16115
16116
16117
16118
16119
16120   if test $ac_cv_have_decl_snprintf = no; then
16121     HAVE_DECL_SNPRINTF=0
16122   fi
16123
16124
16125
16126   GNULIB_SNPRINTF=1
16127
16128      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
16129 $as_echo_n "checking for socklen_t... " >&6; }
16130 if test "${ac_cv_type_socklen_t+set}" = set; then
16131   $as_echo_n "(cached) " >&6
16132 else
16133   ac_cv_type_socklen_t=no
16134 cat >conftest.$ac_ext <<_ACEOF
16135 /* confdefs.h.  */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h.  */
16140 #include <sys/types.h>
16141       #if HAVE_SYS_SOCKET_H
16142       # include <sys/socket.h>
16143       #elif HAVE_WS2TCPIP_H
16144       # include <ws2tcpip.h>
16145       #endif
16146
16147 int
16148 main ()
16149 {
16150 if (sizeof (socklen_t))
16151        return 0;
16152   ;
16153   return 0;
16154 }
16155 _ACEOF
16156 rm -f conftest.$ac_objext
16157 if { (ac_try="$ac_compile"
16158 case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16163 $as_echo "$ac_try_echo") >&5
16164   (eval "$ac_compile") 2>conftest.er1
16165   ac_status=$?
16166   grep -v '^ *+' conftest.er1 >conftest.err
16167   rm -f conftest.er1
16168   cat conftest.err >&5
16169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } && {
16171          test -z "$ac_c_werror_flag" ||
16172          test ! -s conftest.err
16173        } && test -s conftest.$ac_objext; then
16174   cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 #include <sys/types.h>
16181       #if HAVE_SYS_SOCKET_H
16182       # include <sys/socket.h>
16183       #elif HAVE_WS2TCPIP_H
16184       # include <ws2tcpip.h>
16185       #endif
16186
16187 int
16188 main ()
16189 {
16190 if (sizeof ((socklen_t)))
16191           return 0;
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16203 $as_echo "$ac_try_echo") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } && {
16211          test -z "$ac_c_werror_flag" ||
16212          test ! -s conftest.err
16213        } && test -s conftest.$ac_objext; then
16214   :
16215 else
16216   $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219         ac_cv_type_socklen_t=yes
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 else
16224   $as_echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227
16228 fi
16229
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 fi
16232 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16233 $as_echo "$ac_cv_type_socklen_t" >&6; }
16234 if test "x$ac_cv_type_socklen_t" = x""yes; then
16235   :
16236 else
16237   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
16238 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16239       if test "${gl_cv_socklen_t_equiv+set}" = set; then
16240   $as_echo_n "(cached) " >&6
16241 else
16242   # Systems have either "struct sockaddr *" or
16243          # "void *" as the second argument to getpeername
16244          gl_cv_socklen_t_equiv=
16245          for arg2 in "struct sockaddr" void; do
16246            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16247              cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 #include <sys/types.h>
16254                 #include <sys/socket.h>
16255
16256                 int getpeername (int, $arg2 *, $t *);
16257 int
16258 main ()
16259 {
16260 $t len;
16261                 getpeername (0, 0, &len);
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16273 $as_echo "$ac_try_echo") >&5
16274   (eval "$ac_compile") 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } && {
16281          test -z "$ac_c_werror_flag" ||
16282          test ! -s conftest.err
16283        } && test -s conftest.$ac_objext; then
16284   gl_cv_socklen_t_equiv="$t"
16285 else
16286   $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289
16290 fi
16291
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293              test "$gl_cv_socklen_t_equiv" != "" && break
16294            done
16295            test "$gl_cv_socklen_t_equiv" != "" && break
16296          done
16297
16298 fi
16299
16300       if test "$gl_cv_socklen_t_equiv" = ""; then
16301         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
16302 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
16303    { (exit 1); exit 1; }; }
16304       fi
16305       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
16306 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16307
16308 cat >>confdefs.h <<_ACEOF
16309 #define socklen_t $gl_cv_socklen_t_equiv
16310 _ACEOF
16311
16312 fi
16313
16314
16315   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
16316 $as_echo_n "checking for ssize_t... " >&6; }
16317 if test "${gt_cv_ssize_t+set}" = set; then
16318   $as_echo_n "(cached) " >&6
16319 else
16320   cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h.  */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h.  */
16326 #include <sys/types.h>
16327 int
16328 main ()
16329 {
16330 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16331         return !x;
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16343 $as_echo "$ac_try_echo") >&5
16344   (eval "$ac_compile") 2>conftest.er1
16345   ac_status=$?
16346   grep -v '^ *+' conftest.er1 >conftest.err
16347   rm -f conftest.er1
16348   cat conftest.err >&5
16349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); } && {
16351          test -z "$ac_c_werror_flag" ||
16352          test ! -s conftest.err
16353        } && test -s conftest.$ac_objext; then
16354   gt_cv_ssize_t=yes
16355 else
16356   $as_echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359         gt_cv_ssize_t=no
16360 fi
16361
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363 fi
16364 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
16365 $as_echo "$gt_cv_ssize_t" >&6; }
16366   if test $gt_cv_ssize_t = no; then
16367
16368 cat >>confdefs.h <<\_ACEOF
16369 #define ssize_t int
16370 _ACEOF
16371
16372   fi
16373
16374
16375
16376
16377   # Define two additional variables used in the Makefile substitution.
16378
16379   if test "$ac_cv_header_stdbool_h" = yes; then
16380     STDBOOL_H=''
16381   else
16382     STDBOOL_H='stdbool.h'
16383   fi
16384
16385
16386   if test "$ac_cv_type__Bool" = yes; then
16387     HAVE__BOOL=1
16388   else
16389     HAVE__BOOL=0
16390   fi
16391
16392
16393
16394
16395
16396   if test $ac_cv_type_long_long_int = yes; then
16397     HAVE_LONG_LONG_INT=1
16398   else
16399     HAVE_LONG_LONG_INT=0
16400   fi
16401
16402
16403   if test $ac_cv_type_unsigned_long_long_int = yes; then
16404     HAVE_UNSIGNED_LONG_LONG_INT=1
16405   else
16406     HAVE_UNSIGNED_LONG_LONG_INT=0
16407   fi
16408
16409
16410       if test $ac_cv_header_inttypes_h = yes; then
16411     HAVE_INTTYPES_H=1
16412   else
16413     HAVE_INTTYPES_H=0
16414   fi
16415
16416
16417       if test $ac_cv_header_sys_types_h = yes; then
16418     HAVE_SYS_TYPES_H=1
16419   else
16420     HAVE_SYS_TYPES_H=0
16421   fi
16422
16423
16424
16425
16426
16427   :
16428
16429
16430
16431
16432
16433
16434
16435      if test $gl_cv_have_include_next = yes; then
16436        gl_cv_next_stdint_h='<'stdint.h'>'
16437      else
16438        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16439 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16440 if test "${gl_cv_next_stdint_h+set}" = set; then
16441   $as_echo_n "(cached) " >&6
16442 else
16443
16444           if test $ac_cv_header_stdint_h = yes; then
16445             cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451 #include <stdint.h>
16452
16453 _ACEOF
16454                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16455                sed -n '\#/stdint.h#{
16456                  s#.*"\(.*/stdint.h\)".*#\1#
16457                  s#^/[^/]#//&#
16458                  p
16459                  q
16460                }'`'"'
16461           else
16462             gl_cv_next_stdint_h='<'stdint.h'>'
16463           fi
16464
16465 fi
16466 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16467 $as_echo "$gl_cv_next_stdint_h" >&6; }
16468      fi
16469      NEXT_STDINT_H=$gl_cv_next_stdint_h
16470
16471
16472
16473   if test $ac_cv_header_stdint_h = yes; then
16474     HAVE_STDINT_H=1
16475   else
16476     HAVE_STDINT_H=0
16477   fi
16478
16479
16480     if test $ac_cv_header_stdint_h = yes; then
16481     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16482 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16483 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16484   $as_echo_n "(cached) " >&6
16485 else
16486   gl_cv_header_working_stdint_h=no
16487        cat >conftest.$ac_ext <<_ACEOF
16488
16489          /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494
16495 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16496 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16497 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16498 #include <stdint.h>
16499 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
16500 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16501 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16502 #endif
16503
16504
16505   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16506      included before <wchar.h>.  */
16507   #include <stddef.h>
16508   #include <signal.h>
16509   #if HAVE_WCHAR_H
16510   # include <stdio.h>
16511   # include <time.h>
16512   # include <wchar.h>
16513   #endif
16514
16515
16516 #ifdef INT8_MAX
16517 int8_t a1 = INT8_MAX;
16518 int8_t a1min = INT8_MIN;
16519 #endif
16520 #ifdef INT16_MAX
16521 int16_t a2 = INT16_MAX;
16522 int16_t a2min = INT16_MIN;
16523 #endif
16524 #ifdef INT32_MAX
16525 int32_t a3 = INT32_MAX;
16526 int32_t a3min = INT32_MIN;
16527 #endif
16528 #ifdef INT64_MAX
16529 int64_t a4 = INT64_MAX;
16530 int64_t a4min = INT64_MIN;
16531 #endif
16532 #ifdef UINT8_MAX
16533 uint8_t b1 = UINT8_MAX;
16534 #else
16535 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16536 #endif
16537 #ifdef UINT16_MAX
16538 uint16_t b2 = UINT16_MAX;
16539 #endif
16540 #ifdef UINT32_MAX
16541 uint32_t b3 = UINT32_MAX;
16542 #endif
16543 #ifdef UINT64_MAX
16544 uint64_t b4 = UINT64_MAX;
16545 #endif
16546 int_least8_t c1 = INT8_C (0x7f);
16547 int_least8_t c1max = INT_LEAST8_MAX;
16548 int_least8_t c1min = INT_LEAST8_MIN;
16549 int_least16_t c2 = INT16_C (0x7fff);
16550 int_least16_t c2max = INT_LEAST16_MAX;
16551 int_least16_t c2min = INT_LEAST16_MIN;
16552 int_least32_t c3 = INT32_C (0x7fffffff);
16553 int_least32_t c3max = INT_LEAST32_MAX;
16554 int_least32_t c3min = INT_LEAST32_MIN;
16555 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16556 int_least64_t c4max = INT_LEAST64_MAX;
16557 int_least64_t c4min = INT_LEAST64_MIN;
16558 uint_least8_t d1 = UINT8_C (0xff);
16559 uint_least8_t d1max = UINT_LEAST8_MAX;
16560 uint_least16_t d2 = UINT16_C (0xffff);
16561 uint_least16_t d2max = UINT_LEAST16_MAX;
16562 uint_least32_t d3 = UINT32_C (0xffffffff);
16563 uint_least32_t d3max = UINT_LEAST32_MAX;
16564 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16565 uint_least64_t d4max = UINT_LEAST64_MAX;
16566 int_fast8_t e1 = INT_FAST8_MAX;
16567 int_fast8_t e1min = INT_FAST8_MIN;
16568 int_fast16_t e2 = INT_FAST16_MAX;
16569 int_fast16_t e2min = INT_FAST16_MIN;
16570 int_fast32_t e3 = INT_FAST32_MAX;
16571 int_fast32_t e3min = INT_FAST32_MIN;
16572 int_fast64_t e4 = INT_FAST64_MAX;
16573 int_fast64_t e4min = INT_FAST64_MIN;
16574 uint_fast8_t f1 = UINT_FAST8_MAX;
16575 uint_fast16_t f2 = UINT_FAST16_MAX;
16576 uint_fast32_t f3 = UINT_FAST32_MAX;
16577 uint_fast64_t f4 = UINT_FAST64_MAX;
16578 #ifdef INTPTR_MAX
16579 intptr_t g = INTPTR_MAX;
16580 intptr_t gmin = INTPTR_MIN;
16581 #endif
16582 #ifdef UINTPTR_MAX
16583 uintptr_t h = UINTPTR_MAX;
16584 #endif
16585 intmax_t i = INTMAX_MAX;
16586 uintmax_t j = UINTMAX_MAX;
16587
16588 #include <limits.h> /* for CHAR_BIT */
16589 #define TYPE_MINIMUM(t) \
16590   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16591 #define TYPE_MAXIMUM(t) \
16592   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16593 struct s {
16594   int check_PTRDIFF:
16595       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16596       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16597       ? 1 : -1;
16598   /* Detect bug in FreeBSD 6.0 / ia64.  */
16599   int check_SIG_ATOMIC:
16600       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16601       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16602       ? 1 : -1;
16603   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16604   int check_WCHAR:
16605       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16606       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16607       ? 1 : -1;
16608   /* Detect bug in mingw.  */
16609   int check_WINT:
16610       WINT_MIN == TYPE_MINIMUM (wint_t)
16611       && WINT_MAX == TYPE_MAXIMUM (wint_t)
16612       ? 1 : -1;
16613
16614   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
16615   int check_UINT8_C:
16616         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16617   int check_UINT16_C:
16618         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16619
16620   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
16621 #ifdef UINT8_MAX
16622   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16623 #endif
16624 #ifdef UINT16_MAX
16625   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16626 #endif
16627 #ifdef UINT32_MAX
16628   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16629 #endif
16630 #ifdef UINT64_MAX
16631   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16632 #endif
16633   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16634   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16635   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16636   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16637   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16638   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16639   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16640   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16641   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16642   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16643   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16644 };
16645
16646 int
16647 main ()
16648 {
16649
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext
16655 if { (ac_try="$ac_compile"
16656 case "(($ac_try" in
16657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658   *) ac_try_echo=$ac_try;;
16659 esac
16660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661 $as_echo "$ac_try_echo") >&5
16662   (eval "$ac_compile") 2>conftest.er1
16663   ac_status=$?
16664   grep -v '^ *+' conftest.er1 >conftest.err
16665   rm -f conftest.er1
16666   cat conftest.err >&5
16667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); } && {
16669          test -z "$ac_c_werror_flag" ||
16670          test ! -s conftest.err
16671        } && test -s conftest.$ac_objext; then
16672   gl_cv_header_working_stdint_h=yes
16673 else
16674   $as_echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677
16678 fi
16679
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 fi
16682 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16683 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16684   fi
16685   if test "$gl_cv_header_working_stdint_h" = yes; then
16686     STDINT_H=
16687   else
16688
16689
16690 for ac_header in sys/inttypes.h sys/bitypes.h
16691 do
16692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16694   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 $as_echo_n "checking for $ac_header... " >&6; }
16696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16697   $as_echo_n "(cached) " >&6
16698 fi
16699 ac_res=`eval 'as_val=${'$as_ac_Header'}
16700                  $as_echo "$as_val"'`
16701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16702 $as_echo "$ac_res" >&6; }
16703 else
16704   # Is the header compilable?
16705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16706 $as_echo_n "checking $ac_header usability... " >&6; }
16707 cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713 $ac_includes_default
16714 #include <$ac_header>
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (ac_try="$ac_compile"
16718 case "(($ac_try" in
16719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720   *) ac_try_echo=$ac_try;;
16721 esac
16722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16723 $as_echo "$ac_try_echo") >&5
16724   (eval "$ac_compile") 2>conftest.er1
16725   ac_status=$?
16726   grep -v '^ *+' conftest.er1 >conftest.err
16727   rm -f conftest.er1
16728   cat conftest.err >&5
16729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); } && {
16731          test -z "$ac_c_werror_flag" ||
16732          test ! -s conftest.err
16733        } && test -s conftest.$ac_objext; then
16734   ac_header_compiler=yes
16735 else
16736   $as_echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739         ac_header_compiler=no
16740 fi
16741
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16744 $as_echo "$ac_header_compiler" >&6; }
16745
16746 # Is the header present?
16747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16748 $as_echo_n "checking $ac_header presence... " >&6; }
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 #include <$ac_header>
16756 _ACEOF
16757 if { (ac_try="$ac_cpp conftest.$ac_ext"
16758 case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16763 $as_echo "$ac_try_echo") >&5
16764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16765   ac_status=$?
16766   grep -v '^ *+' conftest.er1 >conftest.err
16767   rm -f conftest.er1
16768   cat conftest.err >&5
16769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } >/dev/null && {
16771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16772          test ! -s conftest.err
16773        }; then
16774   ac_header_preproc=yes
16775 else
16776   $as_echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779   ac_header_preproc=no
16780 fi
16781
16782 rm -f conftest.err conftest.$ac_ext
16783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784 $as_echo "$ac_header_preproc" >&6; }
16785
16786 # So?  What about this header?
16787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16788   yes:no: )
16789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793     ac_header_preproc=yes
16794     ;;
16795   no:yes:* )
16796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16799 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16803 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16808
16809     ;;
16810 esac
16811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 $as_echo_n "checking for $ac_header... " >&6; }
16813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814   $as_echo_n "(cached) " >&6
16815 else
16816   eval "$as_ac_Header=\$ac_header_preproc"
16817 fi
16818 ac_res=`eval 'as_val=${'$as_ac_Header'}
16819                  $as_echo "$as_val"'`
16820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16821 $as_echo "$ac_res" >&6; }
16822
16823 fi
16824 as_val=`eval 'as_val=${'$as_ac_Header'}
16825                  $as_echo "$as_val"'`
16826    if test "x$as_val" = x""yes; then
16827   cat >>confdefs.h <<_ACEOF
16828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 _ACEOF
16830
16831 fi
16832
16833 done
16834
16835     if test $ac_cv_header_sys_inttypes_h = yes; then
16836       HAVE_SYS_INTTYPES_H=1
16837     else
16838       HAVE_SYS_INTTYPES_H=0
16839     fi
16840
16841     if test $ac_cv_header_sys_bitypes_h = yes; then
16842       HAVE_SYS_BITYPES_H=1
16843     else
16844       HAVE_SYS_BITYPES_H=0
16845     fi
16846
16847
16848
16849   :
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
16865     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
16866 $as_echo_n "checking for bit size of $gltype... " >&6; }
16867 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
16868   $as_echo_n "(cached) " >&6
16869 else
16870   if test "$cross_compiling" = yes; then
16871   # Depending upon the size, compute the lo and hi bounds.
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878
16879   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16880      included before <wchar.h>.  */
16881   #include <stddef.h>
16882   #include <signal.h>
16883   #if HAVE_WCHAR_H
16884   # include <stdio.h>
16885   # include <time.h>
16886   # include <wchar.h>
16887   #endif
16888
16889 #include <limits.h>
16890 int
16891 main ()
16892 {
16893 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
16894 test_array [0] = 0
16895
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16907 $as_echo "$ac_try_echo") >&5
16908   (eval "$ac_compile") 2>conftest.er1
16909   ac_status=$?
16910   grep -v '^ *+' conftest.er1 >conftest.err
16911   rm -f conftest.er1
16912   cat conftest.err >&5
16913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); } && {
16915          test -z "$ac_c_werror_flag" ||
16916          test ! -s conftest.err
16917        } && test -s conftest.$ac_objext; then
16918   ac_lo=0 ac_mid=0
16919   while :; do
16920     cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h.  */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h.  */
16926
16927   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16928      included before <wchar.h>.  */
16929   #include <stddef.h>
16930   #include <signal.h>
16931   #if HAVE_WCHAR_H
16932   # include <stdio.h>
16933   # include <time.h>
16934   # include <wchar.h>
16935   #endif
16936
16937 #include <limits.h>
16938 int
16939 main ()
16940 {
16941 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
16942 test_array [0] = 0
16943
16944   ;
16945   return 0;
16946 }
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16955 $as_echo "$ac_try_echo") >&5
16956   (eval "$ac_compile") 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } && {
16963          test -z "$ac_c_werror_flag" ||
16964          test ! -s conftest.err
16965        } && test -s conftest.$ac_objext; then
16966   ac_hi=$ac_mid; break
16967 else
16968   $as_echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971         ac_lo=`expr $ac_mid + 1`
16972                         if test $ac_lo -le $ac_mid; then
16973                           ac_lo= ac_hi=
16974                           break
16975                         fi
16976                         ac_mid=`expr 2 '*' $ac_mid + 1`
16977 fi
16978
16979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980   done
16981 else
16982   $as_echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985         cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991
16992   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16993      included before <wchar.h>.  */
16994   #include <stddef.h>
16995   #include <signal.h>
16996   #if HAVE_WCHAR_H
16997   # include <stdio.h>
16998   # include <time.h>
16999   # include <wchar.h>
17000   #endif
17001
17002 #include <limits.h>
17003 int
17004 main ()
17005 {
17006 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17007 test_array [0] = 0
17008
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020 $as_echo "$ac_try_echo") >&5
17021   (eval "$ac_compile") 2>conftest.er1
17022   ac_status=$?
17023   grep -v '^ *+' conftest.er1 >conftest.err
17024   rm -f conftest.er1
17025   cat conftest.err >&5
17026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); } && {
17028          test -z "$ac_c_werror_flag" ||
17029          test ! -s conftest.err
17030        } && test -s conftest.$ac_objext; then
17031   ac_hi=-1 ac_mid=-1
17032   while :; do
17033     cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039
17040   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17041      included before <wchar.h>.  */
17042   #include <stddef.h>
17043   #include <signal.h>
17044   #if HAVE_WCHAR_H
17045   # include <stdio.h>
17046   # include <time.h>
17047   # include <wchar.h>
17048   #endif
17049
17050 #include <limits.h>
17051 int
17052 main ()
17053 {
17054 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17055 test_array [0] = 0
17056
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext
17062 if { (ac_try="$ac_compile"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17068 $as_echo "$ac_try_echo") >&5
17069   (eval "$ac_compile") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } && {
17076          test -z "$ac_c_werror_flag" ||
17077          test ! -s conftest.err
17078        } && test -s conftest.$ac_objext; then
17079   ac_lo=$ac_mid; break
17080 else
17081   $as_echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084         ac_hi=`expr '(' $ac_mid ')' - 1`
17085                         if test $ac_mid -le $ac_hi; then
17086                           ac_lo= ac_hi=
17087                           break
17088                         fi
17089                         ac_mid=`expr 2 '*' $ac_mid`
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093   done
17094 else
17095   $as_echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098         ac_lo= ac_hi=
17099 fi
17100
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 # Binary search between lo and hi bounds.
17106 while test "x$ac_lo" != "x$ac_hi"; do
17107   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17108   cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114
17115   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17116      included before <wchar.h>.  */
17117   #include <stddef.h>
17118   #include <signal.h>
17119   #if HAVE_WCHAR_H
17120   # include <stdio.h>
17121   # include <time.h>
17122   # include <wchar.h>
17123   #endif
17124
17125 #include <limits.h>
17126 int
17127 main ()
17128 {
17129 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17130 test_array [0] = 0
17131
17132   ;
17133   return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext
17137 if { (ac_try="$ac_compile"
17138 case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143 $as_echo "$ac_try_echo") >&5
17144   (eval "$ac_compile") 2>conftest.er1
17145   ac_status=$?
17146   grep -v '^ *+' conftest.er1 >conftest.err
17147   rm -f conftest.er1
17148   cat conftest.err >&5
17149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } && {
17151          test -z "$ac_c_werror_flag" ||
17152          test ! -s conftest.err
17153        } && test -s conftest.$ac_objext; then
17154   ac_hi=$ac_mid
17155 else
17156   $as_echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159         ac_lo=`expr '(' $ac_mid ')' + 1`
17160 fi
17161
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163 done
17164 case $ac_lo in
17165 ?*) result=$ac_lo;;
17166 '') result=unknown ;;
17167 esac
17168 else
17169   cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17177      included before <wchar.h>.  */
17178   #include <stddef.h>
17179   #include <signal.h>
17180   #if HAVE_WCHAR_H
17181   # include <stdio.h>
17182   # include <time.h>
17183   # include <wchar.h>
17184   #endif
17185
17186 #include <limits.h>
17187 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17188 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17189 #include <stdio.h>
17190 #include <stdlib.h>
17191 int
17192 main ()
17193 {
17194
17195   FILE *f = fopen ("conftest.val", "w");
17196   if (! f)
17197     return 1;
17198   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17199     {
17200       long int i = longval ();
17201       if (i != (sizeof ($gltype) * CHAR_BIT))
17202         return 1;
17203       fprintf (f, "%ld", i);
17204     }
17205   else
17206     {
17207       unsigned long int i = ulongval ();
17208       if (i != (sizeof ($gltype) * CHAR_BIT))
17209         return 1;
17210       fprintf (f, "%lu", i);
17211     }
17212   /* Do not output a trailing newline, as this causes \r\n confusion
17213      on some platforms.  */
17214   return ferror (f) || fclose (f) != 0;
17215
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest$ac_exeext
17221 if { (ac_try="$ac_link"
17222 case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17227 $as_echo "$ac_try_echo") >&5
17228   (eval "$ac_link") 2>&5
17229   ac_status=$?
17230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17232   { (case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17237 $as_echo "$ac_try_echo") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   result=`cat conftest.val`
17243 else
17244   $as_echo "$as_me: program exited with status $ac_status" >&5
17245 $as_echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ( exit $ac_status )
17249 result=unknown
17250 fi
17251 rm -rf conftest.dSYM
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17253 fi
17254 rm -f conftest.val
17255        eval gl_cv_bitsizeof_${gltype}=\$result
17256
17257 fi
17258 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17259                  $as_echo "$as_val"'`
17260                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17261 $as_echo "$ac_res" >&6; }
17262     eval result=\$gl_cv_bitsizeof_${gltype}
17263     if test $result = unknown; then
17264                                                 result=0
17265     fi
17266     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17267     cat >>confdefs.h <<_ACEOF
17268 #define BITSIZEOF_${GLTYPE} $result
17269 _ACEOF
17270
17271     eval BITSIZEOF_${GLTYPE}=\$result
17272   done
17273
17274
17275
17276
17277
17278
17279
17280   for gltype in sig_atomic_t wchar_t wint_t ; do
17281     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17282 $as_echo_n "checking whether $gltype is signed... " >&6; }
17283 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17284   $as_echo_n "(cached) " >&6
17285 else
17286   cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292
17293   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17294      included before <wchar.h>.  */
17295   #include <stddef.h>
17296   #include <signal.h>
17297   #if HAVE_WCHAR_H
17298   # include <stdio.h>
17299   # include <time.h>
17300   # include <wchar.h>
17301   #endif
17302
17303             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17304 int
17305 main ()
17306 {
17307
17308   ;
17309   return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext
17313 if { (ac_try="$ac_compile"
17314 case "(($ac_try" in
17315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316   *) ac_try_echo=$ac_try;;
17317 esac
17318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319 $as_echo "$ac_try_echo") >&5
17320   (eval "$ac_compile") 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && {
17327          test -z "$ac_c_werror_flag" ||
17328          test ! -s conftest.err
17329        } && test -s conftest.$ac_objext; then
17330   result=yes
17331 else
17332   $as_echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335         result=no
17336 fi
17337
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339        eval gl_cv_type_${gltype}_signed=\$result
17340
17341 fi
17342 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
17343                  $as_echo "$as_val"'`
17344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17345 $as_echo "$ac_res" >&6; }
17346     eval result=\$gl_cv_type_${gltype}_signed
17347     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17348     if test "$result" = yes; then
17349       cat >>confdefs.h <<_ACEOF
17350 #define HAVE_SIGNED_${GLTYPE} 1
17351 _ACEOF
17352
17353       eval HAVE_SIGNED_${GLTYPE}=1
17354     else
17355       eval HAVE_SIGNED_${GLTYPE}=0
17356     fi
17357   done
17358
17359
17360   gl_cv_type_ptrdiff_t_signed=yes
17361   gl_cv_type_size_t_signed=no
17362
17363
17364
17365
17366
17367
17368
17369   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
17370     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17371 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17372 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17373   $as_echo_n "(cached) " >&6
17374 else
17375   eval gl_cv_type_${gltype}_suffix=no
17376        eval result=\$gl_cv_type_${gltype}_signed
17377        if test "$result" = yes; then
17378          glsufu=
17379        else
17380          glsufu=u
17381        fi
17382        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17383          case $glsuf in
17384            '')  gltype1='int';;
17385            l)   gltype1='long int';;
17386            ll)  gltype1='long long int';;
17387            i64) gltype1='__int64';;
17388            u)   gltype1='unsigned int';;
17389            ul)  gltype1='unsigned long int';;
17390            ull) gltype1='unsigned long long int';;
17391            ui64)gltype1='unsigned __int64';;
17392          esac
17393          cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h.  */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h.  */
17399
17400   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17401      included before <wchar.h>.  */
17402   #include <stddef.h>
17403   #include <signal.h>
17404   #if HAVE_WCHAR_H
17405   # include <stdio.h>
17406   # include <time.h>
17407   # include <wchar.h>
17408   #endif
17409
17410               extern $gltype foo;
17411               extern $gltype1 foo;
17412 int
17413 main ()
17414 {
17415
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17427 $as_echo "$ac_try_echo") >&5
17428   (eval "$ac_compile") 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } && {
17435          test -z "$ac_c_werror_flag" ||
17436          test ! -s conftest.err
17437        } && test -s conftest.$ac_objext; then
17438   eval gl_cv_type_${gltype}_suffix=\$glsuf
17439 else
17440   $as_echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447          eval result=\$gl_cv_type_${gltype}_suffix
17448          test "$result" != no && break
17449        done
17450 fi
17451 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17452                  $as_echo "$as_val"'`
17453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17454 $as_echo "$ac_res" >&6; }
17455     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17456     eval result=\$gl_cv_type_${gltype}_suffix
17457     test "$result" = no && result=
17458     eval ${GLTYPE}_SUFFIX=\$result
17459     cat >>confdefs.h <<_ACEOF
17460 #define ${GLTYPE}_SUFFIX $result
17461 _ACEOF
17462
17463   done
17464
17465
17466
17467     STDINT_H=stdint.h
17468   fi
17469
17470
17471
17472
17473
17474
17475
17476   :
17477
17478
17479
17480
17481
17482
17483
17484      if test $gl_cv_have_include_next = yes; then
17485        gl_cv_next_stdio_h='<'stdio.h'>'
17486      else
17487        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
17488 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17489 if test "${gl_cv_next_stdio_h+set}" = set; then
17490   $as_echo_n "(cached) " >&6
17491 else
17492
17493           if test $ac_cv_header_stdio_h = yes; then
17494             cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h.  */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h.  */
17500 #include <stdio.h>
17501
17502 _ACEOF
17503                                     gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17504                sed -n '\#/stdio.h#{
17505                  s#.*"\(.*/stdio.h\)".*#\1#
17506                  s#^/[^/]#//&#
17507                  p
17508                  q
17509                }'`'"'
17510           else
17511             gl_cv_next_stdio_h='<'stdio.h'>'
17512           fi
17513
17514 fi
17515 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
17516 $as_echo "$gl_cv_next_stdio_h" >&6; }
17517      fi
17518      NEXT_STDIO_H=$gl_cv_next_stdio_h
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528   :
17529
17530
17531
17532
17533
17534
17535
17536      if test $gl_cv_have_include_next = yes; then
17537        gl_cv_next_stdlib_h='<'stdlib.h'>'
17538      else
17539        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
17540 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17541 if test "${gl_cv_next_stdlib_h+set}" = set; then
17542   $as_echo_n "(cached) " >&6
17543 else
17544
17545           if test $ac_cv_header_stdlib_h = yes; then
17546             cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 #include <stdlib.h>
17553
17554 _ACEOF
17555                                     gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17556                sed -n '\#/stdlib.h#{
17557                  s#.*"\(.*/stdlib.h\)".*#\1#
17558                  s#^/[^/]#//&#
17559                  p
17560                  q
17561                }'`'"'
17562           else
17563             gl_cv_next_stdlib_h='<'stdlib.h'>'
17564           fi
17565
17566 fi
17567 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
17568 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17569      fi
17570      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585 for ac_func in strdup
17586 do
17587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17589 $as_echo_n "checking for $ac_func... " >&6; }
17590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17591   $as_echo_n "(cached) " >&6
17592 else
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17601 #define $ac_func innocuous_$ac_func
17602
17603 /* System header to define __stub macros and hopefully few prototypes,
17604     which can conflict with char $ac_func (); below.
17605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606     <limits.h> exists even on freestanding compilers.  */
17607
17608 #ifdef __STDC__
17609 # include <limits.h>
17610 #else
17611 # include <assert.h>
17612 #endif
17613
17614 #undef $ac_func
17615
17616 /* Override any GCC internal prototype to avoid an error.
17617    Use char because int might match the return type of a GCC
17618    builtin and then its argument prototype would still apply.  */
17619 #ifdef __cplusplus
17620 extern "C"
17621 #endif
17622 char $ac_func ();
17623 /* The GNU C library defines this for functions which it implements
17624     to always fail with ENOSYS.  Some functions are actually named
17625     something starting with __ and the normal name is an alias.  */
17626 #if defined __stub_$ac_func || defined __stub___$ac_func
17627 choke me
17628 #endif
17629
17630 int
17631 main ()
17632 {
17633 return $ac_func ();
17634   ;
17635   return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (ac_try="$ac_link"
17640 case "(($ac_try" in
17641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642   *) ac_try_echo=$ac_try;;
17643 esac
17644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645 $as_echo "$ac_try_echo") >&5
17646   (eval "$ac_link") 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } && {
17653          test -z "$ac_c_werror_flag" ||
17654          test ! -s conftest.err
17655        } && test -s conftest$ac_exeext && {
17656          test "$cross_compiling" = yes ||
17657          $as_test_x conftest$ac_exeext
17658        }; then
17659   eval "$as_ac_var=yes"
17660 else
17661   $as_echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664         eval "$as_ac_var=no"
17665 fi
17666
17667 rm -rf conftest.dSYM
17668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17669       conftest$ac_exeext conftest.$ac_ext
17670 fi
17671 ac_res=`eval 'as_val=${'$as_ac_var'}
17672                  $as_echo "$as_val"'`
17673                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17674 $as_echo "$ac_res" >&6; }
17675 as_val=`eval 'as_val=${'$as_ac_var'}
17676                  $as_echo "$as_val"'`
17677    if test "x$as_val" = x""yes; then
17678   cat >>confdefs.h <<_ACEOF
17679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17680 _ACEOF
17681
17682 else
17683
17684     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17685
17686 fi
17687 done
17688
17689
17690
17691   :
17692
17693
17694
17695
17696
17697   if test $ac_cv_have_decl_strdup = no; then
17698     HAVE_DECL_STRDUP=0
17699   fi
17700   :
17701
17702
17703
17704   GNULIB_STRDUP=1
17705
17706
17707
17708
17709
17710   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
17711 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
17712 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
17713   $as_echo_n "(cached) " >&6
17714 else
17715
17716       cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 #include <sys/socket.h>
17723 int
17724 main ()
17725 {
17726
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739   (eval "$ac_compile") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } && {
17746          test -z "$ac_c_werror_flag" ||
17747          test ! -s conftest.err
17748        } && test -s conftest.$ac_objext; then
17749   gl_cv_header_sys_socket_h_selfcontained=yes
17750 else
17751   $as_echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754         gl_cv_header_sys_socket_h_selfcontained=no
17755 fi
17756
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758
17759 fi
17760 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
17761 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
17762   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
17763     SYS_SOCKET_H=''
17764   else
17765     SYS_SOCKET_H='sys/socket.h'
17766
17767
17768
17769
17770   :
17771
17772
17773
17774
17775
17776
17777
17778      if test $gl_cv_have_include_next = yes; then
17779        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17780      else
17781        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
17782 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
17783 if test "${gl_cv_next_sys_socket_h+set}" = set; then
17784   $as_echo_n "(cached) " >&6
17785 else
17786
17787           if test $ac_cv_header_sys_socket_h = yes; then
17788             cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794 #include <sys/socket.h>
17795
17796 _ACEOF
17797                                     gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17798                sed -n '\#/sys/socket.h#{
17799                  s#.*"\(.*/sys/socket.h\)".*#\1#
17800                  s#^/[^/]#//&#
17801                  p
17802                  q
17803                }'`'"'
17804           else
17805             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17806           fi
17807
17808 fi
17809 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
17810 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
17811      fi
17812      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
17813
17814
17815
17816     if test $ac_cv_header_sys_socket_h = yes; then
17817       HAVE_SYS_SOCKET_H=1
17818       HAVE_WINSOCK2_H=0
17819       HAVE_WS2TCPIP_H=0
17820     else
17821       HAVE_SYS_SOCKET_H=0
17822
17823
17824 for ac_header in winsock2.h ws2tcpip.h
17825 do
17826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17828   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17829 $as_echo_n "checking for $ac_header... " >&6; }
17830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17831   $as_echo_n "(cached) " >&6
17832 fi
17833 ac_res=`eval 'as_val=${'$as_ac_Header'}
17834                  $as_echo "$as_val"'`
17835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17836 $as_echo "$ac_res" >&6; }
17837 else
17838   # Is the header compilable?
17839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17840 $as_echo_n "checking $ac_header usability... " >&6; }
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h.  */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h.  */
17847 $ac_includes_default
17848 #include <$ac_header>
17849 _ACEOF
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854   *) ac_try_echo=$ac_try;;
17855 esac
17856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17857 $as_echo "$ac_try_echo") >&5
17858   (eval "$ac_compile") 2>conftest.er1
17859   ac_status=$?
17860   grep -v '^ *+' conftest.er1 >conftest.err
17861   rm -f conftest.er1
17862   cat conftest.err >&5
17863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } && {
17865          test -z "$ac_c_werror_flag" ||
17866          test ! -s conftest.err
17867        } && test -s conftest.$ac_objext; then
17868   ac_header_compiler=yes
17869 else
17870   $as_echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873         ac_header_compiler=no
17874 fi
17875
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17878 $as_echo "$ac_header_compiler" >&6; }
17879
17880 # Is the header present?
17881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17882 $as_echo_n "checking $ac_header presence... " >&6; }
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889 #include <$ac_header>
17890 _ACEOF
17891 if { (ac_try="$ac_cpp conftest.$ac_ext"
17892 case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } >/dev/null && {
17905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906          test ! -s conftest.err
17907        }; then
17908   ac_header_preproc=yes
17909 else
17910   $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913   ac_header_preproc=no
17914 fi
17915
17916 rm -f conftest.err conftest.$ac_ext
17917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 $as_echo "$ac_header_preproc" >&6; }
17919
17920 # So?  What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17922   yes:no: )
17923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17927     ac_header_preproc=yes
17928     ;;
17929   no:yes:* )
17930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17933 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17937 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17942
17943     ;;
17944 esac
17945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17946 $as_echo_n "checking for $ac_header... " >&6; }
17947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17948   $as_echo_n "(cached) " >&6
17949 else
17950   eval "$as_ac_Header=\$ac_header_preproc"
17951 fi
17952 ac_res=`eval 'as_val=${'$as_ac_Header'}
17953                  $as_echo "$as_val"'`
17954                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17955 $as_echo "$ac_res" >&6; }
17956
17957 fi
17958 as_val=`eval 'as_val=${'$as_ac_Header'}
17959                  $as_echo "$as_val"'`
17960    if test "x$as_val" = x""yes; then
17961   cat >>confdefs.h <<_ACEOF
17962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17963 _ACEOF
17964
17965 fi
17966
17967 done
17968
17969       if test $ac_cv_header_winsock2_h = yes; then
17970         HAVE_WINSOCK2_H=1
17971       else
17972         HAVE_WINSOCK2_H=0
17973       fi
17974       if test $ac_cv_header_ws2tcpip_h = yes; then
17975         HAVE_WS2TCPIP_H=1
17976       else
17977         HAVE_WS2TCPIP_H=0
17978       fi
17979     fi
17980
17981
17982
17983   fi
17984
17985
17986   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
17987 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
17988 if test -z "$MKDIR_P"; then
17989   if test "${ac_cv_path_mkdir+set}" = set; then
17990   $as_echo_n "(cached) " >&6
17991 else
17992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17994 do
17995   IFS=$as_save_IFS
17996   test -z "$as_dir" && as_dir=.
17997   for ac_prog in mkdir gmkdir; do
17998          for ac_exec_ext in '' $ac_executable_extensions; do
17999            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18000            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18001              'mkdir (GNU coreutils) '* | \
18002              'mkdir (coreutils) '* | \
18003              'mkdir (fileutils) '4.1*)
18004                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18005                break 3;;
18006            esac
18007          done
18008        done
18009 done
18010 IFS=$as_save_IFS
18011
18012 fi
18013
18014   if test "${ac_cv_path_mkdir+set}" = set; then
18015     MKDIR_P="$ac_cv_path_mkdir -p"
18016   else
18017     # As a last resort, use the slow shell script.  Don't cache a
18018     # value for MKDIR_P within a source directory, because that will
18019     # break other packages using the cache if that directory is
18020     # removed, or if the value is a relative name.
18021     test -d ./--version && rmdir ./--version
18022     MKDIR_P="$ac_install_sh -d"
18023   fi
18024 fi
18025 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18026 $as_echo "$MKDIR_P" >&6; }
18027
18028
18029
18030   :
18031
18032
18033
18034
18035
18036   if test $ac_cv_func_lstat = yes; then
18037     HAVE_LSTAT=1
18038   else
18039     HAVE_LSTAT=0
18040   fi
18041
18042
18043       { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
18044 $as_echo_n "checking whether mkdir is declared... " >&6; }
18045 if test "${ac_cv_have_decl_mkdir+set}" = set; then
18046   $as_echo_n "(cached) " >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 #include <sys/stat.h>
18055
18056 int
18057 main ()
18058 {
18059 #ifndef mkdir
18060   (void) mkdir;
18061 #endif
18062
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext
18068 if { (ac_try="$ac_compile"
18069 case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18074 $as_echo "$ac_try_echo") >&5
18075   (eval "$ac_compile") 2>conftest.er1
18076   ac_status=$?
18077   grep -v '^ *+' conftest.er1 >conftest.err
18078   rm -f conftest.er1
18079   cat conftest.err >&5
18080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); } && {
18082          test -z "$ac_c_werror_flag" ||
18083          test ! -s conftest.err
18084        } && test -s conftest.$ac_objext; then
18085   ac_cv_have_decl_mkdir=yes
18086 else
18087   $as_echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090         ac_cv_have_decl_mkdir=no
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 fi
18095 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
18096 $as_echo "$ac_cv_have_decl_mkdir" >&6; }
18097 if test "x$ac_cv_have_decl_mkdir" = x""yes; then
18098
18099 cat >>confdefs.h <<_ACEOF
18100 #define HAVE_DECL_MKDIR 1
18101 _ACEOF
18102
18103
18104 else
18105   cat >>confdefs.h <<_ACEOF
18106 #define HAVE_DECL_MKDIR 0
18107 _ACEOF
18108
18109
18110 for ac_header in io.h
18111 do
18112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18114   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18115 $as_echo_n "checking for $ac_header... " >&6; }
18116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18117   $as_echo_n "(cached) " >&6
18118 fi
18119 ac_res=`eval 'as_val=${'$as_ac_Header'}
18120                  $as_echo "$as_val"'`
18121                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18122 $as_echo "$ac_res" >&6; }
18123 else
18124   # Is the header compilable?
18125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18126 $as_echo_n "checking $ac_header usability... " >&6; }
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133 $ac_includes_default
18134 #include <$ac_header>
18135 _ACEOF
18136 rm -f conftest.$ac_objext
18137 if { (ac_try="$ac_compile"
18138 case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18143 $as_echo "$ac_try_echo") >&5
18144   (eval "$ac_compile") 2>conftest.er1
18145   ac_status=$?
18146   grep -v '^ *+' conftest.er1 >conftest.err
18147   rm -f conftest.er1
18148   cat conftest.err >&5
18149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); } && {
18151          test -z "$ac_c_werror_flag" ||
18152          test ! -s conftest.err
18153        } && test -s conftest.$ac_objext; then
18154   ac_header_compiler=yes
18155 else
18156   $as_echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159         ac_header_compiler=no
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18164 $as_echo "$ac_header_compiler" >&6; }
18165
18166 # Is the header present?
18167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18168 $as_echo_n "checking $ac_header presence... " >&6; }
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h.  */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h.  */
18175 #include <$ac_header>
18176 _ACEOF
18177 if { (ac_try="$ac_cpp conftest.$ac_ext"
18178 case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18183 $as_echo "$ac_try_echo") >&5
18184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } >/dev/null && {
18191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18192          test ! -s conftest.err
18193        }; then
18194   ac_header_preproc=yes
18195 else
18196   $as_echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199   ac_header_preproc=no
18200 fi
18201
18202 rm -f conftest.err conftest.$ac_ext
18203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18204 $as_echo "$ac_header_preproc" >&6; }
18205
18206 # So?  What about this header?
18207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18208   yes:no: )
18209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18213     ac_header_preproc=yes
18214     ;;
18215   no:yes:* )
18216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18219 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18223 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18228
18229     ;;
18230 esac
18231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18232 $as_echo_n "checking for $ac_header... " >&6; }
18233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18234   $as_echo_n "(cached) " >&6
18235 else
18236   eval "$as_ac_Header=\$ac_header_preproc"
18237 fi
18238 ac_res=`eval 'as_val=${'$as_ac_Header'}
18239                  $as_echo "$as_val"'`
18240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18241 $as_echo "$ac_res" >&6; }
18242
18243 fi
18244 as_val=`eval 'as_val=${'$as_ac_Header'}
18245                  $as_echo "$as_val"'`
18246    if test "x$as_val" = x""yes; then
18247   cat >>confdefs.h <<_ACEOF
18248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18249 _ACEOF
18250
18251 fi
18252
18253 done
18254
18255 fi
18256
18257
18258   if test $ac_cv_have_decl_mkdir = yes; then
18259     HAVE_DECL_MKDIR=1
18260   else
18261     HAVE_DECL_MKDIR=0
18262   fi
18263
18264   if test "$ac_cv_header_io_h" = yes; then
18265     HAVE_IO_H=1
18266   else
18267     HAVE_IO_H=0
18268   fi
18269
18270
18271
18272
18273
18274
18275
18276
18277   :
18278
18279
18280
18281
18282
18283
18284
18285      if test $gl_cv_have_include_next = yes; then
18286        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18287      else
18288        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
18289 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18290 if test "${gl_cv_next_sys_stat_h+set}" = set; then
18291   $as_echo_n "(cached) " >&6
18292 else
18293
18294           if test $ac_cv_header_sys_stat_h = yes; then
18295             cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h.  */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h.  */
18301 #include <sys/stat.h>
18302
18303 _ACEOF
18304                                     gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18305                sed -n '\#/sys/stat.h#{
18306                  s#.*"\(.*/sys/stat.h\)".*#\1#
18307                  s#^/[^/]#//&#
18308                  p
18309                  q
18310                }'`'"'
18311           else
18312             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18313           fi
18314
18315 fi
18316 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
18317 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18318      fi
18319      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18320
18321
18322
18323   SYS_STAT_H='sys/stat.h'
18324
18325
18326   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18327 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18328 if test -z "$MKDIR_P"; then
18329   if test "${ac_cv_path_mkdir+set}" = set; then
18330   $as_echo_n "(cached) " >&6
18331 else
18332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337   for ac_prog in mkdir gmkdir; do
18338          for ac_exec_ext in '' $ac_executable_extensions; do
18339            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18340            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18341              'mkdir (GNU coreutils) '* | \
18342              'mkdir (coreutils) '* | \
18343              'mkdir (fileutils) '4.1*)
18344                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18345                break 3;;
18346            esac
18347          done
18348        done
18349 done
18350 IFS=$as_save_IFS
18351
18352 fi
18353
18354   if test "${ac_cv_path_mkdir+set}" = set; then
18355     MKDIR_P="$ac_cv_path_mkdir -p"
18356   else
18357     # As a last resort, use the slow shell script.  Don't cache a
18358     # value for MKDIR_P within a source directory, because that will
18359     # break other packages using the cache if that directory is
18360     # removed, or if the value is a relative name.
18361     test -d ./--version && rmdir ./--version
18362     MKDIR_P="$ac_install_sh -d"
18363   fi
18364 fi
18365 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18366 $as_echo "$MKDIR_P" >&6; }
18367
18368
18369
18370
18371   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18372 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18373 if test -z "$MKDIR_P"; then
18374   if test "${ac_cv_path_mkdir+set}" = set; then
18375   $as_echo_n "(cached) " >&6
18376 else
18377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18378 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18379 do
18380   IFS=$as_save_IFS
18381   test -z "$as_dir" && as_dir=.
18382   for ac_prog in mkdir gmkdir; do
18383          for ac_exec_ext in '' $ac_executable_extensions; do
18384            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18385            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18386              'mkdir (GNU coreutils) '* | \
18387              'mkdir (coreutils) '* | \
18388              'mkdir (fileutils) '4.1*)
18389                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18390                break 3;;
18391            esac
18392          done
18393        done
18394 done
18395 IFS=$as_save_IFS
18396
18397 fi
18398
18399   if test "${ac_cv_path_mkdir+set}" = set; then
18400     MKDIR_P="$ac_cv_path_mkdir -p"
18401   else
18402     # As a last resort, use the slow shell script.  Don't cache a
18403     # value for MKDIR_P within a source directory, because that will
18404     # break other packages using the cache if that directory is
18405     # removed, or if the value is a relative name.
18406     test -d ./--version && rmdir ./--version
18407     MKDIR_P="$ac_install_sh -d"
18408   fi
18409 fi
18410 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18411 $as_echo "$MKDIR_P" >&6; }
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18424
18425
18426   :
18427
18428
18429
18430
18431
18432
18433
18434
18435   :
18436
18437
18438
18439
18440
18441
18442
18443      if test $gl_cv_have_include_next = yes; then
18444        gl_cv_next_unistd_h='<'unistd.h'>'
18445      else
18446        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
18447 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18448 if test "${gl_cv_next_unistd_h+set}" = set; then
18449   $as_echo_n "(cached) " >&6
18450 else
18451
18452           if test $ac_cv_header_unistd_h = yes; then
18453             cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459 #include <unistd.h>
18460
18461 _ACEOF
18462                                     gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18463                sed -n '\#/unistd.h#{
18464                  s#.*"\(.*/unistd.h\)".*#\1#
18465                  s#^/[^/]#//&#
18466                  p
18467                  q
18468                }'`'"'
18469           else
18470             gl_cv_next_unistd_h='<'unistd.h'>'
18471           fi
18472
18473 fi
18474 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
18475 $as_echo "$gl_cv_next_unistd_h" >&6; }
18476      fi
18477      NEXT_UNISTD_H=$gl_cv_next_unistd_h
18478
18479
18480
18481
18482
18483   :
18484
18485
18486
18487
18488
18489   if test $ac_cv_header_unistd_h = yes; then
18490     HAVE_UNISTD_H=1
18491   else
18492     HAVE_UNISTD_H=0
18493   fi
18494
18495
18496
18497
18498
18499   :
18500
18501
18502
18503
18504
18505   if test $ac_cv_func_vasnprintf = no; then
18506
18507
18508   :
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18522
18523
18524
18525
18526
18527
18528
18529
18530   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18531
18532
18533
18534
18535
18536
18537
18538
18539   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18540
18541
18542
18543
18544
18545
18546
18547
18548   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18549
18550   if test $ac_cv_func_vasnprintf = yes; then
18551
18552 cat >>confdefs.h <<\_ACEOF
18553 #define REPLACE_VASNPRINTF 1
18554 _ACEOF
18555
18556   fi
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
18568 $as_echo_n "checking for ptrdiff_t... " >&6; }
18569 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
18570   $as_echo_n "(cached) " >&6
18571 else
18572   ac_cv_type_ptrdiff_t=no
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h.  */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h.  */
18579 $ac_includes_default
18580 int
18581 main ()
18582 {
18583 if (sizeof (ptrdiff_t))
18584        return 0;
18585   ;
18586   return 0;
18587 }
18588 _ACEOF
18589 rm -f conftest.$ac_objext
18590 if { (ac_try="$ac_compile"
18591 case "(($ac_try" in
18592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593   *) ac_try_echo=$ac_try;;
18594 esac
18595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18596 $as_echo "$ac_try_echo") >&5
18597   (eval "$ac_compile") 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } && {
18604          test -z "$ac_c_werror_flag" ||
18605          test ! -s conftest.err
18606        } && test -s conftest.$ac_objext; then
18607   cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h.  */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h.  */
18613 $ac_includes_default
18614 int
18615 main ()
18616 {
18617 if (sizeof ((ptrdiff_t)))
18618           return 0;
18619   ;
18620   return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext
18624 if { (ac_try="$ac_compile"
18625 case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631   (eval "$ac_compile") 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } && {
18638          test -z "$ac_c_werror_flag" ||
18639          test ! -s conftest.err
18640        } && test -s conftest.$ac_objext; then
18641   :
18642 else
18643   $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646         ac_cv_type_ptrdiff_t=yes
18647 fi
18648
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650 else
18651   $as_echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654
18655 fi
18656
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 fi
18659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
18660 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
18661 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
18662   :
18663 else
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define ptrdiff_t long
18667 _ACEOF
18668
18669
18670 fi
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681 for ac_func in snprintf wcslen
18682 do
18683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18685 $as_echo_n "checking for $ac_func... " >&6; }
18686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18687   $as_echo_n "(cached) " >&6
18688 else
18689   cat >conftest.$ac_ext <<_ACEOF
18690 /* confdefs.h.  */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h.  */
18695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18697 #define $ac_func innocuous_$ac_func
18698
18699 /* System header to define __stub macros and hopefully few prototypes,
18700     which can conflict with char $ac_func (); below.
18701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18702     <limits.h> exists even on freestanding compilers.  */
18703
18704 #ifdef __STDC__
18705 # include <limits.h>
18706 #else
18707 # include <assert.h>
18708 #endif
18709
18710 #undef $ac_func
18711
18712 /* Override any GCC internal prototype to avoid an error.
18713    Use char because int might match the return type of a GCC
18714    builtin and then its argument prototype would still apply.  */
18715 #ifdef __cplusplus
18716 extern "C"
18717 #endif
18718 char $ac_func ();
18719 /* The GNU C library defines this for functions which it implements
18720     to always fail with ENOSYS.  Some functions are actually named
18721     something starting with __ and the normal name is an alias.  */
18722 #if defined __stub_$ac_func || defined __stub___$ac_func
18723 choke me
18724 #endif
18725
18726 int
18727 main ()
18728 {
18729 return $ac_func ();
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18741 $as_echo "$ac_try_echo") >&5
18742   (eval "$ac_link") 2>conftest.er1
18743   ac_status=$?
18744   grep -v '^ *+' conftest.er1 >conftest.err
18745   rm -f conftest.er1
18746   cat conftest.err >&5
18747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } && {
18749          test -z "$ac_c_werror_flag" ||
18750          test ! -s conftest.err
18751        } && test -s conftest$ac_exeext && {
18752          test "$cross_compiling" = yes ||
18753          $as_test_x conftest$ac_exeext
18754        }; then
18755   eval "$as_ac_var=yes"
18756 else
18757   $as_echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760         eval "$as_ac_var=no"
18761 fi
18762
18763 rm -rf conftest.dSYM
18764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18765       conftest$ac_exeext conftest.$ac_ext
18766 fi
18767 ac_res=`eval 'as_val=${'$as_ac_var'}
18768                  $as_echo "$as_val"'`
18769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18770 $as_echo "$ac_res" >&6; }
18771 as_val=`eval 'as_val=${'$as_ac_var'}
18772                  $as_echo "$as_val"'`
18773    if test "x$as_val" = x""yes; then
18774   cat >>confdefs.h <<_ACEOF
18775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18776 _ACEOF
18777
18778 fi
18779 done
18780
18781       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18782 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18783 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18784   $as_echo_n "(cached) " >&6
18785 else
18786   cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792 #include <stdio.h>
18793
18794 int
18795 main ()
18796 {
18797 #ifndef _snprintf
18798   (void) _snprintf;
18799 #endif
18800
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext
18806 if { (ac_try="$ac_compile"
18807 case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18812 $as_echo "$ac_try_echo") >&5
18813   (eval "$ac_compile") 2>conftest.er1
18814   ac_status=$?
18815   grep -v '^ *+' conftest.er1 >conftest.err
18816   rm -f conftest.er1
18817   cat conftest.err >&5
18818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } && {
18820          test -z "$ac_c_werror_flag" ||
18821          test ! -s conftest.err
18822        } && test -s conftest.$ac_objext; then
18823   ac_cv_have_decl__snprintf=yes
18824 else
18825   $as_echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18827
18828         ac_cv_have_decl__snprintf=no
18829 fi
18830
18831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18832 fi
18833 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18834 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18835 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18836
18837 cat >>confdefs.h <<_ACEOF
18838 #define HAVE_DECL__SNPRINTF 1
18839 _ACEOF
18840
18841
18842 else
18843   cat >>confdefs.h <<_ACEOF
18844 #define HAVE_DECL__SNPRINTF 0
18845 _ACEOF
18846
18847
18848 fi
18849
18850
18851
18852
18853
18854
18855   fi
18856
18857
18858
18859   CFLAG_VISIBILITY=
18860   HAVE_VISIBILITY=0
18861   if test -n "$GCC"; then
18862     { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
18863 $as_echo_n "checking for simple visibility declarations... " >&6; }
18864     if test "${gl_cv_cc_visibility+set}" = set; then
18865   $as_echo_n "(cached) " >&6
18866 else
18867
18868       gl_save_CFLAGS="$CFLAGS"
18869       CFLAGS="$CFLAGS -fvisibility=hidden"
18870       cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18877          extern __attribute__((__visibility__("default"))) int exportedvar;
18878          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18879          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18880 int
18881 main ()
18882 {
18883
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18895 $as_echo "$ac_try_echo") >&5
18896   (eval "$ac_compile") 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } && {
18903          test -z "$ac_c_werror_flag" ||
18904          test ! -s conftest.err
18905        } && test -s conftest.$ac_objext; then
18906   gl_cv_cc_visibility=yes
18907 else
18908   $as_echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911         gl_cv_cc_visibility=no
18912 fi
18913
18914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18915       CFLAGS="$gl_save_CFLAGS"
18916 fi
18917
18918     { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
18919 $as_echo "$gl_cv_cc_visibility" >&6; }
18920     if test $gl_cv_cc_visibility = yes; then
18921       CFLAG_VISIBILITY="-fvisibility=hidden"
18922       HAVE_VISIBILITY=1
18923     fi
18924   fi
18925
18926
18927
18928 cat >>confdefs.h <<_ACEOF
18929 #define HAVE_VISIBILITY $HAVE_VISIBILITY
18930 _ACEOF
18931
18932
18933
18934
18935   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
18936 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
18937 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
18938   $as_echo_n "(cached) " >&6
18939 else
18940   cat >conftest.$ac_ext <<_ACEOF
18941 #include <wchar.h>
18942 wchar_t w;
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (ac_try="$ac_compile"
18946 case "(($ac_try" in
18947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948   *) ac_try_echo=$ac_try;;
18949 esac
18950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952   (eval "$ac_compile") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } && {
18959          test -z "$ac_c_werror_flag" ||
18960          test ! -s conftest.err
18961        } && test -s conftest.$ac_objext; then
18962   gl_cv_header_wchar_h_standalone=yes
18963 else
18964   $as_echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967         gl_cv_header_wchar_h_standalone=no
18968 fi
18969
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971 fi
18972 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
18973 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
18974   if test $gl_cv_header_wchar_h_standalone != yes; then
18975     WCHAR_H=wchar.h
18976   fi
18977
18978
18979   :
18980
18981
18982
18983
18984
18985   if test $ac_cv_header_wchar_h = yes; then
18986     HAVE_WCHAR_H=1
18987   else
18988     HAVE_WCHAR_H=0
18989   fi
18990
18991
18992
18993
18994   :
18995
18996
18997
18998
18999
19000
19001
19002      if test $gl_cv_have_include_next = yes; then
19003        gl_cv_next_wchar_h='<'wchar.h'>'
19004      else
19005        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
19006 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19007 if test "${gl_cv_next_wchar_h+set}" = set; then
19008   $as_echo_n "(cached) " >&6
19009 else
19010
19011           if test $ac_cv_header_wchar_h = yes; then
19012             cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018 #include <wchar.h>
19019
19020 _ACEOF
19021                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19022                sed -n '\#/wchar.h#{
19023                  s#.*"\(.*/wchar.h\)".*#\1#
19024                  s#^/[^/]#//&#
19025                  p
19026                  q
19027                }'`'"'
19028           else
19029             gl_cv_next_wchar_h='<'wchar.h'>'
19030           fi
19031
19032 fi
19033 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
19034 $as_echo "$gl_cv_next_wchar_h" >&6; }
19035      fi
19036      NEXT_WCHAR_H=$gl_cv_next_wchar_h
19037
19038
19039
19040
19041
19042
19043
19044
19045 for ac_header in stdint.h
19046 do
19047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19049   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19050 $as_echo_n "checking for $ac_header... " >&6; }
19051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19052   $as_echo_n "(cached) " >&6
19053 fi
19054 ac_res=`eval 'as_val=${'$as_ac_Header'}
19055                  $as_echo "$as_val"'`
19056                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19057 $as_echo "$ac_res" >&6; }
19058 else
19059   # Is the header compilable?
19060 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19061 $as_echo_n "checking $ac_header usability... " >&6; }
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068 $ac_includes_default
19069 #include <$ac_header>
19070 _ACEOF
19071 rm -f conftest.$ac_objext
19072 if { (ac_try="$ac_compile"
19073 case "(($ac_try" in
19074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075   *) ac_try_echo=$ac_try;;
19076 esac
19077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19078 $as_echo "$ac_try_echo") >&5
19079   (eval "$ac_compile") 2>conftest.er1
19080   ac_status=$?
19081   grep -v '^ *+' conftest.er1 >conftest.err
19082   rm -f conftest.er1
19083   cat conftest.err >&5
19084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } && {
19086          test -z "$ac_c_werror_flag" ||
19087          test ! -s conftest.err
19088        } && test -s conftest.$ac_objext; then
19089   ac_header_compiler=yes
19090 else
19091   $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094         ac_header_compiler=no
19095 fi
19096
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19099 $as_echo "$ac_header_compiler" >&6; }
19100
19101 # Is the header present?
19102 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19103 $as_echo_n "checking $ac_header presence... " >&6; }
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110 #include <$ac_header>
19111 _ACEOF
19112 if { (ac_try="$ac_cpp conftest.$ac_ext"
19113 case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19118 $as_echo "$ac_try_echo") >&5
19119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19120   ac_status=$?
19121   grep -v '^ *+' conftest.er1 >conftest.err
19122   rm -f conftest.er1
19123   cat conftest.err >&5
19124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); } >/dev/null && {
19126          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19127          test ! -s conftest.err
19128        }; then
19129   ac_header_preproc=yes
19130 else
19131   $as_echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134   ac_header_preproc=no
19135 fi
19136
19137 rm -f conftest.err conftest.$ac_ext
19138 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19139 $as_echo "$ac_header_preproc" >&6; }
19140
19141 # So?  What about this header?
19142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19143   yes:no: )
19144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19145 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19148     ac_header_preproc=yes
19149     ;;
19150   no:yes:* )
19151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19152 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19153     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19154 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19156 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19158 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19159     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19161     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19162 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19163
19164     ;;
19165 esac
19166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19167 $as_echo_n "checking for $ac_header... " >&6; }
19168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19169   $as_echo_n "(cached) " >&6
19170 else
19171   eval "$as_ac_Header=\$ac_header_preproc"
19172 fi
19173 ac_res=`eval 'as_val=${'$as_ac_Header'}
19174                  $as_echo "$as_val"'`
19175                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19176 $as_echo "$ac_res" >&6; }
19177
19178 fi
19179 as_val=`eval 'as_val=${'$as_ac_Header'}
19180                  $as_echo "$as_val"'`
19181    if test "x$as_val" = x""yes; then
19182   cat >>confdefs.h <<_ACEOF
19183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19184 _ACEOF
19185
19186 fi
19187
19188 done
19189
19190
19191
19192
19193
19194
19195   gltests_libdeps=
19196   gltests_ltlibdeps=
19197
19198
19199
19200   gl_source_base='tests'
19201
19202
19203
19204
19205
19206
19207
19208
19209     # support deprecated ./configure flags to set various compiler flags
19210
19211
19212 # Check whether --with-cflags was given.
19213 if test "${with_cflags+set}" = set; then
19214   withval=$with_cflags;
19215             case "$withval" in
19216             "" | y | ye | yes | n | no)
19217                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
19218 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
19219    { (exit 1); exit 1; }; }
19220                 ;;
19221             esac
19222
19223             CFLAGS="$withval"
19224
19225 fi
19226
19227
19228
19229 # Check whether --with-includes was given.
19230 if test "${with_includes+set}" = set; then
19231   withval=$with_includes;
19232             case "$withval" in
19233             "" | y | ye | yes | n | no)
19234                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
19235 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
19236    { (exit 1); exit 1; }; }
19237               ;;
19238             esac
19239
19240             for dir in $withval; do
19241                 if test -d "$dir"; then
19242                     CPPFLAGS="$CPPFLAGS -I$dir"
19243                 else
19244
19245     { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
19246 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19247
19248
19249     cat <<AAW_EOF >>config.warnings
19250 Include directory $dir does not exist.
19251 AAW_EOF
19252
19253
19254                 fi
19255             done
19256
19257 fi
19258
19259
19260
19261 # Check whether --with-libraries was given.
19262 if test "${with_libraries+set}" = set; then
19263   withval=$with_libraries;
19264             case "$withval" in
19265             "" | y | ye | yes | n | no)
19266                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
19267 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
19268    { (exit 1); exit 1; }; }
19269               ;;
19270             esac
19271
19272             for dir in $withval; do
19273                 if test -d "$dir"; then
19274                     case "$target" in
19275                       *-solaris2*,*-netbsd*)
19276                             LDFLAGS="$LDFLAGS -R$dir"
19277                             ;;
19278                     esac
19279                     LDFLAGS="$LDFLAGS -L$dir"
19280                 else
19281
19282     { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
19283 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19284
19285
19286     cat <<AAW_EOF >>config.warnings
19287 Library directory $dir does not exist.
19288 AAW_EOF
19289
19290
19291                 fi
19292             done
19293
19294 fi
19295
19296
19297     # Disable strict-aliasing optimizations
19298
19299     # test for -W'feature', then add the 'no-' version.
19300
19301
19302
19303     { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
19304 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19305     if test "x$GCC" = "xyes"; then
19306                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19307            $CC -v --help 2>&1) |
19308          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19309                 if test $? -eq 0; then
19310             found_warning=yes
19311             { $as_echo "$as_me:$LINENO: result: yes" >&5
19312 $as_echo "yes" >&6; }
19313         else
19314             found_warning=no
19315             { $as_echo "$as_me:$LINENO: result: no" >&5
19316 $as_echo "no" >&6; }
19317         fi
19318     else
19319         found_warning=no
19320         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19321 $as_echo "no (not using gcc)" >&6; }
19322     fi
19323
19324     if test x"$found_warning" = x"yes"; then
19325         CFLAGS="$CFLAGS -fno-strict-aliasing"
19326
19327         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19328
19329
19330     else
19331         :
19332     fi
19333
19334
19335
19336     # Warn for just about everything
19337
19338
19339
19340
19341     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
19342 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19343     if test "x$GCC" = "xyes"; then
19344                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19345            $CC -v --help 2>&1) |
19346          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19347                 if test $? -eq 0; then
19348             found_warning=yes
19349             { $as_echo "$as_me:$LINENO: result: yes" >&5
19350 $as_echo "yes" >&6; }
19351         else
19352             found_warning=no
19353             { $as_echo "$as_me:$LINENO: result: no" >&5
19354 $as_echo "no" >&6; }
19355         fi
19356     else
19357         found_warning=no
19358         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19359 $as_echo "no (not using gcc)" >&6; }
19360     fi
19361
19362     if test x"$found_warning" = x"yes"; then
19363         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19364
19365
19366     else
19367         :
19368     fi
19369
19370
19371
19372     # And add any extra warnings too
19373
19374
19375
19376     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
19377 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19378     if test "x$GCC" = "xyes"; then
19379                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19380            $CC -v --help 2>&1) |
19381          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19382                 if test $? -eq 0; then
19383             found_warning=yes
19384             { $as_echo "$as_me:$LINENO: result: yes" >&5
19385 $as_echo "yes" >&6; }
19386         else
19387             found_warning=no
19388             { $as_echo "$as_me:$LINENO: result: no" >&5
19389 $as_echo "no" >&6; }
19390         fi
19391     else
19392         found_warning=no
19393         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19394 $as_echo "no (not using gcc)" >&6; }
19395     fi
19396
19397     if test x"$found_warning" = x"yes"; then
19398         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19399
19400
19401     else
19402
19403
19404
19405     { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
19406 $as_echo_n "checking for gcc flag -W... " >&6; }
19407     if test "x$GCC" = "xyes"; then
19408                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19409            $CC -v --help 2>&1) |
19410          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19411                 if test $? -eq 0; then
19412             found_warning=yes
19413             { $as_echo "$as_me:$LINENO: result: yes" >&5
19414 $as_echo "yes" >&6; }
19415         else
19416             found_warning=no
19417             { $as_echo "$as_me:$LINENO: result: no" >&5
19418 $as_echo "no" >&6; }
19419         fi
19420     else
19421         found_warning=no
19422         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19423 $as_echo "no (not using gcc)" >&6; }
19424     fi
19425
19426     if test x"$found_warning" = x"yes"; then
19427         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19428
19429
19430     else
19431         :
19432     fi
19433
19434
19435     fi
19436
19437
19438
19439 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19440
19441
19442
19443 #
19444 # Configuration flags (--with-xxx and --enable-xxx)
19445 #
19446
19447
19448
19449 # Check whether --with-user was given.
19450 if test "${with_user+set}" = set; then
19451   withval=$with_user;
19452             case "$withval" in
19453                 "" | y | ye | yes | n | no)
19454                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
19455 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
19456    { (exit 1); exit 1; }; }
19457                   ;;
19458                 *)
19459                     CLIENT_LOGIN="$withval"
19460                   ;;
19461             esac
19462
19463 else
19464
19465
19466     { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
19467 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
19468
19469
19470     cat <<AAW_EOF >>config.warnings
19471 no user specified (--with-user) -- using 'amanda'
19472 AAW_EOF
19473
19474
19475             CLIENT_LOGIN=amanda
19476
19477
19478 fi
19479
19480
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define CLIENT_LOGIN "$CLIENT_LOGIN"
19484 _ACEOF
19485
19486
19487
19488
19489
19490 # Check whether --with-group was given.
19491 if test "${with_group+set}" = set; then
19492   withval=$with_group;
19493             case "$withval" in
19494                 "" | y | ye | yes | n | no)
19495                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
19496 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
19497    { (exit 1); exit 1; }; }
19498                   ;;
19499                 *) SETUID_GROUP="$withval"
19500                   ;;
19501             esac
19502
19503 else
19504
19505
19506     { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
19507 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
19508
19509
19510     cat <<AAW_EOF >>config.warnings
19511 no group specified (--with-group) -- using 'backup'
19512 AAW_EOF
19513
19514
19515             CLIENT_LOGIN=backup
19516
19517
19518 fi
19519
19520
19521
19522
19523
19524 # Check whether --with-dumperdir was given.
19525 if test "${with_dumperdir+set}" = set; then
19526   withval=$with_dumperdir;
19527
19528     { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
19529 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
19530
19531
19532     cat <<AAW_EOF >>config.warnings
19533 --with-dumperdir is no longer used.
19534 AAW_EOF
19535
19536
19537
19538
19539 fi
19540
19541
19542
19543
19544 # Check whether --with-configdir was given.
19545 if test "${with_configdir+set}" = set; then
19546   withval=$with_configdir;
19547             case "$withval" in
19548             "" | y | ye | yes | n | no)
19549                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
19550 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
19551    { (exit 1); exit 1; }; }
19552               ;;
19553             *) CONFIG_DIR="$withval"
19554               ;;
19555             esac
19556
19557 else
19558
19559             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
19560
19561
19562 fi
19563
19564
19565   prefix_NONE=
19566   exec_prefix_NONE=
19567   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19568   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19569   eval ac_define_dir="\"$CONFIG_DIR\""
19570   eval ac_define_dir="\"$ac_define_dir\""
19571   CONFIG_DIR="$ac_define_dir"
19572
19573
19574 cat >>confdefs.h <<_ACEOF
19575 #define CONFIG_DIR "$ac_define_dir"
19576 _ACEOF
19577
19578   test "$prefix_NONE" && prefix=NONE
19579   test "$exec_prefix_NONE" && exec_prefix=NONE
19580
19581
19582
19583
19584 # Check whether --with-indexdir was given.
19585 if test "${with_indexdir+set}" = set; then
19586   withval=$with_indexdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
19587 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
19588    { (exit 1); exit 1; }; }
19589
19590 fi
19591
19592
19593
19594
19595 # Check whether --with-dbdir was given.
19596 if test "${with_dbdir+set}" = set; then
19597   withval=$with_dbdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
19598 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
19599    { (exit 1); exit 1; }; }
19600
19601 fi
19602
19603
19604
19605
19606 # Check whether --with-logdir was given.
19607 if test "${with_logdir+set}" = set; then
19608   withval=$with_logdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
19609 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
19610    { (exit 1); exit 1; }; }
19611
19612 fi
19613
19614
19615
19616
19617 # Check whether --with-suffixes was given.
19618 if test "${with_suffixes+set}" = set; then
19619   withval=$with_suffixes; USE_VERSION_SUFFIXES=$withval
19620 else
19621   : ${USE_VERSION_SUFFIXES=no}
19622
19623 fi
19624
19625
19626     case "$USE_VERSION_SUFFIXES" in
19627     y | ye | yes) USE_VERSION_SUFFIXES=yes
19628
19629 cat >>confdefs.h <<\_ACEOF
19630 #define USE_VERSION_SUFFIXES 1
19631 _ACEOF
19632
19633
19634         program_suffix="-$VERSION_SUFFIX"
19635         # This is from the output of configure.in.
19636         if test "x$program_transform_name" = xs,x,x,; then
19637             program_transform_name=
19638         else
19639             # Double any \ or $.  echo might interpret backslashes.
19640             cat <<\EOF_SED > conftestsed
19641 s,\\,\\\\,g; s,\$,$$,g
19642 EOF_SED
19643             program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19644             rm -f conftestsed
19645         fi
19646         test "x$program_prefix" != xNONE &&
19647             program_transform_name="s,^,${program_prefix},; $program_transform_name"
19648         # Use a double $ so make ignores it.
19649         test "x$program_suffix" != xNONE &&
19650             program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
19651
19652         # sed with no file args requires a program.
19653         test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
19654         # Remove empty command
19655         cat <<\EOF_SED > conftestsed
19656 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
19657 EOF_SED
19658         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19659         rm -f conftestsed
19660       ;;
19661     n | no) USE_VERSION_SUFFIXES=no
19662       ;;
19663     *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
19664 $as_echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
19665    { (exit 1); exit 1; }; }
19666       ;;
19667     esac
19668
19669
19670
19671
19672
19673 # Check whether --with-gnutar-listdir was given.
19674 if test "${with_gnutar_listdir+set}" = set; then
19675   withval=$with_gnutar_listdir;
19676             case "$withval" in
19677                 n | no) GNUTAR_LISTDIR= ;;
19678                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
19679                 *) GNUTAR_LISTDIR="$withval" ;;
19680             esac
19681
19682 else
19683
19684             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
19685
19686
19687 fi
19688
19689
19690     # substitute $prefix, etc. if necessary
19691
19692   prefix_NONE=
19693   exec_prefix_NONE=
19694   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19695   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19696   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
19697   eval ac_define_dir="\"$ac_define_dir\""
19698   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
19699
19700
19701 cat >>confdefs.h <<_ACEOF
19702 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
19703 _ACEOF
19704
19705   test "$prefix_NONE" && prefix=NONE
19706   test "$exec_prefix_NONE" && exec_prefix=NONE
19707
19708
19709     # handle deprecated option
19710
19711 # Check whether --with-gnutar-listed-incremental was given.
19712 if test "${with_gnutar_listed_incremental+set}" = set; then
19713   withval=$with_gnutar_listed_incremental;
19714             { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
19715 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
19716    { (exit 1); exit 1; }; }
19717
19718
19719 fi
19720
19721
19722
19723
19724 # Check whether --with-tmpdir was given.
19725 if test "${with_tmpdir+set}" = set; then
19726   withval=$with_tmpdir;
19727             tmpdir="$withval"
19728
19729 else
19730
19731             tmpdir=yes
19732
19733
19734 fi
19735
19736
19737     case "$tmpdir" in
19738         n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
19739 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
19740    { (exit 1); exit 1; }; };;
19741         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
19742         *) AMANDA_TMPDIR="$tmpdir";;
19743     esac
19744
19745
19746   prefix_NONE=
19747   exec_prefix_NONE=
19748   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19749   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19750   eval ac_define_dir="\"$AMANDA_TMPDIR\""
19751   eval ac_define_dir="\"$ac_define_dir\""
19752   AMANDA_TMPDIR="$ac_define_dir"
19753
19754
19755 cat >>confdefs.h <<_ACEOF
19756 #define AMANDA_TMPDIR "$ac_define_dir"
19757 _ACEOF
19758
19759   test "$prefix_NONE" && prefix=NONE
19760   test "$exec_prefix_NONE" && exec_prefix=NONE
19761
19762
19763
19764
19765 # Check whether --with-force-uid was given.
19766 if test "${with_force_uid+set}" = set; then
19767   withval=$with_force_uid; CHECK_USERID="$withval"
19768 else
19769   : ${CHECK_USERID=yes}
19770
19771 fi
19772
19773     case "$CHECK_USERID" in
19774         y | ye | yes)
19775             CHECK_USERID=1
19776
19777 cat >>confdefs.h <<\_ACEOF
19778 #define CHECK_USERID 1
19779 _ACEOF
19780
19781           ;;
19782         n | no) :
19783             CHECK_USERID=
19784           ;;
19785         *)
19786             { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
19787 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
19788    { (exit 1); exit 1; }; }
19789     esac
19790
19791
19792
19793
19794
19795 # Check whether --with-owner was given.
19796 if test "${with_owner+set}" = set; then
19797   withval=$with_owner;
19798             case "$withval" in
19799             "" | y | ye | yes | n | no)
19800                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
19801 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
19802    { (exit 1); exit 1; }; }
19803               ;;
19804             *) BINARY_OWNER="$withval"
19805               ;;
19806             esac
19807
19808 else
19809
19810             BINARY_OWNER="$CLIENT_LOGIN"
19811
19812
19813 fi
19814
19815
19816 cat >>confdefs.h <<_ACEOF
19817 #define BINARY_OWNER "$BINARY_OWNER"
19818 _ACEOF
19819
19820
19821
19822
19823
19824 # Check whether --with-fqdn was given.
19825 if test "${with_fqdn+set}" = set; then
19826   withval=$with_fqdn;  USE_FQDN=$withval
19827 else
19828    USE_FQDN=no
19829 fi
19830
19831
19832     case "$USE_FQDN" in
19833     n | no) : ;;
19834     y |  ye | yes)
19835
19836 cat >>confdefs.h <<\_ACEOF
19837 #define USE_FQDN 1
19838 _ACEOF
19839
19840       ;;
19841     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
19842 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
19843    { (exit 1); exit 1; }; }
19844       ;;
19845     esac
19846
19847
19848
19849 # Check whether --with-reuseports was given.
19850 if test "${with_reuseports+set}" = set; then
19851   withval=$with_reuseports;  case "$withval" in
19852             y | ye | yes) USE_REUSEADDR=no;;
19853             n | no) USE_REUSEADDR=yes;;
19854             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
19855 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
19856    { (exit 1); exit 1; }; };;
19857           esac
19858
19859 else
19860    USE_REUSEADDR=yes;
19861 fi
19862
19863     if test x"$USE_REUSEADDR" = x"yes"; then
19864
19865 cat >>confdefs.h <<\_ACEOF
19866 #define USE_REUSEADDR 1
19867 _ACEOF
19868
19869     fi
19870
19871
19872
19873 # Check whether --with-low-tcpportrange was given.
19874 if test "${with_low_tcpportrange+set}" = set; then
19875   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
19876 else
19877    LOW_TCPPORTRANGE=unlimited
19878 fi
19879
19880
19881     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
19882         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19883             { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
19884 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
19885    { (exit 1); exit 1; }; }
19886         fi
19887         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
19888         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
19889         if test $min_low_tcp_port -gt $max_low_tcp_port; then
19890             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
19891 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
19892    { (exit 1); exit 1; }; }
19893         fi
19894         if test $min_low_tcp_port -lt 512; then
19895
19896     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
19897 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
19898
19899
19900     cat <<AAW_EOF >>config.warnings
19901 the low TCP port range should be 512 or greater in --with-low-tcpportrange
19902 AAW_EOF
19903
19904
19905         fi
19906         if test $max_low_tcp_port -ge 1024; then
19907
19908     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
19909 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
19910
19911
19912     cat <<AAW_EOF >>config.warnings
19913 the low TCP port range should be less than 1024 in --with-low-tcpportrange
19914 AAW_EOF
19915
19916
19917         fi
19918
19919 cat >>confdefs.h <<_ACEOF
19920 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
19921 _ACEOF
19922
19923     fi
19924
19925
19926 # Check whether --with-tcpportrange was given.
19927 if test "${with_tcpportrange+set}" = set; then
19928   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
19929 else
19930    TCPPORTRANGE="unlimited"
19931 fi
19932
19933
19934     if test x"$TCPPORTRANGE" != x"unlimited"; then
19935         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19936             { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
19937 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
19938    { (exit 1); exit 1; }; }
19939         fi
19940         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
19941         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
19942         if test $min_tcp_port -gt $max_tcp_port; then
19943             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
19944 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
19945    { (exit 1); exit 1; }; }
19946         fi
19947         if test $min_tcp_port -lt 1024; then
19948
19949     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
19950 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
19951
19952
19953     cat <<AAW_EOF >>config.warnings
19954 the TCP port range should be 1024 or greater in --with-tcpportrange
19955 AAW_EOF
19956
19957
19958         fi
19959         if test $max_tcp_port -ge 65536; then
19960
19961     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
19962 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
19963
19964
19965     cat <<AAW_EOF >>config.warnings
19966 the TCP port range should be less than 65536 in --with-tcpportrange
19967 AAW_EOF
19968
19969
19970         fi
19971
19972 cat >>confdefs.h <<_ACEOF
19973 #define TCPPORTRANGE $TCPPORTRANGE
19974 _ACEOF
19975
19976     fi
19977
19978
19979 # Check whether --with-udpportrange was given.
19980 if test "${with_udpportrange+set}" = set; then
19981   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
19982 else
19983    UDPPORTRANGE="unlimited"
19984 fi
19985
19986     if test x"$UDPPORTRANGE" != x"unlimited"; then
19987         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19988             { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
19989 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
19990    { (exit 1); exit 1; }; }
19991         fi
19992         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
19993         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
19994         if test $min_udp_port -gt $max_udp_port; then
19995             { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
19996 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
19997    { (exit 1); exit 1; }; }
19998         fi
19999         if test $max_udp_port -ge 1024; then
20000
20001     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20002 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20003
20004
20005     cat <<AAW_EOF >>config.warnings
20006 the UDP port range should be less than 1025 in --with-udpportrange
20007 AAW_EOF
20008
20009
20010         fi
20011         if test $min_udp_port -le 0; then
20012
20013     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20014 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20015
20016
20017     cat <<AAW_EOF >>config.warnings
20018 the UDP port range should be greater than 0 in --with-udpportrange
20019 AAW_EOF
20020
20021
20022         fi
20023
20024 cat >>confdefs.h <<_ACEOF
20025 #define UDPPORTRANGE $UDPPORTRANGE
20026 _ACEOF
20027
20028     fi
20029
20030
20031
20032
20033
20034
20035 # Check whether --with-buffered-dump was given.
20036 if test "${with_buffered_dump+set}" = set; then
20037   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
20038 else
20039    DUMPER_SOCKET_BUFFERING=no
20040 fi
20041
20042     case "$DUMPER_SOCKET_BUFFERING" in
20043     n | no) ;;
20044     y | ye | yes)
20045
20046 cat >>confdefs.h <<\_ACEOF
20047 #define DUMPER_SOCKET_BUFFERING 1
20048 _ACEOF
20049
20050       ;;
20051     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
20052 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
20053    { (exit 1); exit 1; }; } ;;
20054     esac
20055
20056
20057
20058 # Check whether --with-maxtapeblocksize was given.
20059 if test "${with_maxtapeblocksize+set}" = set; then
20060   withval=$with_maxtapeblocksize;
20061     { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20062 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20063
20064
20065     cat <<AAW_EOF >>config.warnings
20066 --with-maxtapeblocksize is no longer needed
20067 AAW_EOF
20068
20069
20070
20071 fi
20072
20073
20074
20075     ASSERTIONS=
20076
20077 # Check whether --with-assertions was given.
20078 if test "${with_assertions+set}" = set; then
20079   withval=$with_assertions;
20080             case "$withval" in
20081                 n | no) : ;;
20082                 y |  ye | yes)
20083                     ASSERTIONS=1
20084
20085 cat >>confdefs.h <<\_ACEOF
20086 #define ASSERTIONS 1
20087 _ACEOF
20088
20089                   ;;
20090                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
20091 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
20092    { (exit 1); exit 1; }; }
20093                   ;;
20094             esac
20095
20096
20097 fi
20098
20099
20100
20101
20102
20103
20104 # Check whether --with-debugging was given.
20105 if test "${with_debugging+set}" = set; then
20106   withval=$with_debugging;  debugging="$withval"
20107 else
20108    debugging="yes"
20109
20110 fi
20111
20112
20113     case "$debugging" in
20114         n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
20115 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
20116    { (exit 1); exit 1; }; };;
20117         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20118         *) AMANDA_DBGDIR="$debugging";;
20119     esac
20120
20121     # evaluate any extra variables in the directory
20122
20123   prefix_NONE=
20124   exec_prefix_NONE=
20125   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20126   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20127   eval ac_define_dir="\"$AMANDA_DBGDIR\""
20128   eval ac_define_dir="\"$ac_define_dir\""
20129   AMANDA_DBGDIR="$ac_define_dir"
20130
20131
20132 cat >>confdefs.h <<_ACEOF
20133 #define AMANDA_DBGDIR "$ac_define_dir"
20134 _ACEOF
20135
20136   test "$prefix_NONE" && prefix=NONE
20137   test "$exec_prefix_NONE" && exec_prefix=NONE
20138
20139
20140
20141
20142 # Check whether --with-debug_days was given.
20143 if test "${with_debug_days+set}" = set; then
20144   withval=$with_debug_days;
20145             debug_days="$withval"
20146
20147 else
20148
20149             debug_days="yes"
20150
20151
20152 fi
20153
20154     case "$debug_days" in
20155         n | no)
20156             AMANDA_DEBUG_DAYS=0 ;;
20157         y |  ye | yes)
20158             AMANDA_DEBUG_DAYS=4 ;;
20159         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20160             AMANDA_DEBUG_DAYS="$debug_days" ;;
20161         *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
20162 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
20163    { (exit 1); exit 1; }; }
20164           ;;
20165     esac
20166
20167 cat >>confdefs.h <<_ACEOF
20168 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20169 _ACEOF
20170
20171
20172
20173
20174
20175 # Check whether --with-testing was given.
20176 if test "${with_testing+set}" = set; then
20177   withval=$with_testing;
20178             TESTING="$withval"
20179
20180 else
20181
20182             TESTING="no"
20183
20184
20185 fi
20186
20187     case "$TESTING" in
20188         n | no) SERVICE_SUFFIX="";;
20189         y |  ye | yes) SERVICE_SUFFIX="-test";;
20190         *) SERVICE_SUFFIX="-$TESTING";;
20191     esac
20192
20193     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20194     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20195
20196
20197
20198 cat >>confdefs.h <<_ACEOF
20199 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20200 _ACEOF
20201
20202
20203 cat >>confdefs.h <<_ACEOF
20204 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20205 _ACEOF
20206
20207
20208 cat >>confdefs.h <<_ACEOF
20209 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20210 _ACEOF
20211
20212
20213
20214     SINGLE_USERID=${SINGLE_USERID:-no}
20215     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20216
20217
20218 # Check whether --with-single-userid was given.
20219 if test "${with_single_userid+set}" = set; then
20220   withval=$with_single_userid;    SINGLE_USERID=$withval
20221 fi
20222
20223
20224     case "$target" in
20225         *-pc-cygwin)
20226             WANT_SETUID_CLIENT=false
20227             SINGLE_USERID=yes
20228             ;;
20229     esac
20230
20231     if test x"$WANT_SETUID_CLIENT" = x"true"; then
20232
20233 cat >>confdefs.h <<\_ACEOF
20234 #define WANT_SETUID_CLIENT 1
20235 _ACEOF
20236
20237     fi
20238      if test x"$WANT_SETUID_CLIENT" = x"true"; then
20239   WANT_SETUID_CLIENT_TRUE=
20240   WANT_SETUID_CLIENT_FALSE='#'
20241 else
20242   WANT_SETUID_CLIENT_TRUE='#'
20243   WANT_SETUID_CLIENT_FALSE=
20244 fi
20245
20246
20247     if test x"$SINGLE_USERID" = x"yes"; then
20248
20249 cat >>confdefs.h <<\_ACEOF
20250 #define SINGLE_USERID 1
20251 _ACEOF
20252
20253     fi
20254
20255
20256     WANT_INSTALLPERMS=yes
20257     # Check whether --enable-installperms was given.
20258 if test "${enable_installperms+set}" = set; then
20259   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
20260 else
20261    WANT_INSTALLPERMS="yes"
20262
20263 fi
20264
20265      if test x"$WANT_INSTALLPERMS" = x"yes"; then
20266   WANT_INSTALLPERMS_TRUE=
20267   WANT_INSTALLPERMS_FALSE='#'
20268 else
20269   WANT_INSTALLPERMS_TRUE='#'
20270   WANT_INSTALLPERMS_FALSE=
20271 fi
20272
20273
20274
20275
20276 #
20277 # Set up for Amanda components and modules
20278 #
20279
20280     WANT_SERVER=true
20281
20282 # Check whether --with-server was given.
20283 if test "${with_server+set}" = set; then
20284   withval=$with_server;
20285             case "$withval" in
20286             y | ye | yes) WANT_SERVER=true;;
20287             n | no) WANT_SERVER=false;;
20288             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
20289 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
20290    { (exit 1); exit 1; }; } ;;
20291             esac
20292
20293 fi
20294
20295
20296
20297     WANT_CLIENT=true
20298
20299 # Check whether --with-client was given.
20300 if test "${with_client+set}" = set; then
20301   withval=$with_client;
20302             case "$withval" in
20303             y | ye | yes) WANT_CLIENT=true;;
20304             n | no) WANT_CLIENT=false;;
20305             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
20306 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
20307    { (exit 1); exit 1; }; } ;;
20308             esac
20309
20310 fi
20311
20312
20313
20314
20315     WANT_RESTORE=${WANT_SERVER-true}
20316
20317 # Check whether --with-restore was given.
20318 if test "${with_restore+set}" = set; then
20319   withval=$with_restore;
20320             case "$withval" in
20321             y | ye | yes) WANT_RESTORE=true;;
20322             n | no) WANT_RESTORE=false;;
20323             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
20324 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
20325    { (exit 1); exit 1; }; } ;;
20326             esac
20327
20328 fi
20329
20330
20331
20332
20333     WANT_RECOVER=${WANT_CLIENT-true}
20334
20335 # Check whether --with-amrecover was given.
20336 if test "${with_amrecover+set}" = set; then
20337   withval=$with_amrecover;
20338             case "$withval" in
20339             y | ye | yes) WANT_RECOVER=false;;
20340             n | no) WANT_RECOVER=false;;
20341             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
20342 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
20343    { (exit 1); exit 1; }; } ;;
20344             esac
20345
20346 fi
20347
20348
20349
20350
20351 # Check whether --with-client-only was given.
20352 if test "${with_client_only+set}" = set; then
20353   withval=$with_client_only;    { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
20354 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
20355    { (exit 1); exit 1; }; }
20356
20357 fi
20358
20359
20360
20361
20362 # Check whether --with-server-only was given.
20363 if test "${with_server_only+set}" = set; then
20364   withval=$with_server_only;    { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
20365 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
20366    { (exit 1); exit 1; }; }
20367
20368 fi
20369
20370
20371
20372
20373
20374
20375
20376
20377     # detect invalid combinations of components
20378     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20379         { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
20380 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
20381    { (exit 1); exit 1; }; }
20382     fi
20383     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20384         { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
20385 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
20386    { (exit 1); exit 1; }; }
20387     fi
20388
20389      if $WANT_CLIENT; then
20390   WANT_CLIENT_TRUE=
20391   WANT_CLIENT_FALSE='#'
20392 else
20393   WANT_CLIENT_TRUE='#'
20394   WANT_CLIENT_FALSE=
20395 fi
20396
20397      if $WANT_RESTORE; then
20398   WANT_RESTORE_TRUE=
20399   WANT_RESTORE_FALSE='#'
20400 else
20401   WANT_RESTORE_TRUE='#'
20402   WANT_RESTORE_FALSE=
20403 fi
20404
20405      if $WANT_SERVER; then
20406   WANT_SERVER_TRUE=
20407   WANT_SERVER_FALSE='#'
20408 else
20409   WANT_SERVER_TRUE='#'
20410   WANT_SERVER_FALSE=
20411 fi
20412
20413      if $WANT_RECOVER; then
20414   WANT_RECOVER_TRUE=
20415   WANT_RECOVER_FALSE='#'
20416 else
20417   WANT_RECOVER_TRUE='#'
20418   WANT_RECOVER_FALSE=
20419 fi
20420
20421
20422      if $WANT_SERVER || $WANT_RESTORE; then
20423   WANT_TAPE_TRUE=
20424   WANT_TAPE_FALSE='#'
20425 else
20426   WANT_TAPE_TRUE='#'
20427   WANT_TAPE_FALSE=
20428 fi
20429
20430
20431
20432     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
20433     # expand prefix or exec_prefix in LOCPATH
20434     LOCPATH=`(
20435         test "x$prefix" = xNONE && prefix=$ac_default_prefix
20436         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
20437         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
20438     )`
20439     SYSLOCPATH="$SYSPATH:$LOCPATH"
20440     LOCSYSPATH="$LOCPATH:$SYSPATH"
20441
20442
20443
20444
20445
20446 # Check whether --with-gnuplot was given.
20447 if test "${with_gnuplot+set}" = set; then
20448   withval=$with_gnuplot;
20449             case "$withval" in
20450                 y | ye | yes) : ;;
20451                 n | no) GNUPLOT=no ;;
20452                 *) GNUPLOT="$withval" ;;
20453             esac
20454
20455 fi
20456
20457     if test "x$GNUPLOT" = "xno"; then
20458         GNUPLOT=
20459     else
20460         # Extract the first word of "gnuplot", so it can be a program name with args.
20461 set dummy gnuplot; ac_word=$2
20462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20463 $as_echo_n "checking for $ac_word... " >&6; }
20464 if test "${ac_cv_path_GNUPLOT+set}" = set; then
20465   $as_echo_n "(cached) " >&6
20466 else
20467   case $GNUPLOT in
20468   [\\/]* | ?:[\\/]*)
20469   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
20470   ;;
20471   *)
20472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20473 for as_dir in $LOCSYSPATH
20474 do
20475   IFS=$as_save_IFS
20476   test -z "$as_dir" && as_dir=.
20477   for ac_exec_ext in '' $ac_executable_extensions; do
20478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20479     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
20480     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20481     break 2
20482   fi
20483 done
20484 done
20485 IFS=$as_save_IFS
20486
20487   ;;
20488 esac
20489 fi
20490 GNUPLOT=$ac_cv_path_GNUPLOT
20491 if test -n "$GNUPLOT"; then
20492   { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
20493 $as_echo "$GNUPLOT" >&6; }
20494 else
20495   { $as_echo "$as_me:$LINENO: result: no" >&5
20496 $as_echo "no" >&6; }
20497 fi
20498
20499
20500     fi
20501
20502
20503
20504
20505
20506
20507     # Extract the first word of "pcat", so it can be a program name with args.
20508 set dummy pcat; ac_word=$2
20509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20510 $as_echo_n "checking for $ac_word... " >&6; }
20511 if test "${ac_cv_path_PCAT+set}" = set; then
20512   $as_echo_n "(cached) " >&6
20513 else
20514   case $PCAT in
20515   [\\/]* | ?:[\\/]*)
20516   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
20517   ;;
20518   *)
20519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20520 for as_dir in $LOCSYSPATH
20521 do
20522   IFS=$as_save_IFS
20523   test -z "$as_dir" && as_dir=.
20524   for ac_exec_ext in '' $ac_executable_extensions; do
20525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20526     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
20527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20528     break 2
20529   fi
20530 done
20531 done
20532 IFS=$as_save_IFS
20533
20534   ;;
20535 esac
20536 fi
20537 PCAT=$ac_cv_path_PCAT
20538 if test -n "$PCAT"; then
20539   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
20540 $as_echo "$PCAT" >&6; }
20541 else
20542   { $as_echo "$as_me:$LINENO: result: no" >&5
20543 $as_echo "no" >&6; }
20544 fi
20545
20546
20547
20548
20549
20550     # Extract the first word of "compress", so it can be a program name with args.
20551 set dummy compress; ac_word=$2
20552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20553 $as_echo_n "checking for $ac_word... " >&6; }
20554 if test "${ac_cv_path_COMPRESS+set}" = set; then
20555   $as_echo_n "(cached) " >&6
20556 else
20557   case $COMPRESS in
20558   [\\/]* | ?:[\\/]*)
20559   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
20560   ;;
20561   *)
20562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20563 for as_dir in $LOCSYSPATH
20564 do
20565   IFS=$as_save_IFS
20566   test -z "$as_dir" && as_dir=.
20567   for ac_exec_ext in '' $ac_executable_extensions; do
20568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20569     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
20570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20571     break 2
20572   fi
20573 done
20574 done
20575 IFS=$as_save_IFS
20576
20577   ;;
20578 esac
20579 fi
20580 COMPRESS=$ac_cv_path_COMPRESS
20581 if test -n "$COMPRESS"; then
20582   { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
20583 $as_echo "$COMPRESS" >&6; }
20584 else
20585   { $as_echo "$as_me:$LINENO: result: no" >&5
20586 $as_echo "no" >&6; }
20587 fi
20588
20589
20590
20591
20592
20593     # Extract the first word of "gzip", so it can be a program name with args.
20594 set dummy gzip; ac_word=$2
20595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20596 $as_echo_n "checking for $ac_word... " >&6; }
20597 if test "${ac_cv_path_GZIP+set}" = set; then
20598   $as_echo_n "(cached) " >&6
20599 else
20600   case $GZIP in
20601   [\\/]* | ?:[\\/]*)
20602   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20603   ;;
20604   *)
20605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20606 for as_dir in $LOCSYSPATH
20607 do
20608   IFS=$as_save_IFS
20609   test -z "$as_dir" && as_dir=.
20610   for ac_exec_ext in '' $ac_executable_extensions; do
20611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20612     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20614     break 2
20615   fi
20616 done
20617 done
20618 IFS=$as_save_IFS
20619
20620   ;;
20621 esac
20622 fi
20623 GZIP=$ac_cv_path_GZIP
20624 if test -n "$GZIP"; then
20625   { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
20626 $as_echo "$GZIP" >&6; }
20627 else
20628   { $as_echo "$as_me:$LINENO: result: no" >&5
20629 $as_echo "no" >&6; }
20630 fi
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641     if test "x$GNUPLOT" != "x"; then
20642         WANT_AMPLOT=true
20643
20644         # variable substitutions for amcat.awk
20645         if test "$PCAT"; then
20646             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
20647         else
20648             AMPLOT_CAT_PACK=
20649         fi
20650         if test "$COMPRESS"; then
20651             AMPLOT_COMPRESS=$COMPRESS
20652             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
20653         else
20654             AMPLOT_CAT_COMPRESS=
20655         fi
20656         if test "$GZIP"; then
20657             AMPLOT_COMPRESS=$GZIP
20658             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
20659         else
20660             AMPLOT_CAT_GZIP=
20661         fi
20662
20663
20664
20665
20666
20667     else
20668         WANT_AMPLOT=false
20669
20670     { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
20671 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
20672
20673
20674     cat <<AAW_EOF >>config.warnings
20675 Not building 'amplot', because gnuplot was not found
20676 AAW_EOF
20677
20678
20679     fi
20680
20681      if test x"$WANT_AMPLOT" = x"true"; then
20682   WANT_AMPLOT_TRUE=
20683   WANT_AMPLOT_FALSE='#'
20684 else
20685   WANT_AMPLOT_TRUE='#'
20686   WANT_AMPLOT_FALSE=
20687 fi
20688
20689
20690
20691     # Check whether --enable-manpage-build was given.
20692 if test "${enable_manpage_build+set}" = set; then
20693   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
20694 else
20695    ENABLE_MANPAGE_BUILD=no
20696 fi
20697
20698
20699     # and ensure that everything docbook-related is OK if we'll be using it
20700     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
20701         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
20702
20703
20704 XSLTPROC_FLAGS="--nonet"
20705
20706
20707 # The (lack of) whitespace and overquoting here are all necessary for
20708 # proper formatting.
20709
20710 # Check whether --with-xsltproc was given.
20711 if test "${with_xsltproc+set}" = set; then
20712   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
20713 else
20714    ac_with_xsltproc=maybe;
20715 fi
20716
20717
20718
20719 # Check whether --with-xsltproc-flags was given.
20720 if test "${with_xsltproc_flags+set}" = set; then
20721   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
20722         XSLTPROC_FLAGS=''
20723     else
20724         if test "x$withval" != "xyes"; then
20725             XSLTPROC_FLAGS="$withval"
20726         fi
20727     fi
20728
20729 fi
20730
20731
20732 # search for xsltproc if it wasn't specified
20733 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
20734     for ac_prog in xsltproc
20735 do
20736   # Extract the first word of "$ac_prog", so it can be a program name with args.
20737 set dummy $ac_prog; ac_word=$2
20738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20741   $as_echo_n "(cached) " >&6
20742 else
20743   case $XSLTPROC in
20744   [\\/]* | ?:[\\/]*)
20745   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20746   ;;
20747   *)
20748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 for as_dir in $LOCSYSPATH
20750 do
20751   IFS=$as_save_IFS
20752   test -z "$as_dir" && as_dir=.
20753   for ac_exec_ext in '' $ac_executable_extensions; do
20754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20755     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20756     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20757     break 2
20758   fi
20759 done
20760 done
20761 IFS=$as_save_IFS
20762
20763   ;;
20764 esac
20765 fi
20766 XSLTPROC=$ac_cv_path_XSLTPROC
20767 if test -n "$XSLTPROC"; then
20768   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20769 $as_echo "$XSLTPROC" >&6; }
20770 else
20771   { $as_echo "$as_me:$LINENO: result: no" >&5
20772 $as_echo "no" >&6; }
20773 fi
20774
20775
20776   test -n "$XSLTPROC" && break
20777 done
20778
20779 else
20780     if test "$ac_with_xsltproc" != "no"; then
20781         if test -x "$ac_with_xsltproc"; then
20782             XSLTPROC="$ac_with_xsltproc";
20783         else
20784
20785     { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
20786 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
20787
20788
20789     cat <<AAW_EOF >>config.warnings
20790 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
20791 AAW_EOF
20792
20793
20794             for ac_prog in xsltproc
20795 do
20796   # Extract the first word of "$ac_prog", so it can be a program name with args.
20797 set dummy $ac_prog; ac_word=$2
20798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20799 $as_echo_n "checking for $ac_word... " >&6; }
20800 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20801   $as_echo_n "(cached) " >&6
20802 else
20803   case $XSLTPROC in
20804   [\\/]* | ?:[\\/]*)
20805   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20806   ;;
20807   *)
20808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20809 for as_dir in $LOCSYSPATH
20810 do
20811   IFS=$as_save_IFS
20812   test -z "$as_dir" && as_dir=.
20813   for ac_exec_ext in '' $ac_executable_extensions; do
20814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20815     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20816     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20817     break 2
20818   fi
20819 done
20820 done
20821 IFS=$as_save_IFS
20822
20823   ;;
20824 esac
20825 fi
20826 XSLTPROC=$ac_cv_path_XSLTPROC
20827 if test -n "$XSLTPROC"; then
20828   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20829 $as_echo "$XSLTPROC" >&6; }
20830 else
20831   { $as_echo "$as_me:$LINENO: result: no" >&5
20832 $as_echo "no" >&6; }
20833 fi
20834
20835
20836   test -n "$XSLTPROC" && break
20837 done
20838
20839         fi
20840     fi
20841 fi
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852     { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
20853 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
20854 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
20855   $as_echo_n "(cached) " >&6
20856 else
20857
20858         ac_cv_docbook_xslt_1_72_0=no
20859         if test -n "$XSLTPROC"; then
20860             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
20861             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
20862
20863             if test "$?" = 0; then
20864                 ac_cv_docbook_xslt_1_72_0=yes
20865             fi
20866         fi
20867
20868 fi
20869 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
20870 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
20871
20872     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
20873     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
20874
20875
20876
20877
20878
20879
20880
20881
20882     { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
20883 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
20884 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
20885   $as_echo_n "(cached) " >&6
20886 else
20887
20888         ac_cv_docbook_xslt_current_version=no
20889
20890         if test -n "$XSLTPROC"; then
20891             cat >conftest.xsl <<EOF
20892                 <xsl:stylesheet
20893                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20894                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
20895                     version="1.0">
20896                     <xsl:output method="text"/>
20897                     <xsl:template match="fm:project/fm:Version">
20898                         <xsl:value-of select="." />
20899                     </xsl:template>
20900                     <!-- do nothing with any other text -->
20901                     <xsl:template match="text()"/>
20902                 </xsl:stylesheet>
20903 EOF
20904             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
20905             echo "====" >&5
20906             cat conftest.xsl >&5
20907             echo "====" >&5
20908
20909             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
20910
20911             if test "$?" != 0; then
20912                 ac_cv_docbook_xslt_current_version='no'
20913             fi
20914
20915             rm conftest.xsl
20916         fi
20917
20918 fi
20919 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
20920 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
20921
20922     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
20923     { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
20924 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
20925
20926     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
20927         { $as_echo "$as_me:$LINENO: result: no" >&5
20928 $as_echo "no" >&6; }
20929     else
20930
20931   # Used to indicate true or false condition
20932   ax_compare_version=false
20933
20934   # Convert the two version strings to be compared into a format that
20935   # allows a simple string comparison.  The end result is that a version
20936   # string of the form 1.12.5-r617 will be converted to the form
20937   # 0001001200050617.  In other words, each number is zero padded to four
20938   # digits, and non digits are removed.
20939
20940   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20941                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20942                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20943                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20944                      -e 's/[^0-9]//g'`
20945
20946
20947   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20948                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20949                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20950                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20951                      -e 's/[^0-9]//g'`
20952
20953
20954     ax_compare_version=`echo "x$ax_compare_version_A
20955 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"`
20956
20957
20958
20959     if test "$ax_compare_version" = "true" ; then
20960
20961             # version is less than required, so mark it as "no"
20962             DOCBOOK_XSLT_CURRENT_VERSION=no
20963
20964       fi
20965
20966
20967         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
20968             { $as_echo "$as_me:$LINENO: result: no" >&5
20969 $as_echo "no" >&6; }
20970         else
20971             { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
20972 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
20973         fi
20974     fi
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
20986 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
20987 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
20988   $as_echo_n "(cached) " >&6
20989 else
20990
20991         ac_cv_docbook_dtd_4_1_2=no
20992         if test -n "$XSLTPROC"; then
20993             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
20994             cat <<EOF >conftest.xml
20995 <?xml version="1.0" encoding='ISO-8859-1'?>
20996 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
20997 <book id="empty">
20998 </book>
20999 EOF
21000             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21001             echo "conftest.xml:" >&5
21002             echo "====" >&5
21003             cat conftest.xml >&5
21004             echo "====" >&5
21005
21006             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21007             if test "$?" = 0 -o "$?" = 5; then
21008                 # failing to load the DTD is just a warning, so check for it in the output.
21009                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21010                     : # no good..
21011                 else
21012                     ac_cv_docbook_dtd_4_1_2=yes
21013                 fi
21014             fi
21015             cat conftest.out >&5
21016
21017             rm -f conftest.xml conftest.out
21018         fi
21019
21020 fi
21021 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
21022 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21023
21024     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21025     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
21041 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21042 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
21043   $as_echo_n "(cached) " >&6
21044 else
21045
21046         ac_cv_docbook_dtd_4_2=no
21047         if test -n "$XSLTPROC"; then
21048             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21049             cat <<EOF >conftest.xml
21050 <?xml version="1.0" encoding='ISO-8859-1'?>
21051 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21052 <book id="empty">
21053 </book>
21054 EOF
21055             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21056             echo "conftest.xml:" >&5
21057             echo "====" >&5
21058             cat conftest.xml >&5
21059             echo "====" >&5
21060
21061             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21062             if test "$?" = 0 -o "$?" = 5; then
21063                 # failing to load the DTD is just a warning, so check for it in the output.
21064                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21065                     : # no good..
21066                 else
21067                     ac_cv_docbook_dtd_4_2=yes
21068                 fi
21069             fi
21070             cat conftest.out >&5
21071
21072             rm -f conftest.xml conftest.out
21073         fi
21074
21075 fi
21076 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
21077 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21078
21079     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21080     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21081
21082
21083
21084
21085
21086
21087         if test -z "$XSLTPROC"; then
21088             { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
21089 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
21090    { (exit 1); exit 1; }; }
21091         fi
21092
21093         # if the 'current' Docbook revision is good enough, use that; otherwise,
21094         # if 1.72.0 is available, use that.
21095         XSLREL=current
21096         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21097             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21098                 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
21099 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
21100    { (exit 1); exit 1; }; }
21101             else
21102                 XSLREL=1.72.0
21103             fi
21104         fi
21105
21106         # disable validation if the correct DTDs are not available
21107         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21108
21109     { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21110 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21111
21112
21113     cat <<AAW_EOF >>config.warnings
21114 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21115 AAW_EOF
21116
21117
21118             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21119         fi
21120     fi
21121
21122      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21123   ENABLE_MANPAGE_BUILD_TRUE=
21124   ENABLE_MANPAGE_BUILD_FALSE='#'
21125 else
21126   ENABLE_MANPAGE_BUILD_TRUE='#'
21127   ENABLE_MANPAGE_BUILD_FALSE=
21128 fi
21129
21130
21131
21132
21133
21134     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21135     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21136
21137
21138
21139 # Check whether --with-index-server was given.
21140 if test "${with_index_server+set}" = set; then
21141   withval=$with_index_server;
21142             case "$withval" in
21143             "" | y | ye | yes | n | no)
21144                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
21145 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
21146    { (exit 1); exit 1; }; }
21147               ;;
21148             *) DEFAULT_SERVER="$withval"
21149               ;;
21150             esac
21151
21152 else
21153   : ${DEFAULT_SERVER=`uname -n`}
21154
21155 fi
21156
21157
21158 cat >>confdefs.h <<_ACEOF
21159 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21160 _ACEOF
21161
21162
21163
21164
21165 # Check whether --with-config was given.
21166 if test "${with_config+set}" = set; then
21167   withval=$with_config;
21168             case "$withval" in
21169             "" | y | ye | yes | n | no)
21170                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
21171 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
21172    { (exit 1); exit 1; }; }
21173               ;;
21174             *) DEFAULT_CONFIG="$withval"
21175               ;;
21176             esac
21177
21178 else
21179   : ${DEFAULT_CONFIG=DailySet1}
21180
21181 fi
21182
21183
21184 cat >>confdefs.h <<_ACEOF
21185 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21186 _ACEOF
21187
21188
21189
21190
21191 # Check whether --with-tape-server was given.
21192 if test "${with_tape_server+set}" = set; then
21193   withval=$with_tape_server;
21194             case "$withval" in
21195             "" | y | ye | yes | n | no)
21196                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
21197 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
21198    { (exit 1); exit 1; }; }
21199               ;;
21200             *) DEFAULT_TAPE_SERVER="$withval"
21201               ;;
21202             esac
21203
21204 else
21205   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21206
21207 fi
21208
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21212 _ACEOF
21213
21214
21215
21216
21217 # Check whether --with-tape-device was given.
21218 if test "${with_tape_device+set}" = set; then
21219   withval=$with_tape_device;
21220             case "$withval" in
21221             "" | y | ye | yes | n | no)
21222                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
21223 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
21224    { (exit 1); exit 1; }; }
21225               ;;
21226             *) DEFAULT_TAPE_DEVICE="$withval"
21227               ;;
21228             esac
21229
21230
21231 fi
21232
21233
21234
21235 cat >>confdefs.h <<_ACEOF
21236 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21237 _ACEOF
21238
21239
21240
21241     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21242         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21243     else
21244         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21245     fi
21246
21247
21248
21249 # Check whether --with-changer-device was given.
21250 if test "${with_changer_device+set}" = set; then
21251   withval=$with_changer_device;
21252             case "$withval" in
21253             "" | y | ye | yes | n | no)
21254                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
21255 $as_echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
21256    { (exit 1); exit 1; }; }
21257               ;;
21258             *) DEFAULT_CHANGER_DEVICE="$withval"
21259               ;;
21260             esac
21261
21262
21263 fi
21264
21265
21266     if test -z "$DEFAULT_CHANGER_DEVICE"; then
21267         DEFAULT_CHANGER_DEVICE=/dev/null
21268         if test -f /dev/ch0; then
21269             DEFAULT_CHANGER_DEVICE=/dev/ch0
21270         fi
21271     fi
21272
21273
21274 cat >>confdefs.h <<_ACEOF
21275 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
21276 _ACEOF
21277
21278
21279
21280
21281 # Check whether --with-amandates was given.
21282 if test "${with_amandates+set}" = set; then
21283   withval=$with_amandates;
21284             case "$withval" in
21285                 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
21286 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
21287    { (exit 1); exit 1; }; };;
21288                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21289                 *) amandates="$withval";;
21290             esac
21291
21292 else
21293   amandates='$localstatedir/amanda/amandates'
21294
21295 fi
21296
21297
21298
21299   prefix_NONE=
21300   exec_prefix_NONE=
21301   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21302   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21303   eval ac_define_dir="\"$amandates\""
21304   eval ac_define_dir="\"$ac_define_dir\""
21305   DEFAULT_AMANDATES_FILE="$ac_define_dir"
21306
21307
21308 cat >>confdefs.h <<_ACEOF
21309 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21310 _ACEOF
21311
21312   test "$prefix_NONE" && prefix=NONE
21313   test "$exec_prefix_NONE" && exec_prefix=NONE
21314
21315
21316
21317
21318     # Extract the first word of "getconf", so it can be a program name with args.
21319 set dummy getconf; ac_word=$2
21320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21321 $as_echo_n "checking for $ac_word... " >&6; }
21322 if test "${ac_cv_path_GETCONF+set}" = set; then
21323   $as_echo_n "(cached) " >&6
21324 else
21325   case $GETCONF in
21326   [\\/]* | ?:[\\/]*)
21327   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21328   ;;
21329   *)
21330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21331 for as_dir in $SYSPATH
21332 do
21333   IFS=$as_save_IFS
21334   test -z "$as_dir" && as_dir=.
21335   for ac_exec_ext in '' $ac_executable_extensions; do
21336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21337     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21338     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21339     break 2
21340   fi
21341 done
21342 done
21343 IFS=$as_save_IFS
21344
21345   ;;
21346 esac
21347 fi
21348 GETCONF=$ac_cv_path_GETCONF
21349 if test -n "$GETCONF"; then
21350   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
21351 $as_echo "$GETCONF" >&6; }
21352 else
21353   { $as_echo "$as_me:$LINENO: result: no" >&5
21354 $as_echo "no" >&6; }
21355 fi
21356
21357
21358
21359
21360
21361
21362
21363     # we use 'getconf', if it exists, to get the relevant
21364     # compiler flags.
21365     GETCONF_LFS="LFS"
21366     case "$target" in
21367         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21368         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21369     esac
21370
21371     # Checks for compilers, typedefs, structures, and compiler characteristics.
21372     # Check for large file compilation environment.
21373     NEED_RESETOFS=yes
21374     { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
21375 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21376 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
21377   $as_echo_n "(cached) " >&6
21378 else
21379
21380         amanda_cv_LFS_CFLAGS=
21381         if test "$GETCONF"; then
21382             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21383                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21384                 NEED_RESETOFS=no
21385             fi
21386         fi
21387
21388
21389 fi
21390 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
21391 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21392     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21393
21394
21395     { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
21396 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21397 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
21398   $as_echo_n "(cached) " >&6
21399 else
21400
21401         amanda_cv_LFS_LDFLAGS=
21402         if test "$GETCONF"; then
21403             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21404                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21405                 NEED_RESETOFS=no
21406             fi
21407         fi
21408
21409
21410 fi
21411 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
21412 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21413     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21414
21415
21416     { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
21417 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21418 if test "${amanda_cv_LFS_LIBS+set}" = set; then
21419   $as_echo_n "(cached) " >&6
21420 else
21421
21422         amanda_cv_LFS_LIBS=
21423         if test "$GETCONF"; then
21424             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21425                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21426                 NEED_RESETOFS=no
21427             fi
21428         fi
21429
21430
21431 fi
21432 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
21433 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21434     LIBS="$amanda_cv_LFS_LIBS $LIBS"
21435
21436
21437     if test x"$NEED_RESETOFS" = x"yes"; then
21438
21439 cat >>confdefs.h <<\_ACEOF
21440 #define NEED_RESETOFS 1
21441 _ACEOF
21442
21443     fi
21444
21445
21446
21447     # Extract the first word of "chio", so it can be a program name with args.
21448 set dummy chio; ac_word=$2
21449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21450 $as_echo_n "checking for $ac_word... " >&6; }
21451 if test "${ac_cv_path_CHIO+set}" = set; then
21452   $as_echo_n "(cached) " >&6
21453 else
21454   case $CHIO in
21455   [\\/]* | ?:[\\/]*)
21456   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
21457   ;;
21458   *)
21459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21460 for as_dir in $LOCSYSPATH
21461 do
21462   IFS=$as_save_IFS
21463   test -z "$as_dir" && as_dir=.
21464   for ac_exec_ext in '' $ac_executable_extensions; do
21465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21466     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
21467     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21468     break 2
21469   fi
21470 done
21471 done
21472 IFS=$as_save_IFS
21473
21474   test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
21475   ;;
21476 esac
21477 fi
21478 CHIO=$ac_cv_path_CHIO
21479 if test -n "$CHIO"; then
21480   { $as_echo "$as_me:$LINENO: result: $CHIO" >&5
21481 $as_echo "$CHIO" >&6; }
21482 else
21483   { $as_echo "$as_me:$LINENO: result: no" >&5
21484 $as_echo "no" >&6; }
21485 fi
21486
21487
21488
21489
21490
21491     # Extract the first word of "chs", so it can be a program name with args.
21492 set dummy chs; ac_word=$2
21493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21494 $as_echo_n "checking for $ac_word... " >&6; }
21495 if test "${ac_cv_path_CHS+set}" = set; then
21496   $as_echo_n "(cached) " >&6
21497 else
21498   case $CHS in
21499   [\\/]* | ?:[\\/]*)
21500   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
21501   ;;
21502   *)
21503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21504 for as_dir in $LOCSYSPATH
21505 do
21506   IFS=$as_save_IFS
21507   test -z "$as_dir" && as_dir=.
21508   for ac_exec_ext in '' $ac_executable_extensions; do
21509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21510     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
21511     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21512     break 2
21513   fi
21514 done
21515 done
21516 IFS=$as_save_IFS
21517
21518   test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
21519   ;;
21520 esac
21521 fi
21522 CHS=$ac_cv_path_CHS
21523 if test -n "$CHS"; then
21524   { $as_echo "$as_me:$LINENO: result: $CHS" >&5
21525 $as_echo "$CHS" >&6; }
21526 else
21527   { $as_echo "$as_me:$LINENO: result: no" >&5
21528 $as_echo "no" >&6; }
21529 fi
21530
21531
21532
21533
21534
21535     # Extract the first word of "mtx", so it can be a program name with args.
21536 set dummy mtx; ac_word=$2
21537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21538 $as_echo_n "checking for $ac_word... " >&6; }
21539 if test "${ac_cv_path_MTX+set}" = set; then
21540   $as_echo_n "(cached) " >&6
21541 else
21542   case $MTX in
21543   [\\/]* | ?:[\\/]*)
21544   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
21545   ;;
21546   *)
21547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21548 for as_dir in $LOCSYSPATH
21549 do
21550   IFS=$as_save_IFS
21551   test -z "$as_dir" && as_dir=.
21552   for ac_exec_ext in '' $ac_executable_extensions; do
21553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21554     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
21555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21556     break 2
21557   fi
21558 done
21559 done
21560 IFS=$as_save_IFS
21561
21562   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
21563   ;;
21564 esac
21565 fi
21566 MTX=$ac_cv_path_MTX
21567 if test -n "$MTX"; then
21568   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
21569 $as_echo "$MTX" >&6; }
21570 else
21571   { $as_echo "$as_me:$LINENO: result: no" >&5
21572 $as_echo "no" >&6; }
21573 fi
21574
21575
21576
21577
21578
21579     # Extract the first word of "mcutil", so it can be a program name with args.
21580 set dummy mcutil; ac_word=$2
21581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21582 $as_echo_n "checking for $ac_word... " >&6; }
21583 if test "${ac_cv_path_MCUTIL+set}" = set; then
21584   $as_echo_n "(cached) " >&6
21585 else
21586   case $MCUTIL in
21587   [\\/]* | ?:[\\/]*)
21588   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
21589   ;;
21590   *)
21591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592 for as_dir in $LOCSYSPATH
21593 do
21594   IFS=$as_save_IFS
21595   test -z "$as_dir" && as_dir=.
21596   for ac_exec_ext in '' $ac_executable_extensions; do
21597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21598     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
21599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21600     break 2
21601   fi
21602 done
21603 done
21604 IFS=$as_save_IFS
21605
21606   test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
21607   ;;
21608 esac
21609 fi
21610 MCUTIL=$ac_cv_path_MCUTIL
21611 if test -n "$MCUTIL"; then
21612   { $as_echo "$as_me:$LINENO: result: $MCUTIL" >&5
21613 $as_echo "$MCUTIL" >&6; }
21614 else
21615   { $as_echo "$as_me:$LINENO: result: no" >&5
21616 $as_echo "no" >&6; }
21617 fi
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641 for ac_header in \
21642         camlib.h \
21643         chio.h \
21644         linux/chio.h \
21645         scsi/sg.h \
21646         scsi/scsi_ioctl.h \
21647         sys/chio.h \
21648         sys/dsreq.h \
21649         sys/mtio.h \
21650         sys/scarray.h \
21651         sys/gscdds.h \
21652         sys/scsi.h \
21653         sys/scsiio.h \
21654         sys/scsi/impl/uscsi.h \
21655         sys/scsi/scsi/ioctl.h
21656 do
21657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 $as_echo_n "checking for $ac_header... " >&6; }
21660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21661   $as_echo_n "(cached) " >&6
21662 else
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 $ac_includes_default
21670
21671 #include <$ac_header>
21672 _ACEOF
21673 rm -f conftest.$ac_objext
21674 if { (ac_try="$ac_compile"
21675 case "(($ac_try" in
21676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677   *) ac_try_echo=$ac_try;;
21678 esac
21679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21680 $as_echo "$ac_try_echo") >&5
21681   (eval "$ac_compile") 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && {
21688          test -z "$ac_c_werror_flag" ||
21689          test ! -s conftest.err
21690        } && test -s conftest.$ac_objext; then
21691   eval "$as_ac_Header=yes"
21692 else
21693   $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696         eval "$as_ac_Header=no"
21697 fi
21698
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 fi
21701 ac_res=`eval 'as_val=${'$as_ac_Header'}
21702                  $as_echo "$as_val"'`
21703                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21704 $as_echo "$ac_res" >&6; }
21705 as_val=`eval 'as_val=${'$as_ac_Header'}
21706                  $as_echo "$as_val"'`
21707    if test "x$as_val" = x""yes; then
21708   cat >>confdefs.h <<_ACEOF
21709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21710 _ACEOF
21711  \
21712
21713 fi
21714
21715 done
21716
21717
21718     #
21719     # chio support
21720     #
21721     if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21722         { $as_echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
21723 $as_echo_n "checking for HP/UX-like scsi changer support... " >&6; }
21724 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
21725   $as_echo_n "(cached) " >&6
21726 else
21727   cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h.  */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h.  */
21733
21734 #include <sys/scsi.h>
21735
21736 int
21737 main ()
21738 {
21739
21740             static struct element_addresses changer_info;
21741             int i = SIOC_ELEMENT_ADDRESSES;
21742             int j = SIOC_ELEMENT_STATUS;
21743             int k = SIOC_MOVE_MEDIUM;
21744
21745   ;
21746   return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753   *) ac_try_echo=$ac_try;;
21754 esac
21755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21756 $as_echo "$ac_try_echo") >&5
21757   (eval "$ac_compile") 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } && {
21764          test -z "$ac_c_werror_flag" ||
21765          test ! -s conftest.err
21766        } && test -s conftest.$ac_objext; then
21767   amanda_cv_hpux_scsi_chio=yes
21768 else
21769   $as_echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772         amanda_cv_hpux_scsi_chio=no
21773 fi
21774
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776 fi
21777 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
21778 $as_echo "$amanda_cv_hpux_scsi_chio" >&6; }
21779         if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
21780             WANT_SCSI_HPUX=yes
21781             WANT_CHG_SCSI=yes
21782         fi
21783     fi
21784
21785     #
21786     # Linux SCSI based on ioctl
21787     #
21788     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21789        test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
21790             { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
21791 $as_echo_n "checking for Linux like scsi support (ioctl)... " >&6; }
21792 if test "${amanda_cv_linux_scsi+set}" = set; then
21793   $as_echo_n "(cached) " >&6
21794 else
21795   cat >conftest.$ac_ext <<_ACEOF
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801
21802 #include <scsi/scsi_ioctl.h>
21803 #include <sys/mtio.h>
21804
21805 int
21806 main ()
21807 {
21808
21809             int device;
21810             char *Command;
21811             ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
21812
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext
21818 if { (ac_try="$ac_compile"
21819 case "(($ac_try" in
21820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821   *) ac_try_echo=$ac_try;;
21822 esac
21823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21824 $as_echo "$ac_try_echo") >&5
21825   (eval "$ac_compile") 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } && {
21832          test -z "$ac_c_werror_flag" ||
21833          test ! -s conftest.err
21834        } && test -s conftest.$ac_objext; then
21835   amanda_cv_linux_scsi=yes
21836 else
21837   $as_echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21839
21840         amanda_cv_linux_scsi=no
21841 fi
21842
21843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844 fi
21845 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
21846 $as_echo "$amanda_cv_linux_scsi" >&6; }
21847     fi
21848
21849     #
21850     # Linux SCSI based on sg
21851     #
21852     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21853        test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
21854             { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
21855 $as_echo_n "checking for Linux like scsi support (sg)... " >&6; }
21856 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
21857   $as_echo_n "(cached) " >&6
21858 else
21859   cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865
21866 #include <sys/types.h>
21867 #include <scsi/sg.h>
21868 #include <sys/mtio.h>
21869
21870 int
21871 main ()
21872 {
21873
21874             int device;
21875             struct sg_header *psg_header;
21876             char *buffer;
21877             write(device, buffer, 1);
21878
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890 $as_echo "$ac_try_echo") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && {
21898          test -z "$ac_c_werror_flag" ||
21899          test ! -s conftest.err
21900        } && test -s conftest.$ac_objext; then
21901   amanda_cv_linux_sg_scsi=yes
21902 else
21903   $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906         amanda_cv_linux_sg_scsi=no
21907 fi
21908
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 fi
21911 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
21912 $as_echo "$amanda_cv_linux_sg_scsi" >&6; }
21913     fi
21914
21915     if test x"$amanda_cv_linux_scsi" = x"yes" ||
21916      test x"$amanda_cv_linux_sg_scsi" = x"yes";then
21917             WANT_SCSI_LINUX=yes
21918             WANT_CHG_SCSI=yes
21919     fi
21920
21921     #
21922     # HP-UX SCSI
21923     #
21924     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21925        test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21926             { $as_echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
21927 $as_echo_n "checking for HP-UX like scsi support... " >&6; }
21928 if test "${amanda_cv_hpux_scsi+set}" = set; then
21929   $as_echo_n "(cached) " >&6
21930 else
21931   cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h.  */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h.  */
21937
21938 #include <stdio.h>
21939 #include <sys/ioctl.h>
21940 #include <sys/scsi.h>
21941 #include <sys/mtio.h>
21942
21943 int
21944 main ()
21945 {
21946
21947             int device;
21948             char *Command;
21949             ioctl(device, SIOC_IO, Command);
21950
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 rm -f conftest.$ac_objext
21956 if { (ac_try="$ac_compile"
21957 case "(($ac_try" in
21958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21959   *) ac_try_echo=$ac_try;;
21960 esac
21961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21962 $as_echo "$ac_try_echo") >&5
21963   (eval "$ac_compile") 2>conftest.er1
21964   ac_status=$?
21965   grep -v '^ *+' conftest.er1 >conftest.err
21966   rm -f conftest.er1
21967   cat conftest.err >&5
21968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && {
21970          test -z "$ac_c_werror_flag" ||
21971          test ! -s conftest.err
21972        } && test -s conftest.$ac_objext; then
21973   amanda_cv_hpux_scsi=yes
21974 else
21975   $as_echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978         amanda_cv_hpux_scsi=no
21979 fi
21980
21981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21982 fi
21983 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
21984 $as_echo "$amanda_cv_hpux_scsi" >&6; }
21985             if test x"$amanda_cv_hpux_scsi" = x"yes";then
21986                     WANT_SCSI_HPUX_NEW=yes
21987                     WANT_CHG_SCSI=yes
21988                     WANT_CHG_SCSI_CHIO=yes
21989             fi
21990     fi
21991
21992     #
21993     # IRIX SCSI
21994     #
21995     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21996        test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
21997             { $as_echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
21998 $as_echo_n "checking for Irix like scsi support... " >&6; }
21999 if test "${amanda_cv_irix_scsi+set}" = set; then
22000   $as_echo_n "(cached) " >&6
22001 else
22002   cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008
22009 #include <sys/types.h>
22010 #include <sys/dsreq.h>
22011 #include <sys/mtio.h>
22012
22013 int
22014 main ()
22015 {
22016
22017             int device=1;
22018             char Command;
22019             ioctl(device, DS_ENTER, &Command);
22020
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033   (eval "$ac_compile") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } && {
22040          test -z "$ac_c_werror_flag" ||
22041          test ! -s conftest.err
22042        } && test -s conftest.$ac_objext; then
22043   amanda_cv_irix_scsi=yes
22044 else
22045   $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048         amanda_cv_irix_scsi=no
22049 fi
22050
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 fi
22053 { $as_echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
22054 $as_echo "$amanda_cv_irix_scsi" >&6; }
22055             if test x"$amanda_cv_irix_scsi" = x"yes";then
22056                     WANT_SCSI_IRIX=yes
22057                     WANT_CHG_SCSI=yes
22058             fi
22059     fi
22060
22061     #
22062     # Solaris  SCSI
22063     #
22064     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22065        test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
22066             { $as_echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
22067 $as_echo_n "checking for Solaris-like scsi support... " >&6; }
22068 if test "${amanda_cv_solaris_scsi+set}" = set; then
22069   $as_echo_n "(cached) " >&6
22070 else
22071   cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077
22078 #include <sys/types.h>
22079 #include <sys/scsi/impl/uscsi.h>
22080 #include <sys/mtio.h>
22081
22082 int
22083 main ()
22084 {
22085
22086             int device;
22087             char *Command;
22088             ioctl(device, USCSICMD, Command);
22089
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22101 $as_echo "$ac_try_echo") >&5
22102   (eval "$ac_compile") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_c_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest.$ac_objext; then
22112   amanda_cv_solaris_scsi=yes
22113 else
22114   $as_echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117         amanda_cv_solaris_scsi=no
22118 fi
22119
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 fi
22122 { $as_echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
22123 $as_echo "$amanda_cv_solaris_scsi" >&6; }
22124             if test x"$amanda_cv_solaris_scsi" = x"yes";then
22125                     WANT_SCSI_SOLARIS=yes
22126                     WANT_CHG_SCSI=yes
22127             fi
22128     fi
22129
22130     #
22131     # AIX SCSI
22132     #
22133     if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
22134        test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
22135        test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
22136             { $as_echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
22137 $as_echo_n "checking for AIX like scsi support... " >&6; }
22138 if test "${amanda_cv_aix_scsi+set}" = set; then
22139   $as_echo_n "(cached) " >&6
22140 else
22141   cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147
22148 #include <sys/types.h>
22149 #include <sys/scarray.h>
22150 #include <sys/tape.h>
22151
22152 int
22153 main ()
22154 {
22155
22156             int device;
22157             char *Command;
22158             ioctl(device, STIOCMD, Command);
22159
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168   *) ac_try_echo=$ac_try;;
22169 esac
22170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22171 $as_echo "$ac_try_echo") >&5
22172   (eval "$ac_compile") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } && {
22179          test -z "$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        } && test -s conftest.$ac_objext; then
22182   amanda_cv_aix_scsi=yes
22183 else
22184   $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187         amanda_cv_aix_scsi=no
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 fi
22192 { $as_echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
22193 $as_echo "$amanda_cv_aix_scsi" >&6; }
22194             if test x"$amanda_cv_aix_scsi" = x"yes";then
22195                     WANT_SCSI_AIX=yes
22196                     WANT_CHG_SCSI=yes
22197             fi
22198     fi
22199     #
22200     # BSD CAM SCSI
22201     #
22202     if test x"$ac_cv_header_cam_cam_h" = x"yes";then
22203             { $as_echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
22204 $as_echo_n "checking for CAM like scsi support... " >&6; }
22205 if test "${amanda_cv_cam_scsi+set}" = set; then
22206   $as_echo_n "(cached) " >&6
22207 else
22208   cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h.  */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h.  */
22214
22215 #include <stdio.h>
22216 # include <fcntl.h>
22217 # include <cam/cam.h>
22218 # include <cam/cam_ccb.h>
22219 # include <cam/scsi/scsi_message.h>
22220 # include <cam/scsi/scsi_pass.h>
22221 # include <camlib.h>
22222
22223 int
22224 main ()
22225 {
22226
22227             struct cam_device *curdev;
22228
22229             curdev = cam_open_pass("", O_RDWR, NULL);
22230
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22242 $as_echo "$ac_try_echo") >&5
22243   (eval "$ac_compile") 2>conftest.er1
22244   ac_status=$?
22245   grep -v '^ *+' conftest.er1 >conftest.err
22246   rm -f conftest.er1
22247   cat conftest.err >&5
22248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } && {
22250          test -z "$ac_c_werror_flag" ||
22251          test ! -s conftest.err
22252        } && test -s conftest.$ac_objext; then
22253   amanda_cv_cam_scsi=yes
22254 else
22255   $as_echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258         amanda_cv_cam_scsi=no
22259 fi
22260
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 fi
22263 { $as_echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
22264 $as_echo "$amanda_cv_cam_scsi" >&6; }
22265             if test x"$amanda_cv_cam_scsi" = x"yes";then
22266                     WANT_SCSI_CAM=yes
22267                     WANT_CHG_SCSI=yes
22268
22269 { $as_echo "$as_me:$LINENO: checking for main in -lcam" >&5
22270 $as_echo_n "checking for main in -lcam... " >&6; }
22271 if test "${ac_cv_lib_cam_main+set}" = set; then
22272   $as_echo_n "(cached) " >&6
22273 else
22274   ac_check_lib_save_LIBS=$LIBS
22275 LIBS="-lcam  $LIBS"
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282
22283
22284 int
22285 main ()
22286 {
22287 return main ();
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296   *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300   (eval "$ac_link") 2>conftest.er1
22301   ac_status=$?
22302   grep -v '^ *+' conftest.er1 >conftest.err
22303   rm -f conftest.er1
22304   cat conftest.err >&5
22305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } && {
22307          test -z "$ac_c_werror_flag" ||
22308          test ! -s conftest.err
22309        } && test -s conftest$ac_exeext && {
22310          test "$cross_compiling" = yes ||
22311          $as_test_x conftest$ac_exeext
22312        }; then
22313   ac_cv_lib_cam_main=yes
22314 else
22315   $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318         ac_cv_lib_cam_main=no
22319 fi
22320
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323       conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22325 fi
22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
22327 $as_echo "$ac_cv_lib_cam_main" >&6; }
22328 if test "x$ac_cv_lib_cam_main" = x""yes; then
22329   cat >>confdefs.h <<_ACEOF
22330 #define HAVE_LIBCAM 1
22331 _ACEOF
22332
22333   LIBS="-lcam $LIBS"
22334
22335 fi
22336
22337             fi
22338     fi
22339
22340
22341     #
22342     # BSD SCSI
22343     #
22344     if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22345        test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
22346         { $as_echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
22347 $as_echo_n "checking for BSD like scsi support... " >&6; }
22348 if test "${amanda_cv_bsd_scsi+set}" = set; then
22349   $as_echo_n "(cached) " >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357
22358 #include <sys/types.h>
22359 #include <sys/scsiio.h>
22360 #include <sys/mtio.h>
22361
22362 int
22363 main ()
22364 {
22365
22366         int device=1;
22367         char Command;
22368         ioctl(device, SCIOCCOMMAND, &Command);
22369
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest.$ac_objext
22375 if { (ac_try="$ac_compile"
22376 case "(($ac_try" in
22377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378   *) ac_try_echo=$ac_try;;
22379 esac
22380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382   (eval "$ac_compile") 2>conftest.er1
22383   ac_status=$?
22384   grep -v '^ *+' conftest.er1 >conftest.err
22385   rm -f conftest.er1
22386   cat conftest.err >&5
22387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } && {
22389          test -z "$ac_c_werror_flag" ||
22390          test ! -s conftest.err
22391        } && test -s conftest.$ac_objext; then
22392   amanda_cv_bsd_scsi=yes
22393 else
22394   $as_echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397         amanda_cv_bsd_scsi=no
22398 fi
22399
22400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22401 fi
22402 { $as_echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
22403 $as_echo "$amanda_cv_bsd_scsi" >&6; }
22404         if test x"$amanda_cv_bsd_scsi" = x"yes";then
22405            WANT_SCSI_BSD=yes
22406            WANT_CHG_SCSI=yes
22407         fi
22408     fi
22409
22410     # Do not build chg-scsi-chio if we cannot find the needed support
22411     # include files for the SCSI interfaces
22412     # chio.h and sys/chio.h are chio based systems
22413     if test x"$ac_cv_header_chio_h" = x"yes" ||
22414        test x"$ac_cv_header_linux_chio_h" = x"yes" ||
22415        test x"$ac_cv_header_sys_chio_h" = x"yes"; then
22416        # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
22417        # incompatible with the introduction of camlib.h
22418        if test x"$ac_cv_header_camlib_h" != x"yes"; then
22419          WANT_SCSI_CHIO=yes
22420          # prefer to use chg-scsi, unless we already have a driver for that,
22421          # in which case set it up as chg-scsi-chio.
22422          if test x"$WANT_CHG_SCSI" = x"no"; then
22423            WANT_CHG_SCSI=yes
22424          else
22425            WANT_CHG_SCSI_CHIO=yes
22426          fi
22427        fi
22428     fi
22429
22430     # scsi-based implementations
22431      if test x"$WANT_CHG_SCSI" = x"yes"; then
22432   WANT_CHG_SCSI_TRUE=
22433   WANT_CHG_SCSI_FALSE='#'
22434 else
22435   WANT_CHG_SCSI_TRUE='#'
22436   WANT_CHG_SCSI_FALSE=
22437 fi
22438
22439      if test x"$WANT_SCSI_LINUX" = x"yes"; then
22440   WANT_SCSI_LINUX_TRUE=
22441   WANT_SCSI_LINUX_FALSE='#'
22442 else
22443   WANT_SCSI_LINUX_TRUE='#'
22444   WANT_SCSI_LINUX_FALSE=
22445 fi
22446
22447      if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
22448   WANT_SCSI_HPUX_NEW_TRUE=
22449   WANT_SCSI_HPUX_NEW_FALSE='#'
22450 else
22451   WANT_SCSI_HPUX_NEW_TRUE='#'
22452   WANT_SCSI_HPUX_NEW_FALSE=
22453 fi
22454
22455      if test x"$WANT_SCSI_IRIX" = x"yes"; then
22456   WANT_SCSI_IRIX_TRUE=
22457   WANT_SCSI_IRIX_FALSE='#'
22458 else
22459   WANT_SCSI_IRIX_TRUE='#'
22460   WANT_SCSI_IRIX_FALSE=
22461 fi
22462
22463      if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
22464   WANT_SCSI_SOLARIS_TRUE=
22465   WANT_SCSI_SOLARIS_FALSE='#'
22466 else
22467   WANT_SCSI_SOLARIS_TRUE='#'
22468   WANT_SCSI_SOLARIS_FALSE=
22469 fi
22470
22471      if test x"$WANT_SCSI_AIX" = x"yes"; then
22472   WANT_SCSI_AIX_TRUE=
22473   WANT_SCSI_AIX_FALSE='#'
22474 else
22475   WANT_SCSI_AIX_TRUE='#'
22476   WANT_SCSI_AIX_FALSE=
22477 fi
22478
22479      if test x"$WANT_SCSI_CAM" = x"yes"; then
22480   WANT_SCSI_CAM_TRUE=
22481   WANT_SCSI_CAM_FALSE='#'
22482 else
22483   WANT_SCSI_CAM_TRUE='#'
22484   WANT_SCSI_CAM_FALSE=
22485 fi
22486
22487      if test x"$WANT_SCSI_BSD" = x"yes"; then
22488   WANT_SCSI_BSD_TRUE=
22489   WANT_SCSI_BSD_FALSE='#'
22490 else
22491   WANT_SCSI_BSD_TRUE='#'
22492   WANT_SCSI_BSD_FALSE=
22493 fi
22494
22495
22496     # scsi-chio-based implementations
22497      if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
22498   WANT_CHG_SCSI_CHIO_TRUE=
22499   WANT_CHG_SCSI_CHIO_FALSE='#'
22500 else
22501   WANT_CHG_SCSI_CHIO_TRUE='#'
22502   WANT_CHG_SCSI_CHIO_FALSE=
22503 fi
22504
22505      if test x"$WANT_SCSI_HPUX" = x"yes"; then
22506   WANT_SCSI_HPUX_TRUE=
22507   WANT_SCSI_HPUX_FALSE='#'
22508 else
22509   WANT_SCSI_HPUX_TRUE='#'
22510   WANT_SCSI_HPUX_FALSE=
22511 fi
22512
22513      if test x"$WANT_SCSI_CHIO" = x"yes"; then
22514   WANT_SCSI_CHIO_TRUE=
22515   WANT_SCSI_CHIO_FALSE='#'
22516 else
22517   WANT_SCSI_CHIO_TRUE='#'
22518   WANT_SCSI_CHIO_FALSE=
22519 fi
22520
22521
22522
22523
22524
22525
22526
22527 for ac_header in fstab.h \
22528         mntent.h \
22529         mnttab.h \
22530         sys/vfstab.h \
22531
22532 do
22533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22535   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22536 $as_echo_n "checking for $ac_header... " >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538   $as_echo_n "(cached) " >&6
22539 fi
22540 ac_res=`eval 'as_val=${'$as_ac_Header'}
22541                  $as_echo "$as_val"'`
22542                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22543 $as_echo "$ac_res" >&6; }
22544 else
22545   # Is the header compilable?
22546 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22547 $as_echo_n "checking $ac_header usability... " >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 $ac_includes_default
22555 #include <$ac_header>
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22564 $as_echo "$ac_try_echo") >&5
22565   (eval "$ac_compile") 2>conftest.er1
22566   ac_status=$?
22567   grep -v '^ *+' conftest.er1 >conftest.err
22568   rm -f conftest.er1
22569   cat conftest.err >&5
22570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } && {
22572          test -z "$ac_c_werror_flag" ||
22573          test ! -s conftest.err
22574        } && test -s conftest.$ac_objext; then
22575   ac_header_compiler=yes
22576 else
22577   $as_echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580         ac_header_compiler=no
22581 fi
22582
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585 $as_echo "$ac_header_compiler" >&6; }
22586
22587 # Is the header present?
22588 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589 $as_echo_n "checking $ac_header presence... " >&6; }
22590 cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 #include <$ac_header>
22597 _ACEOF
22598 if { (ac_try="$ac_cpp conftest.$ac_ext"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22604 $as_echo "$ac_try_echo") >&5
22605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } >/dev/null && {
22612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22613          test ! -s conftest.err
22614        }; then
22615   ac_header_preproc=yes
22616 else
22617   $as_echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620   ac_header_preproc=no
22621 fi
22622
22623 rm -f conftest.err conftest.$ac_ext
22624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625 $as_echo "$ac_header_preproc" >&6; }
22626
22627 # So?  What about this header?
22628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22629   yes:no: )
22630     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634     ac_header_preproc=yes
22635     ;;
22636   no:yes:* )
22637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22640 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22644 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22649
22650     ;;
22651 esac
22652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 $as_echo_n "checking for $ac_header... " >&6; }
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655   $as_echo_n "(cached) " >&6
22656 else
22657   eval "$as_ac_Header=\$ac_header_preproc"
22658 fi
22659 ac_res=`eval 'as_val=${'$as_ac_Header'}
22660                  $as_echo "$as_val"'`
22661                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22662 $as_echo "$ac_res" >&6; }
22663
22664 fi
22665 as_val=`eval 'as_val=${'$as_ac_Header'}
22666                  $as_echo "$as_val"'`
22667    if test "x$as_val" = x""yes; then
22668   cat >>confdefs.h <<_ACEOF
22669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22670 _ACEOF
22671
22672 fi
22673
22674 done
22675
22676
22677
22678 for ac_func in endmntent
22679 do
22680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22682 $as_echo_n "checking for $ac_func... " >&6; }
22683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22684   $as_echo_n "(cached) " >&6
22685 else
22686   cat >conftest.$ac_ext <<_ACEOF
22687 /* confdefs.h.  */
22688 _ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h.  */
22692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22694 #define $ac_func innocuous_$ac_func
22695
22696 /* System header to define __stub macros and hopefully few prototypes,
22697     which can conflict with char $ac_func (); below.
22698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22699     <limits.h> exists even on freestanding compilers.  */
22700
22701 #ifdef __STDC__
22702 # include <limits.h>
22703 #else
22704 # include <assert.h>
22705 #endif
22706
22707 #undef $ac_func
22708
22709 /* Override any GCC internal prototype to avoid an error.
22710    Use char because int might match the return type of a GCC
22711    builtin and then its argument prototype would still apply.  */
22712 #ifdef __cplusplus
22713 extern "C"
22714 #endif
22715 char $ac_func ();
22716 /* The GNU C library defines this for functions which it implements
22717     to always fail with ENOSYS.  Some functions are actually named
22718     something starting with __ and the normal name is an alias.  */
22719 #if defined __stub_$ac_func || defined __stub___$ac_func
22720 choke me
22721 #endif
22722
22723 int
22724 main ()
22725 {
22726 return $ac_func ();
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22738 $as_echo "$ac_try_echo") >&5
22739   (eval "$ac_link") 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && {
22746          test -z "$ac_c_werror_flag" ||
22747          test ! -s conftest.err
22748        } && test -s conftest$ac_exeext && {
22749          test "$cross_compiling" = yes ||
22750          $as_test_x conftest$ac_exeext
22751        }; then
22752   eval "$as_ac_var=yes"
22753 else
22754   $as_echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757         eval "$as_ac_var=no"
22758 fi
22759
22760 rm -rf conftest.dSYM
22761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22762       conftest$ac_exeext conftest.$ac_ext
22763 fi
22764 ac_res=`eval 'as_val=${'$as_ac_var'}
22765                  $as_echo "$as_val"'`
22766                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22767 $as_echo "$ac_res" >&6; }
22768 as_val=`eval 'as_val=${'$as_ac_var'}
22769                  $as_echo "$as_val"'`
22770    if test "x$as_val" = x""yes; then
22771   cat >>confdefs.h <<_ACEOF
22772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22773 _ACEOF
22774
22775 fi
22776 done
22777
22778
22779 for ac_func in setmntent
22780 do
22781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22783 $as_echo_n "checking for $ac_func... " >&6; }
22784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22785   $as_echo_n "(cached) " >&6
22786 else
22787   cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h.  */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h.  */
22793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22795 #define $ac_func innocuous_$ac_func
22796
22797 /* System header to define __stub macros and hopefully few prototypes,
22798     which can conflict with char $ac_func (); below.
22799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800     <limits.h> exists even on freestanding compilers.  */
22801
22802 #ifdef __STDC__
22803 # include <limits.h>
22804 #else
22805 # include <assert.h>
22806 #endif
22807
22808 #undef $ac_func
22809
22810 /* Override any GCC internal prototype to avoid an error.
22811    Use char because int might match the return type of a GCC
22812    builtin and then its argument prototype would still apply.  */
22813 #ifdef __cplusplus
22814 extern "C"
22815 #endif
22816 char $ac_func ();
22817 /* The GNU C library defines this for functions which it implements
22818     to always fail with ENOSYS.  Some functions are actually named
22819     something starting with __ and the normal name is an alias.  */
22820 #if defined __stub_$ac_func || defined __stub___$ac_func
22821 choke me
22822 #endif
22823
22824 int
22825 main ()
22826 {
22827 return $ac_func ();
22828   ;
22829   return 0;
22830 }
22831 _ACEOF
22832 rm -f conftest.$ac_objext conftest$ac_exeext
22833 if { (ac_try="$ac_link"
22834 case "(($ac_try" in
22835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836   *) ac_try_echo=$ac_try;;
22837 esac
22838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22839 $as_echo "$ac_try_echo") >&5
22840   (eval "$ac_link") 2>conftest.er1
22841   ac_status=$?
22842   grep -v '^ *+' conftest.er1 >conftest.err
22843   rm -f conftest.er1
22844   cat conftest.err >&5
22845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); } && {
22847          test -z "$ac_c_werror_flag" ||
22848          test ! -s conftest.err
22849        } && test -s conftest$ac_exeext && {
22850          test "$cross_compiling" = yes ||
22851          $as_test_x conftest$ac_exeext
22852        }; then
22853   eval "$as_ac_var=yes"
22854 else
22855   $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858         eval "$as_ac_var=no"
22859 fi
22860
22861 rm -rf conftest.dSYM
22862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22863       conftest$ac_exeext conftest.$ac_ext
22864 fi
22865 ac_res=`eval 'as_val=${'$as_ac_var'}
22866                  $as_echo "$as_val"'`
22867                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22868 $as_echo "$ac_res" >&6; }
22869 as_val=`eval 'as_val=${'$as_ac_var'}
22870                  $as_echo "$as_val"'`
22871    if test "x$as_val" = x""yes; then
22872   cat >>confdefs.h <<_ACEOF
22873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22874 _ACEOF
22875
22876 fi
22877 done
22878
22879
22880
22881
22882
22883
22884
22885
22886 for ac_header in fcntl.h \
22887         sys/fcntl.h \
22888         sys/types.h \
22889         sys/file.h \
22890         unistd.h \
22891
22892 do
22893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22896 $as_echo_n "checking for $ac_header... " >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898   $as_echo_n "(cached) " >&6
22899 fi
22900 ac_res=`eval 'as_val=${'$as_ac_Header'}
22901                  $as_echo "$as_val"'`
22902                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22903 $as_echo "$ac_res" >&6; }
22904 else
22905   # Is the header compilable?
22906 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22907 $as_echo_n "checking $ac_header usability... " >&6; }
22908 cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914 $ac_includes_default
22915 #include <$ac_header>
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22924 $as_echo "$ac_try_echo") >&5
22925   (eval "$ac_compile") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest.$ac_objext; then
22935   ac_header_compiler=yes
22936 else
22937   $as_echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940         ac_header_compiler=no
22941 fi
22942
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22945 $as_echo "$ac_header_compiler" >&6; }
22946
22947 # Is the header present?
22948 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22949 $as_echo_n "checking $ac_header presence... " >&6; }
22950 cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h.  */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h.  */
22956 #include <$ac_header>
22957 _ACEOF
22958 if { (ac_try="$ac_cpp conftest.$ac_ext"
22959 case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22964 $as_echo "$ac_try_echo") >&5
22965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22966   ac_status=$?
22967   grep -v '^ *+' conftest.er1 >conftest.err
22968   rm -f conftest.er1
22969   cat conftest.err >&5
22970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); } >/dev/null && {
22972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22973          test ! -s conftest.err
22974        }; then
22975   ac_header_preproc=yes
22976 else
22977   $as_echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980   ac_header_preproc=no
22981 fi
22982
22983 rm -f conftest.err conftest.$ac_ext
22984 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22985 $as_echo "$ac_header_preproc" >&6; }
22986
22987 # So?  What about this header?
22988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22989   yes:no: )
22990     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22991 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22994     ac_header_preproc=yes
22995     ;;
22996   no:yes:* )
22997     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22998 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23000 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23002 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23004 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23008 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23009
23010     ;;
23011 esac
23012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23013 $as_echo_n "checking for $ac_header... " >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015   $as_echo_n "(cached) " >&6
23016 else
23017   eval "$as_ac_Header=\$ac_header_preproc"
23018 fi
23019 ac_res=`eval 'as_val=${'$as_ac_Header'}
23020                  $as_echo "$as_val"'`
23021                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23022 $as_echo "$ac_res" >&6; }
23023
23024 fi
23025 as_val=`eval 'as_val=${'$as_ac_Header'}
23026                  $as_echo "$as_val"'`
23027    if test "x$as_val" = x""yes; then
23028   cat >>confdefs.h <<_ACEOF
23029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23030 _ACEOF
23031
23032 fi
23033
23034 done
23035
23036
23037     # find a working file-locking mechanism.
23038     # Note: these all use AC_TRY_LINK to make sure that we can compile
23039     # and link each variant.  They do not try to test the variants --
23040     # that is left to runtime.
23041     LOCKING="no"
23042
23043     # check POSIX locking
23044     { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
23045 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
23046 if test "${amanda_cv_posix_filelocking+set}" = set; then
23047   $as_echo_n "(cached) " >&6
23048 else
23049
23050             cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h.  */
23052 _ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h.  */
23056
23057 #if HAVE_SYS_TYPES_H
23058 # include <sys/types.h>
23059 #endif
23060 #if HAVE_UNISTD_H
23061 # include <unistd.h>
23062 #endif
23063 #if HAVE_FCNTL_H
23064 # include <fcntl.h>
23065 #endif
23066
23067 int
23068 main ()
23069 {
23070
23071             struct flock lock;
23072
23073             lock.l_type = F_RDLCK;
23074             lock.l_start = 0;
23075             lock.l_whence = SEEK_CUR;
23076             lock.l_len = 0;
23077             return fcntl(1, F_SETLK, &lock);
23078
23079   ;
23080   return 0;
23081 }
23082 _ACEOF
23083 rm -f conftest.$ac_objext conftest$ac_exeext
23084 if { (ac_try="$ac_link"
23085 case "(($ac_try" in
23086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087   *) ac_try_echo=$ac_try;;
23088 esac
23089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23090 $as_echo "$ac_try_echo") >&5
23091   (eval "$ac_link") 2>conftest.er1
23092   ac_status=$?
23093   grep -v '^ *+' conftest.er1 >conftest.err
23094   rm -f conftest.er1
23095   cat conftest.err >&5
23096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); } && {
23098          test -z "$ac_c_werror_flag" ||
23099          test ! -s conftest.err
23100        } && test -s conftest$ac_exeext && {
23101          test "$cross_compiling" = yes ||
23102          $as_test_x conftest$ac_exeext
23103        }; then
23104
23105         amanda_cv_posix_filelocking="yes"
23106
23107 else
23108   $as_echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111
23112         amanda_cv_posix_filelocking="no"
23113
23114 fi
23115
23116 rm -rf conftest.dSYM
23117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23118       conftest$ac_exeext conftest.$ac_ext
23119
23120 fi
23121 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
23122 $as_echo "$amanda_cv_posix_filelocking" >&6; }
23123     if test "x$amanda_cv_posix_filelocking" = xyes; then
23124
23125 cat >>confdefs.h <<\_ACEOF
23126 #define WANT_AMFLOCK_POSIX 1
23127 _ACEOF
23128
23129         WANT_AMFLOCK_POSIX="yes"
23130         LOCKING="POSIX_FCNTL"
23131     fi
23132      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
23133   WANT_AMFLOCK_POSIX_TRUE=
23134   WANT_AMFLOCK_POSIX_FALSE='#'
23135 else
23136   WANT_AMFLOCK_POSIX_TRUE='#'
23137   WANT_AMFLOCK_POSIX_FALSE=
23138 fi
23139
23140
23141     # check flock-based (BSD) locking
23142     { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
23143 $as_echo_n "checking whether flock locking is available... " >&6; }
23144 if test "${amanda_cv_flock_filelocking+set}" = set; then
23145   $as_echo_n "(cached) " >&6
23146 else
23147
23148             cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154
23155 #if HAVE_SYS_FILE_H
23156 # include <sys/file.h>
23157 #endif
23158
23159 int
23160 main ()
23161 {
23162
23163             return flock(1, LOCK_SH);
23164
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (ac_try="$ac_link"
23171 case "(($ac_try" in
23172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173   *) ac_try_echo=$ac_try;;
23174 esac
23175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23176 $as_echo "$ac_try_echo") >&5
23177   (eval "$ac_link") 2>conftest.er1
23178   ac_status=$?
23179   grep -v '^ *+' conftest.er1 >conftest.err
23180   rm -f conftest.er1
23181   cat conftest.err >&5
23182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } && {
23184          test -z "$ac_c_werror_flag" ||
23185          test ! -s conftest.err
23186        } && test -s conftest$ac_exeext && {
23187          test "$cross_compiling" = yes ||
23188          $as_test_x conftest$ac_exeext
23189        }; then
23190
23191         amanda_cv_flock_filelocking="yes"
23192
23193 else
23194   $as_echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197
23198         amanda_cv_flock_filelocking="no"
23199
23200 fi
23201
23202 rm -rf conftest.dSYM
23203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23204       conftest$ac_exeext conftest.$ac_ext
23205
23206 fi
23207 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
23208 $as_echo "$amanda_cv_flock_filelocking" >&6; }
23209     if test "x$amanda_cv_flock_filelocking" = xyes; then
23210
23211 cat >>confdefs.h <<\_ACEOF
23212 #define WANT_AMFLOCK_FLOCK 1
23213 _ACEOF
23214
23215         WANT_AMFLOCK_FLOCK="yes"
23216         LOCKING="FLOCK"
23217     fi
23218      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
23219   WANT_AMFLOCK_FLOCK_TRUE=
23220   WANT_AMFLOCK_FLOCK_FALSE='#'
23221 else
23222   WANT_AMFLOCK_FLOCK_TRUE='#'
23223   WANT_AMFLOCK_FLOCK_FALSE=
23224 fi
23225
23226
23227     # check lockf-based (SVR2, SVR3, SVR4) locking
23228     { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
23229 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
23230 if test "${amanda_cv_lockf_filelocking+set}" = set; then
23231   $as_echo_n "(cached) " >&6
23232 else
23233
23234             cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240
23241 #if HAVE_UNISTD_H
23242 # include <unistd.h>
23243 #endif
23244
23245 int
23246 main ()
23247 {
23248
23249             return lockf(1, F_LOCK, 0);
23250
23251   ;
23252   return 0;
23253 }
23254 _ACEOF
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (ac_try="$ac_link"
23257 case "(($ac_try" in
23258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259   *) ac_try_echo=$ac_try;;
23260 esac
23261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23262 $as_echo "$ac_try_echo") >&5
23263   (eval "$ac_link") 2>conftest.er1
23264   ac_status=$?
23265   grep -v '^ *+' conftest.er1 >conftest.err
23266   rm -f conftest.er1
23267   cat conftest.err >&5
23268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } && {
23270          test -z "$ac_c_werror_flag" ||
23271          test ! -s conftest.err
23272        } && test -s conftest$ac_exeext && {
23273          test "$cross_compiling" = yes ||
23274          $as_test_x conftest$ac_exeext
23275        }; then
23276
23277         amanda_cv_lockf_filelocking="yes"
23278
23279 else
23280   $as_echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283
23284         amanda_cv_lockf_filelocking="no"
23285
23286 fi
23287
23288 rm -rf conftest.dSYM
23289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23290       conftest$ac_exeext conftest.$ac_ext
23291
23292 fi
23293 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
23294 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
23295     if test "x$amanda_cv_lockf_filelocking" = xyes; then
23296
23297 cat >>confdefs.h <<\_ACEOF
23298 #define WANT_AMFLOCK_LOCKF 1
23299 _ACEOF
23300
23301         WANT_AMFLOCK_LOCKF="yes"
23302         LOCKING="LOCKF"
23303     fi
23304      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
23305   WANT_AMFLOCK_LOCKF_TRUE=
23306   WANT_AMFLOCK_LOCKF_FALSE='#'
23307 else
23308   WANT_AMFLOCK_LOCKF_TRUE='#'
23309   WANT_AMFLOCK_LOCKF_FALSE=
23310 fi
23311
23312
23313     # check our homebrew hardlink-based locking (requires hardlinks)
23314     { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
23315 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
23316 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
23317   $as_echo_n "(cached) " >&6
23318 else
23319
23320             cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h.  */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h.  */
23326
23327 #if HAVE_UNISTD_H
23328 # include <unistd.h>
23329 #endif
23330
23331 int
23332 main ()
23333 {
23334
23335             return link("/tmp/foo", "/tmp/bar");
23336
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (ac_try="$ac_link"
23343 case "(($ac_try" in
23344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345   *) ac_try_echo=$ac_try;;
23346 esac
23347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23348 $as_echo "$ac_try_echo") >&5
23349   (eval "$ac_link") 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } && {
23356          test -z "$ac_c_werror_flag" ||
23357          test ! -s conftest.err
23358        } && test -s conftest$ac_exeext && {
23359          test "$cross_compiling" = yes ||
23360          $as_test_x conftest$ac_exeext
23361        }; then
23362
23363         amanda_cv_lnlock_filelocking="yes"
23364
23365 else
23366   $as_echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369
23370         amanda_cv_lnlock_filelocking="no"
23371
23372 fi
23373
23374 rm -rf conftest.dSYM
23375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23376       conftest$ac_exeext conftest.$ac_ext
23377
23378 fi
23379 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
23380 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
23381     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
23382
23383 cat >>confdefs.h <<\_ACEOF
23384 #define WANT_AMFLOCK_LNLOCK 1
23385 _ACEOF
23386
23387         WANT_AMFLOCK_LNLOCK="yes"
23388         LOCKING="LNLOCK"
23389     fi
23390      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
23391   WANT_AMFLOCK_LNLOCK_TRUE=
23392   WANT_AMFLOCK_LNLOCK_FALSE='#'
23393 else
23394   WANT_AMFLOCK_LNLOCK_TRUE='#'
23395   WANT_AMFLOCK_LNLOCK_FALSE=
23396 fi
23397
23398
23399     if test x"$LOCKING" = "no"; then
23400         # this shouldn't happen, and is *bad* if it does
23401         { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
23402 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
23403    { (exit 1); exit 1; }; }
23404     fi
23405
23406
23407
23408
23409
23410     for ac_prog in swig
23411 do
23412   # Extract the first word of "$ac_prog", so it can be a program name with args.
23413 set dummy $ac_prog; ac_word=$2
23414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23415 $as_echo_n "checking for $ac_word... " >&6; }
23416 if test "${ac_cv_path_SWIG+set}" = set; then
23417   $as_echo_n "(cached) " >&6
23418 else
23419   case $SWIG in
23420   [\\/]* | ?:[\\/]*)
23421   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23422   ;;
23423   *)
23424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23425 for as_dir in $LOCSYSPATH
23426 do
23427   IFS=$as_save_IFS
23428   test -z "$as_dir" && as_dir=.
23429   for ac_exec_ext in '' $ac_executable_extensions; do
23430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23431     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23433     break 2
23434   fi
23435 done
23436 done
23437 IFS=$as_save_IFS
23438
23439   ;;
23440 esac
23441 fi
23442 SWIG=$ac_cv_path_SWIG
23443 if test -n "$SWIG"; then
23444   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23445 $as_echo "$SWIG" >&6; }
23446 else
23447   { $as_echo "$as_me:$LINENO: result: no" >&5
23448 $as_echo "no" >&6; }
23449 fi
23450
23451
23452   test -n "$SWIG" && break
23453 done
23454
23455
23456
23457         # Extract the first word of "swig", so it can be a program name with args.
23458 set dummy swig; ac_word=$2
23459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23460 $as_echo_n "checking for $ac_word... " >&6; }
23461 if test "${ac_cv_path_SWIG+set}" = set; then
23462   $as_echo_n "(cached) " >&6
23463 else
23464   case $SWIG in
23465   [\\/]* | ?:[\\/]*)
23466   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23467   ;;
23468   *)
23469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23470 for as_dir in $PATH
23471 do
23472   IFS=$as_save_IFS
23473   test -z "$as_dir" && as_dir=.
23474   for ac_exec_ext in '' $ac_executable_extensions; do
23475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23476     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23477     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23478     break 2
23479   fi
23480 done
23481 done
23482 IFS=$as_save_IFS
23483
23484   ;;
23485 esac
23486 fi
23487 SWIG=$ac_cv_path_SWIG
23488 if test -n "$SWIG"; then
23489   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23490 $as_echo "$SWIG" >&6; }
23491 else
23492   { $as_echo "$as_me:$LINENO: result: no" >&5
23493 $as_echo "no" >&6; }
23494 fi
23495
23496
23497         if test -z "$SWIG" ; then
23498                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
23499         elif test -n "1.3.28" ; then
23500                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
23501 $as_echo_n "checking for SWIG version... " >&6; }
23502                 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'`
23503                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
23504 $as_echo "$swig_version" >&6; }
23505                 if test -n "$swig_version" ; then
23506                         # Calculate the required version number components
23507                         required=1.3.28
23508                         required_major=`echo $required | sed 's/[^0-9].*//'`
23509                         if test -z "$required_major" ; then
23510                                 required_major=0
23511                         fi
23512                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23513                         required_minor=`echo $required | sed 's/[^0-9].*//'`
23514                         if test -z "$required_minor" ; then
23515                                 required_minor=0
23516                         fi
23517                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23518                         required_patch=`echo $required | sed 's/[^0-9].*//'`
23519                         if test -z "$required_patch" ; then
23520                                 required_patch=0
23521                         fi
23522                         # Calculate the available version number components
23523                         available=$swig_version
23524                         available_major=`echo $available | sed 's/[^0-9].*//'`
23525                         if test -z "$available_major" ; then
23526                                 available_major=0
23527                         fi
23528                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23529                         available_minor=`echo $available | sed 's/[^0-9].*//'`
23530                         if test -z "$available_minor" ; then
23531                                 available_minor=0
23532                         fi
23533                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23534                         available_patch=`echo $available | sed 's/[^0-9].*//'`
23535                         if test -z "$available_patch" ; then
23536                                 available_patch=0
23537                         fi
23538                         if test $available_major -ne $required_major \
23539                                 -o $available_minor -ne $required_minor \
23540                                 -o $available_patch -lt $required_patch ; then
23541                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
23542                         else
23543                                 SWIG_LIB=`$SWIG -swiglib`
23544                         fi
23545                 else
23546                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
23547                 fi
23548         fi
23549
23550
23551
23552
23553
23554     for ac_prog in perl5 perl
23555 do
23556   # Extract the first word of "$ac_prog", so it can be a program name with args.
23557 set dummy $ac_prog; ac_word=$2
23558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23559 $as_echo_n "checking for $ac_word... " >&6; }
23560 if test "${ac_cv_path_PERL+set}" = set; then
23561   $as_echo_n "(cached) " >&6
23562 else
23563   case $PERL in
23564   [\\/]* | ?:[\\/]*)
23565   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23566   ;;
23567   *)
23568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23569 for as_dir in $LOCSYSPATH
23570 do
23571   IFS=$as_save_IFS
23572   test -z "$as_dir" && as_dir=.
23573   for ac_exec_ext in '' $ac_executable_extensions; do
23574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23575     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23576     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23577     break 2
23578   fi
23579 done
23580 done
23581 IFS=$as_save_IFS
23582
23583   ;;
23584 esac
23585 fi
23586 PERL=$ac_cv_path_PERL
23587 if test -n "$PERL"; then
23588   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23589 $as_echo "$PERL" >&6; }
23590 else
23591   { $as_echo "$as_me:$LINENO: result: no" >&5
23592 $as_echo "no" >&6; }
23593 fi
23594
23595
23596   test -n "$PERL" && break
23597 done
23598
23599
23600     # Make sure we have perl
23601 if test -z "$PERL"; then
23602 # Extract the first word of "perl", so it can be a program name with args.
23603 set dummy perl; ac_word=$2
23604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23605 $as_echo_n "checking for $ac_word... " >&6; }
23606 if test "${ac_cv_prog_PERL+set}" = set; then
23607   $as_echo_n "(cached) " >&6
23608 else
23609   if test -n "$PERL"; then
23610   ac_cv_prog_PERL="$PERL" # Let the user override the test.
23611 else
23612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23613 for as_dir in $PATH
23614 do
23615   IFS=$as_save_IFS
23616   test -z "$as_dir" && as_dir=.
23617   for ac_exec_ext in '' $ac_executable_extensions; do
23618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23619     ac_cv_prog_PERL="perl"
23620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23621     break 2
23622   fi
23623 done
23624 done
23625 IFS=$as_save_IFS
23626
23627 fi
23628 fi
23629 PERL=$ac_cv_prog_PERL
23630 if test -n "$PERL"; then
23631   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23632 $as_echo "$PERL" >&6; }
23633 else
23634   { $as_echo "$as_me:$LINENO: result: no" >&5
23635 $as_echo "no" >&6; }
23636 fi
23637
23638
23639 fi
23640
23641 # Check if version of Perl is sufficient
23642 ac_perl_version="5.6.0"
23643
23644 if test "x$PERL" != "x"; then
23645   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
23646 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
23647   # NB: It would be nice to log the error if there is one, but we cannot rely
23648   # on autoconf internals
23649   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
23650   if test $? -ne 0; then
23651     { $as_echo "$as_me:$LINENO: result: no" >&5
23652 $as_echo "no" >&6; };
23653
23654         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
23655 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
23656    { (exit 1); exit 1; }; }
23657
23658   else
23659     { $as_echo "$as_me:$LINENO: result: ok" >&5
23660 $as_echo "ok" >&6; };
23661
23662   fi
23663 else
23664   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
23665 $as_echo "$as_me: WARNING: could not find perl" >&2;}
23666 fi
23667
23668
23669
23670
23671
23672
23673     # If we want cygwin to copy ddl to modules directory.
23674     WANT_CYGWIN_COPY_PERL_DLL="false"
23675
23676     # test for ExtUtils::Embed
23677     ac_perl_list_modules="ExtUtils::Embed 0.0"
23678 # Make sure we have perl
23679 if test -z "$PERL"; then
23680 # Extract the first word of "perl", so it can be a program name with args.
23681 set dummy perl; ac_word=$2
23682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23683 $as_echo_n "checking for $ac_word... " >&6; }
23684 if test "${ac_cv_prog_PERL+set}" = set; then
23685   $as_echo_n "(cached) " >&6
23686 else
23687   if test -n "$PERL"; then
23688   ac_cv_prog_PERL="$PERL" # Let the user override the test.
23689 else
23690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23691 for as_dir in $PATH
23692 do
23693   IFS=$as_save_IFS
23694   test -z "$as_dir" && as_dir=.
23695   for ac_exec_ext in '' $ac_executable_extensions; do
23696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23697     ac_cv_prog_PERL="perl"
23698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23699     break 2
23700   fi
23701 done
23702 done
23703 IFS=$as_save_IFS
23704
23705 fi
23706 fi
23707 PERL=$ac_cv_prog_PERL
23708 if test -n "$PERL"; then
23709   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23710 $as_echo "$PERL" >&6; }
23711 else
23712   { $as_echo "$as_me:$LINENO: result: no" >&5
23713 $as_echo "no" >&6; }
23714 fi
23715
23716
23717 fi
23718
23719 # Check the number of arguments
23720 args_num=`echo $ac_perl_list_modules | wc -w`
23721 let "ckeck_args = $args_num % 2"
23722 if test "$check_args" = "1" ; then
23723   { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
23724 $as_echo "$as_me: error: syntax error" >&2;}
23725    { (exit 1); exit 1; }; }
23726 else
23727   eval
23728 fi
23729
23730 if test "x$PERL" != x; then
23731   ac_failed=0
23732   while test ${#ac_perl_list_modules} -gt 2 ; do
23733         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
23734         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
23735         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
23736         { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
23737 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
23738
23739         $PERL "-M$module_name" -e exit > /dev/null 2>&1
23740         if test $? -ne 0; then
23741           { $as_echo "$as_me:$LINENO: result: no" >&5
23742 $as_echo "no" >&6; };
23743           ac_failed=1
23744           ac_perl_list_modules=""
23745         else
23746           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
23747           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
23748           if test $? -eq 0 -o $? -eq 1 ; then
23749             { $as_echo "$as_me:$LINENO: result: ok" >&5
23750 $as_echo "ok" >&6; };
23751           else
23752             { $as_echo "$as_me:$LINENO: result: no" >&5
23753 $as_echo "no" >&6; }
23754             ac_failed=1
23755             ac_perl_list_modules=""
23756           fi
23757         fi;
23758   done
23759
23760   if test "$ac_failed" = 0; then
23761     :
23762
23763   else
23764     :
23765
23766         { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
23767 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
23768    { (exit 1); exit 1; }; }
23769
23770   fi
23771 else
23772   { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
23773 $as_echo "$as_me: error: could not find perl" >&2;}
23774    { (exit 1); exit 1; }; }
23775 fi
23776
23777     # get the include path for building perl extensions
23778     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
23779
23780
23781     if test x"$enable_shared" = x"no"; then
23782         { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
23783 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
23784    { (exit 1); exit 1; }; }
23785     fi
23786
23787     case "$target" in
23788         *freebsd[123456]*) # up to and including FreeBSD 6.*
23789             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
23790             # libgthread to automatically pull in the desired threading library.
23791             # Instead, they assume that any application linking against
23792             # libgthread will pull in the threading library.  This is fine for
23793             # Amanda C applications, but for Perl applications this assumption
23794             # means that the perl binary would pull in the threading library.
23795             # But perl is compiled without threading by default.
23796             #
23797             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
23798             # decision is made in gcc's spec files, which were changed in
23799             # gcc-4.0.  For a more in-depth discussion, see
23800             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
23801             #
23802             # The easiest solution for the "default" case is to link all perl
23803             # extension libraries against the threading library, so it is loaded
23804             # when perl loads the extension library.  The default threading
23805             # library in FreeBSD is libpthread.  The below default will work on
23806             # such a FreeBSD system, but ports maintainers and those with
23807             # different configurations may need to override this value with
23808             # --with-perlextlibs.
23809             #
23810             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
23811             # combination with -shared.  See
23812             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
23813
23814             PERLEXTLIBS="-lpthread"
23815             ;;
23816         *-pc-cygwin)
23817             # When need -lperl and the '-L' where it is located,
23818             # we don't want the DynaLoader.a
23819             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
23820             WANT_CYGWIN_COPY_PERL_DLL="true";
23821             ;;
23822     esac
23823      if $WANT_CYGWIN_COPY_PERL_DLL; then
23824   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
23825   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
23826 else
23827   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
23828   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
23829 fi
23830
23831
23832
23833 # Check whether --with-perlextlibs was given.
23834 if test "${with_perlextlibs+set}" = set; then
23835   withval=$with_perlextlibs;
23836             case "$withval" in
23837                 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
23838 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
23839    { (exit 1); exit 1; }; };;
23840                 n|no) PERLEXTLIBS='';;
23841                 *) PERLEXTLIBS="$withval" ;;
23842             esac
23843
23844 fi
23845
23846
23847
23848
23849
23850     # Extract the first word of "cat", so it can be a program name with args.
23851 set dummy cat; ac_word=$2
23852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23853 $as_echo_n "checking for $ac_word... " >&6; }
23854 if test "${ac_cv_path_CAT+set}" = set; then
23855   $as_echo_n "(cached) " >&6
23856 else
23857   case $CAT in
23858   [\\/]* | ?:[\\/]*)
23859   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
23860   ;;
23861   *)
23862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23863 for as_dir in $LOCSYSPATH
23864 do
23865   IFS=$as_save_IFS
23866   test -z "$as_dir" && as_dir=.
23867   for ac_exec_ext in '' $ac_executable_extensions; do
23868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23869     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
23870     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23871     break 2
23872   fi
23873 done
23874 done
23875 IFS=$as_save_IFS
23876
23877   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
23878   ;;
23879 esac
23880 fi
23881 CAT=$ac_cv_path_CAT
23882 if test -n "$CAT"; then
23883   { $as_echo "$as_me:$LINENO: result: $CAT" >&5
23884 $as_echo "$CAT" >&6; }
23885 else
23886   { $as_echo "$as_me:$LINENO: result: no" >&5
23887 $as_echo "no" >&6; }
23888 fi
23889
23890
23891
23892
23893
23894
23895
23896
23897     HAVE_GZIP=
23898     if test "$GZIP"; then
23899
23900 cat >>confdefs.h <<\_ACEOF
23901 #define HAVE_GZIP 1
23902 _ACEOF
23903
23904         HAVE_GZIP=1
23905         COMPRESS_PATH="$GZIP"
23906         COMPRESS_SUFFIX=".gz"
23907         COMPRESS_FAST_OPT="--fast"
23908         COMPRESS_BEST_OPT="--best"
23909         UNCOMPRESS_PATH="$GZIP"
23910         UNCOMPRESS_OPT="-dc"
23911     else
23912         if test "$COMPRESS"; then
23913             COMPRESS_PATH="$COMPRESS"
23914             COMPRESS_SUFFIX=".Z"
23915             COMPRESS_FAST_OPT="-f"
23916             COMPRESS_BEST_OPT="-f"
23917             UNCOMPRESS_PATH="$COMPRESS"
23918             UNCOMPRESS_OPT="-dc"
23919         else
23920             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
23921             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
23922             # look for a file by the name of "".
23923             # XXX is the above true? --dustin
23924
23925
23926     { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
23927 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
23928
23929
23930     cat <<AAW_EOF >>config.warnings
23931 Cannot find either gzip or compress.  Using cat.
23932 AAW_EOF
23933
23934
23935             COMPRESS_PATH="$CAT"
23936             COMPRESS_SUFFIX=""
23937             COMPRESS_FAST_OPT=""
23938             COMPRESS_BEST_OPT=""
23939             UNCOMPRESS_PATH="$CAT"
23940             UNCOMPRESS_OPT=""
23941         fi
23942     fi
23943
23944
23945 cat >>confdefs.h <<_ACEOF
23946 #define COMPRESS_PATH "$COMPRESS_PATH"
23947 _ACEOF
23948
23949
23950 cat >>confdefs.h <<_ACEOF
23951 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
23952 _ACEOF
23953
23954
23955 cat >>confdefs.h <<_ACEOF
23956 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
23957 _ACEOF
23958
23959
23960 cat >>confdefs.h <<_ACEOF
23961 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
23962 _ACEOF
23963
23964
23965 cat >>confdefs.h <<_ACEOF
23966 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
23967 _ACEOF
23968
23969
23970 cat >>confdefs.h <<_ACEOF
23971 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
23972 _ACEOF
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983     # Empty GZIP so that make dist works.
23984     GZIP=
23985
23986
23987     { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
23988 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
23989 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
23990   $as_echo_n "(cached) " >&6
23991 else
23992
23993         cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h.  */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h.  */
23999
24000 #       include <sys/types.h>
24001 #       include <sys/socket.h>
24002 int
24003 main ()
24004 {
24005 u_int i = sizeof (struct sockaddr_storage)
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014   *) ac_try_echo=$ac_try;;
24015 esac
24016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24017 $as_echo "$ac_try_echo") >&5
24018   (eval "$ac_compile") 2>conftest.er1
24019   ac_status=$?
24020   grep -v '^ *+' conftest.er1 >conftest.err
24021   rm -f conftest.er1
24022   cat conftest.err >&5
24023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); } && {
24025          test -z "$ac_c_werror_flag" ||
24026          test ! -s conftest.err
24027        } && test -s conftest.$ac_objext; then
24028   ac_cv_has_sockaddr_storage=yes
24029 else
24030   $as_echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24032
24033         ac_cv_has_sockaddr_storage=no
24034 fi
24035
24036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037
24038 fi
24039 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
24040 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
24041
24042     if test $ac_cv_has_sockaddr_storage = yes ; then
24043
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_SOCKADDR_STORAGE 1
24046 _ACEOF
24047
24048     fi
24049
24050
24051
24052
24053     WORKING_IPV6=no
24054
24055 # Check whether --with-ipv6 was given.
24056 if test "${with_ipv6+set}" = set; then
24057   withval=$with_ipv6;
24058             case "$withval" in
24059             y | ye | yes) amanda_with_ipv6=yes;;
24060             n | no) amanda_with_ipv6=no;;
24061             *)
24062                 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
24063 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
24064    { (exit 1); exit 1; }; }
24065               ;;
24066             esac
24067
24068 else
24069
24070             amanda_with_ipv6=maybe
24071
24072
24073 fi
24074
24075
24076     if test x"$amanda_with_ipv6" = x"yes" ||
24077        test x"$amanda_with_ipv6" = x"maybe" ; then
24078         { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
24079 $as_echo_n "checking for working IPv6... " >&6; }
24080 if test "${amanda_cv_working_ipv6+set}" = set; then
24081   $as_echo_n "(cached) " >&6
24082 else
24083
24084             case "$target" in
24085                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
24086                 *)
24087                     if test "$cross_compiling" = yes; then
24088    amanda_cv_working_ipv6=yes
24089
24090 else
24091   cat >conftest.$ac_ext <<_ACEOF
24092 /* confdefs.h.  */
24093 _ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h.  */
24097
24098 #include <sys/types.h>
24099 #ifdef HAVE_SYS_SOCKET_H
24100 #include <sys/socket.h>
24101 #endif
24102 #ifdef HAVE_NETINET_IN_H
24103 #include <netinet/in.h>
24104 #endif
24105 #ifdef HAVE_WINSOCK2_H
24106 #include <winsock2.h>
24107 #endif
24108 #include <sys/socket.h>
24109 #include <errno.h>
24110
24111 main()
24112 {
24113    int aa;
24114    aa = socket(AF_INET6, SOCK_STREAM, 0);
24115    if (aa > 0) return 0;
24116    return aa;
24117 }
24118 _ACEOF
24119 rm -f conftest$ac_exeext
24120 if { (ac_try="$ac_link"
24121 case "(($ac_try" in
24122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123   *) ac_try_echo=$ac_try;;
24124 esac
24125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24126 $as_echo "$ac_try_echo") >&5
24127   (eval "$ac_link") 2>&5
24128   ac_status=$?
24129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24131   { (case "(($ac_try" in
24132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133   *) ac_try_echo=$ac_try;;
24134 esac
24135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24136 $as_echo "$ac_try_echo") >&5
24137   (eval "$ac_try") 2>&5
24138   ac_status=$?
24139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); }; }; then
24141    amanda_cv_working_ipv6=yes
24142 else
24143   $as_echo "$as_me: program exited with status $ac_status" >&5
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24146
24147 ( exit $ac_status )
24148  amanda_cv_working_ipv6=no
24149 fi
24150 rm -rf conftest.dSYM
24151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24152 fi
24153
24154
24155             esac
24156
24157 fi
24158 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
24159 $as_echo "$amanda_cv_working_ipv6" >&6; }
24160
24161         if test "$amanda_cv_working_ipv6" = yes; then
24162             WORKING_IPV6=yes
24163
24164 cat >>confdefs.h <<\_ACEOF
24165 #define WORKING_IPV6 1
24166 _ACEOF
24167
24168         else
24169             # error out only if the user specifically requested support
24170             if test x"$amanda_with_ipv6" = x"yes"; then
24171                 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
24172 $as_echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
24173    { (exit 1); exit 1; }; }
24174             fi
24175         fi
24176     fi
24177
24178
24179
24180
24181 # Check whether --with-mmap was given.
24182 if test "${with_mmap+set}" = set; then
24183   withval=$with_mmap;
24184             case "$FORCE_MMAP" in
24185                 y | ye | yes | n | no) : ;;
24186                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
24187 $as_echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
24188    { (exit 1); exit 1; }; } ;;
24189             esac
24190             FORCE_MMAP=$withval
24191
24192 else
24193    : ${FORCE_MMAP=no}
24194
24195 fi
24196
24197
24198
24199
24200
24201 for ac_header in \
24202             sys/shm.h \
24203             sys/mman.h \
24204
24205 do
24206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24208   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24209 $as_echo_n "checking for $ac_header... " >&6; }
24210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24211   $as_echo_n "(cached) " >&6
24212 fi
24213 ac_res=`eval 'as_val=${'$as_ac_Header'}
24214                  $as_echo "$as_val"'`
24215                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24216 $as_echo "$ac_res" >&6; }
24217 else
24218   # Is the header compilable?
24219 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24220 $as_echo_n "checking $ac_header usability... " >&6; }
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 $ac_includes_default
24228 #include <$ac_header>
24229 _ACEOF
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234   *) ac_try_echo=$ac_try;;
24235 esac
24236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24237 $as_echo "$ac_try_echo") >&5
24238   (eval "$ac_compile") 2>conftest.er1
24239   ac_status=$?
24240   grep -v '^ *+' conftest.er1 >conftest.err
24241   rm -f conftest.er1
24242   cat conftest.err >&5
24243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244   (exit $ac_status); } && {
24245          test -z "$ac_c_werror_flag" ||
24246          test ! -s conftest.err
24247        } && test -s conftest.$ac_objext; then
24248   ac_header_compiler=yes
24249 else
24250   $as_echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253         ac_header_compiler=no
24254 fi
24255
24256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24257 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24258 $as_echo "$ac_header_compiler" >&6; }
24259
24260 # Is the header present?
24261 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24262 $as_echo_n "checking $ac_header presence... " >&6; }
24263 cat >conftest.$ac_ext <<_ACEOF
24264 /* confdefs.h.  */
24265 _ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h.  */
24269 #include <$ac_header>
24270 _ACEOF
24271 if { (ac_try="$ac_cpp conftest.$ac_ext"
24272 case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24277 $as_echo "$ac_try_echo") >&5
24278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24279   ac_status=$?
24280   grep -v '^ *+' conftest.er1 >conftest.err
24281   rm -f conftest.er1
24282   cat conftest.err >&5
24283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } >/dev/null && {
24285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24286          test ! -s conftest.err
24287        }; then
24288   ac_header_preproc=yes
24289 else
24290   $as_echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24292
24293   ac_header_preproc=no
24294 fi
24295
24296 rm -f conftest.err conftest.$ac_ext
24297 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24298 $as_echo "$ac_header_preproc" >&6; }
24299
24300 # So?  What about this header?
24301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24302   yes:no: )
24303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24304 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24305     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24306 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24307     ac_header_preproc=yes
24308     ;;
24309   no:yes:* )
24310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24311 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24313 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24315 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24317 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24321 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24322
24323     ;;
24324 esac
24325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24326 $as_echo_n "checking for $ac_header... " >&6; }
24327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24328   $as_echo_n "(cached) " >&6
24329 else
24330   eval "$as_ac_Header=\$ac_header_preproc"
24331 fi
24332 ac_res=`eval 'as_val=${'$as_ac_Header'}
24333                  $as_echo "$as_val"'`
24334                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24335 $as_echo "$ac_res" >&6; }
24336
24337 fi
24338 as_val=`eval 'as_val=${'$as_ac_Header'}
24339                  $as_echo "$as_val"'`
24340    if test "x$as_val" = x""yes; then
24341   cat >>confdefs.h <<_ACEOF
24342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24343 _ACEOF
24344
24345 fi
24346
24347 done
24348
24349
24350
24351
24352 for ac_header in stdlib.h unistd.h
24353 do
24354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24357 $as_echo_n "checking for $ac_header... " >&6; }
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359   $as_echo_n "(cached) " >&6
24360 fi
24361 ac_res=`eval 'as_val=${'$as_ac_Header'}
24362                  $as_echo "$as_val"'`
24363                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24364 $as_echo "$ac_res" >&6; }
24365 else
24366   # Is the header compilable?
24367 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24368 $as_echo_n "checking $ac_header usability... " >&6; }
24369 cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375 $ac_includes_default
24376 #include <$ac_header>
24377 _ACEOF
24378 rm -f conftest.$ac_objext
24379 if { (ac_try="$ac_compile"
24380 case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24385 $as_echo "$ac_try_echo") >&5
24386   (eval "$ac_compile") 2>conftest.er1
24387   ac_status=$?
24388   grep -v '^ *+' conftest.er1 >conftest.err
24389   rm -f conftest.er1
24390   cat conftest.err >&5
24391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); } && {
24393          test -z "$ac_c_werror_flag" ||
24394          test ! -s conftest.err
24395        } && test -s conftest.$ac_objext; then
24396   ac_header_compiler=yes
24397 else
24398   $as_echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24400
24401         ac_header_compiler=no
24402 fi
24403
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24406 $as_echo "$ac_header_compiler" >&6; }
24407
24408 # Is the header present?
24409 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24410 $as_echo_n "checking $ac_header presence... " >&6; }
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417 #include <$ac_header>
24418 _ACEOF
24419 if { (ac_try="$ac_cpp conftest.$ac_ext"
24420 case "(($ac_try" in
24421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422   *) ac_try_echo=$ac_try;;
24423 esac
24424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24425 $as_echo "$ac_try_echo") >&5
24426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24427   ac_status=$?
24428   grep -v '^ *+' conftest.er1 >conftest.err
24429   rm -f conftest.er1
24430   cat conftest.err >&5
24431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); } >/dev/null && {
24433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24434          test ! -s conftest.err
24435        }; then
24436   ac_header_preproc=yes
24437 else
24438   $as_echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24440
24441   ac_header_preproc=no
24442 fi
24443
24444 rm -f conftest.err conftest.$ac_ext
24445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24446 $as_echo "$ac_header_preproc" >&6; }
24447
24448 # So?  What about this header?
24449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24450   yes:no: )
24451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24452 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24455     ac_header_preproc=yes
24456     ;;
24457   no:yes:* )
24458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24459 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24461 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24463 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24465 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24467 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24469 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24470
24471     ;;
24472 esac
24473 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24474 $as_echo_n "checking for $ac_header... " >&6; }
24475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24476   $as_echo_n "(cached) " >&6
24477 else
24478   eval "$as_ac_Header=\$ac_header_preproc"
24479 fi
24480 ac_res=`eval 'as_val=${'$as_ac_Header'}
24481                  $as_echo "$as_val"'`
24482                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24483 $as_echo "$ac_res" >&6; }
24484
24485 fi
24486 as_val=`eval 'as_val=${'$as_ac_Header'}
24487                  $as_echo "$as_val"'`
24488    if test "x$as_val" = x""yes; then
24489   cat >>confdefs.h <<_ACEOF
24490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24491 _ACEOF
24492
24493 fi
24494
24495 done
24496
24497
24498 for ac_func in getpagesize
24499 do
24500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24502 $as_echo_n "checking for $ac_func... " >&6; }
24503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24504   $as_echo_n "(cached) " >&6
24505 else
24506   cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24514 #define $ac_func innocuous_$ac_func
24515
24516 /* System header to define __stub macros and hopefully few prototypes,
24517     which can conflict with char $ac_func (); below.
24518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24519     <limits.h> exists even on freestanding compilers.  */
24520
24521 #ifdef __STDC__
24522 # include <limits.h>
24523 #else
24524 # include <assert.h>
24525 #endif
24526
24527 #undef $ac_func
24528
24529 /* Override any GCC internal prototype to avoid an error.
24530    Use char because int might match the return type of a GCC
24531    builtin and then its argument prototype would still apply.  */
24532 #ifdef __cplusplus
24533 extern "C"
24534 #endif
24535 char $ac_func ();
24536 /* The GNU C library defines this for functions which it implements
24537     to always fail with ENOSYS.  Some functions are actually named
24538     something starting with __ and the normal name is an alias.  */
24539 #if defined __stub_$ac_func || defined __stub___$ac_func
24540 choke me
24541 #endif
24542
24543 int
24544 main ()
24545 {
24546 return $ac_func ();
24547   ;
24548   return 0;
24549 }
24550 _ACEOF
24551 rm -f conftest.$ac_objext conftest$ac_exeext
24552 if { (ac_try="$ac_link"
24553 case "(($ac_try" in
24554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24555   *) ac_try_echo=$ac_try;;
24556 esac
24557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24558 $as_echo "$ac_try_echo") >&5
24559   (eval "$ac_link") 2>conftest.er1
24560   ac_status=$?
24561   grep -v '^ *+' conftest.er1 >conftest.err
24562   rm -f conftest.er1
24563   cat conftest.err >&5
24564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); } && {
24566          test -z "$ac_c_werror_flag" ||
24567          test ! -s conftest.err
24568        } && test -s conftest$ac_exeext && {
24569          test "$cross_compiling" = yes ||
24570          $as_test_x conftest$ac_exeext
24571        }; then
24572   eval "$as_ac_var=yes"
24573 else
24574   $as_echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24576
24577         eval "$as_ac_var=no"
24578 fi
24579
24580 rm -rf conftest.dSYM
24581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24582       conftest$ac_exeext conftest.$ac_ext
24583 fi
24584 ac_res=`eval 'as_val=${'$as_ac_var'}
24585                  $as_echo "$as_val"'`
24586                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24587 $as_echo "$ac_res" >&6; }
24588 as_val=`eval 'as_val=${'$as_ac_var'}
24589                  $as_echo "$as_val"'`
24590    if test "x$as_val" = x""yes; then
24591   cat >>confdefs.h <<_ACEOF
24592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24593 _ACEOF
24594
24595 fi
24596 done
24597
24598 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
24599 $as_echo_n "checking for working mmap... " >&6; }
24600 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24601   $as_echo_n "(cached) " >&6
24602 else
24603   if test "$cross_compiling" = yes; then
24604   ac_cv_func_mmap_fixed_mapped=no
24605 else
24606   cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 $ac_includes_default
24613 /* malloc might have been renamed as rpl_malloc. */
24614 #undef malloc
24615
24616 /* Thanks to Mike Haertel and Jim Avera for this test.
24617    Here is a matrix of mmap possibilities:
24618         mmap private not fixed
24619         mmap private fixed at somewhere currently unmapped
24620         mmap private fixed at somewhere already mapped
24621         mmap shared not fixed
24622         mmap shared fixed at somewhere currently unmapped
24623         mmap shared fixed at somewhere already mapped
24624    For private mappings, we should verify that changes cannot be read()
24625    back from the file, nor mmap's back from the file at a different
24626    address.  (There have been systems where private was not correctly
24627    implemented like the infamous i386 svr4.0, and systems where the
24628    VM page cache was not coherent with the file system buffer cache
24629    like early versions of FreeBSD and possibly contemporary NetBSD.)
24630    For shared mappings, we should conversely verify that changes get
24631    propagated back to all the places they're supposed to be.
24632
24633    Grep wants private fixed already mapped.
24634    The main things grep needs to know about mmap are:
24635    * does it exist and is it safe to write into the mmap'd area
24636    * how to use it (BSD variants)  */
24637
24638 #include <fcntl.h>
24639 #include <sys/mman.h>
24640
24641 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24642 char *malloc ();
24643 #endif
24644
24645 /* This mess was copied from the GNU getpagesize.h.  */
24646 #ifndef HAVE_GETPAGESIZE
24647 /* Assume that all systems that can run configure have sys/param.h.  */
24648 # ifndef HAVE_SYS_PARAM_H
24649 #  define HAVE_SYS_PARAM_H 1
24650 # endif
24651
24652 # ifdef _SC_PAGESIZE
24653 #  define getpagesize() sysconf(_SC_PAGESIZE)
24654 # else /* no _SC_PAGESIZE */
24655 #  ifdef HAVE_SYS_PARAM_H
24656 #   include <sys/param.h>
24657 #   ifdef EXEC_PAGESIZE
24658 #    define getpagesize() EXEC_PAGESIZE
24659 #   else /* no EXEC_PAGESIZE */
24660 #    ifdef NBPG
24661 #     define getpagesize() NBPG * CLSIZE
24662 #     ifndef CLSIZE
24663 #      define CLSIZE 1
24664 #     endif /* no CLSIZE */
24665 #    else /* no NBPG */
24666 #     ifdef NBPC
24667 #      define getpagesize() NBPC
24668 #     else /* no NBPC */
24669 #      ifdef PAGESIZE
24670 #       define getpagesize() PAGESIZE
24671 #      endif /* PAGESIZE */
24672 #     endif /* no NBPC */
24673 #    endif /* no NBPG */
24674 #   endif /* no EXEC_PAGESIZE */
24675 #  else /* no HAVE_SYS_PARAM_H */
24676 #   define getpagesize() 8192   /* punt totally */
24677 #  endif /* no HAVE_SYS_PARAM_H */
24678 # endif /* no _SC_PAGESIZE */
24679
24680 #endif /* no HAVE_GETPAGESIZE */
24681
24682 int
24683 main ()
24684 {
24685   char *data, *data2, *data3;
24686   int i, pagesize;
24687   int fd;
24688
24689   pagesize = getpagesize ();
24690
24691   /* First, make a file with some known garbage in it. */
24692   data = (char *) malloc (pagesize);
24693   if (!data)
24694     return 1;
24695   for (i = 0; i < pagesize; ++i)
24696     *(data + i) = rand ();
24697   umask (0);
24698   fd = creat ("conftest.mmap", 0600);
24699   if (fd < 0)
24700     return 1;
24701   if (write (fd, data, pagesize) != pagesize)
24702     return 1;
24703   close (fd);
24704
24705   /* Next, try to mmap the file at a fixed address which already has
24706      something else allocated at it.  If we can, also make sure that
24707      we see the same garbage.  */
24708   fd = open ("conftest.mmap", O_RDWR);
24709   if (fd < 0)
24710     return 1;
24711   data2 = (char *) malloc (2 * pagesize);
24712   if (!data2)
24713     return 1;
24714   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24715   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24716                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24717     return 1;
24718   for (i = 0; i < pagesize; ++i)
24719     if (*(data + i) != *(data2 + i))
24720       return 1;
24721
24722   /* Finally, make sure that changes to the mapped area do not
24723      percolate back to the file as seen by read().  (This is a bug on
24724      some variants of i386 svr4.0.)  */
24725   for (i = 0; i < pagesize; ++i)
24726     *(data2 + i) = *(data2 + i) + 1;
24727   data3 = (char *) malloc (pagesize);
24728   if (!data3)
24729     return 1;
24730   if (read (fd, data3, pagesize) != pagesize)
24731     return 1;
24732   for (i = 0; i < pagesize; ++i)
24733     if (*(data + i) != *(data3 + i))
24734       return 1;
24735   close (fd);
24736   return 0;
24737 }
24738 _ACEOF
24739 rm -f conftest$ac_exeext
24740 if { (ac_try="$ac_link"
24741 case "(($ac_try" in
24742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743   *) ac_try_echo=$ac_try;;
24744 esac
24745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747   (eval "$ac_link") 2>&5
24748   ac_status=$?
24749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24751   { (case "(($ac_try" in
24752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753   *) ac_try_echo=$ac_try;;
24754 esac
24755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24756 $as_echo "$ac_try_echo") >&5
24757   (eval "$ac_try") 2>&5
24758   ac_status=$?
24759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); }; }; then
24761   ac_cv_func_mmap_fixed_mapped=yes
24762 else
24763   $as_echo "$as_me: program exited with status $ac_status" >&5
24764 $as_echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24766
24767 ( exit $ac_status )
24768 ac_cv_func_mmap_fixed_mapped=no
24769 fi
24770 rm -rf conftest.dSYM
24771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24772 fi
24773
24774
24775 fi
24776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24777 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24778 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24779
24780 cat >>confdefs.h <<\_ACEOF
24781 #define HAVE_MMAP 1
24782 _ACEOF
24783
24784 fi
24785 rm -f conftest.mmap
24786
24787
24788
24789 for ac_func in shmget
24790 do
24791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24793 $as_echo_n "checking for $ac_func... " >&6; }
24794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24795   $as_echo_n "(cached) " >&6
24796 else
24797   cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h.  */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h.  */
24803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24805 #define $ac_func innocuous_$ac_func
24806
24807 /* System header to define __stub macros and hopefully few prototypes,
24808     which can conflict with char $ac_func (); below.
24809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24810     <limits.h> exists even on freestanding compilers.  */
24811
24812 #ifdef __STDC__
24813 # include <limits.h>
24814 #else
24815 # include <assert.h>
24816 #endif
24817
24818 #undef $ac_func
24819
24820 /* Override any GCC internal prototype to avoid an error.
24821    Use char because int might match the return type of a GCC
24822    builtin and then its argument prototype would still apply.  */
24823 #ifdef __cplusplus
24824 extern "C"
24825 #endif
24826 char $ac_func ();
24827 /* The GNU C library defines this for functions which it implements
24828     to always fail with ENOSYS.  Some functions are actually named
24829     something starting with __ and the normal name is an alias.  */
24830 #if defined __stub_$ac_func || defined __stub___$ac_func
24831 choke me
24832 #endif
24833
24834 int
24835 main ()
24836 {
24837 return $ac_func ();
24838   ;
24839   return 0;
24840 }
24841 _ACEOF
24842 rm -f conftest.$ac_objext conftest$ac_exeext
24843 if { (ac_try="$ac_link"
24844 case "(($ac_try" in
24845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846   *) ac_try_echo=$ac_try;;
24847 esac
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850   (eval "$ac_link") 2>conftest.er1
24851   ac_status=$?
24852   grep -v '^ *+' conftest.er1 >conftest.err
24853   rm -f conftest.er1
24854   cat conftest.err >&5
24855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); } && {
24857          test -z "$ac_c_werror_flag" ||
24858          test ! -s conftest.err
24859        } && test -s conftest$ac_exeext && {
24860          test "$cross_compiling" = yes ||
24861          $as_test_x conftest$ac_exeext
24862        }; then
24863   eval "$as_ac_var=yes"
24864 else
24865   $as_echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868         eval "$as_ac_var=no"
24869 fi
24870
24871 rm -rf conftest.dSYM
24872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24873       conftest$ac_exeext conftest.$ac_ext
24874 fi
24875 ac_res=`eval 'as_val=${'$as_ac_var'}
24876                  $as_echo "$as_val"'`
24877                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24878 $as_echo "$ac_res" >&6; }
24879 as_val=`eval 'as_val=${'$as_ac_var'}
24880                  $as_echo "$as_val"'`
24881    if test "x$as_val" = x""yes; then
24882   cat >>confdefs.h <<_ACEOF
24883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24884 _ACEOF
24885
24886
24887
24888
24889
24890 for ac_header in sys/types.h \
24891             sys/ipc.h \
24892             sys/shm.h \
24893
24894 do
24895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24897   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24898 $as_echo_n "checking for $ac_header... " >&6; }
24899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24900   $as_echo_n "(cached) " >&6
24901 fi
24902 ac_res=`eval 'as_val=${'$as_ac_Header'}
24903                  $as_echo "$as_val"'`
24904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24905 $as_echo "$ac_res" >&6; }
24906 else
24907   # Is the header compilable?
24908 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24909 $as_echo_n "checking $ac_header usability... " >&6; }
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h.  */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h.  */
24916 $ac_includes_default
24917 #include <$ac_header>
24918 _ACEOF
24919 rm -f conftest.$ac_objext
24920 if { (ac_try="$ac_compile"
24921 case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926 $as_echo "$ac_try_echo") >&5
24927   (eval "$ac_compile") 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } && {
24934          test -z "$ac_c_werror_flag" ||
24935          test ! -s conftest.err
24936        } && test -s conftest.$ac_objext; then
24937   ac_header_compiler=yes
24938 else
24939   $as_echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24941
24942         ac_header_compiler=no
24943 fi
24944
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24947 $as_echo "$ac_header_compiler" >&6; }
24948
24949 # Is the header present?
24950 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24951 $as_echo_n "checking $ac_header presence... " >&6; }
24952 cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h.  */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h.  */
24958 #include <$ac_header>
24959 _ACEOF
24960 if { (ac_try="$ac_cpp conftest.$ac_ext"
24961 case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24968   ac_status=$?
24969   grep -v '^ *+' conftest.er1 >conftest.err
24970   rm -f conftest.er1
24971   cat conftest.err >&5
24972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } >/dev/null && {
24974          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24975          test ! -s conftest.err
24976        }; then
24977   ac_header_preproc=yes
24978 else
24979   $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982   ac_header_preproc=no
24983 fi
24984
24985 rm -f conftest.err conftest.$ac_ext
24986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24987 $as_echo "$ac_header_preproc" >&6; }
24988
24989 # So?  What about this header?
24990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24991   yes:no: )
24992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24993 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24996     ac_header_preproc=yes
24997     ;;
24998   no:yes:* )
24999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25000 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25002 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25004 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25006 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25010 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25011
25012     ;;
25013 esac
25014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25015 $as_echo_n "checking for $ac_header... " >&6; }
25016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25017   $as_echo_n "(cached) " >&6
25018 else
25019   eval "$as_ac_Header=\$ac_header_preproc"
25020 fi
25021 ac_res=`eval 'as_val=${'$as_ac_Header'}
25022                  $as_echo "$as_val"'`
25023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25024 $as_echo "$ac_res" >&6; }
25025
25026 fi
25027 as_val=`eval 'as_val=${'$as_ac_Header'}
25028                  $as_echo "$as_val"'`
25029    if test "x$as_val" = x""yes; then
25030   cat >>confdefs.h <<_ACEOF
25031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25032 _ACEOF
25033
25034 fi
25035
25036 done
25037
25038
25039         { $as_echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
25040 $as_echo_n "checking for shmdt() argument type... " >&6; }
25041 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
25042   $as_echo_n "(cached) " >&6
25043 else
25044
25045                 if test "$ac_cv_func_shmget" = yes; then
25046                     cat <<EOF >conftest.$ac_ext
25047 #include "confdefs.h"
25048 #ifdef HAVE_SYS_TYPES_H
25049 # include <sys/types.h>
25050 #endif
25051 #ifdef HAVE_SYS_IPC_H
25052 # include <sys/ipc.h>
25053 #endif
25054 #ifdef HAVE_SYS_SHM_H
25055 # include <sys/shm.h>
25056 #endif
25057
25058 #ifdef __cplusplus
25059 extern "C" void *shmat(int, void *, int);
25060 #else
25061 void *shmat();
25062 #endif
25063
25064 int main()
25065 {
25066     int i;
25067     return 0;
25068 }
25069 EOF
25070                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
25071                     if test $? = 0; then
25072                         amanda_cv_shmdt_arg_type=void
25073                     else
25074                         amanda_cv_shmdt_arg_type=char
25075                     fi
25076                     rm -f conftest*
25077                 else
25078                     amanda_cv_shmdt_arg_type=nothing
25079                 fi
25080
25081
25082 fi
25083 { $as_echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
25084 $as_echo "$amanda_cv_shmdt_arg_type" >&6; }
25085
25086 cat >>confdefs.h <<_ACEOF
25087 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
25088 _ACEOF
25089
25090
25091
25092             case "$FORCE_MMAP" in
25093             n | no)
25094
25095 cat >>confdefs.h <<\_ACEOF
25096 #define HAVE_SYSVSHM 1
25097 _ACEOF
25098
25099               ;;
25100             esac
25101
25102
25103 fi
25104 done
25105
25106
25107 ice_have_shmat=no
25108
25109 for ac_func in shmat
25110 do
25111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25113 $as_echo_n "checking for $ac_func... " >&6; }
25114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25115   $as_echo_n "(cached) " >&6
25116 else
25117   cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25125 #define $ac_func innocuous_$ac_func
25126
25127 /* System header to define __stub macros and hopefully few prototypes,
25128     which can conflict with char $ac_func (); below.
25129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25130     <limits.h> exists even on freestanding compilers.  */
25131
25132 #ifdef __STDC__
25133 # include <limits.h>
25134 #else
25135 # include <assert.h>
25136 #endif
25137
25138 #undef $ac_func
25139
25140 /* Override any GCC internal prototype to avoid an error.
25141    Use char because int might match the return type of a GCC
25142    builtin and then its argument prototype would still apply.  */
25143 #ifdef __cplusplus
25144 extern "C"
25145 #endif
25146 char $ac_func ();
25147 /* The GNU C library defines this for functions which it implements
25148     to always fail with ENOSYS.  Some functions are actually named
25149     something starting with __ and the normal name is an alias.  */
25150 #if defined __stub_$ac_func || defined __stub___$ac_func
25151 choke me
25152 #endif
25153
25154 int
25155 main ()
25156 {
25157 return $ac_func ();
25158   ;
25159   return 0;
25160 }
25161 _ACEOF
25162 rm -f conftest.$ac_objext conftest$ac_exeext
25163 if { (ac_try="$ac_link"
25164 case "(($ac_try" in
25165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166   *) ac_try_echo=$ac_try;;
25167 esac
25168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25169 $as_echo "$ac_try_echo") >&5
25170   (eval "$ac_link") 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } && {
25177          test -z "$ac_c_werror_flag" ||
25178          test ! -s conftest.err
25179        } && test -s conftest$ac_exeext && {
25180          test "$cross_compiling" = yes ||
25181          $as_test_x conftest$ac_exeext
25182        }; then
25183   eval "$as_ac_var=yes"
25184 else
25185   $as_echo "$as_me: failed program was:" >&5
25186 sed 's/^/| /' conftest.$ac_ext >&5
25187
25188         eval "$as_ac_var=no"
25189 fi
25190
25191 rm -rf conftest.dSYM
25192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25193       conftest$ac_exeext conftest.$ac_ext
25194 fi
25195 ac_res=`eval 'as_val=${'$as_ac_var'}
25196                  $as_echo "$as_val"'`
25197                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25198 $as_echo "$ac_res" >&6; }
25199 as_val=`eval 'as_val=${'$as_ac_var'}
25200                  $as_echo "$as_val"'`
25201    if test "x$as_val" = x""yes; then
25202   cat >>confdefs.h <<_ACEOF
25203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25204 _ACEOF
25205  ice_have_shmat=yes
25206 fi
25207 done
25208
25209 if test "${ice_have_shmat}" = yes; then
25210 { $as_echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25211 $as_echo_n "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25212 if test "${ice_cv_have_shmat_decl+set}" = set; then
25213   $as_echo_n "(cached) " >&6
25214 else
25215
25216 ice_cv_have_shmat_decl=no
25217 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25218 ice_re_word='(^|[^a-zA-Z0-9_])'
25219 for header in sys/types.h sys/ipc.h sys/shm.h; do
25220 # Check for ordinary declaration
25221 cat >conftest.$ac_ext <<_ACEOF
25222 /* confdefs.h.  */
25223 _ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h.  */
25227 #include <$header>
25228
25229 _ACEOF
25230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25231   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
25232   ice_cv_have_shmat_decl=yes
25233 fi
25234 rm -f conftest*
25235
25236 if test "$ice_cv_have_shmat_decl" = yes; then
25237         break
25238 fi
25239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25240 cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h.  */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h.  */
25246 #include <$header>
25247
25248 _ACEOF
25249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25250   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25251   ice_cv_have_shmat_decl=yes
25252 fi
25253 rm -f conftest*
25254
25255 if test "$ice_cv_have_shmat_decl" = yes; then
25256         break
25257 fi
25258 done
25259
25260 fi
25261
25262 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
25263 $as_echo "$ice_cv_have_shmat_decl" >&6; }
25264 if test "$ice_cv_have_shmat_decl" = yes; then
25265
25266 cat >>confdefs.h <<_ACEOF
25267 #define HAVE_SHMAT_DECL 1
25268 _ACEOF
25269
25270 fi
25271 fi
25272
25273
25274 ice_have_shmctl=no
25275
25276 for ac_func in shmctl
25277 do
25278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25279 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25280 $as_echo_n "checking for $ac_func... " >&6; }
25281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25282   $as_echo_n "(cached) " >&6
25283 else
25284   cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h.  */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h.  */
25290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25292 #define $ac_func innocuous_$ac_func
25293
25294 /* System header to define __stub macros and hopefully few prototypes,
25295     which can conflict with char $ac_func (); below.
25296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25297     <limits.h> exists even on freestanding compilers.  */
25298
25299 #ifdef __STDC__
25300 # include <limits.h>
25301 #else
25302 # include <assert.h>
25303 #endif
25304
25305 #undef $ac_func
25306
25307 /* Override any GCC internal prototype to avoid an error.
25308    Use char because int might match the return type of a GCC
25309    builtin and then its argument prototype would still apply.  */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 char $ac_func ();
25314 /* The GNU C library defines this for functions which it implements
25315     to always fail with ENOSYS.  Some functions are actually named
25316     something starting with __ and the normal name is an alias.  */
25317 #if defined __stub_$ac_func || defined __stub___$ac_func
25318 choke me
25319 #endif
25320
25321 int
25322 main ()
25323 {
25324 return $ac_func ();
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337   (eval "$ac_link") 2>conftest.er1
25338   ac_status=$?
25339   grep -v '^ *+' conftest.er1 >conftest.err
25340   rm -f conftest.er1
25341   cat conftest.err >&5
25342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); } && {
25344          test -z "$ac_c_werror_flag" ||
25345          test ! -s conftest.err
25346        } && test -s conftest$ac_exeext && {
25347          test "$cross_compiling" = yes ||
25348          $as_test_x conftest$ac_exeext
25349        }; then
25350   eval "$as_ac_var=yes"
25351 else
25352   $as_echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355         eval "$as_ac_var=no"
25356 fi
25357
25358 rm -rf conftest.dSYM
25359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360       conftest$ac_exeext conftest.$ac_ext
25361 fi
25362 ac_res=`eval 'as_val=${'$as_ac_var'}
25363                  $as_echo "$as_val"'`
25364                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25365 $as_echo "$ac_res" >&6; }
25366 as_val=`eval 'as_val=${'$as_ac_var'}
25367                  $as_echo "$as_val"'`
25368    if test "x$as_val" = x""yes; then
25369   cat >>confdefs.h <<_ACEOF
25370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25371 _ACEOF
25372  ice_have_shmctl=yes
25373 fi
25374 done
25375
25376 if test "${ice_have_shmctl}" = yes; then
25377 { $as_echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25378 $as_echo_n "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25379 if test "${ice_cv_have_shmctl_decl+set}" = set; then
25380   $as_echo_n "(cached) " >&6
25381 else
25382
25383 ice_cv_have_shmctl_decl=no
25384 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25385 ice_re_word='(^|[^a-zA-Z0-9_])'
25386 for header in sys/types.h sys/ipc.h sys/shm.h; do
25387 # Check for ordinary declaration
25388 cat >conftest.$ac_ext <<_ACEOF
25389 /* confdefs.h.  */
25390 _ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h.  */
25394 #include <$header>
25395
25396 _ACEOF
25397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25398   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
25399   ice_cv_have_shmctl_decl=yes
25400 fi
25401 rm -f conftest*
25402
25403 if test "$ice_cv_have_shmctl_decl" = yes; then
25404         break
25405 fi
25406 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h.  */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h.  */
25413 #include <$header>
25414
25415 _ACEOF
25416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25417   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25418   ice_cv_have_shmctl_decl=yes
25419 fi
25420 rm -f conftest*
25421
25422 if test "$ice_cv_have_shmctl_decl" = yes; then
25423         break
25424 fi
25425 done
25426
25427 fi
25428
25429 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
25430 $as_echo "$ice_cv_have_shmctl_decl" >&6; }
25431 if test "$ice_cv_have_shmctl_decl" = yes; then
25432
25433 cat >>confdefs.h <<_ACEOF
25434 #define HAVE_SHMCTL_DECL 1
25435 _ACEOF
25436
25437 fi
25438 fi
25439
25440
25441 ice_have_shmdt=no
25442
25443 for ac_func in shmdt
25444 do
25445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25447 $as_echo_n "checking for $ac_func... " >&6; }
25448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25449   $as_echo_n "(cached) " >&6
25450 else
25451   cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h.  */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h.  */
25457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25459 #define $ac_func innocuous_$ac_func
25460
25461 /* System header to define __stub macros and hopefully few prototypes,
25462     which can conflict with char $ac_func (); below.
25463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25464     <limits.h> exists even on freestanding compilers.  */
25465
25466 #ifdef __STDC__
25467 # include <limits.h>
25468 #else
25469 # include <assert.h>
25470 #endif
25471
25472 #undef $ac_func
25473
25474 /* Override any GCC internal prototype to avoid an error.
25475    Use char because int might match the return type of a GCC
25476    builtin and then its argument prototype would still apply.  */
25477 #ifdef __cplusplus
25478 extern "C"
25479 #endif
25480 char $ac_func ();
25481 /* The GNU C library defines this for functions which it implements
25482     to always fail with ENOSYS.  Some functions are actually named
25483     something starting with __ and the normal name is an alias.  */
25484 #if defined __stub_$ac_func || defined __stub___$ac_func
25485 choke me
25486 #endif
25487
25488 int
25489 main ()
25490 {
25491 return $ac_func ();
25492   ;
25493   return 0;
25494 }
25495 _ACEOF
25496 rm -f conftest.$ac_objext conftest$ac_exeext
25497 if { (ac_try="$ac_link"
25498 case "(($ac_try" in
25499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500   *) ac_try_echo=$ac_try;;
25501 esac
25502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25503 $as_echo "$ac_try_echo") >&5
25504   (eval "$ac_link") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && {
25511          test -z "$ac_c_werror_flag" ||
25512          test ! -s conftest.err
25513        } && test -s conftest$ac_exeext && {
25514          test "$cross_compiling" = yes ||
25515          $as_test_x conftest$ac_exeext
25516        }; then
25517   eval "$as_ac_var=yes"
25518 else
25519   $as_echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25521
25522         eval "$as_ac_var=no"
25523 fi
25524
25525 rm -rf conftest.dSYM
25526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25527       conftest$ac_exeext conftest.$ac_ext
25528 fi
25529 ac_res=`eval 'as_val=${'$as_ac_var'}
25530                  $as_echo "$as_val"'`
25531                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25532 $as_echo "$ac_res" >&6; }
25533 as_val=`eval 'as_val=${'$as_ac_var'}
25534                  $as_echo "$as_val"'`
25535    if test "x$as_val" = x""yes; then
25536   cat >>confdefs.h <<_ACEOF
25537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25538 _ACEOF
25539  ice_have_shmdt=yes
25540 fi
25541 done
25542
25543 if test "${ice_have_shmdt}" = yes; then
25544 { $as_echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25545 $as_echo_n "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25546 if test "${ice_cv_have_shmdt_decl+set}" = set; then
25547   $as_echo_n "(cached) " >&6
25548 else
25549
25550 ice_cv_have_shmdt_decl=no
25551 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25552 ice_re_word='(^|[^a-zA-Z0-9_])'
25553 for header in sys/types.h sys/ipc.h sys/shm.h; do
25554 # Check for ordinary declaration
25555 cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561 #include <$header>
25562
25563 _ACEOF
25564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25565   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
25566   ice_cv_have_shmdt_decl=yes
25567 fi
25568 rm -f conftest*
25569
25570 if test "$ice_cv_have_shmdt_decl" = yes; then
25571         break
25572 fi
25573 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h.  */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h.  */
25580 #include <$header>
25581
25582 _ACEOF
25583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25584   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25585   ice_cv_have_shmdt_decl=yes
25586 fi
25587 rm -f conftest*
25588
25589 if test "$ice_cv_have_shmdt_decl" = yes; then
25590         break
25591 fi
25592 done
25593
25594 fi
25595
25596 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
25597 $as_echo "$ice_cv_have_shmdt_decl" >&6; }
25598 if test "$ice_cv_have_shmdt_decl" = yes; then
25599
25600 cat >>confdefs.h <<_ACEOF
25601 #define HAVE_SHMDT_DECL 1
25602 _ACEOF
25603
25604 fi
25605 fi
25606
25607
25608 ice_have_shmget=no
25609
25610 for ac_func in shmget
25611 do
25612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25614 $as_echo_n "checking for $ac_func... " >&6; }
25615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25616   $as_echo_n "(cached) " >&6
25617 else
25618   cat >conftest.$ac_ext <<_ACEOF
25619 /* confdefs.h.  */
25620 _ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h.  */
25624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25626 #define $ac_func innocuous_$ac_func
25627
25628 /* System header to define __stub macros and hopefully few prototypes,
25629     which can conflict with char $ac_func (); below.
25630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25631     <limits.h> exists even on freestanding compilers.  */
25632
25633 #ifdef __STDC__
25634 # include <limits.h>
25635 #else
25636 # include <assert.h>
25637 #endif
25638
25639 #undef $ac_func
25640
25641 /* Override any GCC internal prototype to avoid an error.
25642    Use char because int might match the return type of a GCC
25643    builtin and then its argument prototype would still apply.  */
25644 #ifdef __cplusplus
25645 extern "C"
25646 #endif
25647 char $ac_func ();
25648 /* The GNU C library defines this for functions which it implements
25649     to always fail with ENOSYS.  Some functions are actually named
25650     something starting with __ and the normal name is an alias.  */
25651 #if defined __stub_$ac_func || defined __stub___$ac_func
25652 choke me
25653 #endif
25654
25655 int
25656 main ()
25657 {
25658 return $ac_func ();
25659   ;
25660   return 0;
25661 }
25662 _ACEOF
25663 rm -f conftest.$ac_objext conftest$ac_exeext
25664 if { (ac_try="$ac_link"
25665 case "(($ac_try" in
25666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667   *) ac_try_echo=$ac_try;;
25668 esac
25669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670 $as_echo "$ac_try_echo") >&5
25671   (eval "$ac_link") 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } && {
25678          test -z "$ac_c_werror_flag" ||
25679          test ! -s conftest.err
25680        } && test -s conftest$ac_exeext && {
25681          test "$cross_compiling" = yes ||
25682          $as_test_x conftest$ac_exeext
25683        }; then
25684   eval "$as_ac_var=yes"
25685 else
25686   $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689         eval "$as_ac_var=no"
25690 fi
25691
25692 rm -rf conftest.dSYM
25693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25694       conftest$ac_exeext conftest.$ac_ext
25695 fi
25696 ac_res=`eval 'as_val=${'$as_ac_var'}
25697                  $as_echo "$as_val"'`
25698                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25699 $as_echo "$ac_res" >&6; }
25700 as_val=`eval 'as_val=${'$as_ac_var'}
25701                  $as_echo "$as_val"'`
25702    if test "x$as_val" = x""yes; then
25703   cat >>confdefs.h <<_ACEOF
25704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25705 _ACEOF
25706  ice_have_shmget=yes
25707 fi
25708 done
25709
25710 if test "${ice_have_shmget}" = yes; then
25711 { $as_echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25712 $as_echo_n "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25713 if test "${ice_cv_have_shmget_decl+set}" = set; then
25714   $as_echo_n "(cached) " >&6
25715 else
25716
25717 ice_cv_have_shmget_decl=no
25718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25719 ice_re_word='(^|[^a-zA-Z0-9_])'
25720 for header in sys/types.h sys/ipc.h sys/shm.h; do
25721 # Check for ordinary declaration
25722 cat >conftest.$ac_ext <<_ACEOF
25723 /* confdefs.h.  */
25724 _ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h.  */
25728 #include <$header>
25729
25730 _ACEOF
25731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25732   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
25733   ice_cv_have_shmget_decl=yes
25734 fi
25735 rm -f conftest*
25736
25737 if test "$ice_cv_have_shmget_decl" = yes; then
25738         break
25739 fi
25740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25741 cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h.  */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h.  */
25747 #include <$header>
25748
25749 _ACEOF
25750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25751   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25752   ice_cv_have_shmget_decl=yes
25753 fi
25754 rm -f conftest*
25755
25756 if test "$ice_cv_have_shmget_decl" = yes; then
25757         break
25758 fi
25759 done
25760
25761 fi
25762
25763 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
25764 $as_echo "$ice_cv_have_shmget_decl" >&6; }
25765 if test "$ice_cv_have_shmget_decl" = yes; then
25766
25767 cat >>confdefs.h <<_ACEOF
25768 #define HAVE_SHMGET_DECL 1
25769 _ACEOF
25770
25771 fi
25772 fi
25773
25774
25775     if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
25776         case "$FORCE_MMAP" in
25777         n | no)
25778             if test "x$ac_cv_func_shmget" != xyes; then
25779
25780     { $as_echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
25781 $as_echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
25782
25783
25784     cat <<AAW_EOF >>config.warnings
25785 Neither shmget() nor mmap() found. This system will not support the Amanda server.
25786 AAW_EOF
25787
25788
25789                 NO_SERVER_MODE=true
25790             fi
25791           ;;
25792         y | ye | yes)
25793
25794     { $as_echo "$as_me:$LINENO: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&5
25795 $as_echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server." >&2;}
25796
25797
25798     cat <<AAW_EOF >>config.warnings
25799 --with-mmap used on a system with no mmap() support.  This system will not support the Amanda server.
25800 AAW_EOF
25801
25802
25803             NO_SERVER_MODE=true
25804           ;;
25805         esac
25806     fi
25807
25808
25809
25810
25811
25812
25813
25814 ac_header_dirent=no
25815 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25816   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25817 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25818 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25820   $as_echo_n "(cached) " >&6
25821 else
25822   cat >conftest.$ac_ext <<_ACEOF
25823 /* confdefs.h.  */
25824 _ACEOF
25825 cat confdefs.h >>conftest.$ac_ext
25826 cat >>conftest.$ac_ext <<_ACEOF
25827 /* end confdefs.h.  */
25828 #include <sys/types.h>
25829 #include <$ac_hdr>
25830
25831 int
25832 main ()
25833 {
25834 if ((DIR *) 0)
25835 return 0;
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext
25841 if { (ac_try="$ac_compile"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25847 $as_echo "$ac_try_echo") >&5
25848   (eval "$ac_compile") 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } && {
25855          test -z "$ac_c_werror_flag" ||
25856          test ! -s conftest.err
25857        } && test -s conftest.$ac_objext; then
25858   eval "$as_ac_Header=yes"
25859 else
25860   $as_echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25862
25863         eval "$as_ac_Header=no"
25864 fi
25865
25866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25867 fi
25868 ac_res=`eval 'as_val=${'$as_ac_Header'}
25869                  $as_echo "$as_val"'`
25870                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25871 $as_echo "$ac_res" >&6; }
25872 as_val=`eval 'as_val=${'$as_ac_Header'}
25873                  $as_echo "$as_val"'`
25874    if test "x$as_val" = x""yes; then
25875   cat >>confdefs.h <<_ACEOF
25876 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25877 _ACEOF
25878
25879 ac_header_dirent=$ac_hdr; break
25880 fi
25881
25882 done
25883 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25884 if test $ac_header_dirent = dirent.h; then
25885   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
25886 $as_echo_n "checking for library containing opendir... " >&6; }
25887 if test "${ac_cv_search_opendir+set}" = set; then
25888   $as_echo_n "(cached) " >&6
25889 else
25890   ac_func_search_save_LIBS=$LIBS
25891 cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897
25898 /* Override any GCC internal prototype to avoid an error.
25899    Use char because int might match the return type of a GCC
25900    builtin and then its argument prototype would still apply.  */
25901 #ifdef __cplusplus
25902 extern "C"
25903 #endif
25904 char opendir ();
25905 int
25906 main ()
25907 {
25908 return opendir ();
25909   ;
25910   return 0;
25911 }
25912 _ACEOF
25913 for ac_lib in '' dir; do
25914   if test -z "$ac_lib"; then
25915     ac_res="none required"
25916   else
25917     ac_res=-l$ac_lib
25918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25919   fi
25920   rm -f conftest.$ac_objext conftest$ac_exeext
25921 if { (ac_try="$ac_link"
25922 case "(($ac_try" in
25923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924   *) ac_try_echo=$ac_try;;
25925 esac
25926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25927 $as_echo "$ac_try_echo") >&5
25928   (eval "$ac_link") 2>conftest.er1
25929   ac_status=$?
25930   grep -v '^ *+' conftest.er1 >conftest.err
25931   rm -f conftest.er1
25932   cat conftest.err >&5
25933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); } && {
25935          test -z "$ac_c_werror_flag" ||
25936          test ! -s conftest.err
25937        } && test -s conftest$ac_exeext && {
25938          test "$cross_compiling" = yes ||
25939          $as_test_x conftest$ac_exeext
25940        }; then
25941   ac_cv_search_opendir=$ac_res
25942 else
25943   $as_echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25945
25946
25947 fi
25948
25949 rm -rf conftest.dSYM
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951       conftest$ac_exeext
25952   if test "${ac_cv_search_opendir+set}" = set; then
25953   break
25954 fi
25955 done
25956 if test "${ac_cv_search_opendir+set}" = set; then
25957   :
25958 else
25959   ac_cv_search_opendir=no
25960 fi
25961 rm conftest.$ac_ext
25962 LIBS=$ac_func_search_save_LIBS
25963 fi
25964 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25965 $as_echo "$ac_cv_search_opendir" >&6; }
25966 ac_res=$ac_cv_search_opendir
25967 if test "$ac_res" != no; then
25968   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25969
25970 fi
25971
25972 else
25973   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
25974 $as_echo_n "checking for library containing opendir... " >&6; }
25975 if test "${ac_cv_search_opendir+set}" = set; then
25976   $as_echo_n "(cached) " >&6
25977 else
25978   ac_func_search_save_LIBS=$LIBS
25979 cat >conftest.$ac_ext <<_ACEOF
25980 /* confdefs.h.  */
25981 _ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h.  */
25985
25986 /* Override any GCC internal prototype to avoid an error.
25987    Use char because int might match the return type of a GCC
25988    builtin and then its argument prototype would still apply.  */
25989 #ifdef __cplusplus
25990 extern "C"
25991 #endif
25992 char opendir ();
25993 int
25994 main ()
25995 {
25996 return opendir ();
25997   ;
25998   return 0;
25999 }
26000 _ACEOF
26001 for ac_lib in '' x; do
26002   if test -z "$ac_lib"; then
26003     ac_res="none required"
26004   else
26005     ac_res=-l$ac_lib
26006     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26007   fi
26008   rm -f conftest.$ac_objext conftest$ac_exeext
26009 if { (ac_try="$ac_link"
26010 case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016   (eval "$ac_link") 2>conftest.er1
26017   ac_status=$?
26018   grep -v '^ *+' conftest.er1 >conftest.err
26019   rm -f conftest.er1
26020   cat conftest.err >&5
26021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); } && {
26023          test -z "$ac_c_werror_flag" ||
26024          test ! -s conftest.err
26025        } && test -s conftest$ac_exeext && {
26026          test "$cross_compiling" = yes ||
26027          $as_test_x conftest$ac_exeext
26028        }; then
26029   ac_cv_search_opendir=$ac_res
26030 else
26031   $as_echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034
26035 fi
26036
26037 rm -rf conftest.dSYM
26038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26039       conftest$ac_exeext
26040   if test "${ac_cv_search_opendir+set}" = set; then
26041   break
26042 fi
26043 done
26044 if test "${ac_cv_search_opendir+set}" = set; then
26045   :
26046 else
26047   ac_cv_search_opendir=no
26048 fi
26049 rm conftest.$ac_ext
26050 LIBS=$ac_func_search_save_LIBS
26051 fi
26052 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26053 $as_echo "$ac_cv_search_opendir" >&6; }
26054 ac_res=$ac_cv_search_opendir
26055 if test "$ac_res" != no; then
26056   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26057
26058 fi
26059
26060 fi
26061
26062
26063     # include the dirent headers as described in the autoconf documentation.
26064     { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
26065 $as_echo_n "checking whether readdir is declared... " >&6; }
26066 if test "${ac_cv_have_decl_readdir+set}" = set; then
26067   $as_echo_n "(cached) " >&6
26068 else
26069   cat >conftest.$ac_ext <<_ACEOF
26070 /* confdefs.h.  */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h.  */
26075
26076 #if HAVE_DIRENT_H
26077 # include <dirent.h>
26078 # define NAMLEN(dirent) strlen((dirent)->d_name)
26079 #else
26080 # define dirent direct
26081 # define NAMLEN(dirent) (dirent)->d_namlen
26082 # if HAVE_SYS_NDIR_H
26083 #  include <sys/ndir.h>
26084 # endif
26085 # if HAVE_SYS_DIR_H
26086 #  include <sys/dir.h>
26087 # endif
26088 # if HAVE_NDIR_H
26089 #  include <ndir.h>
26090 # endif
26091 #endif
26092
26093
26094 int
26095 main ()
26096 {
26097 #ifndef readdir
26098   (void) readdir;
26099 #endif
26100
26101   ;
26102   return 0;
26103 }
26104 _ACEOF
26105 rm -f conftest.$ac_objext
26106 if { (ac_try="$ac_compile"
26107 case "(($ac_try" in
26108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109   *) ac_try_echo=$ac_try;;
26110 esac
26111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26112 $as_echo "$ac_try_echo") >&5
26113   (eval "$ac_compile") 2>conftest.er1
26114   ac_status=$?
26115   grep -v '^ *+' conftest.er1 >conftest.err
26116   rm -f conftest.er1
26117   cat conftest.err >&5
26118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); } && {
26120          test -z "$ac_c_werror_flag" ||
26121          test ! -s conftest.err
26122        } && test -s conftest.$ac_objext; then
26123   ac_cv_have_decl_readdir=yes
26124 else
26125   $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26127
26128         ac_cv_have_decl_readdir=no
26129 fi
26130
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132 fi
26133 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
26134 $as_echo "$ac_cv_have_decl_readdir" >&6; }
26135 if test "x$ac_cv_have_decl_readdir" = x""yes; then
26136
26137 cat >>confdefs.h <<_ACEOF
26138 #define HAVE_DECL_READDIR 1
26139 _ACEOF
26140
26141
26142 else
26143   cat >>confdefs.h <<_ACEOF
26144 #define HAVE_DECL_READDIR 0
26145 _ACEOF
26146
26147
26148 fi
26149 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
26150 $as_echo_n "checking whether readdir_r is declared... " >&6; }
26151 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
26152   $as_echo_n "(cached) " >&6
26153 else
26154   cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160
26161 #if HAVE_DIRENT_H
26162 # include <dirent.h>
26163 # define NAMLEN(dirent) strlen((dirent)->d_name)
26164 #else
26165 # define dirent direct
26166 # define NAMLEN(dirent) (dirent)->d_namlen
26167 # if HAVE_SYS_NDIR_H
26168 #  include <sys/ndir.h>
26169 # endif
26170 # if HAVE_SYS_DIR_H
26171 #  include <sys/dir.h>
26172 # endif
26173 # if HAVE_NDIR_H
26174 #  include <ndir.h>
26175 # endif
26176 #endif
26177
26178
26179 int
26180 main ()
26181 {
26182 #ifndef readdir_r
26183   (void) readdir_r;
26184 #endif
26185
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198   (eval "$ac_compile") 2>conftest.er1
26199   ac_status=$?
26200   grep -v '^ *+' conftest.er1 >conftest.err
26201   rm -f conftest.er1
26202   cat conftest.err >&5
26203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); } && {
26205          test -z "$ac_c_werror_flag" ||
26206          test ! -s conftest.err
26207        } && test -s conftest.$ac_objext; then
26208   ac_cv_have_decl_readdir_r=yes
26209 else
26210   $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213         ac_cv_have_decl_readdir_r=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 fi
26218 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
26219 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
26220 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
26221
26222 cat >>confdefs.h <<_ACEOF
26223 #define HAVE_DECL_READDIR_R 1
26224 _ACEOF
26225
26226
26227 else
26228   cat >>confdefs.h <<_ACEOF
26229 #define HAVE_DECL_READDIR_R 0
26230 _ACEOF
26231
26232
26233 fi
26234 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
26235 $as_echo_n "checking whether readdir64 is declared... " >&6; }
26236 if test "${ac_cv_have_decl_readdir64+set}" = set; then
26237   $as_echo_n "(cached) " >&6
26238 else
26239   cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245
26246 #if HAVE_DIRENT_H
26247 # include <dirent.h>
26248 # define NAMLEN(dirent) strlen((dirent)->d_name)
26249 #else
26250 # define dirent direct
26251 # define NAMLEN(dirent) (dirent)->d_namlen
26252 # if HAVE_SYS_NDIR_H
26253 #  include <sys/ndir.h>
26254 # endif
26255 # if HAVE_SYS_DIR_H
26256 #  include <sys/dir.h>
26257 # endif
26258 # if HAVE_NDIR_H
26259 #  include <ndir.h>
26260 # endif
26261 #endif
26262
26263
26264 int
26265 main ()
26266 {
26267 #ifndef readdir64
26268   (void) readdir64;
26269 #endif
26270
26271   ;
26272   return 0;
26273 }
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (ac_try="$ac_compile"
26277 case "(($ac_try" in
26278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279   *) ac_try_echo=$ac_try;;
26280 esac
26281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26282 $as_echo "$ac_try_echo") >&5
26283   (eval "$ac_compile") 2>conftest.er1
26284   ac_status=$?
26285   grep -v '^ *+' conftest.er1 >conftest.err
26286   rm -f conftest.er1
26287   cat conftest.err >&5
26288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); } && {
26290          test -z "$ac_c_werror_flag" ||
26291          test ! -s conftest.err
26292        } && test -s conftest.$ac_objext; then
26293   ac_cv_have_decl_readdir64=yes
26294 else
26295   $as_echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26297
26298         ac_cv_have_decl_readdir64=no
26299 fi
26300
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 fi
26303 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
26304 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
26305 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
26306
26307 cat >>confdefs.h <<_ACEOF
26308 #define HAVE_DECL_READDIR64 1
26309 _ACEOF
26310
26311
26312 else
26313   cat >>confdefs.h <<_ACEOF
26314 #define HAVE_DECL_READDIR64 0
26315 _ACEOF
26316
26317
26318 fi
26319 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
26320 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
26321 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
26322   $as_echo_n "(cached) " >&6
26323 else
26324   cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330
26331 #if HAVE_DIRENT_H
26332 # include <dirent.h>
26333 # define NAMLEN(dirent) strlen((dirent)->d_name)
26334 #else
26335 # define dirent direct
26336 # define NAMLEN(dirent) (dirent)->d_namlen
26337 # if HAVE_SYS_NDIR_H
26338 #  include <sys/ndir.h>
26339 # endif
26340 # if HAVE_SYS_DIR_H
26341 #  include <sys/dir.h>
26342 # endif
26343 # if HAVE_NDIR_H
26344 #  include <ndir.h>
26345 # endif
26346 #endif
26347
26348
26349 int
26350 main ()
26351 {
26352 #ifndef readdir64_r
26353   (void) readdir64_r;
26354 #endif
26355
26356   ;
26357   return 0;
26358 }
26359 _ACEOF
26360 rm -f conftest.$ac_objext
26361 if { (ac_try="$ac_compile"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26367 $as_echo "$ac_try_echo") >&5
26368   (eval "$ac_compile") 2>conftest.er1
26369   ac_status=$?
26370   grep -v '^ *+' conftest.er1 >conftest.err
26371   rm -f conftest.er1
26372   cat conftest.err >&5
26373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); } && {
26375          test -z "$ac_c_werror_flag" ||
26376          test ! -s conftest.err
26377        } && test -s conftest.$ac_objext; then
26378   ac_cv_have_decl_readdir64_r=yes
26379 else
26380   $as_echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383         ac_cv_have_decl_readdir64_r=no
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387 fi
26388 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
26389 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
26390 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
26391
26392 cat >>confdefs.h <<_ACEOF
26393 #define HAVE_DECL_READDIR64_R 1
26394 _ACEOF
26395
26396
26397 else
26398   cat >>confdefs.h <<_ACEOF
26399 #define HAVE_DECL_READDIR64_R 0
26400 _ACEOF
26401
26402
26403 fi
26404
26405
26406
26407
26408     # disk device prefixes
26409     { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
26410 $as_echo_n "checking disk device prefixes... " >&6; }
26411
26412     # Use df to find the mount point for the root filesystem.  Use
26413     # the positional parameters to find the particular line from df
26414     # that contains the root paritition.  We put it in a subshell so
26415     # that the original positional parameters are not messed with.
26416     dfline=`(
26417         df / | while read line; do
26418             set -- $line
26419                     while test $# -gt 0; do
26420                 if test "x$1" = "x/"; then
26421                     echo $line
26422                     break 2
26423                 fi
26424                 shift
26425             done
26426         done
26427     ) | sed 's/(//' | sed 's/)//' `
26428
26429     # Search for the mount point by using expr to find the parameter
26430     # with dev in it.
26431     mount=`(
26432         set -- $dfline
26433                 while test $# -gt 0; do
26434             if expr "$1" : '.*dev' >/dev/null 2>&1; then
26435                 echo $1
26436                 break
26437             fi
26438             shift
26439         done
26440     )`
26441
26442     # get any system-specific configuration information
26443     case "$target" in
26444         *-hp-*)
26445             CLIENT_SCRIPTS_OPT=amhpfixdevs
26446             case $mount in
26447                 /dev/vg*)
26448
26449     { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
26450 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
26451
26452
26453     cat <<AAW_EOF >>config.warnings
26454 Run amhpfixdevs on HP-UX systems using /dev/vg??.
26455 AAW_EOF
26456
26457
26458                     ;;
26459             esac
26460             ;;
26461         *-sni-sysv4)
26462             DEV_PREFIX=/dev/dsk/
26463             RDEV_PREFIX=/dev/rdsk/
26464             CLIENT_SCRIPTS_OPT=amsinixfixdevs
26465             if ! test -d /dev/dsk; then
26466
26467     { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
26468 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
26469
26470
26471     cat <<AAW_EOF >>config.warnings
26472 Run amsinixfixdevs on Sinix systems using VxFS.
26473 AAW_EOF
26474
26475
26476             fi
26477             ;;
26478         *-sco3.2v4*)
26479             DEV_PREFIX=/dev/
26480             RDEV_PREFIX=/dev/
26481             ;;
26482         *)
26483             CLIENT_SCRIPTS_OPT=
26484             ;;
26485     esac
26486
26487     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
26488         { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
26489 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
26490     else
26491         if test -d /dev/dsk; then
26492             DEV_PREFIX=/dev/dsk/
26493             if test -d /dev/rdsk; then
26494                 RDEV_PREFIX=/dev/rdsk/
26495             else
26496                 RDEV_PREFIX=/dev/dsk/
26497             fi
26498         elif test -d /dev; then
26499             DEV_PREFIX=/dev/
26500
26501             # Some systems, notably Linux, do not have raw disk devices
26502             # names.  Check this by trying to see if a raw disk device name
26503             # exists using the normal raw device path prepended to the
26504             # mount point of the root filesystem.
26505             if test "$mount"; then
26506                 dev_name="/dev/r`basename $mount`"
26507                 if test -b $dev_name -o -c $dev_name; then
26508                     RDEV_PREFIX=/dev/r
26509                 else
26510                     RDEV_PREFIX=/dev/
26511                 fi
26512             else
26513                 RDEV_PREFIX=/dev/r
26514             fi
26515         else
26516             # just fake it..
26517             DEV_PREFIX=/
26518             RDEV_PREFIX=/
26519         fi
26520         { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
26521 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
26522     fi
26523
26524
26525 cat >>confdefs.h <<_ACEOF
26526 #define DEV_PREFIX "${DEV_PREFIX}"
26527 _ACEOF
26528
26529
26530 cat >>confdefs.h <<_ACEOF
26531 #define RDEV_PREFIX "${RDEV_PREFIX}"
26532 _ACEOF
26533
26534
26535
26536
26537
26538     case "$target" in
26539         *-dec-osf*)
26540                     ;;
26541         *-dg-*)
26542                     ;;
26543         *-netbsd*)
26544                     ;;
26545         *-freebsd*)
26546                     ;;
26547         *-openbsd*)
26548                     ;;
26549         *-hp-*)
26550                     case "$CC" in
26551                         *gcc*)
26552                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
26553
26554                             ;;
26555                         *cc*)
26556                             CFLAGS="$CFLAGS -Ae"
26557
26558                             ;;
26559                     esac
26560                     ;;
26561         *-ibm-aix*)
26562                     ;;
26563         m88k-motorola-sysv4)
26564                     ;;
26565         *-nextstep3)
26566                     ;;
26567         *-pc-bsdi*)
26568                     ;;
26569         *-pc-linux-*)
26570                     ;;
26571         *-redhat-linux-*)
26572                     ;;
26573         *-suse-linux-*)
26574                     ;;
26575         x86_64-*-linux-*)
26576                     ;;
26577         alpha*-*-linux-*)
26578                     ;;
26579         sparc*-*-linux-*)
26580                     ;;
26581         powerpc-*-linux-*)
26582                     ;;
26583         *-sgi-irix3*)
26584                     # The old cc won't work!
26585                     if test "x$GCC" != "xyes"; then
26586                         { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
26587 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
26588    { (exit 1); exit 1; }; }
26589                     fi
26590                     ;;
26591         *-sgi-irix4*)
26592                     ;;
26593         *-sgi-irix5*)
26594                     ;;
26595         *-sgi-irix6*)
26596                     ;;
26597         *-solaris2*)
26598                     ;;
26599         *-sun-sunos4.1*)
26600                     ;;
26601         *-ultrix*)
26602                     ;;
26603         *-sysv4.2uw2*)
26604                     ;;
26605         *-sco3.2v5*)
26606                     ;;
26607         i386-pc-isc4*)
26608                     ;;
26609         *-sni-sysv4)
26610                     ;;
26611         *-pc-cygwin)
26612
26613 cat >>confdefs.h <<\_ACEOF
26614 #define IGNORE_TAR_ERRORS 1
26615 _ACEOF
26616
26617                     # Cygwin needs PATH to find cygwin1.dll
26618
26619 cat >>confdefs.h <<\_ACEOF
26620 #define NEED_PATH_ENV 1
26621 _ACEOF
26622
26623
26624 cat >>confdefs.h <<\_ACEOF
26625 #define IGNORE_FSTAB 1
26626 _ACEOF
26627
26628                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
26629
26630                     ;;
26631         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
26632                     ;;
26633         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
26634                     ;;
26635       *)
26636
26637
26638     cat <<AAW_EOF >>config.warnings
26639 *****
26640 This machine, target type $target, is not known to be fully supported
26641 by this configure script.  If the installation of Amanda on this system
26642 succeeds or needed any patches, please email amanda-hackers@amanda.org
26643 with the patches or an indication of the sucess or failure of the
26644 Amanda installation on your system.
26645 *****
26646 AAW_EOF
26647
26648                     ;;
26649     esac
26650
26651
26652
26653
26654
26655   prefix_NONE=
26656   exec_prefix_NONE=
26657   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26658   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26659   eval ac_define_dir="\"$bindir\""
26660   eval ac_define_dir="\"$ac_define_dir\""
26661   bindir="$ac_define_dir"
26662
26663
26664 cat >>confdefs.h <<_ACEOF
26665 #define bindir "$ac_define_dir"
26666 _ACEOF
26667
26668   test "$prefix_NONE" && prefix=NONE
26669   test "$exec_prefix_NONE" && exec_prefix=NONE
26670
26671
26672
26673   prefix_NONE=
26674   exec_prefix_NONE=
26675   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26676   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26677   eval ac_define_dir="\"$sbindir\""
26678   eval ac_define_dir="\"$ac_define_dir\""
26679   sbindir="$ac_define_dir"
26680
26681
26682 cat >>confdefs.h <<_ACEOF
26683 #define sbindir "$ac_define_dir"
26684 _ACEOF
26685
26686   test "$prefix_NONE" && prefix=NONE
26687   test "$exec_prefix_NONE" && exec_prefix=NONE
26688
26689
26690
26691   prefix_NONE=
26692   exec_prefix_NONE=
26693   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26694   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26695   eval ac_define_dir="\"$libexecdir\""
26696   eval ac_define_dir="\"$ac_define_dir\""
26697   libexecdir="$ac_define_dir"
26698
26699
26700 cat >>confdefs.h <<_ACEOF
26701 #define libexecdir "$ac_define_dir"
26702 _ACEOF
26703
26704   test "$prefix_NONE" && prefix=NONE
26705   test "$exec_prefix_NONE" && exec_prefix=NONE
26706
26707
26708
26709   prefix_NONE=
26710   exec_prefix_NONE=
26711   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26712   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26713   eval ac_define_dir="\"$mandir\""
26714   eval ac_define_dir="\"$ac_define_dir\""
26715   mandir="$ac_define_dir"
26716
26717
26718 cat >>confdefs.h <<_ACEOF
26719 #define mandir "$ac_define_dir"
26720 _ACEOF
26721
26722   test "$prefix_NONE" && prefix=NONE
26723   test "$exec_prefix_NONE" && exec_prefix=NONE
26724
26725
26726
26727     # amanda-specific directories
26728     AMLIBDIR=$libdir/amanda
26729
26730 # Check whether --with-amlibdir was given.
26731 if test "${with_amlibdir+set}" = set; then
26732   withval=$with_amlibdir;
26733             case "$withval" in
26734                 n | no) AMLIBDIR=$libdir ;;
26735                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
26736                 *) AMLIBDIR=$withval ;;
26737             esac
26738
26739
26740 fi
26741
26742
26743   prefix_NONE=
26744   exec_prefix_NONE=
26745   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26746   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26747   eval ac_define_dir="\"$AMLIBDIR\""
26748   eval ac_define_dir="\"$ac_define_dir\""
26749   amlibdir="$ac_define_dir"
26750
26751
26752 cat >>confdefs.h <<_ACEOF
26753 #define amlibdir "$ac_define_dir"
26754 _ACEOF
26755
26756   test "$prefix_NONE" && prefix=NONE
26757   test "$exec_prefix_NONE" && exec_prefix=NONE
26758
26759
26760     AMLIBEXECDIR=$libexecdir/amanda
26761
26762 # Check whether --with-amlibexecdir was given.
26763 if test "${with_amlibexecdir+set}" = set; then
26764   withval=$with_amlibexecdir;
26765             case "$withval" in
26766                 n | no) AMLIBEXECDIR=$libexecdir ;;
26767                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
26768                 *) AMLIBEXECDIR=$withval ;;
26769             esac
26770
26771
26772 fi
26773
26774
26775   prefix_NONE=
26776   exec_prefix_NONE=
26777   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26778   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26779   eval ac_define_dir="\"$AMLIBEXECDIR\""
26780   eval ac_define_dir="\"$ac_define_dir\""
26781   amlibexecdir="$ac_define_dir"
26782
26783
26784 cat >>confdefs.h <<_ACEOF
26785 #define amlibexecdir "$ac_define_dir"
26786 _ACEOF
26787
26788   test "$prefix_NONE" && prefix=NONE
26789   test "$exec_prefix_NONE" && exec_prefix=NONE
26790
26791
26792     amincludedir="${includedir}/amanda"
26793
26794   prefix_NONE=
26795   exec_prefix_NONE=
26796   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26797   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26798   eval ac_define_dir="\"$amincludedir\""
26799   eval ac_define_dir="\"$ac_define_dir\""
26800   amincludedir="$ac_define_dir"
26801
26802
26803 cat >>confdefs.h <<_ACEOF
26804 #define amincludedir "$ac_define_dir"
26805 _ACEOF
26806
26807   test "$prefix_NONE" && prefix=NONE
26808   test "$exec_prefix_NONE" && exec_prefix=NONE
26809
26810
26811
26812 # Check whether --with-amperldir was given.
26813 if test "${with_amperldir+set}" = set; then
26814   withval=$with_amperldir;
26815             case "$withval" in
26816                 y | ye | yes) AMPERLLIB=DEFAULT ;;
26817                 n | no) AMPERLLIB=$amlibdir/perl ;;
26818                 *) AMPERLLIB=$withval ;;
26819             esac
26820
26821 else
26822
26823             AMPERLLIB=DEFAULT
26824
26825
26826 fi
26827
26828     # apply the default if no value was given.
26829     if test x"$AMPERLLIB" = x"DEFAULT"; then
26830         eval `$PERL -V:installsitelib`
26831         AMPERLLIB=$installsitelib
26832     fi
26833
26834   prefix_NONE=
26835   exec_prefix_NONE=
26836   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26837   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26838   eval ac_define_dir="\"$AMPERLLIB\""
26839   eval ac_define_dir="\"$ac_define_dir\""
26840   amperldir="$ac_define_dir"
26841
26842
26843 cat >>confdefs.h <<_ACEOF
26844 #define amperldir "$ac_define_dir"
26845 _ACEOF
26846
26847   test "$prefix_NONE" && prefix=NONE
26848   test "$exec_prefix_NONE" && exec_prefix=NONE
26849
26850
26851     APPLICATION_DIR='${amlibexecdir}/application'
26852
26853   prefix_NONE=
26854   exec_prefix_NONE=
26855   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26856   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26857   eval ac_define_dir="\"$APPLICATION_DIR\""
26858   eval ac_define_dir="\"$ac_define_dir\""
26859   APPLICATION_DIR="$ac_define_dir"
26860
26861
26862 cat >>confdefs.h <<_ACEOF
26863 #define APPLICATION_DIR "$ac_define_dir"
26864 _ACEOF
26865
26866   test "$prefix_NONE" && prefix=NONE
26867   test "$exec_prefix_NONE" && exec_prefix=NONE
26868
26869
26870
26871 # Check whether --with-amdatadir was given.
26872 if test "${with_amdatadir+set}" = set; then
26873   withval=$with_amdatadir;
26874             AMDATADIR=$withval
26875
26876 else
26877
26878             AMDATADIR=$datadir/amanda
26879
26880
26881 fi
26882
26883
26884   prefix_NONE=
26885   exec_prefix_NONE=
26886   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26887   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26888   eval ac_define_dir="\"$AMDATADIR\""
26889   eval ac_define_dir="\"$ac_define_dir\""
26890   amdatadir="$ac_define_dir"
26891
26892
26893 cat >>confdefs.h <<_ACEOF
26894 #define amdatadir "$ac_define_dir"
26895 _ACEOF
26896
26897   test "$prefix_NONE" && prefix=NONE
26898   test "$exec_prefix_NONE" && exec_prefix=NONE
26899
26900
26901
26902 #
26903 # Internationalization
26904 #
26905
26906     # FreeBSD needs to link libxpg4
26907
26908 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
26909 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
26910 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
26911   $as_echo_n "(cached) " >&6
26912 else
26913   ac_check_lib_save_LIBS=$LIBS
26914 LIBS="-lxpg4  $LIBS"
26915 cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921
26922 /* Override any GCC internal prototype to avoid an error.
26923    Use char because int might match the return type of a GCC
26924    builtin and then its argument prototype would still apply.  */
26925 #ifdef __cplusplus
26926 extern "C"
26927 #endif
26928 char setlocale ();
26929 int
26930 main ()
26931 {
26932 return setlocale ();
26933   ;
26934   return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext conftest$ac_exeext
26938 if { (ac_try="$ac_link"
26939 case "(($ac_try" in
26940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941   *) ac_try_echo=$ac_try;;
26942 esac
26943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26944 $as_echo "$ac_try_echo") >&5
26945   (eval "$ac_link") 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } && {
26952          test -z "$ac_c_werror_flag" ||
26953          test ! -s conftest.err
26954        } && test -s conftest$ac_exeext && {
26955          test "$cross_compiling" = yes ||
26956          $as_test_x conftest$ac_exeext
26957        }; then
26958   ac_cv_lib_xpg4_setlocale=yes
26959 else
26960   $as_echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963         ac_cv_lib_xpg4_setlocale=no
26964 fi
26965
26966 rm -rf conftest.dSYM
26967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26968       conftest$ac_exeext conftest.$ac_ext
26969 LIBS=$ac_check_lib_save_LIBS
26970 fi
26971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
26972 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
26973 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
26974   cat >>confdefs.h <<_ACEOF
26975 #define HAVE_LIBXPG4 1
26976 _ACEOF
26977
26978   LIBS="-lxpg4 $LIBS"
26979
26980 fi
26981
26982
26983     # ------------------------------------------------------------------
26984     # All list of languages for which a translation exist. Each
26985     #  language is separated by a space.
26986     # ------------------------------------------------------------------
26987     ALL_LINGUAS=""
26988
26989
26990     # Extract the first word of "msgfmt", so it can be a program name with args.
26991 set dummy msgfmt; ac_word=$2
26992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26993 $as_echo_n "checking for $ac_word... " >&6; }
26994 if test "${ac_cv_path_MSGFMT+set}" = set; then
26995   $as_echo_n "(cached) " >&6
26996 else
26997   case $MSGFMT in
26998   [\\/]* | ?:[\\/]*)
26999   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27000   ;;
27001   *)
27002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27003 for as_dir in $LOCSYSPATH
27004 do
27005   IFS=$as_save_IFS
27006   test -z "$as_dir" && as_dir=.
27007   for ac_exec_ext in '' $ac_executable_extensions; do
27008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27009     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
27010     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27011     break 2
27012   fi
27013 done
27014 done
27015 IFS=$as_save_IFS
27016
27017   ;;
27018 esac
27019 fi
27020 MSGFMT=$ac_cv_path_MSGFMT
27021 if test -n "$MSGFMT"; then
27022   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27023 $as_echo "$MSGFMT" >&6; }
27024 else
27025   { $as_echo "$as_me:$LINENO: result: no" >&5
27026 $as_echo "no" >&6; }
27027 fi
27028
27029
27030     # Extract the first word of "gettext", so it can be a program name with args.
27031 set dummy gettext; ac_word=$2
27032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27033 $as_echo_n "checking for $ac_word... " >&6; }
27034 if test "${ac_cv_path_GETTEXT+set}" = set; then
27035   $as_echo_n "(cached) " >&6
27036 else
27037   case $GETTEXT in
27038   [\\/]* | ?:[\\/]*)
27039   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27040   ;;
27041   *)
27042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27043 for as_dir in $LOCSYSPATH
27044 do
27045   IFS=$as_save_IFS
27046   test -z "$as_dir" && as_dir=.
27047   for ac_exec_ext in '' $ac_executable_extensions; do
27048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27049     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27050     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27051     break 2
27052   fi
27053 done
27054 done
27055 IFS=$as_save_IFS
27056
27057   ;;
27058 esac
27059 fi
27060 GETTEXT=$ac_cv_path_GETTEXT
27061 if test -n "$GETTEXT"; then
27062   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
27063 $as_echo "$GETTEXT" >&6; }
27064 else
27065   { $as_echo "$as_me:$LINENO: result: no" >&5
27066 $as_echo "no" >&6; }
27067 fi
27068
27069
27070
27071
27072
27073   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
27074 $as_echo_n "checking whether NLS is requested... " >&6; }
27075     # Check whether --enable-nls was given.
27076 if test "${enable_nls+set}" = set; then
27077   enableval=$enable_nls; USE_NLS=$enableval
27078 else
27079   USE_NLS=yes
27080 fi
27081
27082   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
27083 $as_echo "$USE_NLS" >&6; }
27084
27085
27086
27087
27088
27089
27090 # Prepare PATH_SEPARATOR.
27091 # The user is always right.
27092 if test "${PATH_SEPARATOR+set}" != set; then
27093   echo "#! /bin/sh" >conf$$.sh
27094   echo  "exit 0"   >>conf$$.sh
27095   chmod +x conf$$.sh
27096   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27097     PATH_SEPARATOR=';'
27098   else
27099     PATH_SEPARATOR=:
27100   fi
27101   rm -f conf$$.sh
27102 fi
27103
27104 # Find out how to test for executable files. Don't use a zero-byte file,
27105 # as systems may use methods other than mode bits to determine executability.
27106 cat >conf$$.file <<_ASEOF
27107 #! /bin/sh
27108 exit 0
27109 _ASEOF
27110 chmod +x conf$$.file
27111 if test -x conf$$.file >/dev/null 2>&1; then
27112   ac_executable_p="test -x"
27113 else
27114   ac_executable_p="test -f"
27115 fi
27116 rm -f conf$$.file
27117
27118 # Extract the first word of "msgfmt", so it can be a program name with args.
27119 set dummy msgfmt; ac_word=$2
27120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27121 $as_echo_n "checking for $ac_word... " >&6; }
27122 if test "${ac_cv_path_MSGFMT+set}" = set; then
27123   $as_echo_n "(cached) " >&6
27124 else
27125   case "$MSGFMT" in
27126   [\\/]* | ?:[\\/]*)
27127     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27128     ;;
27129   *)
27130     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27131     for ac_dir in $PATH; do
27132       IFS="$ac_save_IFS"
27133       test -z "$ac_dir" && ac_dir=.
27134       for ac_exec_ext in '' $ac_executable_extensions; do
27135         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27136           echo "$as_me: trying $ac_dir/$ac_word..." >&5
27137           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
27138      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27139             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
27140             break 2
27141           fi
27142         fi
27143       done
27144     done
27145     IFS="$ac_save_IFS"
27146   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
27147     ;;
27148 esac
27149 fi
27150 MSGFMT="$ac_cv_path_MSGFMT"
27151 if test "$MSGFMT" != ":"; then
27152   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27153 $as_echo "$MSGFMT" >&6; }
27154 else
27155   { $as_echo "$as_me:$LINENO: result: no" >&5
27156 $as_echo "no" >&6; }
27157 fi
27158
27159   # Extract the first word of "gmsgfmt", so it can be a program name with args.
27160 set dummy gmsgfmt; ac_word=$2
27161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27162 $as_echo_n "checking for $ac_word... " >&6; }
27163 if test "${ac_cv_path_GMSGFMT+set}" = set; then
27164   $as_echo_n "(cached) " >&6
27165 else
27166   case $GMSGFMT in
27167   [\\/]* | ?:[\\/]*)
27168   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
27169   ;;
27170   *)
27171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27172 for as_dir in $PATH
27173 do
27174   IFS=$as_save_IFS
27175   test -z "$as_dir" && as_dir=.
27176   for ac_exec_ext in '' $ac_executable_extensions; do
27177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27178     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
27179     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27180     break 2
27181   fi
27182 done
27183 done
27184 IFS=$as_save_IFS
27185
27186   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
27187   ;;
27188 esac
27189 fi
27190 GMSGFMT=$ac_cv_path_GMSGFMT
27191 if test -n "$GMSGFMT"; then
27192   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
27193 $as_echo "$GMSGFMT" >&6; }
27194 else
27195   { $as_echo "$as_me:$LINENO: result: no" >&5
27196 $as_echo "no" >&6; }
27197 fi
27198
27199
27200
27201     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27202     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
27203     *) MSGFMT_015=$MSGFMT ;;
27204   esac
27205
27206   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27207     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
27208     *) GMSGFMT_015=$GMSGFMT ;;
27209   esac
27210
27211
27212
27213 # Prepare PATH_SEPARATOR.
27214 # The user is always right.
27215 if test "${PATH_SEPARATOR+set}" != set; then
27216   echo "#! /bin/sh" >conf$$.sh
27217   echo  "exit 0"   >>conf$$.sh
27218   chmod +x conf$$.sh
27219   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27220     PATH_SEPARATOR=';'
27221   else
27222     PATH_SEPARATOR=:
27223   fi
27224   rm -f conf$$.sh
27225 fi
27226
27227 # Find out how to test for executable files. Don't use a zero-byte file,
27228 # as systems may use methods other than mode bits to determine executability.
27229 cat >conf$$.file <<_ASEOF
27230 #! /bin/sh
27231 exit 0
27232 _ASEOF
27233 chmod +x conf$$.file
27234 if test -x conf$$.file >/dev/null 2>&1; then
27235   ac_executable_p="test -x"
27236 else
27237   ac_executable_p="test -f"
27238 fi
27239 rm -f conf$$.file
27240
27241 # Extract the first word of "xgettext", so it can be a program name with args.
27242 set dummy xgettext; ac_word=$2
27243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27244 $as_echo_n "checking for $ac_word... " >&6; }
27245 if test "${ac_cv_path_XGETTEXT+set}" = set; then
27246   $as_echo_n "(cached) " >&6
27247 else
27248   case "$XGETTEXT" in
27249   [\\/]* | ?:[\\/]*)
27250     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
27251     ;;
27252   *)
27253     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27254     for ac_dir in $PATH; do
27255       IFS="$ac_save_IFS"
27256       test -z "$ac_dir" && ac_dir=.
27257       for ac_exec_ext in '' $ac_executable_extensions; do
27258         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27259           echo "$as_me: trying $ac_dir/$ac_word..." >&5
27260           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
27261      (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
27262             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
27263             break 2
27264           fi
27265         fi
27266       done
27267     done
27268     IFS="$ac_save_IFS"
27269   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
27270     ;;
27271 esac
27272 fi
27273 XGETTEXT="$ac_cv_path_XGETTEXT"
27274 if test "$XGETTEXT" != ":"; then
27275   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27276 $as_echo "$XGETTEXT" >&6; }
27277 else
27278   { $as_echo "$as_me:$LINENO: result: no" >&5
27279 $as_echo "no" >&6; }
27280 fi
27281
27282     rm -f messages.po
27283
27284     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27285     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
27286     *) XGETTEXT_015=$XGETTEXT ;;
27287   esac
27288
27289
27290
27291 # Prepare PATH_SEPARATOR.
27292 # The user is always right.
27293 if test "${PATH_SEPARATOR+set}" != set; then
27294   echo "#! /bin/sh" >conf$$.sh
27295   echo  "exit 0"   >>conf$$.sh
27296   chmod +x conf$$.sh
27297   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27298     PATH_SEPARATOR=';'
27299   else
27300     PATH_SEPARATOR=:
27301   fi
27302   rm -f conf$$.sh
27303 fi
27304
27305 # Find out how to test for executable files. Don't use a zero-byte file,
27306 # as systems may use methods other than mode bits to determine executability.
27307 cat >conf$$.file <<_ASEOF
27308 #! /bin/sh
27309 exit 0
27310 _ASEOF
27311 chmod +x conf$$.file
27312 if test -x conf$$.file >/dev/null 2>&1; then
27313   ac_executable_p="test -x"
27314 else
27315   ac_executable_p="test -f"
27316 fi
27317 rm -f conf$$.file
27318
27319 # Extract the first word of "msgmerge", so it can be a program name with args.
27320 set dummy msgmerge; ac_word=$2
27321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27322 $as_echo_n "checking for $ac_word... " >&6; }
27323 if test "${ac_cv_path_MSGMERGE+set}" = set; then
27324   $as_echo_n "(cached) " >&6
27325 else
27326   case "$MSGMERGE" in
27327   [\\/]* | ?:[\\/]*)
27328     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
27329     ;;
27330   *)
27331     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27332     for ac_dir in $PATH; do
27333       IFS="$ac_save_IFS"
27334       test -z "$ac_dir" && ac_dir=.
27335       for ac_exec_ext in '' $ac_executable_extensions; do
27336         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27337           echo "$as_me: trying $ac_dir/$ac_word..." >&5
27338           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
27339             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
27340             break 2
27341           fi
27342         fi
27343       done
27344     done
27345     IFS="$ac_save_IFS"
27346   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
27347     ;;
27348 esac
27349 fi
27350 MSGMERGE="$ac_cv_path_MSGMERGE"
27351 if test "$MSGMERGE" != ":"; then
27352   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27353 $as_echo "$MSGMERGE" >&6; }
27354 else
27355   { $as_echo "$as_me:$LINENO: result: no" >&5
27356 $as_echo "no" >&6; }
27357 fi
27358
27359
27360         test -n "$localedir" || localedir='${datadir}/locale'
27361
27362
27363   ac_config_commands="$ac_config_commands po-directories"
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373     use_additional=yes
27374
27375   acl_save_prefix="$prefix"
27376   prefix="$acl_final_prefix"
27377   acl_save_exec_prefix="$exec_prefix"
27378   exec_prefix="$acl_final_exec_prefix"
27379
27380     eval additional_includedir=\"$includedir\"
27381     eval additional_libdir=\"$libdir\"
27382
27383   exec_prefix="$acl_save_exec_prefix"
27384   prefix="$acl_save_prefix"
27385
27386
27387 # Check whether --with-libiconv-prefix was given.
27388 if test "${with_libiconv_prefix+set}" = set; then
27389   withval=$with_libiconv_prefix;
27390     if test "X$withval" = "Xno"; then
27391       use_additional=no
27392     else
27393       if test "X$withval" = "X"; then
27394
27395   acl_save_prefix="$prefix"
27396   prefix="$acl_final_prefix"
27397   acl_save_exec_prefix="$exec_prefix"
27398   exec_prefix="$acl_final_exec_prefix"
27399
27400           eval additional_includedir=\"$includedir\"
27401           eval additional_libdir=\"$libdir\"
27402
27403   exec_prefix="$acl_save_exec_prefix"
27404   prefix="$acl_save_prefix"
27405
27406       else
27407         additional_includedir="$withval/include"
27408         additional_libdir="$withval/$acl_libdirstem"
27409       fi
27410     fi
27411
27412 fi
27413
27414       LIBICONV=
27415   LTLIBICONV=
27416   INCICONV=
27417   rpathdirs=
27418   ltrpathdirs=
27419   names_already_handled=
27420   names_next_round='iconv '
27421   while test -n "$names_next_round"; do
27422     names_this_round="$names_next_round"
27423     names_next_round=
27424     for name in $names_this_round; do
27425       already_handled=
27426       for n in $names_already_handled; do
27427         if test "$n" = "$name"; then
27428           already_handled=yes
27429           break
27430         fi
27431       done
27432       if test -z "$already_handled"; then
27433         names_already_handled="$names_already_handled $name"
27434                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27435         eval value=\"\$HAVE_LIB$uppername\"
27436         if test -n "$value"; then
27437           if test "$value" = yes; then
27438             eval value=\"\$LIB$uppername\"
27439             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
27440             eval value=\"\$LTLIB$uppername\"
27441             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
27442           else
27443                                     :
27444           fi
27445         else
27446                               found_dir=
27447           found_la=
27448           found_so=
27449           found_a=
27450           if test $use_additional = yes; then
27451             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27452               found_dir="$additional_libdir"
27453               found_so="$additional_libdir/lib$name.$shlibext"
27454               if test -f "$additional_libdir/lib$name.la"; then
27455                 found_la="$additional_libdir/lib$name.la"
27456               fi
27457             else
27458               if test -f "$additional_libdir/lib$name.$libext"; then
27459                 found_dir="$additional_libdir"
27460                 found_a="$additional_libdir/lib$name.$libext"
27461                 if test -f "$additional_libdir/lib$name.la"; then
27462                   found_la="$additional_libdir/lib$name.la"
27463                 fi
27464               fi
27465             fi
27466           fi
27467           if test "X$found_dir" = "X"; then
27468             for x in $LDFLAGS $LTLIBICONV; do
27469
27470   acl_save_prefix="$prefix"
27471   prefix="$acl_final_prefix"
27472   acl_save_exec_prefix="$exec_prefix"
27473   exec_prefix="$acl_final_exec_prefix"
27474   eval x=\"$x\"
27475   exec_prefix="$acl_save_exec_prefix"
27476   prefix="$acl_save_prefix"
27477
27478               case "$x" in
27479                 -L*)
27480                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27481                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27482                     found_dir="$dir"
27483                     found_so="$dir/lib$name.$shlibext"
27484                     if test -f "$dir/lib$name.la"; then
27485                       found_la="$dir/lib$name.la"
27486                     fi
27487                   else
27488                     if test -f "$dir/lib$name.$libext"; then
27489                       found_dir="$dir"
27490                       found_a="$dir/lib$name.$libext"
27491                       if test -f "$dir/lib$name.la"; then
27492                         found_la="$dir/lib$name.la"
27493                       fi
27494                     fi
27495                   fi
27496                   ;;
27497               esac
27498               if test "X$found_dir" != "X"; then
27499                 break
27500               fi
27501             done
27502           fi
27503           if test "X$found_dir" != "X"; then
27504                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27505             if test "X$found_so" != "X"; then
27506                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27507                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27508               else
27509                                                                                 haveit=
27510                 for x in $ltrpathdirs; do
27511                   if test "X$x" = "X$found_dir"; then
27512                     haveit=yes
27513                     break
27514                   fi
27515                 done
27516                 if test -z "$haveit"; then
27517                   ltrpathdirs="$ltrpathdirs $found_dir"
27518                 fi
27519                                 if test "$hardcode_direct" = yes; then
27520                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27521                 else
27522                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27523                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27524                                                             haveit=
27525                     for x in $rpathdirs; do
27526                       if test "X$x" = "X$found_dir"; then
27527                         haveit=yes
27528                         break
27529                       fi
27530                     done
27531                     if test -z "$haveit"; then
27532                       rpathdirs="$rpathdirs $found_dir"
27533                     fi
27534                   else
27535                                                                                 haveit=
27536                     for x in $LDFLAGS $LIBICONV; do
27537
27538   acl_save_prefix="$prefix"
27539   prefix="$acl_final_prefix"
27540   acl_save_exec_prefix="$exec_prefix"
27541   exec_prefix="$acl_final_exec_prefix"
27542   eval x=\"$x\"
27543   exec_prefix="$acl_save_exec_prefix"
27544   prefix="$acl_save_prefix"
27545
27546                       if test "X$x" = "X-L$found_dir"; then
27547                         haveit=yes
27548                         break
27549                       fi
27550                     done
27551                     if test -z "$haveit"; then
27552                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27553                     fi
27554                     if test "$hardcode_minus_L" != no; then
27555                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27556                     else
27557                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27558                     fi
27559                   fi
27560                 fi
27561               fi
27562             else
27563               if test "X$found_a" != "X"; then
27564                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
27565               else
27566                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27567               fi
27568             fi
27569                         additional_includedir=
27570             case "$found_dir" in
27571               */$acl_libdirstem | */$acl_libdirstem/)
27572                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27573                 additional_includedir="$basedir/include"
27574                 ;;
27575             esac
27576             if test "X$additional_includedir" != "X"; then
27577                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27578                 haveit=
27579                 if test "X$additional_includedir" = "X/usr/local/include"; then
27580                   if test -n "$GCC"; then
27581                     case $host_os in
27582                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27583                     esac
27584                   fi
27585                 fi
27586                 if test -z "$haveit"; then
27587                   for x in $CPPFLAGS $INCICONV; do
27588
27589   acl_save_prefix="$prefix"
27590   prefix="$acl_final_prefix"
27591   acl_save_exec_prefix="$exec_prefix"
27592   exec_prefix="$acl_final_exec_prefix"
27593   eval x=\"$x\"
27594   exec_prefix="$acl_save_exec_prefix"
27595   prefix="$acl_save_prefix"
27596
27597                     if test "X$x" = "X-I$additional_includedir"; then
27598                       haveit=yes
27599                       break
27600                     fi
27601                   done
27602                   if test -z "$haveit"; then
27603                     if test -d "$additional_includedir"; then
27604                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27605                     fi
27606                   fi
27607                 fi
27608               fi
27609             fi
27610                         if test -n "$found_la"; then
27611                                                         save_libdir="$libdir"
27612               case "$found_la" in
27613                 */* | *\\*) . "$found_la" ;;
27614                 *) . "./$found_la" ;;
27615               esac
27616               libdir="$save_libdir"
27617                             for dep in $dependency_libs; do
27618                 case "$dep" in
27619                   -L*)
27620                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27621                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27622                       haveit=
27623                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27624                         if test -n "$GCC"; then
27625                           case $host_os in
27626                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27627                           esac
27628                         fi
27629                       fi
27630                       if test -z "$haveit"; then
27631                         haveit=
27632                         for x in $LDFLAGS $LIBICONV; do
27633
27634   acl_save_prefix="$prefix"
27635   prefix="$acl_final_prefix"
27636   acl_save_exec_prefix="$exec_prefix"
27637   exec_prefix="$acl_final_exec_prefix"
27638   eval x=\"$x\"
27639   exec_prefix="$acl_save_exec_prefix"
27640   prefix="$acl_save_prefix"
27641
27642                           if test "X$x" = "X-L$additional_libdir"; then
27643                             haveit=yes
27644                             break
27645                           fi
27646                         done
27647                         if test -z "$haveit"; then
27648                           if test -d "$additional_libdir"; then
27649                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27650                           fi
27651                         fi
27652                         haveit=
27653                         for x in $LDFLAGS $LTLIBICONV; do
27654
27655   acl_save_prefix="$prefix"
27656   prefix="$acl_final_prefix"
27657   acl_save_exec_prefix="$exec_prefix"
27658   exec_prefix="$acl_final_exec_prefix"
27659   eval x=\"$x\"
27660   exec_prefix="$acl_save_exec_prefix"
27661   prefix="$acl_save_prefix"
27662
27663                           if test "X$x" = "X-L$additional_libdir"; then
27664                             haveit=yes
27665                             break
27666                           fi
27667                         done
27668                         if test -z "$haveit"; then
27669                           if test -d "$additional_libdir"; then
27670                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27671                           fi
27672                         fi
27673                       fi
27674                     fi
27675                     ;;
27676                   -R*)
27677                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27678                     if test "$enable_rpath" != no; then
27679                                                                   haveit=
27680                       for x in $rpathdirs; do
27681                         if test "X$x" = "X$dir"; then
27682                           haveit=yes
27683                           break
27684                         fi
27685                       done
27686                       if test -z "$haveit"; then
27687                         rpathdirs="$rpathdirs $dir"
27688                       fi
27689                                                                   haveit=
27690                       for x in $ltrpathdirs; do
27691                         if test "X$x" = "X$dir"; then
27692                           haveit=yes
27693                           break
27694                         fi
27695                       done
27696                       if test -z "$haveit"; then
27697                         ltrpathdirs="$ltrpathdirs $dir"
27698                       fi
27699                     fi
27700                     ;;
27701                   -l*)
27702                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27703                     ;;
27704                   *.la)
27705                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27706                     ;;
27707                   *)
27708                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27709                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27710                     ;;
27711                 esac
27712               done
27713             fi
27714           else
27715                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27716             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27717           fi
27718         fi
27719       fi
27720     done
27721   done
27722   if test "X$rpathdirs" != "X"; then
27723     if test -n "$hardcode_libdir_separator"; then
27724                         alldirs=
27725       for found_dir in $rpathdirs; do
27726         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27727       done
27728             acl_save_libdir="$libdir"
27729       libdir="$alldirs"
27730       eval flag=\"$hardcode_libdir_flag_spec\"
27731       libdir="$acl_save_libdir"
27732       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27733     else
27734             for found_dir in $rpathdirs; do
27735         acl_save_libdir="$libdir"
27736         libdir="$found_dir"
27737         eval flag=\"$hardcode_libdir_flag_spec\"
27738         libdir="$acl_save_libdir"
27739         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27740       done
27741     fi
27742   fi
27743   if test "X$ltrpathdirs" != "X"; then
27744             for found_dir in $ltrpathdirs; do
27745       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27746     done
27747   fi
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27767 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
27768 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27769   $as_echo_n "(cached) " >&6
27770 else
27771   gt_save_LIBS="$LIBS"
27772      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27773      cat >conftest.$ac_ext <<_ACEOF
27774 /* confdefs.h.  */
27775 _ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h.  */
27779 #include <CoreFoundation/CFPreferences.h>
27780 int
27781 main ()
27782 {
27783 CFPreferencesCopyAppValue(NULL, NULL)
27784   ;
27785   return 0;
27786 }
27787 _ACEOF
27788 rm -f conftest.$ac_objext conftest$ac_exeext
27789 if { (ac_try="$ac_link"
27790 case "(($ac_try" in
27791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792   *) ac_try_echo=$ac_try;;
27793 esac
27794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27795 $as_echo "$ac_try_echo") >&5
27796   (eval "$ac_link") 2>conftest.er1
27797   ac_status=$?
27798   grep -v '^ *+' conftest.er1 >conftest.err
27799   rm -f conftest.er1
27800   cat conftest.err >&5
27801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); } && {
27803          test -z "$ac_c_werror_flag" ||
27804          test ! -s conftest.err
27805        } && test -s conftest$ac_exeext && {
27806          test "$cross_compiling" = yes ||
27807          $as_test_x conftest$ac_exeext
27808        }; then
27809   gt_cv_func_CFPreferencesCopyAppValue=yes
27810 else
27811   $as_echo "$as_me: failed program was:" >&5
27812 sed 's/^/| /' conftest.$ac_ext >&5
27813
27814         gt_cv_func_CFPreferencesCopyAppValue=no
27815 fi
27816
27817 rm -rf conftest.dSYM
27818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27819       conftest$ac_exeext conftest.$ac_ext
27820      LIBS="$gt_save_LIBS"
27821 fi
27822 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27823 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27824   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27825
27826 cat >>confdefs.h <<\_ACEOF
27827 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27828 _ACEOF
27829
27830   fi
27831     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27832 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
27833 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27834   $as_echo_n "(cached) " >&6
27835 else
27836   gt_save_LIBS="$LIBS"
27837      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27838      cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h.  */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h.  */
27844 #include <CoreFoundation/CFLocale.h>
27845 int
27846 main ()
27847 {
27848 CFLocaleCopyCurrent();
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857   *) ac_try_echo=$ac_try;;
27858 esac
27859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27860 $as_echo "$ac_try_echo") >&5
27861   (eval "$ac_link") 2>conftest.er1
27862   ac_status=$?
27863   grep -v '^ *+' conftest.er1 >conftest.err
27864   rm -f conftest.er1
27865   cat conftest.err >&5
27866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); } && {
27868          test -z "$ac_c_werror_flag" ||
27869          test ! -s conftest.err
27870        } && test -s conftest$ac_exeext && {
27871          test "$cross_compiling" = yes ||
27872          $as_test_x conftest$ac_exeext
27873        }; then
27874   gt_cv_func_CFLocaleCopyCurrent=yes
27875 else
27876   $as_echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27878
27879         gt_cv_func_CFLocaleCopyCurrent=no
27880 fi
27881
27882 rm -rf conftest.dSYM
27883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27884       conftest$ac_exeext conftest.$ac_ext
27885      LIBS="$gt_save_LIBS"
27886 fi
27887 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27888 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27889   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27890
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_CFLOCALECOPYCURRENT 1
27893 _ACEOF
27894
27895   fi
27896   INTL_MACOSX_LIBS=
27897   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27898     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27899   fi
27900
27901
27902
27903
27904
27905
27906   LIBINTL=
27907   LTLIBINTL=
27908   POSUB=
27909
27910     if test "$USE_NLS" = "yes"; then
27911     gt_use_preinstalled_gnugettext=no
27912
27913
27914
27915
27916
27917
27918         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27919 $as_echo_n "checking for GNU gettext in libc... " >&6; }
27920 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
27921   $as_echo_n "(cached) " >&6
27922 else
27923   cat >conftest.$ac_ext <<_ACEOF
27924 /* confdefs.h.  */
27925 _ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h.  */
27929 #include <libintl.h>
27930 extern int _nl_msg_cat_cntr;
27931 extern int *_nl_domain_bindings;
27932 int
27933 main ()
27934 {
27935 bindtextdomain ("", "");
27936 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
27937   ;
27938   return 0;
27939 }
27940 _ACEOF
27941 rm -f conftest.$ac_objext conftest$ac_exeext
27942 if { (ac_try="$ac_link"
27943 case "(($ac_try" in
27944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945   *) ac_try_echo=$ac_try;;
27946 esac
27947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27948 $as_echo "$ac_try_echo") >&5
27949   (eval "$ac_link") 2>conftest.er1
27950   ac_status=$?
27951   grep -v '^ *+' conftest.er1 >conftest.err
27952   rm -f conftest.er1
27953   cat conftest.err >&5
27954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955   (exit $ac_status); } && {
27956          test -z "$ac_c_werror_flag" ||
27957          test ! -s conftest.err
27958        } && test -s conftest$ac_exeext && {
27959          test "$cross_compiling" = yes ||
27960          $as_test_x conftest$ac_exeext
27961        }; then
27962   gt_cv_func_gnugettext1_libc=yes
27963 else
27964   $as_echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967         gt_cv_func_gnugettext1_libc=no
27968 fi
27969
27970 rm -rf conftest.dSYM
27971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27972       conftest$ac_exeext conftest.$ac_ext
27973 fi
27974 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
27975 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
27976
27977         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
27978
27979
27980
27981
27982
27983           am_save_CPPFLAGS="$CPPFLAGS"
27984
27985   for element in $INCICONV; do
27986     haveit=
27987     for x in $CPPFLAGS; do
27988
27989   acl_save_prefix="$prefix"
27990   prefix="$acl_final_prefix"
27991   acl_save_exec_prefix="$exec_prefix"
27992   exec_prefix="$acl_final_exec_prefix"
27993   eval x=\"$x\"
27994   exec_prefix="$acl_save_exec_prefix"
27995   prefix="$acl_save_prefix"
27996
27997       if test "X$x" = "X$element"; then
27998         haveit=yes
27999         break
28000       fi
28001     done
28002     if test -z "$haveit"; then
28003       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28004     fi
28005   done
28006
28007
28008   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
28009 $as_echo_n "checking for iconv... " >&6; }
28010 if test "${am_cv_func_iconv+set}" = set; then
28011   $as_echo_n "(cached) " >&6
28012 else
28013
28014     am_cv_func_iconv="no, consider installing GNU libiconv"
28015     am_cv_lib_iconv=no
28016     cat >conftest.$ac_ext <<_ACEOF
28017 /* confdefs.h.  */
28018 _ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h.  */
28022 #include <stdlib.h>
28023 #include <iconv.h>
28024 int
28025 main ()
28026 {
28027 iconv_t cd = iconv_open("","");
28028        iconv(cd,NULL,NULL,NULL,NULL);
28029        iconv_close(cd);
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28041 $as_echo "$ac_try_echo") >&5
28042   (eval "$ac_link") 2>conftest.er1
28043   ac_status=$?
28044   grep -v '^ *+' conftest.er1 >conftest.err
28045   rm -f conftest.er1
28046   cat conftest.err >&5
28047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048   (exit $ac_status); } && {
28049          test -z "$ac_c_werror_flag" ||
28050          test ! -s conftest.err
28051        } && test -s conftest$ac_exeext && {
28052          test "$cross_compiling" = yes ||
28053          $as_test_x conftest$ac_exeext
28054        }; then
28055   am_cv_func_iconv=yes
28056 else
28057   $as_echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28059
28060
28061 fi
28062
28063 rm -rf conftest.dSYM
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065       conftest$ac_exeext conftest.$ac_ext
28066     if test "$am_cv_func_iconv" != yes; then
28067       am_save_LIBS="$LIBS"
28068       LIBS="$LIBS $LIBICONV"
28069       cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h.  */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h.  */
28075 #include <stdlib.h>
28076 #include <iconv.h>
28077 int
28078 main ()
28079 {
28080 iconv_t cd = iconv_open("","");
28081          iconv(cd,NULL,NULL,NULL,NULL);
28082          iconv_close(cd);
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28094 $as_echo "$ac_try_echo") >&5
28095   (eval "$ac_link") 2>conftest.er1
28096   ac_status=$?
28097   grep -v '^ *+' conftest.er1 >conftest.err
28098   rm -f conftest.er1
28099   cat conftest.err >&5
28100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); } && {
28102          test -z "$ac_c_werror_flag" ||
28103          test ! -s conftest.err
28104        } && test -s conftest$ac_exeext && {
28105          test "$cross_compiling" = yes ||
28106          $as_test_x conftest$ac_exeext
28107        }; then
28108   am_cv_lib_iconv=yes
28109         am_cv_func_iconv=yes
28110 else
28111   $as_echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114
28115 fi
28116
28117 rm -rf conftest.dSYM
28118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28119       conftest$ac_exeext conftest.$ac_ext
28120       LIBS="$am_save_LIBS"
28121     fi
28122
28123 fi
28124 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28125 $as_echo "$am_cv_func_iconv" >&6; }
28126   if test "$am_cv_func_iconv" = yes; then
28127
28128 cat >>confdefs.h <<\_ACEOF
28129 #define HAVE_ICONV 1
28130 _ACEOF
28131
28132   fi
28133   if test "$am_cv_lib_iconv" = yes; then
28134     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
28135 $as_echo_n "checking how to link with libiconv... " >&6; }
28136     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
28137 $as_echo "$LIBICONV" >&6; }
28138   else
28139             CPPFLAGS="$am_save_CPPFLAGS"
28140     LIBICONV=
28141     LTLIBICONV=
28142   fi
28143
28144
28145
28146
28147
28148
28149
28150     use_additional=yes
28151
28152   acl_save_prefix="$prefix"
28153   prefix="$acl_final_prefix"
28154   acl_save_exec_prefix="$exec_prefix"
28155   exec_prefix="$acl_final_exec_prefix"
28156
28157     eval additional_includedir=\"$includedir\"
28158     eval additional_libdir=\"$libdir\"
28159
28160   exec_prefix="$acl_save_exec_prefix"
28161   prefix="$acl_save_prefix"
28162
28163
28164 # Check whether --with-libintl-prefix was given.
28165 if test "${with_libintl_prefix+set}" = set; then
28166   withval=$with_libintl_prefix;
28167     if test "X$withval" = "Xno"; then
28168       use_additional=no
28169     else
28170       if test "X$withval" = "X"; then
28171
28172   acl_save_prefix="$prefix"
28173   prefix="$acl_final_prefix"
28174   acl_save_exec_prefix="$exec_prefix"
28175   exec_prefix="$acl_final_exec_prefix"
28176
28177           eval additional_includedir=\"$includedir\"
28178           eval additional_libdir=\"$libdir\"
28179
28180   exec_prefix="$acl_save_exec_prefix"
28181   prefix="$acl_save_prefix"
28182
28183       else
28184         additional_includedir="$withval/include"
28185         additional_libdir="$withval/$acl_libdirstem"
28186       fi
28187     fi
28188
28189 fi
28190
28191       LIBINTL=
28192   LTLIBINTL=
28193   INCINTL=
28194   rpathdirs=
28195   ltrpathdirs=
28196   names_already_handled=
28197   names_next_round='intl '
28198   while test -n "$names_next_round"; do
28199     names_this_round="$names_next_round"
28200     names_next_round=
28201     for name in $names_this_round; do
28202       already_handled=
28203       for n in $names_already_handled; do
28204         if test "$n" = "$name"; then
28205           already_handled=yes
28206           break
28207         fi
28208       done
28209       if test -z "$already_handled"; then
28210         names_already_handled="$names_already_handled $name"
28211                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28212         eval value=\"\$HAVE_LIB$uppername\"
28213         if test -n "$value"; then
28214           if test "$value" = yes; then
28215             eval value=\"\$LIB$uppername\"
28216             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28217             eval value=\"\$LTLIB$uppername\"
28218             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28219           else
28220                                     :
28221           fi
28222         else
28223                               found_dir=
28224           found_la=
28225           found_so=
28226           found_a=
28227           if test $use_additional = yes; then
28228             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28229               found_dir="$additional_libdir"
28230               found_so="$additional_libdir/lib$name.$shlibext"
28231               if test -f "$additional_libdir/lib$name.la"; then
28232                 found_la="$additional_libdir/lib$name.la"
28233               fi
28234             else
28235               if test -f "$additional_libdir/lib$name.$libext"; then
28236                 found_dir="$additional_libdir"
28237                 found_a="$additional_libdir/lib$name.$libext"
28238                 if test -f "$additional_libdir/lib$name.la"; then
28239                   found_la="$additional_libdir/lib$name.la"
28240                 fi
28241               fi
28242             fi
28243           fi
28244           if test "X$found_dir" = "X"; then
28245             for x in $LDFLAGS $LTLIBINTL; do
28246
28247   acl_save_prefix="$prefix"
28248   prefix="$acl_final_prefix"
28249   acl_save_exec_prefix="$exec_prefix"
28250   exec_prefix="$acl_final_exec_prefix"
28251   eval x=\"$x\"
28252   exec_prefix="$acl_save_exec_prefix"
28253   prefix="$acl_save_prefix"
28254
28255               case "$x" in
28256                 -L*)
28257                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28258                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28259                     found_dir="$dir"
28260                     found_so="$dir/lib$name.$shlibext"
28261                     if test -f "$dir/lib$name.la"; then
28262                       found_la="$dir/lib$name.la"
28263                     fi
28264                   else
28265                     if test -f "$dir/lib$name.$libext"; then
28266                       found_dir="$dir"
28267                       found_a="$dir/lib$name.$libext"
28268                       if test -f "$dir/lib$name.la"; then
28269                         found_la="$dir/lib$name.la"
28270                       fi
28271                     fi
28272                   fi
28273                   ;;
28274               esac
28275               if test "X$found_dir" != "X"; then
28276                 break
28277               fi
28278             done
28279           fi
28280           if test "X$found_dir" != "X"; then
28281                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28282             if test "X$found_so" != "X"; then
28283                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28284                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28285               else
28286                                                                                 haveit=
28287                 for x in $ltrpathdirs; do
28288                   if test "X$x" = "X$found_dir"; then
28289                     haveit=yes
28290                     break
28291                   fi
28292                 done
28293                 if test -z "$haveit"; then
28294                   ltrpathdirs="$ltrpathdirs $found_dir"
28295                 fi
28296                                 if test "$hardcode_direct" = yes; then
28297                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28298                 else
28299                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28300                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28301                                                             haveit=
28302                     for x in $rpathdirs; do
28303                       if test "X$x" = "X$found_dir"; then
28304                         haveit=yes
28305                         break
28306                       fi
28307                     done
28308                     if test -z "$haveit"; then
28309                       rpathdirs="$rpathdirs $found_dir"
28310                     fi
28311                   else
28312                                                                                 haveit=
28313                     for x in $LDFLAGS $LIBINTL; do
28314
28315   acl_save_prefix="$prefix"
28316   prefix="$acl_final_prefix"
28317   acl_save_exec_prefix="$exec_prefix"
28318   exec_prefix="$acl_final_exec_prefix"
28319   eval x=\"$x\"
28320   exec_prefix="$acl_save_exec_prefix"
28321   prefix="$acl_save_prefix"
28322
28323                       if test "X$x" = "X-L$found_dir"; then
28324                         haveit=yes
28325                         break
28326                       fi
28327                     done
28328                     if test -z "$haveit"; then
28329                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28330                     fi
28331                     if test "$hardcode_minus_L" != no; then
28332                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28333                     else
28334                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28335                     fi
28336                   fi
28337                 fi
28338               fi
28339             else
28340               if test "X$found_a" != "X"; then
28341                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28342               else
28343                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28344               fi
28345             fi
28346                         additional_includedir=
28347             case "$found_dir" in
28348               */$acl_libdirstem | */$acl_libdirstem/)
28349                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28350                 additional_includedir="$basedir/include"
28351                 ;;
28352             esac
28353             if test "X$additional_includedir" != "X"; then
28354                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28355                 haveit=
28356                 if test "X$additional_includedir" = "X/usr/local/include"; then
28357                   if test -n "$GCC"; then
28358                     case $host_os in
28359                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28360                     esac
28361                   fi
28362                 fi
28363                 if test -z "$haveit"; then
28364                   for x in $CPPFLAGS $INCINTL; do
28365
28366   acl_save_prefix="$prefix"
28367   prefix="$acl_final_prefix"
28368   acl_save_exec_prefix="$exec_prefix"
28369   exec_prefix="$acl_final_exec_prefix"
28370   eval x=\"$x\"
28371   exec_prefix="$acl_save_exec_prefix"
28372   prefix="$acl_save_prefix"
28373
28374                     if test "X$x" = "X-I$additional_includedir"; then
28375                       haveit=yes
28376                       break
28377                     fi
28378                   done
28379                   if test -z "$haveit"; then
28380                     if test -d "$additional_includedir"; then
28381                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28382                     fi
28383                   fi
28384                 fi
28385               fi
28386             fi
28387                         if test -n "$found_la"; then
28388                                                         save_libdir="$libdir"
28389               case "$found_la" in
28390                 */* | *\\*) . "$found_la" ;;
28391                 *) . "./$found_la" ;;
28392               esac
28393               libdir="$save_libdir"
28394                             for dep in $dependency_libs; do
28395                 case "$dep" in
28396                   -L*)
28397                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28398                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28399                       haveit=
28400                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28401                         if test -n "$GCC"; then
28402                           case $host_os in
28403                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28404                           esac
28405                         fi
28406                       fi
28407                       if test -z "$haveit"; then
28408                         haveit=
28409                         for x in $LDFLAGS $LIBINTL; do
28410
28411   acl_save_prefix="$prefix"
28412   prefix="$acl_final_prefix"
28413   acl_save_exec_prefix="$exec_prefix"
28414   exec_prefix="$acl_final_exec_prefix"
28415   eval x=\"$x\"
28416   exec_prefix="$acl_save_exec_prefix"
28417   prefix="$acl_save_prefix"
28418
28419                           if test "X$x" = "X-L$additional_libdir"; then
28420                             haveit=yes
28421                             break
28422                           fi
28423                         done
28424                         if test -z "$haveit"; then
28425                           if test -d "$additional_libdir"; then
28426                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28427                           fi
28428                         fi
28429                         haveit=
28430                         for x in $LDFLAGS $LTLIBINTL; do
28431
28432   acl_save_prefix="$prefix"
28433   prefix="$acl_final_prefix"
28434   acl_save_exec_prefix="$exec_prefix"
28435   exec_prefix="$acl_final_exec_prefix"
28436   eval x=\"$x\"
28437   exec_prefix="$acl_save_exec_prefix"
28438   prefix="$acl_save_prefix"
28439
28440                           if test "X$x" = "X-L$additional_libdir"; then
28441                             haveit=yes
28442                             break
28443                           fi
28444                         done
28445                         if test -z "$haveit"; then
28446                           if test -d "$additional_libdir"; then
28447                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28448                           fi
28449                         fi
28450                       fi
28451                     fi
28452                     ;;
28453                   -R*)
28454                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28455                     if test "$enable_rpath" != no; then
28456                                                                   haveit=
28457                       for x in $rpathdirs; do
28458                         if test "X$x" = "X$dir"; then
28459                           haveit=yes
28460                           break
28461                         fi
28462                       done
28463                       if test -z "$haveit"; then
28464                         rpathdirs="$rpathdirs $dir"
28465                       fi
28466                                                                   haveit=
28467                       for x in $ltrpathdirs; do
28468                         if test "X$x" = "X$dir"; then
28469                           haveit=yes
28470                           break
28471                         fi
28472                       done
28473                       if test -z "$haveit"; then
28474                         ltrpathdirs="$ltrpathdirs $dir"
28475                       fi
28476                     fi
28477                     ;;
28478                   -l*)
28479                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28480                     ;;
28481                   *.la)
28482                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28483                     ;;
28484                   *)
28485                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28486                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28487                     ;;
28488                 esac
28489               done
28490             fi
28491           else
28492                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28493             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28494           fi
28495         fi
28496       fi
28497     done
28498   done
28499   if test "X$rpathdirs" != "X"; then
28500     if test -n "$hardcode_libdir_separator"; then
28501                         alldirs=
28502       for found_dir in $rpathdirs; do
28503         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28504       done
28505             acl_save_libdir="$libdir"
28506       libdir="$alldirs"
28507       eval flag=\"$hardcode_libdir_flag_spec\"
28508       libdir="$acl_save_libdir"
28509       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28510     else
28511             for found_dir in $rpathdirs; do
28512         acl_save_libdir="$libdir"
28513         libdir="$found_dir"
28514         eval flag=\"$hardcode_libdir_flag_spec\"
28515         libdir="$acl_save_libdir"
28516         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28517       done
28518     fi
28519   fi
28520   if test "X$ltrpathdirs" != "X"; then
28521             for found_dir in $ltrpathdirs; do
28522       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28523     done
28524   fi
28525
28526           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28527 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
28528 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
28529   $as_echo_n "(cached) " >&6
28530 else
28531   gt_save_CPPFLAGS="$CPPFLAGS"
28532             CPPFLAGS="$CPPFLAGS $INCINTL"
28533             gt_save_LIBS="$LIBS"
28534             LIBS="$LIBS $LIBINTL"
28535                         cat >conftest.$ac_ext <<_ACEOF
28536 /* confdefs.h.  */
28537 _ACEOF
28538 cat confdefs.h >>conftest.$ac_ext
28539 cat >>conftest.$ac_ext <<_ACEOF
28540 /* end confdefs.h.  */
28541 #include <libintl.h>
28542 extern int _nl_msg_cat_cntr;
28543 extern
28544 #ifdef __cplusplus
28545 "C"
28546 #endif
28547 const char *_nl_expand_alias (const char *);
28548 int
28549 main ()
28550 {
28551 bindtextdomain ("", "");
28552 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28553   ;
28554   return 0;
28555 }
28556 _ACEOF
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (ac_try="$ac_link"
28559 case "(($ac_try" in
28560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561   *) ac_try_echo=$ac_try;;
28562 esac
28563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28564 $as_echo "$ac_try_echo") >&5
28565   (eval "$ac_link") 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } && {
28572          test -z "$ac_c_werror_flag" ||
28573          test ! -s conftest.err
28574        } && test -s conftest$ac_exeext && {
28575          test "$cross_compiling" = yes ||
28576          $as_test_x conftest$ac_exeext
28577        }; then
28578   gt_cv_func_gnugettext1_libintl=yes
28579 else
28580   $as_echo "$as_me: failed program was:" >&5
28581 sed 's/^/| /' conftest.$ac_ext >&5
28582
28583         gt_cv_func_gnugettext1_libintl=no
28584 fi
28585
28586 rm -rf conftest.dSYM
28587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28588       conftest$ac_exeext conftest.$ac_ext
28589                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
28590               LIBS="$LIBS $LIBICONV"
28591               cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h.  */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h.  */
28597 #include <libintl.h>
28598 extern int _nl_msg_cat_cntr;
28599 extern
28600 #ifdef __cplusplus
28601 "C"
28602 #endif
28603 const char *_nl_expand_alias (const char *);
28604 int
28605 main ()
28606 {
28607 bindtextdomain ("", "");
28608 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28609   ;
28610   return 0;
28611 }
28612 _ACEOF
28613 rm -f conftest.$ac_objext conftest$ac_exeext
28614 if { (ac_try="$ac_link"
28615 case "(($ac_try" in
28616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617   *) ac_try_echo=$ac_try;;
28618 esac
28619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28620 $as_echo "$ac_try_echo") >&5
28621   (eval "$ac_link") 2>conftest.er1
28622   ac_status=$?
28623   grep -v '^ *+' conftest.er1 >conftest.err
28624   rm -f conftest.er1
28625   cat conftest.err >&5
28626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627   (exit $ac_status); } && {
28628          test -z "$ac_c_werror_flag" ||
28629          test ! -s conftest.err
28630        } && test -s conftest$ac_exeext && {
28631          test "$cross_compiling" = yes ||
28632          $as_test_x conftest$ac_exeext
28633        }; then
28634   LIBINTL="$LIBINTL $LIBICONV"
28635                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28636                 gt_cv_func_gnugettext1_libintl=yes
28637
28638 else
28639   $as_echo "$as_me: failed program was:" >&5
28640 sed 's/^/| /' conftest.$ac_ext >&5
28641
28642
28643 fi
28644
28645 rm -rf conftest.dSYM
28646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28647       conftest$ac_exeext conftest.$ac_ext
28648             fi
28649             CPPFLAGS="$gt_save_CPPFLAGS"
28650             LIBS="$gt_save_LIBS"
28651 fi
28652 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
28653 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
28654         fi
28655
28656                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
28657            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
28658                 && test "$PACKAGE" != gettext-runtime \
28659                 && test "$PACKAGE" != gettext-tools; }; then
28660           gt_use_preinstalled_gnugettext=yes
28661         else
28662                     LIBINTL=
28663           LTLIBINTL=
28664           INCINTL=
28665         fi
28666
28667
28668
28669     if test -n "$INTL_MACOSX_LIBS"; then
28670       if test "$gt_use_preinstalled_gnugettext" = "yes" \
28671          || test "$nls_cv_use_gnu_gettext" = "yes"; then
28672                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28673         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28674       fi
28675     fi
28676
28677     if test "$gt_use_preinstalled_gnugettext" = "yes" \
28678        || test "$nls_cv_use_gnu_gettext" = "yes"; then
28679
28680 cat >>confdefs.h <<\_ACEOF
28681 #define ENABLE_NLS 1
28682 _ACEOF
28683
28684     else
28685       USE_NLS=no
28686     fi
28687   fi
28688
28689   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
28690 $as_echo_n "checking whether to use NLS... " >&6; }
28691   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
28692 $as_echo "$USE_NLS" >&6; }
28693   if test "$USE_NLS" = "yes"; then
28694     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28695 $as_echo_n "checking where the gettext function comes from... " >&6; }
28696     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28697       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28698         gt_source="external libintl"
28699       else
28700         gt_source="libc"
28701       fi
28702     else
28703       gt_source="included intl directory"
28704     fi
28705     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
28706 $as_echo "$gt_source" >&6; }
28707   fi
28708
28709   if test "$USE_NLS" = "yes"; then
28710
28711     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28712       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28713         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
28714 $as_echo_n "checking how to link with libintl... " >&6; }
28715         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
28716 $as_echo "$LIBINTL" >&6; }
28717
28718   for element in $INCINTL; do
28719     haveit=
28720     for x in $CPPFLAGS; do
28721
28722   acl_save_prefix="$prefix"
28723   prefix="$acl_final_prefix"
28724   acl_save_exec_prefix="$exec_prefix"
28725   exec_prefix="$acl_final_exec_prefix"
28726   eval x=\"$x\"
28727   exec_prefix="$acl_save_exec_prefix"
28728   prefix="$acl_save_prefix"
28729
28730       if test "X$x" = "X$element"; then
28731         haveit=yes
28732         break
28733       fi
28734     done
28735     if test -z "$haveit"; then
28736       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28737     fi
28738   done
28739
28740       fi
28741
28742
28743 cat >>confdefs.h <<\_ACEOF
28744 #define HAVE_GETTEXT 1
28745 _ACEOF
28746
28747
28748 cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_DCGETTEXT 1
28750 _ACEOF
28751
28752     fi
28753
28754         POSUB=po
28755   fi
28756
28757
28758
28759     INTLLIBS="$LIBINTL"
28760
28761
28762
28763
28764
28765
28766
28767 #
28768 # Devices
28769 #
28770
28771     case "$target" in
28772         sparc-sun-solaris2.10) # Solaris 10
28773         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
28774         # for it in a few common paths; we then extract the -L flags and
28775         # translate them to -R flags, as required by the runtime linker.
28776         # Extract the first word of "curl-config", so it can be a program name with args.
28777 set dummy curl-config; ac_word=$2
28778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28779 $as_echo_n "checking for $ac_word... " >&6; }
28780 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
28781   $as_echo_n "(cached) " >&6
28782 else
28783   case $CURL_CONFIG in
28784   [\\/]* | ?:[\\/]*)
28785   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
28786   ;;
28787   *)
28788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28789 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
28790 for as_dir in $as_dummy
28791 do
28792   IFS=$as_save_IFS
28793   test -z "$as_dir" && as_dir=.
28794   for ac_exec_ext in '' $ac_executable_extensions; do
28795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28796     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28797     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28798     break 2
28799   fi
28800 done
28801 done
28802 IFS=$as_save_IFS
28803
28804   ;;
28805 esac
28806 fi
28807 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
28808 if test -n "$CURL_CONFIG"; then
28809   { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
28810 $as_echo "$CURL_CONFIG" >&6; }
28811 else
28812   { $as_echo "$as_me:$LINENO: result: no" >&5
28813 $as_echo "no" >&6; }
28814 fi
28815
28816
28817         if test -n "$CURL_CONFIG"; then
28818             curlflags=`$CURL_CONFIG --libs 2>/dev/null`
28819             for flag in curlflags; do
28820                 case $flag in
28821                     -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
28822                 esac
28823             done
28824         fi
28825         ;;
28826     esac
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866 # Check whether --with-libcurl was given.
28867 if test "${with_libcurl+set}" = set; then
28868   withval=$with_libcurl; _libcurl_with=$withval
28869 else
28870   _libcurl_with=yes
28871 fi
28872
28873
28874   if test "$_libcurl_with" != "no" ; then
28875
28876      for ac_prog in gawk mawk nawk awk
28877 do
28878   # Extract the first word of "$ac_prog", so it can be a program name with args.
28879 set dummy $ac_prog; ac_word=$2
28880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28881 $as_echo_n "checking for $ac_word... " >&6; }
28882 if test "${ac_cv_prog_AWK+set}" = set; then
28883   $as_echo_n "(cached) " >&6
28884 else
28885   if test -n "$AWK"; then
28886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
28887 else
28888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28889 for as_dir in $PATH
28890 do
28891   IFS=$as_save_IFS
28892   test -z "$as_dir" && as_dir=.
28893   for ac_exec_ext in '' $ac_executable_extensions; do
28894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28895     ac_cv_prog_AWK="$ac_prog"
28896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28897     break 2
28898   fi
28899 done
28900 done
28901 IFS=$as_save_IFS
28902
28903 fi
28904 fi
28905 AWK=$ac_cv_prog_AWK
28906 if test -n "$AWK"; then
28907   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
28908 $as_echo "$AWK" >&6; }
28909 else
28910   { $as_echo "$as_me:$LINENO: result: no" >&5
28911 $as_echo "no" >&6; }
28912 fi
28913
28914
28915   test -n "$AWK" && break
28916 done
28917
28918
28919      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
28920
28921      _libcurl_try_link=yes
28922
28923      if test -d "$_libcurl_with" ; then
28924         LIBCURL_CPPFLAGS="-I$withval/include"
28925         _libcurl_ldflags="-L$withval/lib"
28926         # Extract the first word of "curl-config", so it can be a program name with args.
28927 set dummy curl-config; ac_word=$2
28928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28929 $as_echo_n "checking for $ac_word... " >&6; }
28930 if test "${ac_cv_path__libcurl_config+set}" = set; then
28931   $as_echo_n "(cached) " >&6
28932 else
28933   case $_libcurl_config in
28934   [\\/]* | ?:[\\/]*)
28935   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
28936   ;;
28937   *)
28938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28939 for as_dir in "$withval/bin"
28940 do
28941   IFS=$as_save_IFS
28942   test -z "$as_dir" && as_dir=.
28943   for ac_exec_ext in '' $ac_executable_extensions; do
28944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28945     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
28946     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28947     break 2
28948   fi
28949 done
28950 done
28951 IFS=$as_save_IFS
28952
28953   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
28954   ;;
28955 esac
28956 fi
28957 _libcurl_config=$ac_cv_path__libcurl_config
28958 if test -n "$_libcurl_config"; then
28959   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
28960 $as_echo "$_libcurl_config" >&6; }
28961 else
28962   { $as_echo "$as_me:$LINENO: result: no" >&5
28963 $as_echo "no" >&6; }
28964 fi
28965
28966
28967      else
28968         # Extract the first word of "curl-config", so it can be a program name with args.
28969 set dummy curl-config; ac_word=$2
28970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28971 $as_echo_n "checking for $ac_word... " >&6; }
28972 if test "${ac_cv_path__libcurl_config+set}" = set; then
28973   $as_echo_n "(cached) " >&6
28974 else
28975   case $_libcurl_config in
28976   [\\/]* | ?:[\\/]*)
28977   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
28978   ;;
28979   *)
28980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28981 for as_dir in $PATH
28982 do
28983   IFS=$as_save_IFS
28984   test -z "$as_dir" && as_dir=.
28985   for ac_exec_ext in '' $ac_executable_extensions; do
28986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28987     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
28988     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28989     break 2
28990   fi
28991 done
28992 done
28993 IFS=$as_save_IFS
28994
28995   ;;
28996 esac
28997 fi
28998 _libcurl_config=$ac_cv_path__libcurl_config
28999 if test -n "$_libcurl_config"; then
29000   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
29001 $as_echo "$_libcurl_config" >&6; }
29002 else
29003   { $as_echo "$as_me:$LINENO: result: no" >&5
29004 $as_echo "no" >&6; }
29005 fi
29006
29007
29008      fi
29009
29010      if test x$_libcurl_config != "x" ; then
29011         { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
29012 $as_echo_n "checking for the version of libcurl... " >&6; }
29013 if test "${libcurl_cv_lib_curl_version+set}" = set; then
29014   $as_echo_n "(cached) " >&6
29015 else
29016   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
29017 fi
29018 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
29019 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
29020
29021         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
29022         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
29023
29024         if test $_libcurl_wanted -gt 0 ; then
29025            { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
29026 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
29027 if test "${libcurl_cv_lib_version_ok+set}" = set; then
29028   $as_echo_n "(cached) " >&6
29029 else
29030
29031               if test $_libcurl_version -ge $_libcurl_wanted ; then
29032                  libcurl_cv_lib_version_ok=yes
29033               else
29034                  libcurl_cv_lib_version_ok=no
29035               fi
29036
29037 fi
29038 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
29039 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
29040         fi
29041
29042         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
29043            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
29044               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
29045            fi
29046            if test x"$LIBCURL" = "x" ; then
29047               LIBCURL=`$_libcurl_config --libs`
29048
29049               # This is so silly, but Apple actually has a bug in their
29050               # curl-config script.  Fixed in Tiger, but there are still
29051               # lots of Panther installs around.
29052               case "${host}" in
29053                  powerpc-apple-darwin7*)
29054                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
29055                  ;;
29056               esac
29057            fi
29058
29059            # All curl-config scripts support --feature
29060            _libcurl_features=`$_libcurl_config --feature`
29061
29062            # Is it modern enough to have --protocols? (7.12.4)
29063            if test $_libcurl_version -ge 461828 ; then
29064               _libcurl_protocols=`$_libcurl_config --protocols`
29065            fi
29066         else
29067            _libcurl_try_link=no
29068         fi
29069
29070         unset _libcurl_wanted
29071      fi
29072
29073      if test $_libcurl_try_link = yes ; then
29074
29075         # we didn't find curl-config, so let's see if the user-supplied
29076         # link line (or failing that, "-lcurl") is enough.
29077         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
29078
29079         { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
29080 $as_echo_n "checking whether libcurl is usable... " >&6; }
29081 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
29082   $as_echo_n "(cached) " >&6
29083 else
29084
29085            _libcurl_save_cppflags=$CPPFLAGS
29086            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
29087            _libcurl_save_libs=$LIBS
29088            LIBS="$LIBCURL $LIBS"
29089
29090            cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096 #include <curl/curl.h>
29097 int
29098 main ()
29099 {
29100
29101 /* Try and use a few common options to force a failure if we are
29102    missing symbols or can't link. */
29103 int x;
29104 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
29105 x=CURL_ERROR_SIZE;
29106 x=CURLOPT_WRITEFUNCTION;
29107 x=CURLOPT_FILE;
29108 x=CURLOPT_ERRORBUFFER;
29109 x=CURLOPT_STDERR;
29110 x=CURLOPT_VERBOSE;
29111
29112   ;
29113   return 0;
29114 }
29115 _ACEOF
29116 rm -f conftest.$ac_objext conftest$ac_exeext
29117 if { (ac_try="$ac_link"
29118 case "(($ac_try" in
29119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120   *) ac_try_echo=$ac_try;;
29121 esac
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124   (eval "$ac_link") 2>conftest.er1
29125   ac_status=$?
29126   grep -v '^ *+' conftest.er1 >conftest.err
29127   rm -f conftest.er1
29128   cat conftest.err >&5
29129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); } && {
29131          test -z "$ac_c_werror_flag" ||
29132          test ! -s conftest.err
29133        } && test -s conftest$ac_exeext && {
29134          test "$cross_compiling" = yes ||
29135          $as_test_x conftest$ac_exeext
29136        }; then
29137   libcurl_cv_lib_curl_usable=yes
29138 else
29139   $as_echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142         libcurl_cv_lib_curl_usable=no
29143 fi
29144
29145 rm -rf conftest.dSYM
29146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29147       conftest$ac_exeext conftest.$ac_ext
29148
29149            CPPFLAGS=$_libcurl_save_cppflags
29150            LIBS=$_libcurl_save_libs
29151            unset _libcurl_save_cppflags
29152            unset _libcurl_save_libs
29153
29154 fi
29155 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
29156 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
29157
29158         if test $libcurl_cv_lib_curl_usable = yes ; then
29159
29160            # Does curl_free() exist in this version of libcurl?
29161            # If not, fake it with free()
29162
29163            _libcurl_save_cppflags=$CPPFLAGS
29164            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29165            _libcurl_save_libs=$LIBS
29166            LIBS="$LIBS $LIBCURL"
29167
29168            { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
29169 $as_echo_n "checking for curl_free... " >&6; }
29170 if test "${ac_cv_func_curl_free+set}" = set; then
29171   $as_echo_n "(cached) " >&6
29172 else
29173   cat >conftest.$ac_ext <<_ACEOF
29174 /* confdefs.h.  */
29175 _ACEOF
29176 cat confdefs.h >>conftest.$ac_ext
29177 cat >>conftest.$ac_ext <<_ACEOF
29178 /* end confdefs.h.  */
29179 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
29180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29181 #define curl_free innocuous_curl_free
29182
29183 /* System header to define __stub macros and hopefully few prototypes,
29184     which can conflict with char curl_free (); below.
29185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29186     <limits.h> exists even on freestanding compilers.  */
29187
29188 #ifdef __STDC__
29189 # include <limits.h>
29190 #else
29191 # include <assert.h>
29192 #endif
29193
29194 #undef curl_free
29195
29196 /* Override any GCC internal prototype to avoid an error.
29197    Use char because int might match the return type of a GCC
29198    builtin and then its argument prototype would still apply.  */
29199 #ifdef __cplusplus
29200 extern "C"
29201 #endif
29202 char curl_free ();
29203 /* The GNU C library defines this for functions which it implements
29204     to always fail with ENOSYS.  Some functions are actually named
29205     something starting with __ and the normal name is an alias.  */
29206 #if defined __stub_curl_free || defined __stub___curl_free
29207 choke me
29208 #endif
29209
29210 int
29211 main ()
29212 {
29213 return curl_free ();
29214   ;
29215   return 0;
29216 }
29217 _ACEOF
29218 rm -f conftest.$ac_objext conftest$ac_exeext
29219 if { (ac_try="$ac_link"
29220 case "(($ac_try" in
29221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222   *) ac_try_echo=$ac_try;;
29223 esac
29224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29225 $as_echo "$ac_try_echo") >&5
29226   (eval "$ac_link") 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } && {
29233          test -z "$ac_c_werror_flag" ||
29234          test ! -s conftest.err
29235        } && test -s conftest$ac_exeext && {
29236          test "$cross_compiling" = yes ||
29237          $as_test_x conftest$ac_exeext
29238        }; then
29239   ac_cv_func_curl_free=yes
29240 else
29241   $as_echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244         ac_cv_func_curl_free=no
29245 fi
29246
29247 rm -rf conftest.dSYM
29248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29249       conftest$ac_exeext conftest.$ac_ext
29250 fi
29251 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
29252 $as_echo "$ac_cv_func_curl_free" >&6; }
29253 if test "x$ac_cv_func_curl_free" = x""yes; then
29254   :
29255 else
29256
29257 cat >>confdefs.h <<\_ACEOF
29258 #define curl_free free
29259 _ACEOF
29260
29261 fi
29262
29263
29264            CPPFLAGS=$_libcurl_save_cppflags
29265            LIBS=$_libcurl_save_libs
29266            unset _libcurl_save_cppflags
29267            unset _libcurl_save_libs
29268
29269
29270 cat >>confdefs.h <<\_ACEOF
29271 #define HAVE_LIBCURL 1
29272 _ACEOF
29273
29274
29275
29276
29277            for _libcurl_feature in $_libcurl_features ; do
29278               cat >>confdefs.h <<_ACEOF
29279 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
29280 _ACEOF
29281
29282               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
29283            done
29284
29285            if test "x$_libcurl_protocols" = "x" ; then
29286
29287               # We don't have --protocols, so just assume that all
29288               # protocols are available
29289               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
29290
29291               if test x$libcurl_feature_SSL = xyes ; then
29292                  _libcurl_protocols="$_libcurl_protocols HTTPS"
29293
29294                  # FTPS wasn't standards-compliant until version
29295                  # 7.11.0
29296                  if test $_libcurl_version -ge 461568; then
29297                     _libcurl_protocols="$_libcurl_protocols FTPS"
29298                  fi
29299               fi
29300            fi
29301
29302            for _libcurl_protocol in $_libcurl_protocols ; do
29303               cat >>confdefs.h <<_ACEOF
29304 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
29305 _ACEOF
29306
29307               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
29308            done
29309         else
29310            unset LIBCURL
29311            unset LIBCURL_CPPFLAGS
29312         fi
29313      fi
29314
29315      unset _libcurl_try_link
29316      unset _libcurl_version_parse
29317      unset _libcurl_config
29318      unset _libcurl_feature
29319      unset _libcurl_features
29320      unset _libcurl_protocol
29321      unset _libcurl_protocols
29322      unset _libcurl_version
29323      unset _libcurl_ldflags
29324   fi
29325
29326   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
29327      # This is the IF-NO path
29328      HAVE_CURL=no
29329   else
29330      # This is the IF-YES path
29331      HAVE_CURL=yes
29332   fi
29333
29334   unset _libcurl_with
29335
29336     if test x"$HAVE_CURL" = x"yes"; then
29337         LIBS="$LIBCURL $LIBS"
29338
29339         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29340
29341
29342
29343
29344     { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
29345 $as_echo_n "checking for curl_off_t... " >&6; }
29346 if test "${ac_cv_type_curl_off_t+set}" = set; then
29347   $as_echo_n "(cached) " >&6
29348 else
29349   ac_cv_type_curl_off_t=no
29350 cat >conftest.$ac_ext <<_ACEOF
29351 /* confdefs.h.  */
29352 _ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h.  */
29356
29357 #ifdef HAVE_SYS_TYPES_H
29358 #include <sys/types.h>
29359 #endif
29360 #ifdef STDC_HEADERS
29361 #include <stdlib.h>
29362 #include <stddef.h>
29363 #endif
29364 #include <curl/curl.h>
29365
29366
29367
29368 int
29369 main ()
29370 {
29371 if (sizeof (curl_off_t))
29372        return 0;
29373   ;
29374   return 0;
29375 }
29376 _ACEOF
29377 rm -f conftest.$ac_objext
29378 if { (ac_try="$ac_compile"
29379 case "(($ac_try" in
29380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381   *) ac_try_echo=$ac_try;;
29382 esac
29383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29384 $as_echo "$ac_try_echo") >&5
29385   (eval "$ac_compile") 2>conftest.er1
29386   ac_status=$?
29387   grep -v '^ *+' conftest.er1 >conftest.err
29388   rm -f conftest.er1
29389   cat conftest.err >&5
29390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); } && {
29392          test -z "$ac_c_werror_flag" ||
29393          test ! -s conftest.err
29394        } && test -s conftest.$ac_objext; then
29395   cat >conftest.$ac_ext <<_ACEOF
29396 /* confdefs.h.  */
29397 _ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h.  */
29401
29402 #ifdef HAVE_SYS_TYPES_H
29403 #include <sys/types.h>
29404 #endif
29405 #ifdef STDC_HEADERS
29406 #include <stdlib.h>
29407 #include <stddef.h>
29408 #endif
29409 #include <curl/curl.h>
29410
29411
29412
29413 int
29414 main ()
29415 {
29416 if (sizeof ((curl_off_t)))
29417           return 0;
29418   ;
29419   return 0;
29420 }
29421 _ACEOF
29422 rm -f conftest.$ac_objext
29423 if { (ac_try="$ac_compile"
29424 case "(($ac_try" in
29425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426   *) ac_try_echo=$ac_try;;
29427 esac
29428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29429 $as_echo "$ac_try_echo") >&5
29430   (eval "$ac_compile") 2>conftest.er1
29431   ac_status=$?
29432   grep -v '^ *+' conftest.er1 >conftest.err
29433   rm -f conftest.er1
29434   cat conftest.err >&5
29435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); } && {
29437          test -z "$ac_c_werror_flag" ||
29438          test ! -s conftest.err
29439        } && test -s conftest.$ac_objext; then
29440   :
29441 else
29442   $as_echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29444
29445         ac_cv_type_curl_off_t=yes
29446 fi
29447
29448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29449 else
29450   $as_echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29452
29453
29454 fi
29455
29456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29457 fi
29458 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
29459 $as_echo "$ac_cv_type_curl_off_t" >&6; }
29460 if test "x$ac_cv_type_curl_off_t" = x""yes; then
29461   :
29462 else
29463
29464
29465 cat >>confdefs.h <<\_ACEOF
29466 #define curl_off_t off_t
29467 _ACEOF
29468
29469
29470 fi
29471
29472
29473     fi
29474
29475
29476     HAVE_HMAC=yes
29477
29478 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
29479 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
29480 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
29481   $as_echo_n "(cached) " >&6
29482 else
29483   ac_check_lib_save_LIBS=$LIBS
29484 LIBS="-lcrypto  $LIBS"
29485 cat >conftest.$ac_ext <<_ACEOF
29486 /* confdefs.h.  */
29487 _ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h.  */
29491
29492 /* Override any GCC internal prototype to avoid an error.
29493    Use char because int might match the return type of a GCC
29494    builtin and then its argument prototype would still apply.  */
29495 #ifdef __cplusplus
29496 extern "C"
29497 #endif
29498 char HMAC_CTX_init ();
29499 int
29500 main ()
29501 {
29502 return HMAC_CTX_init ();
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (ac_try="$ac_link"
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_link") 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_exeext && {
29525          test "$cross_compiling" = yes ||
29526          $as_test_x conftest$ac_exeext
29527        }; then
29528   ac_cv_lib_crypto_HMAC_CTX_init=yes
29529 else
29530   $as_echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533         ac_cv_lib_crypto_HMAC_CTX_init=no
29534 fi
29535
29536 rm -rf conftest.dSYM
29537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29538       conftest$ac_exeext conftest.$ac_ext
29539 LIBS=$ac_check_lib_save_LIBS
29540 fi
29541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
29542 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
29543 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
29544   cat >>confdefs.h <<_ACEOF
29545 #define HAVE_LIBCRYPTO 1
29546 _ACEOF
29547
29548   LIBS="-lcrypto $LIBS"
29549
29550 else
29551   HAVE_HMAC=no
29552 fi
29553
29554
29555     found_hmac_h=no
29556
29557
29558
29559 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
29560 do
29561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29563   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29564 $as_echo_n "checking for $ac_header... " >&6; }
29565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29566   $as_echo_n "(cached) " >&6
29567 fi
29568 ac_res=`eval 'as_val=${'$as_ac_Header'}
29569                  $as_echo "$as_val"'`
29570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29571 $as_echo "$ac_res" >&6; }
29572 else
29573   # Is the header compilable?
29574 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29575 $as_echo_n "checking $ac_header usability... " >&6; }
29576 cat >conftest.$ac_ext <<_ACEOF
29577 /* confdefs.h.  */
29578 _ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h.  */
29582 $ac_includes_default
29583 #include <$ac_header>
29584 _ACEOF
29585 rm -f conftest.$ac_objext
29586 if { (ac_try="$ac_compile"
29587 case "(($ac_try" in
29588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589   *) ac_try_echo=$ac_try;;
29590 esac
29591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29592 $as_echo "$ac_try_echo") >&5
29593   (eval "$ac_compile") 2>conftest.er1
29594   ac_status=$?
29595   grep -v '^ *+' conftest.er1 >conftest.err
29596   rm -f conftest.er1
29597   cat conftest.err >&5
29598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599   (exit $ac_status); } && {
29600          test -z "$ac_c_werror_flag" ||
29601          test ! -s conftest.err
29602        } && test -s conftest.$ac_objext; then
29603   ac_header_compiler=yes
29604 else
29605   $as_echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29607
29608         ac_header_compiler=no
29609 fi
29610
29611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29613 $as_echo "$ac_header_compiler" >&6; }
29614
29615 # Is the header present?
29616 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29617 $as_echo_n "checking $ac_header presence... " >&6; }
29618 cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624 #include <$ac_header>
29625 _ACEOF
29626 if { (ac_try="$ac_cpp conftest.$ac_ext"
29627 case "(($ac_try" in
29628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629   *) ac_try_echo=$ac_try;;
29630 esac
29631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29632 $as_echo "$ac_try_echo") >&5
29633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29634   ac_status=$?
29635   grep -v '^ *+' conftest.er1 >conftest.err
29636   rm -f conftest.er1
29637   cat conftest.err >&5
29638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639   (exit $ac_status); } >/dev/null && {
29640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29641          test ! -s conftest.err
29642        }; then
29643   ac_header_preproc=yes
29644 else
29645   $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648   ac_header_preproc=no
29649 fi
29650
29651 rm -f conftest.err conftest.$ac_ext
29652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 $as_echo "$ac_header_preproc" >&6; }
29654
29655 # So?  What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29657   yes:no: )
29658     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29662     ac_header_preproc=yes
29663     ;;
29664   no:yes:* )
29665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29668 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29669     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29672 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29673     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29677
29678     ;;
29679 esac
29680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29681 $as_echo_n "checking for $ac_header... " >&6; }
29682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29683   $as_echo_n "(cached) " >&6
29684 else
29685   eval "$as_ac_Header=\$ac_header_preproc"
29686 fi
29687 ac_res=`eval 'as_val=${'$as_ac_Header'}
29688                  $as_echo "$as_val"'`
29689                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29690 $as_echo "$ac_res" >&6; }
29691
29692 fi
29693 as_val=`eval 'as_val=${'$as_ac_Header'}
29694                  $as_echo "$as_val"'`
29695    if test "x$as_val" = x""yes; then
29696   cat >>confdefs.h <<_ACEOF
29697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29698 _ACEOF
29699  found_hmac_h=yes; break
29700 fi
29701
29702 done
29703
29704     if test x"$found_hmac_h" != x"yes"; then
29705         HAVE_HMAC=no
29706     fi
29707
29708
29709
29710
29711
29712     # Check whether --enable-s3-device was given.
29713 if test "${enable_s3_device+set}" = set; then
29714   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
29715 else
29716    WANT_S3_DEVICE=maybe
29717 fi
29718
29719
29720     { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
29721 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
29722     # if the user didn't specify 'no', then check for support
29723     if test x"$WANT_S3_DEVICE" != x"no"; then
29724         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
29725             WANT_S3_DEVICE=yes
29726         else
29727             # no support -- if the user explicitly enabled the device,
29728             # then this is an error
29729             if test x"$WANT_S3_DEVICE" = x"yes"; then
29730                 { $as_echo "$as_me:$LINENO: result: no" >&5
29731 $as_echo "no" >&6; }
29732                 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
29733 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
29734    { (exit 1); exit 1; }; }
29735             else
29736                 WANT_S3_DEVICE=no
29737             fi
29738         fi
29739     fi
29740     { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
29741 $as_echo "$WANT_S3_DEVICE" >&6; }
29742
29743      if test x"$WANT_S3_DEVICE" = x"yes"; then
29744   WANT_S3_DEVICE_TRUE=
29745   WANT_S3_DEVICE_FALSE='#'
29746 else
29747   WANT_S3_DEVICE_TRUE='#'
29748   WANT_S3_DEVICE_FALSE=
29749 fi
29750
29751
29752     # Now handle any setup for S3, if we want it.
29753     if test x"$WANT_S3_DEVICE" = x"yes"; then
29754
29755 cat >>confdefs.h <<\_ACEOF
29756 #define WANT_S3_DEVICE /**/
29757 _ACEOF
29758
29759     fi
29760
29761
29762
29763
29764
29765 for ac_header in \
29766         linux/zftape.h \
29767         sys/tape.h \
29768         sys/mtio.h \
29769
29770 do
29771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29773   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29774 $as_echo_n "checking for $ac_header... " >&6; }
29775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29776   $as_echo_n "(cached) " >&6
29777 fi
29778 ac_res=`eval 'as_val=${'$as_ac_Header'}
29779                  $as_echo "$as_val"'`
29780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29781 $as_echo "$ac_res" >&6; }
29782 else
29783   # Is the header compilable?
29784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29785 $as_echo_n "checking $ac_header usability... " >&6; }
29786 cat >conftest.$ac_ext <<_ACEOF
29787 /* confdefs.h.  */
29788 _ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h.  */
29792 $ac_includes_default
29793 #include <$ac_header>
29794 _ACEOF
29795 rm -f conftest.$ac_objext
29796 if { (ac_try="$ac_compile"
29797 case "(($ac_try" in
29798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799   *) ac_try_echo=$ac_try;;
29800 esac
29801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29802 $as_echo "$ac_try_echo") >&5
29803   (eval "$ac_compile") 2>conftest.er1
29804   ac_status=$?
29805   grep -v '^ *+' conftest.er1 >conftest.err
29806   rm -f conftest.er1
29807   cat conftest.err >&5
29808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809   (exit $ac_status); } && {
29810          test -z "$ac_c_werror_flag" ||
29811          test ! -s conftest.err
29812        } && test -s conftest.$ac_objext; then
29813   ac_header_compiler=yes
29814 else
29815   $as_echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29817
29818         ac_header_compiler=no
29819 fi
29820
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29823 $as_echo "$ac_header_compiler" >&6; }
29824
29825 # Is the header present?
29826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29827 $as_echo_n "checking $ac_header presence... " >&6; }
29828 cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834 #include <$ac_header>
29835 _ACEOF
29836 if { (ac_try="$ac_cpp conftest.$ac_ext"
29837 case "(($ac_try" in
29838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839   *) ac_try_echo=$ac_try;;
29840 esac
29841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29842 $as_echo "$ac_try_echo") >&5
29843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29844   ac_status=$?
29845   grep -v '^ *+' conftest.er1 >conftest.err
29846   rm -f conftest.er1
29847   cat conftest.err >&5
29848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); } >/dev/null && {
29850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29851          test ! -s conftest.err
29852        }; then
29853   ac_header_preproc=yes
29854 else
29855   $as_echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29857
29858   ac_header_preproc=no
29859 fi
29860
29861 rm -f conftest.err conftest.$ac_ext
29862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29863 $as_echo "$ac_header_preproc" >&6; }
29864
29865 # So?  What about this header?
29866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29867   yes:no: )
29868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29872     ac_header_preproc=yes
29873     ;;
29874   no:yes:* )
29875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29878 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29881     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29882 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29883     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29887
29888     ;;
29889 esac
29890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29891 $as_echo_n "checking for $ac_header... " >&6; }
29892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29893   $as_echo_n "(cached) " >&6
29894 else
29895   eval "$as_ac_Header=\$ac_header_preproc"
29896 fi
29897 ac_res=`eval 'as_val=${'$as_ac_Header'}
29898                  $as_echo "$as_val"'`
29899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29900 $as_echo "$ac_res" >&6; }
29901
29902 fi
29903 as_val=`eval 'as_val=${'$as_ac_Header'}
29904                  $as_echo "$as_val"'`
29905    if test "x$as_val" = x""yes; then
29906   cat >>confdefs.h <<_ACEOF
29907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29908 _ACEOF
29909
29910 fi
29911
29912 done
29913
29914
29915     # check for MTIOCTOP, an indicator of POSIX tape support
29916     { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
29917 $as_echo_n "checking for MTIOCTOP... " >&6; }
29918 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
29919   $as_echo_n "(cached) " >&6
29920 else
29921
29922         cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928
29929 #ifdef HAVE_SYS_TAPE_H
29930 # include <sys/tape.h>
29931 #endif
29932 #ifdef HAVE_SYS_MTIO_H
29933 # include <sys/mtio.h>
29934 #endif
29935 #ifndef MTIOCTOP
29936 #error MTIOCTOP not defined
29937 #endif
29938
29939 int
29940 main ()
29941 {
29942  int dummy = 0;
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext
29948 if { (ac_try="$ac_compile"
29949 case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29954 $as_echo "$ac_try_echo") >&5
29955   (eval "$ac_compile") 2>conftest.er1
29956   ac_status=$?
29957   grep -v '^ *+' conftest.er1 >conftest.err
29958   rm -f conftest.er1
29959   cat conftest.err >&5
29960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961   (exit $ac_status); } && {
29962          test -z "$ac_c_werror_flag" ||
29963          test ! -s conftest.err
29964        } && test -s conftest.$ac_objext; then
29965   amanda_cv_HAVE_MTIOCTOP=yes
29966 else
29967   $as_echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29969
29970         amanda_cv_HAVE_MTIOCTOP=no
29971 fi
29972
29973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29974
29975         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
29976
29977 fi
29978 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
29979 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
29980
29981     # decide which tape device to compile (arranged in such a way that
29982     # only one actually gets compiled)
29983     case "$target" in
29984       *-ibm-aix*) aix_tapeio=yes ;;
29985       *-sysv4.2uw2*) uware_tapeio=yes ;;
29986       *-sco3.2v5*) xenix_tapeio=yes ;;
29987       i386-pc-isc4*) xenix_tapeio=yes ;;
29988     esac
29989
29990     # maybe we have no tape device at all (e.g., Mac OS X)?
29991     if test -n "$xenix_tapeio" ||
29992        test -n "$aix_tapeio" ||
29993        test -n "$uware_tapeio" ||
29994        test -n "$HAVE_MTIOCTOP"; then
29995         want_tape_device=yes
29996
29997 cat >>confdefs.h <<\_ACEOF
29998 #define WANT_TAPE_DEVICE 1
29999 _ACEOF
30000
30001     fi
30002
30003      if test -n "$xenix_tapeio"; then
30004   WANT_TAPE_XENIX_TRUE=
30005   WANT_TAPE_XENIX_FALSE='#'
30006 else
30007   WANT_TAPE_XENIX_TRUE='#'
30008   WANT_TAPE_XENIX_FALSE=
30009 fi
30010
30011      if test -n "$aix_tapeio"; then
30012   WANT_TAPE_AIX_TRUE=
30013   WANT_TAPE_AIX_FALSE='#'
30014 else
30015   WANT_TAPE_AIX_TRUE='#'
30016   WANT_TAPE_AIX_FALSE=
30017 fi
30018
30019      if test -n "$uware_tapeio"; then
30020   WANT_TAPE_UWARE_TRUE=
30021   WANT_TAPE_UWARE_FALSE='#'
30022 else
30023   WANT_TAPE_UWARE_TRUE='#'
30024   WANT_TAPE_UWARE_FALSE=
30025 fi
30026
30027      if test -n "$HAVE_MTIOCTOP"; then
30028   WANT_TAPE_POSIX_TRUE=
30029   WANT_TAPE_POSIX_FALSE='#'
30030 else
30031   WANT_TAPE_POSIX_TRUE='#'
30032   WANT_TAPE_POSIX_FALSE=
30033 fi
30034
30035      if test -n "$want_tape_device"; then
30036   WANT_TAPE_DEVICE_TRUE=
30037   WANT_TAPE_DEVICE_FALSE='#'
30038 else
30039   WANT_TAPE_DEVICE_TRUE='#'
30040   WANT_TAPE_DEVICE_FALSE=
30041 fi
30042
30043
30044     if test -n "$xenix_tapeio"; then
30045
30046 cat >>confdefs.h <<\_ACEOF
30047 #define WANT_TAPE_XENIX 1
30048 _ACEOF
30049
30050     fi
30051
30052     if test -n "$aix_tapeio"; then
30053
30054 cat >>confdefs.h <<\_ACEOF
30055 #define WANT_TAPE_AIX 1
30056 _ACEOF
30057
30058     fi
30059
30060     if test -n "$uware_tapeio"; then
30061
30062 cat >>confdefs.h <<\_ACEOF
30063 #define WANT_TAPE_UWARE 1
30064 _ACEOF
30065
30066     fi
30067
30068     #
30069     # Check for various "mt status" related structure elements.
30070     #
30071     { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
30072 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
30073     cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079
30080 #include <stdio.h>
30081 #include <sys/types.h>
30082 #include <sys/mtio.h>
30083
30084 int
30085 main ()
30086 {
30087
30088             struct mtget buf;
30089             long ds;
30090
30091             ds = buf.mt_flags;
30092
30093   ;
30094   return 0;
30095 }
30096 _ACEOF
30097 rm -f conftest.$ac_objext
30098 if { (ac_try="$ac_compile"
30099 case "(($ac_try" in
30100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101   *) ac_try_echo=$ac_try;;
30102 esac
30103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30104 $as_echo "$ac_try_echo") >&5
30105   (eval "$ac_compile") 2>conftest.er1
30106   ac_status=$?
30107   grep -v '^ *+' conftest.er1 >conftest.err
30108   rm -f conftest.er1
30109   cat conftest.err >&5
30110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); } && {
30112          test -z "$ac_c_werror_flag" ||
30113          test ! -s conftest.err
30114        } && test -s conftest.$ac_objext; then
30115
30116             { $as_echo "$as_me:$LINENO: result: yes" >&5
30117 $as_echo "yes" >&6; }
30118
30119 cat >>confdefs.h <<\_ACEOF
30120 #define HAVE_MT_FLAGS 1
30121 _ACEOF
30122
30123
30124 else
30125   $as_echo "$as_me: failed program was:" >&5
30126 sed 's/^/| /' conftest.$ac_ext >&5
30127
30128
30129             { $as_echo "$as_me:$LINENO: result: no" >&5
30130 $as_echo "no" >&6; }
30131
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135
30136     { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30137 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
30138     mt_fileno_result="found"
30139     cat >conftest.$ac_ext <<_ACEOF
30140 /* confdefs.h.  */
30141 _ACEOF
30142 cat confdefs.h >>conftest.$ac_ext
30143 cat >>conftest.$ac_ext <<_ACEOF
30144 /* end confdefs.h.  */
30145
30146 #include <stdio.h>
30147 #include <sys/types.h>
30148 #include <sys/mtio.h>
30149
30150 int
30151 main ()
30152 {
30153
30154             struct mtget buf;
30155             long ds;
30156
30157             ds = buf.mt_fileno;
30158
30159   ;
30160   return 0;
30161 }
30162 _ACEOF
30163 rm -f conftest.$ac_objext
30164 if { (ac_try="$ac_compile"
30165 case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30170 $as_echo "$ac_try_echo") >&5
30171   (eval "$ac_compile") 2>conftest.er1
30172   ac_status=$?
30173   grep -v '^ *+' conftest.er1 >conftest.err
30174   rm -f conftest.er1
30175   cat conftest.err >&5
30176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); } && {
30178          test -z "$ac_c_werror_flag" ||
30179          test ! -s conftest.err
30180        } && test -s conftest.$ac_objext; then
30181
30182             { $as_echo "$as_me:$LINENO: result: yes" >&5
30183 $as_echo "yes" >&6; }
30184
30185 cat >>confdefs.h <<\_ACEOF
30186 #define HAVE_MT_FILENO 1
30187 _ACEOF
30188
30189
30190 else
30191   $as_echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194
30195             { $as_echo "$as_me:$LINENO: result: no" >&5
30196 $as_echo "no" >&6; }
30197
30198 fi
30199
30200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30201
30202     { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30203 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
30204     cat >conftest.$ac_ext <<_ACEOF
30205 /* confdefs.h.  */
30206 _ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h.  */
30210
30211 #include <stdio.h>
30212 #include <sys/types.h>
30213 #include <sys/mtio.h>
30214
30215 int
30216 main ()
30217 {
30218
30219             struct mtget buf;
30220             long ds;
30221
30222             ds = buf.mt_blkno;
30223
30224   ;
30225   return 0;
30226 }
30227 _ACEOF
30228 rm -f conftest.$ac_objext
30229 if { (ac_try="$ac_compile"
30230 case "(($ac_try" in
30231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232   *) ac_try_echo=$ac_try;;
30233 esac
30234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30235 $as_echo "$ac_try_echo") >&5
30236   (eval "$ac_compile") 2>conftest.er1
30237   ac_status=$?
30238   grep -v '^ *+' conftest.er1 >conftest.err
30239   rm -f conftest.er1
30240   cat conftest.err >&5
30241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242   (exit $ac_status); } && {
30243          test -z "$ac_c_werror_flag" ||
30244          test ! -s conftest.err
30245        } && test -s conftest.$ac_objext; then
30246
30247             { $as_echo "$as_me:$LINENO: result: yes" >&5
30248 $as_echo "yes" >&6; }
30249
30250 cat >>confdefs.h <<\_ACEOF
30251 #define HAVE_MT_BLKNO 1
30252 _ACEOF
30253
30254
30255 else
30256   $as_echo "$as_me: failed program was:" >&5
30257 sed 's/^/| /' conftest.$ac_ext >&5
30258
30259
30260             { $as_echo "$as_me:$LINENO: result: no" >&5
30261 $as_echo "no" >&6; }
30262
30263 fi
30264
30265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30266
30267     { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30268 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
30269     cat >conftest.$ac_ext <<_ACEOF
30270 /* confdefs.h.  */
30271 _ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h.  */
30275
30276 #include <stdio.h>
30277 #include <sys/types.h>
30278 #include <sys/mtio.h>
30279
30280 int
30281 main ()
30282 {
30283
30284             struct mtget buf;
30285             long ds;
30286
30287             ds = buf.mt_dsreg;
30288
30289   ;
30290   return 0;
30291 }
30292 _ACEOF
30293 rm -f conftest.$ac_objext
30294 if { (ac_try="$ac_compile"
30295 case "(($ac_try" in
30296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297   *) ac_try_echo=$ac_try;;
30298 esac
30299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30300 $as_echo "$ac_try_echo") >&5
30301   (eval "$ac_compile") 2>conftest.er1
30302   ac_status=$?
30303   grep -v '^ *+' conftest.er1 >conftest.err
30304   rm -f conftest.er1
30305   cat conftest.err >&5
30306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); } && {
30308          test -z "$ac_c_werror_flag" ||
30309          test ! -s conftest.err
30310        } && test -s conftest.$ac_objext; then
30311
30312             { $as_echo "$as_me:$LINENO: result: yes" >&5
30313 $as_echo "yes" >&6; }
30314
30315 cat >>confdefs.h <<\_ACEOF
30316 #define HAVE_MT_DSREG 1
30317 _ACEOF
30318
30319
30320 else
30321   $as_echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30323
30324
30325             { $as_echo "$as_me:$LINENO: result: no" >&5
30326 $as_echo "no" >&6; }
30327
30328 fi
30329
30330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30331
30332     { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30333 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
30334     cat >conftest.$ac_ext <<_ACEOF
30335 /* confdefs.h.  */
30336 _ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h.  */
30340
30341 #include <stdio.h>
30342 #include <sys/types.h>
30343 #include <sys/mtio.h>
30344
30345 int
30346 main ()
30347 {
30348
30349             struct mtget buf;
30350             long ds;
30351
30352             ds = buf.mt_erreg;
30353
30354   ;
30355   return 0;
30356 }
30357 _ACEOF
30358 rm -f conftest.$ac_objext
30359 if { (ac_try="$ac_compile"
30360 case "(($ac_try" in
30361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30362   *) ac_try_echo=$ac_try;;
30363 esac
30364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30365 $as_echo "$ac_try_echo") >&5
30366   (eval "$ac_compile") 2>conftest.er1
30367   ac_status=$?
30368   grep -v '^ *+' conftest.er1 >conftest.err
30369   rm -f conftest.er1
30370   cat conftest.err >&5
30371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372   (exit $ac_status); } && {
30373          test -z "$ac_c_werror_flag" ||
30374          test ! -s conftest.err
30375        } && test -s conftest.$ac_objext; then
30376
30377             { $as_echo "$as_me:$LINENO: result: yes" >&5
30378 $as_echo "yes" >&6; }
30379
30380 cat >>confdefs.h <<\_ACEOF
30381 #define HAVE_MT_ERREG 1
30382 _ACEOF
30383
30384
30385 else
30386   $as_echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30388
30389
30390             { $as_echo "$as_me:$LINENO: result: no" >&5
30391 $as_echo "no" >&6; }
30392
30393 fi
30394
30395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396
30397
30398 #
30399 # Security (authentication) mechansims
30400 #
30401
30402     BSD_SECURITY="yes"
30403
30404 # Check whether --with-bsd-security was given.
30405 if test "${with_bsd_security+set}" = set; then
30406   withval=$with_bsd_security;
30407             case "$withval" in
30408                 n | no) BSD_SECURITY=no ;;
30409                 y |  ye | yes) BSD_SECURITY=yes ;;
30410                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
30411 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
30412    { (exit 1); exit 1; }; }
30413                     ;;
30414             esac
30415
30416 fi
30417
30418
30419     USE_AMANDAHOSTS=yes
30420
30421 # Check whether --with-amandahosts was given.
30422 if test "${with_amandahosts+set}" = set; then
30423   withval=$with_amandahosts;
30424             case "$withval" in
30425                 n | no ) USE_AMANDAHOSTS=no ;;
30426                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
30427                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
30428 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
30429    { (exit 1); exit 1; }; }
30430                   ;;
30431             esac
30432
30433
30434 fi
30435
30436
30437     if test "x$BSD_SECURITY" = "xyes"; then
30438
30439 cat >>confdefs.h <<\_ACEOF
30440 #define BSD_SECURITY 1
30441 _ACEOF
30442
30443         if test "x$USE_AMANDAHOSTS" = "xyes"; then
30444
30445 cat >>confdefs.h <<\_ACEOF
30446 #define USE_AMANDAHOSTS 1
30447 _ACEOF
30448
30449         fi
30450     fi
30451
30452      if test x"$BSD_SECURITY" = x"yes"; then
30453   WANT_BSD_SECURITY_TRUE=
30454   WANT_BSD_SECURITY_FALSE='#'
30455 else
30456   WANT_BSD_SECURITY_TRUE='#'
30457   WANT_BSD_SECURITY_FALSE=
30458 fi
30459
30460
30461
30462
30463
30464     BSDTCP_SECURITY="yes"
30465
30466 # Check whether --with-bsdtcp-security was given.
30467 if test "${with_bsdtcp_security+set}" = set; then
30468   withval=$with_bsdtcp_security;
30469             case "$withval" in
30470                 n | no) BSDTCP_SECURITY=no ;;
30471                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
30472                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
30473 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
30474    { (exit 1); exit 1; }; }
30475               ;;
30476             esac
30477
30478 fi
30479
30480
30481     if test "x$BSDTCP_SECURITY" = "xyes"; then
30482
30483 cat >>confdefs.h <<\_ACEOF
30484 #define BSDTCP_SECURITY 1
30485 _ACEOF
30486
30487     fi
30488
30489      if test x"$BSDTCP_SECURITY" = x"yes"; then
30490   WANT_BSDTCP_SECURITY_TRUE=
30491   WANT_BSDTCP_SECURITY_FALSE='#'
30492 else
30493   WANT_BSDTCP_SECURITY_TRUE='#'
30494   WANT_BSDTCP_SECURITY_FALSE=
30495 fi
30496
30497
30498
30499
30500     BSDUDP_SECURITY="no"
30501
30502 # Check whether --with-bsdudp-security was given.
30503 if test "${with_bsdudp_security+set}" = set; then
30504   withval=$with_bsdudp_security;
30505             case "$withval" in
30506                 n | no) : ;;
30507                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
30508                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
30509 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
30510    { (exit 1); exit 1; }; }
30511               ;;
30512             esac
30513
30514 fi
30515
30516
30517     if test "x$BSDUDP_SECURITY" = "xyes"; then
30518
30519 cat >>confdefs.h <<\_ACEOF
30520 #define BSDUDP_SECURITY 1
30521 _ACEOF
30522
30523     fi
30524
30525      if test x"$BSDUDP_SECURITY" = x"yes"; then
30526   WANT_BSDUDP_SECURITY_TRUE=
30527   WANT_BSDUDP_SECURITY_FALSE='#'
30528 else
30529   WANT_BSDUDP_SECURITY_TRUE='#'
30530   WANT_BSDUDP_SECURITY_FALSE=
30531 fi
30532
30533
30534
30535
30536     RSH_SECURITY=no
30537
30538 # Check whether --with-rsh-security was given.
30539 if test "${with_rsh_security+set}" = set; then
30540   withval=$with_rsh_security;
30541             case "$withval" in
30542                 n | no) : ;;
30543                 y |  ye | yes) RSH_SECURITY=yes ;;
30544                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
30545 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
30546    { (exit 1); exit 1; }; }
30547               ;;
30548             esac
30549
30550 fi
30551
30552
30553     if test "x$RSH_SECURITY" = "xyes"; then
30554
30555 cat >>confdefs.h <<\_ACEOF
30556 #define RSH_SECURITY 1
30557 _ACEOF
30558
30559     fi
30560      if test x"$RSH_SECURITY" = x"yes"; then
30561   WANT_RSH_SECURITY_TRUE=
30562   WANT_RSH_SECURITY_FALSE='#'
30563 else
30564   WANT_RSH_SECURITY_TRUE='#'
30565   WANT_RSH_SECURITY_FALSE=
30566 fi
30567
30568
30569
30570
30571     SSH_SECURITY=yes
30572
30573 # Check whether --with-ssh-security was given.
30574 if test "${with_ssh_security+set}" = set; then
30575   withval=$with_ssh_security;
30576             case "$withval" in
30577                 n | no) SSH_SECURITY=no ;;
30578                 y |  ye | yes) SSH_SECURITY=yes ;;
30579                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
30580 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
30581    { (exit 1); exit 1; }; }
30582               ;;
30583             esac
30584
30585 fi
30586
30587
30588     if test "x$SSH_SECURITY" = "xyes"; then
30589         # find the SSH binary
30590         for ac_prog in ssh
30591 do
30592   # Extract the first word of "$ac_prog", so it can be a program name with args.
30593 set dummy $ac_prog; ac_word=$2
30594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30595 $as_echo_n "checking for $ac_word... " >&6; }
30596 if test "${ac_cv_path_SSH+set}" = set; then
30597   $as_echo_n "(cached) " >&6
30598 else
30599   case $SSH in
30600   [\\/]* | ?:[\\/]*)
30601   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
30602   ;;
30603   *)
30604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30605 for as_dir in $LOCSYSPATH
30606 do
30607   IFS=$as_save_IFS
30608   test -z "$as_dir" && as_dir=.
30609   for ac_exec_ext in '' $ac_executable_extensions; do
30610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30611     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
30612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30613     break 2
30614   fi
30615 done
30616 done
30617 IFS=$as_save_IFS
30618
30619   ;;
30620 esac
30621 fi
30622 SSH=$ac_cv_path_SSH
30623 if test -n "$SSH"; then
30624   { $as_echo "$as_me:$LINENO: result: $SSH" >&5
30625 $as_echo "$SSH" >&6; }
30626 else
30627   { $as_echo "$as_me:$LINENO: result: no" >&5
30628 $as_echo "no" >&6; }
30629 fi
30630
30631
30632   test -n "$SSH" && break
30633 done
30634
30635
30636         # see what options we should use
30637
30638 # Check whether --with-ssh-options was given.
30639 if test "${with_ssh_options+set}" = set; then
30640   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
30641 else
30642    SSH_OPTIONS=''
30643
30644 fi
30645
30646
30647         case "$SSH_OPTIONS" in
30648             y | ye | yes | n | no)
30649                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
30650 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
30651    { (exit 1); exit 1; }; };;
30652             *) : ;;
30653         esac
30654
30655         { $as_echo "$as_me:$LINENO: checking SSH options" >&5
30656 $as_echo_n "checking SSH options... " >&6; }
30657         # if we didn't get SSH options from the user, figure them out for ourselves
30658         if test -z "$SSH_OPTIONS"; then
30659             case `$SSH -V 2>&1` in
30660                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
30661                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
30662             esac
30663         fi
30664
30665         # now convert that to a comma-separated list of C strings
30666         eval "set dummy ${SSH_OPTIONS}"; shift
30667         SSH_OPTIONS=''
30668         for i in "${@}"; do
30669             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
30670             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
30671         done
30672         { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
30673 $as_echo "$SSH_OPTIONS" >&6; }
30674
30675         # finally, make the various outputs for all of this
30676
30677 cat >>confdefs.h <<\_ACEOF
30678 #define SSH_SECURITY 1
30679 _ACEOF
30680
30681
30682 cat >>confdefs.h <<_ACEOF
30683 #define SSH "$SSH"
30684 _ACEOF
30685
30686
30687 cat >>confdefs.h <<_ACEOF
30688 #define SSH_OPTIONS $SSH_OPTIONS
30689 _ACEOF
30690
30691     fi
30692      if test x"$SSH_SECURITY" = x"yes"; then
30693   WANT_SSH_SECURITY_TRUE=
30694   WANT_SSH_SECURITY_FALSE='#'
30695 else
30696   WANT_SSH_SECURITY_TRUE='#'
30697   WANT_SSH_SECURITY_FALSE=
30698 fi
30699
30700
30701
30702     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
30703
30704
30705     # Specify --with-krb4-security if Kerberos software is in somewhere
30706     # other than the listed KRB4_SPOTS.  We only compile kerberos support in
30707     # if the right files are there.
30708
30709     : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
30710
30711     KRB4_SECURITY="no"
30712
30713 # Check whether --with-krb4-security was given.
30714 if test "${with_krb4_security+set}" = set; then
30715   withval=$with_krb4_security;
30716             case "$withval" in
30717                 n | no) ;;
30718                 y | ye | yes) KRB4_SECURITY="yes" ;;
30719                 *) KRB4_SPOTS="$KRB4_SECURITY"
30720                    KRB4_SECURITY="yes"
30721                    ;;
30722             esac
30723
30724 fi
30725
30726
30727     # check the remaining, subsidiary options
30728
30729     { $as_echo "$as_me:$LINENO: checking host principal" >&5
30730 $as_echo_n "checking host principal... " >&6; }
30731
30732 # Check whether --with-server-principal was given.
30733 if test "${with_server_principal+set}" = set; then
30734   withval=$with_server_principal;
30735             case "$withval" in
30736                 "" | y | ye | yes | n | no)
30737                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
30738 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
30739    { (exit 1); exit 1; }; }
30740                   ;;
30741                 *) SERVER_HOST_PRINCIPAL="$withval" ;;
30742             esac
30743
30744 else
30745    : ${SERVER_HOST_PRINCIPAL="amanda"}
30746
30747 fi
30748
30749     { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
30750 $as_echo "$SERVER_HOST_PRINCIPAL" >&6; }
30751
30752     { $as_echo "$as_me:$LINENO: checking server host instance" >&5
30753 $as_echo_n "checking server host instance... " >&6; }
30754
30755 # Check whether --with-server-instance was given.
30756 if test "${with_server_instance+set}" = set; then
30757   withval=$with_server_instance;
30758             case "$withval" in
30759                 "" | y | ye | yes | n | no)
30760                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
30761 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
30762    { (exit 1); exit 1; }; }
30763                   ;;
30764                 *) SERVER_HOST_INSTANCE="$withval" ;;
30765             esac
30766
30767 else
30768    : ${SERVER_HOST_INSTANCE="amanda"}
30769
30770 fi
30771
30772     { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
30773 $as_echo "$SERVER_HOST_INSTANCE" >&6; }
30774
30775     { $as_echo "$as_me:$LINENO: checking server host key file" >&5
30776 $as_echo_n "checking server host key file... " >&6; }
30777
30778 # Check whether --with-server-keyfile was given.
30779 if test "${with_server_keyfile+set}" = set; then
30780   withval=$with_server_keyfile;
30781             case "$withval" in
30782                 "" | y | ye | yes | n | no)
30783                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
30784 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
30785    { (exit 1); exit 1; }; }
30786                   ;;
30787                 *) SERVER_HOST_KEY_FILE="$withval" ;;
30788             esac
30789
30790 else
30791    : ${SERVER_HOST_KEY_FILE="/.amanda"}
30792
30793 fi
30794
30795     { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
30796 $as_echo "$SERVER_HOST_KEY_FILE" >&6; }
30797
30798     { $as_echo "$as_me:$LINENO: checking client host principle" >&5
30799 $as_echo_n "checking client host principle... " >&6; }
30800
30801 # Check whether --with-client-principal was given.
30802 if test "${with_client_principal+set}" = set; then
30803   withval=$with_client_principal;
30804             case "$withval" in
30805                 "" | y | ye | yes | n | no)
30806                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
30807 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
30808    { (exit 1); exit 1; }; }
30809                   ;;
30810                 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
30811             esac
30812
30813 else
30814    : ${CLIENT_HOST_PRINCIPAL="rcmd"}
30815
30816 fi
30817
30818     { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
30819 $as_echo "$CLIENT_HOST_PRINCIPAL" >&6; }
30820
30821     { $as_echo "$as_me:$LINENO: checking client host instance" >&5
30822 $as_echo_n "checking client host instance... " >&6; }
30823
30824 # Check whether --with-client-instance was given.
30825 if test "${with_client_instance+set}" = set; then
30826   withval=$with_client_instance;
30827             case "$withval" in
30828                 "" | y | ye | yes | n | no)
30829                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
30830 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
30831    { (exit 1); exit 1; }; }
30832                   ;;
30833                 *) CLIENT_HOST_INSTANCE="$withval" ;;
30834             esac
30835
30836 else
30837    : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
30838
30839 fi
30840
30841     { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
30842 $as_echo "$CLIENT_HOST_INSTANCE" >&6; }
30843
30844     { $as_echo "$as_me:$LINENO: checking client host key file" >&5
30845 $as_echo_n "checking client host key file... " >&6; }
30846
30847 # Check whether --with-client-keyfile was given.
30848 if test "${with_client_keyfile+set}" = set; then
30849   withval=$with_client_keyfile;
30850             case "$withval" in
30851                 "" | y | ye | yes | n | no)
30852                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
30853 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
30854    { (exit 1); exit 1; }; }
30855                   ;;
30856                 *) CLIENT_HOST_KEY_FILE="$withval" ;;
30857             esac
30858
30859 else
30860    : ${CLIENT_HOST_KEY_FILE=KEYFILE}
30861
30862 fi
30863
30864     # Assume it's either KEYFILE (defined in krb.h), or a string filename...
30865     if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
30866       # add quotes
30867       CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
30868     fi
30869     { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
30870 $as_echo "$CLIENT_HOST_KEY_FILE" >&6; }
30871
30872     { $as_echo "$as_me:$LINENO: checking ticket lifetime" >&5
30873 $as_echo_n "checking ticket lifetime... " >&6; }
30874
30875 # Check whether --with-ticket-lifetime was given.
30876 if test "${with_ticket_lifetime+set}" = set; then
30877   withval=$with_ticket_lifetime;
30878             case "$withval" in
30879             "" | y | ye | yes | n | no)
30880                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
30881 $as_echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
30882    { (exit 1); exit 1; }; }
30883               ;;
30884             *) TICKET_LIFETIME="$withval" ;;
30885             esac
30886
30887 else
30888    : ${TICKET_LIFETIME=128}
30889
30890 fi
30891
30892     { $as_echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
30893 $as_echo "$TICKET_LIFETIME" >&6; }
30894
30895
30896     if test "x${KRB4_SECURITY}" = "xyes"; then
30897         { $as_echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
30898 $as_echo_n "checking for Kerberos and Amanda kerberos4 bits... " >&6; }
30899         found="no"
30900         for dir in $KRB4_SPOTS; do
30901             if test \( -f ${dir}/lib/libkrb.a -o -f ${dir}/lib/libkrb.so \) -a \( -f ${dir}/lib/libdes.a -o -f ${dir}/lib/libdes.so \) ; then
30902                 #
30903                 # This is the original Kerberos 4.
30904                 #
30905                 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
30906 $as_echo "found in $dir" >&6; }
30907                 found="yes"
30908
30909                 #
30910                 # This handles BSD/OS.
30911                 #
30912                 if test -d $dir/include/kerberosIV ; then
30913                     CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
30914
30915                 else
30916                     CPPFLAGS="$CPPFLAGS -I$dir/include"
30917
30918                 fi
30919                 LDFLAGS="$LDFLAGS -L$dir/lib"
30920
30921                 LIBS="-lkrb -ldes $LIBS"
30922
30923                 if test -f ${dir}/lib/libcom_err.a; then
30924                     LIBS="-lcom_err $LIBS"
30925
30926                 fi
30927                 break
30928             elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
30929                  test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
30930                  test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
30931                 #
30932                 # This is Kerberos 5 with Kerberos 4 back-support.
30933                 #
30934                 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
30935 $as_echo "found in $dir" >&6; }
30936                 found="yes"
30937                 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
30938
30939                 LDFLAGS="$LDFLAGS -L$dir/lib"
30940
30941                 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
30942                    test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
30943                     LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
30944
30945                 else
30946                     LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
30947
30948                 fi
30949                 break
30950             fi
30951         done
30952
30953         if test "x$found" = "xno" ; then
30954             { $as_echo "$as_me:$LINENO: result: no libraries found" >&5
30955 $as_echo "no libraries found" >&6; }
30956
30957     { $as_echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
30958 $as_echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
30959
30960
30961     cat <<AAW_EOF >>config.warnings
30962 No Kerberos IV libraries were found on your system; disabling krb4-security
30963 AAW_EOF
30964
30965
30966             KRB4_SECURITY="no"
30967         else
30968
30969 cat >>confdefs.h <<\_ACEOF
30970 #define KRB4_SECURITY 1
30971 _ACEOF
30972
30973
30974 cat >>confdefs.h <<_ACEOF
30975 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
30976 _ACEOF
30977
30978
30979 cat >>confdefs.h <<_ACEOF
30980 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
30981 _ACEOF
30982
30983
30984 cat >>confdefs.h <<_ACEOF
30985 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
30986 _ACEOF
30987
30988
30989 cat >>confdefs.h <<_ACEOF
30990 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
30991 _ACEOF
30992
30993
30994 cat >>confdefs.h <<_ACEOF
30995 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
30996 _ACEOF
30997
30998
30999 cat >>confdefs.h <<_ACEOF
31000 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
31001 _ACEOF
31002
31003
31004 cat >>confdefs.h <<_ACEOF
31005 #define TICKET_LIFETIME $TICKET_LIFETIME
31006 _ACEOF
31007
31008         fi
31009     fi
31010      if test x"$KRB4_SECURITY" = x"yes"; then
31011   WANT_KRB4_SECURITY_TRUE=
31012   WANT_KRB4_SECURITY_FALSE='#'
31013 else
31014   WANT_KRB4_SECURITY_TRUE='#'
31015   WANT_KRB4_SECURITY_FALSE=
31016 fi
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030     # Specify --with-krb5-security if Kerberos software is in somewhere
31031     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
31032     # if the right files are there.
31033
31034     KRB5_SECURITY="no"
31035     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
31036
31037
31038 # Check whether --with-krb5-security was given.
31039 if test "${with_krb5_security+set}" = set; then
31040   withval=$with_krb5_security;
31041             case "$withval" in
31042                 n | no) KRB5_SECURITY=no ;;
31043                 y | ye | yes) KRB5_SECURITY=yes ;;
31044                 *) KRB5_SPOTS="$KRB5_SECURITY"
31045                    KRB5_SECURITY=yes
31046                    ;;
31047             esac
31048
31049
31050 fi
31051
31052
31053     if test "x$KRB5_SECURITY" = "xyes"; then
31054         # if found, force the static versions of these libs (.a) by linking directly
31055         # with the .a files.  I don't know how to get -R dependancies checked
31056         # in autoconf at this time. -kashmir
31057         { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
31058 $as_echo_n "checking for Kerberos V libraries... " >&6; }
31059         KRB5_DIR_FOUND=""
31060         for dir in $KRB5_SPOTS; do
31061           for lib in lib lib64; do
31062             k5libdir=${dir}/${lib}
31063             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
31064                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
31065                     K5CRYPTO=-lk5crypto
31066                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
31067                     K5CRYPTO=-lcrypto
31068                 else
31069                     K5CRYPTO=""
31070                 fi
31071                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
31072                     K5SUPPORT=-lkrb5support
31073                 else
31074                     K5SUPPORT=""
31075                 fi
31076                 KRB5_DIR_FOUND=$dir
31077                 KRB5_LIBDIR_FOUND=$k5libdir
31078                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
31079
31080                 break
31081             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
31082                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
31083
31084                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
31085
31086                 break
31087             fi
31088           done
31089         done
31090
31091         if test "$KRB5_DIR_FOUND"; then
31092             { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
31093 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
31094             #
31095             # some OS's, such as NetBSD, stick krb5 includes out of the way...
31096             # should probably just use autoconf to look for various include
31097             # options and set them, but don't quite want to do that until I've
31098             # dug into it a bit more.
31099             #
31100             if test -d "$KRB5_DIR_FOUND/krb5" ; then
31101                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
31102
31103             else
31104                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
31105
31106             fi
31107
31108 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
31109 $as_echo_n "checking for main in -lkrb5support... " >&6; }
31110 if test "${ac_cv_lib_krb5support_main+set}" = set; then
31111   $as_echo_n "(cached) " >&6
31112 else
31113   ac_check_lib_save_LIBS=$LIBS
31114 LIBS="-lkrb5support  $LIBS"
31115 cat >conftest.$ac_ext <<_ACEOF
31116 /* confdefs.h.  */
31117 _ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h.  */
31121
31122
31123 int
31124 main ()
31125 {
31126 return main ();
31127   ;
31128   return 0;
31129 }
31130 _ACEOF
31131 rm -f conftest.$ac_objext conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135   *) ac_try_echo=$ac_try;;
31136 esac
31137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31138 $as_echo "$ac_try_echo") >&5
31139   (eval "$ac_link") 2>conftest.er1
31140   ac_status=$?
31141   grep -v '^ *+' conftest.er1 >conftest.err
31142   rm -f conftest.er1
31143   cat conftest.err >&5
31144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); } && {
31146          test -z "$ac_c_werror_flag" ||
31147          test ! -s conftest.err
31148        } && test -s conftest$ac_exeext && {
31149          test "$cross_compiling" = yes ||
31150          $as_test_x conftest$ac_exeext
31151        }; then
31152   ac_cv_lib_krb5support_main=yes
31153 else
31154   $as_echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31156
31157         ac_cv_lib_krb5support_main=no
31158 fi
31159
31160 rm -rf conftest.dSYM
31161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31162       conftest$ac_exeext conftest.$ac_ext
31163 LIBS=$ac_check_lib_save_LIBS
31164 fi
31165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
31166 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
31167 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
31168   cat >>confdefs.h <<_ACEOF
31169 #define HAVE_LIBKRB5SUPPORT 1
31170 _ACEOF
31171
31172   LIBS="-lkrb5support $LIBS"
31173
31174 fi
31175
31176             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
31177
31178
31179
31180 cat >>confdefs.h <<\_ACEOF
31181 #define KRB5_SECURITY 1
31182 _ACEOF
31183
31184         else
31185             { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
31186 $as_echo "no krb5 system libraries found" >&6; }
31187             { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
31188 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
31189    { (exit 1); exit 1; }; }
31190             KRB5_SECURITY="no"
31191         fi
31192     fi
31193
31194      if test x"$KRB5_SECURITY" = x"yes"; then
31195   WANT_KRB5_SECURITY_TRUE=
31196   WANT_KRB5_SECURITY_FALSE='#'
31197 else
31198   WANT_KRB5_SECURITY_TRUE='#'
31199   WANT_KRB5_SECURITY_FALSE=
31200 fi
31201
31202
31203
31204
31205 #
31206 # Dumpers
31207 #
31208
31209
31210
31211     for ac_prog in xfsdump
31212 do
31213   # Extract the first word of "$ac_prog", so it can be a program name with args.
31214 set dummy $ac_prog; ac_word=$2
31215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31216 $as_echo_n "checking for $ac_word... " >&6; }
31217 if test "${ac_cv_path_XFSDUMP+set}" = set; then
31218   $as_echo_n "(cached) " >&6
31219 else
31220   case $XFSDUMP in
31221   [\\/]* | ?:[\\/]*)
31222   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
31223   ;;
31224   *)
31225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31226 for as_dir in $SYSLOCPATH
31227 do
31228   IFS=$as_save_IFS
31229   test -z "$as_dir" && as_dir=.
31230   for ac_exec_ext in '' $ac_executable_extensions; do
31231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31232     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
31233     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31234     break 2
31235   fi
31236 done
31237 done
31238 IFS=$as_save_IFS
31239
31240   ;;
31241 esac
31242 fi
31243 XFSDUMP=$ac_cv_path_XFSDUMP
31244 if test -n "$XFSDUMP"; then
31245   { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
31246 $as_echo "$XFSDUMP" >&6; }
31247 else
31248   { $as_echo "$as_me:$LINENO: result: no" >&5
31249 $as_echo "no" >&6; }
31250 fi
31251
31252
31253   test -n "$XFSDUMP" && break
31254 done
31255
31256     for ac_prog in xfsrestore
31257 do
31258   # Extract the first word of "$ac_prog", so it can be a program name with args.
31259 set dummy $ac_prog; ac_word=$2
31260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31261 $as_echo_n "checking for $ac_word... " >&6; }
31262 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
31263   $as_echo_n "(cached) " >&6
31264 else
31265   case $XFSRESTORE in
31266   [\\/]* | ?:[\\/]*)
31267   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
31268   ;;
31269   *)
31270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31271 for as_dir in $SYSLOCPATH
31272 do
31273   IFS=$as_save_IFS
31274   test -z "$as_dir" && as_dir=.
31275   for ac_exec_ext in '' $ac_executable_extensions; do
31276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31277     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
31278     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31279     break 2
31280   fi
31281 done
31282 done
31283 IFS=$as_save_IFS
31284
31285   ;;
31286 esac
31287 fi
31288 XFSRESTORE=$ac_cv_path_XFSRESTORE
31289 if test -n "$XFSRESTORE"; then
31290   { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
31291 $as_echo "$XFSRESTORE" >&6; }
31292 else
31293   { $as_echo "$as_me:$LINENO: result: no" >&5
31294 $as_echo "no" >&6; }
31295 fi
31296
31297
31298   test -n "$XFSRESTORE" && break
31299 done
31300
31301     if test "$XFSDUMP" -a "$XFSRESTORE"; then
31302
31303 cat >>confdefs.h <<_ACEOF
31304 #define XFSDUMP "$XFSDUMP"
31305 _ACEOF
31306
31307
31308 cat >>confdefs.h <<_ACEOF
31309 #define XFSRESTORE "$XFSRESTORE"
31310 _ACEOF
31311
31312
31313     { $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
31314 $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;}
31315
31316
31317     cat <<AAW_EOF >>config.warnings
31318 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
31319 AAW_EOF
31320
31321
31322     fi
31323
31324
31325
31326
31327     # Extract the first word of "vxdump", so it can be a program name with args.
31328 set dummy vxdump; ac_word=$2
31329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31330 $as_echo_n "checking for $ac_word... " >&6; }
31331 if test "${ac_cv_path_VXDUMP+set}" = set; then
31332   $as_echo_n "(cached) " >&6
31333 else
31334   case $VXDUMP in
31335   [\\/]* | ?:[\\/]*)
31336   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
31337   ;;
31338   *)
31339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31340 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31341 for as_dir in $as_dummy
31342 do
31343   IFS=$as_save_IFS
31344   test -z "$as_dir" && as_dir=.
31345   for ac_exec_ext in '' $ac_executable_extensions; do
31346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31347     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
31348     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31349     break 2
31350   fi
31351 done
31352 done
31353 IFS=$as_save_IFS
31354
31355   ;;
31356 esac
31357 fi
31358 VXDUMP=$ac_cv_path_VXDUMP
31359 if test -n "$VXDUMP"; then
31360   { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
31361 $as_echo "$VXDUMP" >&6; }
31362 else
31363   { $as_echo "$as_me:$LINENO: result: no" >&5
31364 $as_echo "no" >&6; }
31365 fi
31366
31367
31368     # Extract the first word of "vxrestore", so it can be a program name with args.
31369 set dummy vxrestore; ac_word=$2
31370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31371 $as_echo_n "checking for $ac_word... " >&6; }
31372 if test "${ac_cv_path_VXRESTORE+set}" = set; then
31373   $as_echo_n "(cached) " >&6
31374 else
31375   case $VXRESTORE in
31376   [\\/]* | ?:[\\/]*)
31377   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
31378   ;;
31379   *)
31380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31381 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31382 for as_dir in $as_dummy
31383 do
31384   IFS=$as_save_IFS
31385   test -z "$as_dir" && as_dir=.
31386   for ac_exec_ext in '' $ac_executable_extensions; do
31387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31388     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
31389     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31390     break 2
31391   fi
31392 done
31393 done
31394 IFS=$as_save_IFS
31395
31396   ;;
31397 esac
31398 fi
31399 VXRESTORE=$ac_cv_path_VXRESTORE
31400 if test -n "$VXRESTORE"; then
31401   { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
31402 $as_echo "$VXRESTORE" >&6; }
31403 else
31404   { $as_echo "$as_me:$LINENO: result: no" >&5
31405 $as_echo "no" >&6; }
31406 fi
31407
31408
31409     if test "$VXDUMP" -a "$VXRESTORE"; then
31410
31411 cat >>confdefs.h <<_ACEOF
31412 #define VXDUMP "$VXDUMP"
31413 _ACEOF
31414
31415
31416 cat >>confdefs.h <<_ACEOF
31417 #define VXRESTORE "$VXRESTORE"
31418 _ACEOF
31419
31420     fi
31421
31422
31423
31424
31425     # Extract the first word of "vdump", so it can be a program name with args.
31426 set dummy vdump; ac_word=$2
31427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31428 $as_echo_n "checking for $ac_word... " >&6; }
31429 if test "${ac_cv_path_VDUMP+set}" = set; then
31430   $as_echo_n "(cached) " >&6
31431 else
31432   case $VDUMP in
31433   [\\/]* | ?:[\\/]*)
31434   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
31435   ;;
31436   *)
31437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31438 for as_dir in $SYSLOCPATH
31439 do
31440   IFS=$as_save_IFS
31441   test -z "$as_dir" && as_dir=.
31442   for ac_exec_ext in '' $ac_executable_extensions; do
31443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31444     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
31445     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31446     break 2
31447   fi
31448 done
31449 done
31450 IFS=$as_save_IFS
31451
31452   ;;
31453 esac
31454 fi
31455 VDUMP=$ac_cv_path_VDUMP
31456 if test -n "$VDUMP"; then
31457   { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
31458 $as_echo "$VDUMP" >&6; }
31459 else
31460   { $as_echo "$as_me:$LINENO: result: no" >&5
31461 $as_echo "no" >&6; }
31462 fi
31463
31464
31465     # Extract the first word of "vrestore", so it can be a program name with args.
31466 set dummy vrestore; ac_word=$2
31467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31468 $as_echo_n "checking for $ac_word... " >&6; }
31469 if test "${ac_cv_path_VRESTORE+set}" = set; then
31470   $as_echo_n "(cached) " >&6
31471 else
31472   case $VRESTORE in
31473   [\\/]* | ?:[\\/]*)
31474   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
31475   ;;
31476   *)
31477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31478 for as_dir in $SYSLOCPATH
31479 do
31480   IFS=$as_save_IFS
31481   test -z "$as_dir" && as_dir=.
31482   for ac_exec_ext in '' $ac_executable_extensions; do
31483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31484     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
31485     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31486     break 2
31487   fi
31488 done
31489 done
31490 IFS=$as_save_IFS
31491
31492   ;;
31493 esac
31494 fi
31495 VRESTORE=$ac_cv_path_VRESTORE
31496 if test -n "$VRESTORE"; then
31497   { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
31498 $as_echo "$VRESTORE" >&6; }
31499 else
31500   { $as_echo "$as_me:$LINENO: result: no" >&5
31501 $as_echo "no" >&6; }
31502 fi
31503
31504
31505     if test "$VDUMP" -a "$VRESTORE"; then
31506
31507 cat >>confdefs.h <<_ACEOF
31508 #define VDUMP "$VDUMP"
31509 _ACEOF
31510
31511
31512 cat >>confdefs.h <<_ACEOF
31513 #define VRESTORE "$VRESTORE"
31514 _ACEOF
31515
31516     fi
31517
31518
31519
31520     # Extract the first word of "grep", so it can be a program name with args.
31521 set dummy grep; ac_word=$2
31522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31523 $as_echo_n "checking for $ac_word... " >&6; }
31524 if test "${ac_cv_path_GREP+set}" = set; then
31525   $as_echo_n "(cached) " >&6
31526 else
31527   case $GREP in
31528   [\\/]* | ?:[\\/]*)
31529   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
31530   ;;
31531   *)
31532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31533 for as_dir in $LOCSYSPATH
31534 do
31535   IFS=$as_save_IFS
31536   test -z "$as_dir" && as_dir=.
31537   for ac_exec_ext in '' $ac_executable_extensions; do
31538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31539     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
31540     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31541     break 2
31542   fi
31543 done
31544 done
31545 IFS=$as_save_IFS
31546
31547   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
31548   ;;
31549 esac
31550 fi
31551 GREP=$ac_cv_path_GREP
31552 if test -n "$GREP"; then
31553   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
31554 $as_echo "$GREP" >&6; }
31555 else
31556   { $as_echo "$as_me:$LINENO: result: no" >&5
31557 $as_echo "no" >&6; }
31558 fi
31559
31560
31561
31562 cat >>confdefs.h <<_ACEOF
31563 #define GREP "$GREP"
31564 _ACEOF
31565
31566
31567
31568
31569
31570
31571     # Set the order of dump programs to look for.  Finding the proper file
31572     # system dumping program is problematic.  Some systems, notably HP-UX
31573     # and AIX, have both the backup and dump programs.  HP-UX can't use the
31574     # the backup program while AIX systems can't use the dump program.  So
31575     # a variable is set up here to specify the order of dump programs to
31576     # search for on the system.
31577     DUMP_PROGRAMS="ufsdump dump backup"
31578     DUMP_RETURNS_1=
31579     AIX_BACKUP=
31580     case "$target" in
31581         *-dg-*)
31582             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
31583             DUMP_RETURNS_1=1
31584             ;;
31585       *-ibm-aix*)
31586             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
31587             AIX_BACKUP=1
31588
31589 cat >>confdefs.h <<\_ACEOF
31590 #define AIX_BACKUP 1
31591 _ACEOF
31592
31593             ;;
31594       *-ultrix*)
31595             DUMP_RETURNS_1=1
31596             ;;
31597     esac
31598
31599     if test -n "$DUMP_RETURNS_1"; then
31600
31601 cat >>confdefs.h <<\_ACEOF
31602 #define DUMP_RETURNS_1 1
31603 _ACEOF
31604
31605     fi
31606
31607     for ac_prog in $DUMP_PROGRAMS
31608 do
31609   # Extract the first word of "$ac_prog", so it can be a program name with args.
31610 set dummy $ac_prog; ac_word=$2
31611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31612 $as_echo_n "checking for $ac_word... " >&6; }
31613 if test "${ac_cv_path_DUMP+set}" = set; then
31614   $as_echo_n "(cached) " >&6
31615 else
31616   case $DUMP in
31617   [\\/]* | ?:[\\/]*)
31618   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
31619   ;;
31620   *)
31621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31622 for as_dir in $SYSLOCPATH
31623 do
31624   IFS=$as_save_IFS
31625   test -z "$as_dir" && as_dir=.
31626   for ac_exec_ext in '' $ac_executable_extensions; do
31627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31628     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
31629     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31630     break 2
31631   fi
31632 done
31633 done
31634 IFS=$as_save_IFS
31635
31636   ;;
31637 esac
31638 fi
31639 DUMP=$ac_cv_path_DUMP
31640 if test -n "$DUMP"; then
31641   { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
31642 $as_echo "$DUMP" >&6; }
31643 else
31644   { $as_echo "$as_me:$LINENO: result: no" >&5
31645 $as_echo "no" >&6; }
31646 fi
31647
31648
31649   test -n "$DUMP" && break
31650 done
31651
31652     for ac_prog in ufsrestore restore
31653 do
31654   # Extract the first word of "$ac_prog", so it can be a program name with args.
31655 set dummy $ac_prog; ac_word=$2
31656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31657 $as_echo_n "checking for $ac_word... " >&6; }
31658 if test "${ac_cv_path_RESTORE+set}" = set; then
31659   $as_echo_n "(cached) " >&6
31660 else
31661   case $RESTORE in
31662   [\\/]* | ?:[\\/]*)
31663   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
31664   ;;
31665   *)
31666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31667 for as_dir in $SYSLOCPATH
31668 do
31669   IFS=$as_save_IFS
31670   test -z "$as_dir" && as_dir=.
31671   for ac_exec_ext in '' $ac_executable_extensions; do
31672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31673     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
31674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31675     break 2
31676   fi
31677 done
31678 done
31679 IFS=$as_save_IFS
31680
31681   ;;
31682 esac
31683 fi
31684 RESTORE=$ac_cv_path_RESTORE
31685 if test -n "$RESTORE"; then
31686   { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
31687 $as_echo "$RESTORE" >&6; }
31688 else
31689   { $as_echo "$as_me:$LINENO: result: no" >&5
31690 $as_echo "no" >&6; }
31691 fi
31692
31693
31694   test -n "$RESTORE" && break
31695 done
31696
31697
31698     # newer versions of GNU tar include a program named 'backup' which
31699     # does *not* implement the expected 'dump' interface.  Detect that here
31700     # and pretend we never saw it.
31701     if test -n "$DUMP"; then
31702       if test "`basename $DUMP`" = "backup"; then
31703         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
31704         if test $? -eq 0; then
31705           DUMP=
31706         fi
31707       fi
31708     fi
31709
31710     if test "$DUMP" -a "$RESTORE"; then
31711
31712 cat >>confdefs.h <<_ACEOF
31713 #define DUMP "$DUMP"
31714 _ACEOF
31715
31716
31717 cat >>confdefs.h <<_ACEOF
31718 #define RESTORE "$RESTORE"
31719 _ACEOF
31720
31721
31722         # check for an estimate flag
31723         if test -x $DUMP; then
31724             { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
31725 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
31726 if test "${amanda_cv_dump_estimate+set}" = set; then
31727   $as_echo_n "(cached) " >&6
31728 else
31729
31730                     case "$DUMP" in
31731                     *dump)
31732                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
31733                             | $GREP -v Dumping
31734                             | $GREP -v Date
31735                             | $GREP -v Label >conftest.d-E 2>&1'
31736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737   (eval $ac_try) 2>&5
31738   ac_status=$?
31739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); }; }
31741                         cat conftest.d-E >&5
31742                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
31743                             | $GREP -v Dumping
31744                             | $GREP -v Date
31745                             | $GREP -v Label >conftest.d-S 2>&1'
31746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747   (eval $ac_try) 2>&5
31748   ac_status=$?
31749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750   (exit $ac_status); }; }
31751                         cat conftest.d-S >&5
31752                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31753                             | $GREP -v Dumping
31754                             | $GREP -v Date
31755                             | $GREP -v Label >conftest.d 2>&1'
31756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31757   (eval $ac_try) 2>&5
31758   ac_status=$?
31759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760   (exit $ac_status); }; }
31761                         cat conftest.d >&5
31762                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
31763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764   (eval $ac_try) 2>&5
31765   ac_status=$?
31766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767   (exit $ac_status); }; }; then
31768                             amanda_cv_dump_estimate=E
31769                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
31770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771   (eval $ac_try) 2>&5
31772   ac_status=$?
31773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); }; }; then
31775                             amanda_cv_dump_estimate=S
31776                         else
31777                             amanda_cv_dump_estimate=no
31778                         fi
31779                         rm -f conftest.d conftest.d-E conftest.d-S
31780                       ;;
31781                     *) amanda_cv_dump_estimate=no
31782                       ;;
31783                     esac
31784
31785 fi
31786 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
31787 $as_echo "$amanda_cv_dump_estimate" >&6; }
31788         else
31789
31790     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
31791 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
31792
31793
31794     cat <<AAW_EOF >>config.warnings
31795 $DUMP is not executable, cannot run -E/-S test
31796 AAW_EOF
31797
31798
31799             amanda_cv_dump_estimate=no
31800         fi
31801         if test "x$amanda_cv_dump_estimate" != xno; then
31802
31803 cat >>confdefs.h <<_ACEOF
31804 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
31805 _ACEOF
31806
31807         fi
31808
31809
31810 # Check whether --with-dump-honor-nodump was given.
31811 if test "${with_dump_honor_nodump+set}" = set; then
31812   withval=$with_dump_honor_nodump;
31813             if test -x $DUMP; then
31814                 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
31815 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
31816 if test "${amanda_cv_honor_nodump+set}" = set; then
31817   $as_echo_n "(cached) " >&6
31818 else
31819
31820                     case "$DUMP" in
31821                     *dump)
31822                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
31823                             | $GREP -v Dumping
31824                             | $GREP -v Date
31825                             | $GREP -v Label >conftest.d-h 2>&1'
31826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827   (eval $ac_try) 2>&5
31828   ac_status=$?
31829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); }; }
31831                         cat conftest.d-h >&5
31832                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31833                             | $GREP -v Dumping
31834                             | $GREP -v Date
31835                             | $GREP -v Label >conftest.d 2>&1'
31836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31837   (eval $ac_try) 2>&5
31838   ac_status=$?
31839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); }; }
31841                         cat conftest.d >&5
31842                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
31843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31844   (eval $ac_try) 2>&5
31845   ac_status=$?
31846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); }; }; then
31848                             amanda_cv_honor_nodump=yes
31849                         else
31850                             amanda_cv_honor_nodump=no
31851                         fi
31852                         rm -f conftest.d conftest.d-h
31853                       ;;
31854                     *) amanda_cv_honor_nodump=no
31855                       ;;
31856                     esac
31857
31858 fi
31859 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
31860 $as_echo "$amanda_cv_honor_nodump" >&6; }
31861             else
31862
31863     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
31864 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
31865
31866
31867     cat <<AAW_EOF >>config.warnings
31868 $DUMP is not executable, cannot run -h test
31869 AAW_EOF
31870
31871
31872                 amanda_cv_honor_nodump=no
31873             fi
31874             if test "x$amanda_cv_honor_nodump" = xyes; then
31875
31876 cat >>confdefs.h <<\_ACEOF
31877 #define HAVE_HONOR_NODUMP 1
31878 _ACEOF
31879
31880             fi
31881
31882 fi
31883
31884     fi
31885
31886
31887
31888
31889
31890
31891
31892     # call with
31893
31894 # Check whether --with-gnutar was given.
31895 if test "${with_gnutar+set}" = set; then
31896   withval=$with_gnutar;
31897             # check withval
31898             case "$withval" in
31899                 /*) GNUTAR="$withval";;
31900                 y|ye|yes) :;;
31901                 n|no) GNUTAR=no ;;
31902                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
31903 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
31904    { (exit 1); exit 1; }; };;
31905             esac
31906             # done
31907
31908
31909 fi
31910
31911
31912     if test "x$GNUTAR" = "xno"; then
31913         GNUTAR=
31914     else
31915         for gnutar_name in gtar gnutar tar; do
31916             for ac_prog in $gnutar_name
31917 do
31918   # Extract the first word of "$ac_prog", so it can be a program name with args.
31919 set dummy $ac_prog; ac_word=$2
31920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31921 $as_echo_n "checking for $ac_word... " >&6; }
31922 if test "${ac_cv_path_GNUTAR+set}" = set; then
31923   $as_echo_n "(cached) " >&6
31924 else
31925   case $GNUTAR in
31926   [\\/]* | ?:[\\/]*)
31927   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
31928   ;;
31929   *)
31930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31931 for as_dir in $LOCSYSPATH
31932 do
31933   IFS=$as_save_IFS
31934   test -z "$as_dir" && as_dir=.
31935   for ac_exec_ext in '' $ac_executable_extensions; do
31936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31937     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
31938     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31939     break 2
31940   fi
31941 done
31942 done
31943 IFS=$as_save_IFS
31944
31945   ;;
31946 esac
31947 fi
31948 GNUTAR=$ac_cv_path_GNUTAR
31949 if test -n "$GNUTAR"; then
31950   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
31951 $as_echo "$GNUTAR" >&6; }
31952 else
31953   { $as_echo "$as_me:$LINENO: result: no" >&5
31954 $as_echo "no" >&6; }
31955 fi
31956
31957
31958   test -n "$GNUTAR" && break
31959 done
31960
31961             if test -n "$GNUTAR"; then
31962               case "`\"$GNUTAR\" --version 2>&1`" in
31963                *GNU*tar* | *Free*paxutils* )
31964                             # OK, it is GNU tar
31965                             break
31966                             ;;
31967                *)
31968                             # warning..
31969
31970     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
31971 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
31972
31973
31974     cat <<AAW_EOF >>config.warnings
31975 $GNUTAR is not GNU tar, so it will not be used.
31976 AAW_EOF
31977
31978
31979                             # reset the cache for GNUTAR so AC_PATH_PROGS will search again
31980                             GNUTAR=''
31981                             unset ac_cv_path_GNUTAR
31982                             ;;
31983               esac
31984             fi
31985         done
31986     fi
31987
31988     if test "x$GNUTAR" != "x"; then
31989         # define unquoted
31990
31991 cat >>confdefs.h <<_ACEOF
31992 #define GNUTAR "$GNUTAR"
31993 _ACEOF
31994
31995     fi
31996
31997
31998
31999
32000
32001
32002
32003 # Check whether --with-smbclient was given.
32004 if test "${with_smbclient+set}" = set; then
32005   withval=$with_smbclient;
32006             case "$withval" in
32007                 /*) SAMBA_CLIENT="$withval";;
32008                 y|ye|yes) :;;
32009                 n|no) SAMBA_CLIENT=no ;;
32010                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
32011 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
32012    { (exit 1); exit 1; }; };;
32013             esac
32014
32015
32016 fi
32017
32018
32019
32020 # Check whether --with-samba-user was given.
32021 if test "${with_samba_user+set}" = set; then
32022   withval=$with_samba_user;  { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
32023 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
32024    { (exit 1); exit 1; }; }
32025
32026 fi
32027
32028
32029     if test "x$SAMBA_CLIENT" != "xno"; then
32030       # Extract the first word of "smbclient", so it can be a program name with args.
32031 set dummy smbclient; ac_word=$2
32032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32033 $as_echo_n "checking for $ac_word... " >&6; }
32034 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
32035   $as_echo_n "(cached) " >&6
32036 else
32037   case $SAMBA_CLIENT in
32038   [\\/]* | ?:[\\/]*)
32039   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
32040   ;;
32041   *)
32042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32043 for as_dir in $LOCSYSPATH
32044 do
32045   IFS=$as_save_IFS
32046   test -z "$as_dir" && as_dir=.
32047   for ac_exec_ext in '' $ac_executable_extensions; do
32048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32049     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
32050     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32051     break 2
32052   fi
32053 done
32054 done
32055 IFS=$as_save_IFS
32056
32057   ;;
32058 esac
32059 fi
32060 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
32061 if test -n "$SAMBA_CLIENT"; then
32062   { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
32063 $as_echo "$SAMBA_CLIENT" >&6; }
32064 else
32065   { $as_echo "$as_me:$LINENO: result: no" >&5
32066 $as_echo "no" >&6; }
32067 fi
32068
32069
32070       smbversion=0
32071       if test ! -z "$SAMBA_CLIENT"; then
32072         case "`\"$SAMBA_CLIENT\" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
32073         *"Unknown host"*)
32074                       smbversion=1
32075                       ;;
32076         *"Connection to nosuchhost.amanda.org failed"*)
32077                       smbversion=2
32078                       ;;
32079         *)
32080
32081     { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
32082 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
32083
32084
32085     cat <<AAW_EOF >>config.warnings
32086 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
32087 AAW_EOF
32088
32089
32090                       SAMBA_CLIENT=
32091                       ;;
32092         esac
32093         if test -n "$SAMBA_CLIENT"; then
32094
32095 cat >>confdefs.h <<_ACEOF
32096 #define SAMBA_CLIENT "$SAMBA_CLIENT"
32097 _ACEOF
32098
32099
32100 cat >>confdefs.h <<_ACEOF
32101 #define SAMBA_VERSION $smbversion
32102 _ACEOF
32103
32104         fi
32105       fi
32106     fi
32107
32108      if test -n "$SAMBA_CLIENT"; then
32109   WANT_SAMBA_TRUE=
32110   WANT_SAMBA_FALSE='#'
32111 else
32112   WANT_SAMBA_TRUE='#'
32113   WANT_SAMBA_FALSE=
32114 fi
32115
32116
32117
32118     USE_RUNDUMP=no
32119
32120     # some systems require rundump unconditionally
32121     case "$target" in
32122         *-ultrix*) USE_RUNDUMP=yes ;;
32123         *-dg-*) USE_RUNDUMP=yes ;;
32124     esac
32125
32126
32127 # Check whether --with-rundump was given.
32128 if test "${with_rundump+set}" = set; then
32129   withval=$with_rundump;
32130         case "$withval" in
32131             n | no) USE_RUNDUMP=no ;;
32132             y | ye | yes) USE_RUNDUMP=yes ;;
32133             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
32134 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
32135    { (exit 1); exit 1; }; };;
32136         esac
32137
32138 fi
32139
32140
32141     if test x"$USE_RUNDUMP" = x"yes"; then
32142         USE_RUNDUMP=1
32143
32144 cat >>confdefs.h <<\_ACEOF
32145 #define USE_RUNDUMP 1
32146 _ACEOF
32147
32148     else
32149         USE_RUNDUMP=
32150     fi
32151
32152
32153
32154
32155 #
32156 # Look for other programs Amanda will use
32157 #
32158
32159
32160     # Extract the first word of "grep", so it can be a program name with args.
32161 set dummy grep; ac_word=$2
32162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32163 $as_echo_n "checking for $ac_word... " >&6; }
32164 if test "${ac_cv_path_GREP+set}" = set; then
32165   $as_echo_n "(cached) " >&6
32166 else
32167   case $GREP in
32168   [\\/]* | ?:[\\/]*)
32169   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
32170   ;;
32171   *)
32172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32173 for as_dir in $LOCSYSPATH
32174 do
32175   IFS=$as_save_IFS
32176   test -z "$as_dir" && as_dir=.
32177   for ac_exec_ext in '' $ac_executable_extensions; do
32178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32179     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
32180     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32181     break 2
32182   fi
32183 done
32184 done
32185 IFS=$as_save_IFS
32186
32187   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
32188   ;;
32189 esac
32190 fi
32191 GREP=$ac_cv_path_GREP
32192 if test -n "$GREP"; then
32193   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
32194 $as_echo "$GREP" >&6; }
32195 else
32196   { $as_echo "$as_me:$LINENO: result: no" >&5
32197 $as_echo "no" >&6; }
32198 fi
32199
32200
32201
32202 cat >>confdefs.h <<_ACEOF
32203 #define GREP "$GREP"
32204 _ACEOF
32205
32206
32207 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
32208 $as_echo_n "checking for egrep... " >&6; }
32209 if test "${ac_cv_path_EGREP+set}" = set; then
32210   $as_echo_n "(cached) " >&6
32211 else
32212   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32213    then ac_cv_path_EGREP="$GREP -E"
32214    else
32215      if test -z "$EGREP"; then
32216   ac_path_EGREP_found=false
32217   # Loop through the user's path and test for each of PROGNAME-LIST
32218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32220 do
32221   IFS=$as_save_IFS
32222   test -z "$as_dir" && as_dir=.
32223   for ac_prog in egrep; do
32224     for ac_exec_ext in '' $ac_executable_extensions; do
32225       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32226       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
32227 # Check for GNU ac_path_EGREP and select it if it is found.
32228   # Check for GNU $ac_path_EGREP
32229 case `"$ac_path_EGREP" --version 2>&1` in
32230 *GNU*)
32231   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32232 *)
32233   ac_count=0
32234   $as_echo_n 0123456789 >"conftest.in"
32235   while :
32236   do
32237     cat "conftest.in" "conftest.in" >"conftest.tmp"
32238     mv "conftest.tmp" "conftest.in"
32239     cp "conftest.in" "conftest.nl"
32240     $as_echo 'EGREP' >> "conftest.nl"
32241     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32243     ac_count=`expr $ac_count + 1`
32244     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32245       # Best one so far, save it but keep looking for a better one
32246       ac_cv_path_EGREP="$ac_path_EGREP"
32247       ac_path_EGREP_max=$ac_count
32248     fi
32249     # 10*(2^10) chars as input seems more than enough
32250     test $ac_count -gt 10 && break
32251   done
32252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32253 esac
32254
32255       $ac_path_EGREP_found && break 3
32256     done
32257   done
32258 done
32259 IFS=$as_save_IFS
32260   if test -z "$ac_cv_path_EGREP"; then
32261     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
32262 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
32263    { (exit 1); exit 1; }; }
32264   fi
32265 else
32266   ac_cv_path_EGREP=$EGREP
32267 fi
32268
32269    fi
32270 fi
32271 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
32272 $as_echo "$ac_cv_path_EGREP" >&6; }
32273  EGREP="$ac_cv_path_EGREP"
32274
32275
32276
32277
32278
32279
32280     # Extract the first word of "lint", so it can be a program name with args.
32281 set dummy lint; ac_word=$2
32282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32283 $as_echo_n "checking for $ac_word... " >&6; }
32284 if test "${ac_cv_path_AMLINT+set}" = set; then
32285   $as_echo_n "(cached) " >&6
32286 else
32287   case $AMLINT in
32288   [\\/]* | ?:[\\/]*)
32289   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32290   ;;
32291   *)
32292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32293 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
32294 for as_dir in $as_dummy
32295 do
32296   IFS=$as_save_IFS
32297   test -z "$as_dir" && as_dir=.
32298   for ac_exec_ext in '' $ac_executable_extensions; do
32299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32300     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32301     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32302     break 2
32303   fi
32304 done
32305 done
32306 IFS=$as_save_IFS
32307
32308   ;;
32309 esac
32310 fi
32311 AMLINT=$ac_cv_path_AMLINT
32312 if test -n "$AMLINT"; then
32313   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32314 $as_echo "$AMLINT" >&6; }
32315 else
32316   { $as_echo "$as_me:$LINENO: result: no" >&5
32317 $as_echo "no" >&6; }
32318 fi
32319
32320
32321     if test ! -z "$AMLINT"; then
32322       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
32323       if test $? -eq 0; then
32324         AMLINTFLAGS="-n -s -u -m -x"
32325         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
32326         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
32327         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
32328         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
32329         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
32330         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
32331         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
32332         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
32333         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
32334         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
32335         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
32336         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
32337         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
32338         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
32339         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
32340         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
32341         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
32342         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
32343         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
32344         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
32345         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
32346         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
32347         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
32348         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
32349         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
32350         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
32351         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
32352         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
32353         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
32354         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
32355         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
32356         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
32357         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
32358         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
32359         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
32360         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
32361         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
32362         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
32363         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
32364         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
32365         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
32366         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
32367         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
32368         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
32369         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
32370         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
32371         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
32372         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
32373         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
32374         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
32375       else
32376         AMLINTFLAGS=""
32377       fi
32378     else
32379       # Extract the first word of "splint", so it can be a program name with args.
32380 set dummy splint; ac_word=$2
32381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32382 $as_echo_n "checking for $ac_word... " >&6; }
32383 if test "${ac_cv_path_AMLINT+set}" = set; then
32384   $as_echo_n "(cached) " >&6
32385 else
32386   case $AMLINT in
32387   [\\/]* | ?:[\\/]*)
32388   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32389   ;;
32390   *)
32391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32392 for as_dir in $SYSLOCPATH
32393 do
32394   IFS=$as_save_IFS
32395   test -z "$as_dir" && as_dir=.
32396   for ac_exec_ext in '' $ac_executable_extensions; do
32397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32398     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32400     break 2
32401   fi
32402 done
32403 done
32404 IFS=$as_save_IFS
32405
32406   ;;
32407 esac
32408 fi
32409 AMLINT=$ac_cv_path_AMLINT
32410 if test -n "$AMLINT"; then
32411   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32412 $as_echo "$AMLINT" >&6; }
32413 else
32414   { $as_echo "$as_me:$LINENO: result: no" >&5
32415 $as_echo "no" >&6; }
32416 fi
32417
32418
32419       if test ! -z "$AMLINT"; then
32420         AMLINT="splint"
32421         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
32422       else
32423         AMLINT='echo "Error: LINT is not installed" ; false'
32424         AMLINTFLAGS=''
32425       fi
32426     fi
32427
32428
32429 for ac_prog in flex lex
32430 do
32431   # Extract the first word of "$ac_prog", so it can be a program name with args.
32432 set dummy $ac_prog; ac_word=$2
32433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32434 $as_echo_n "checking for $ac_word... " >&6; }
32435 if test "${ac_cv_prog_LEX+set}" = set; then
32436   $as_echo_n "(cached) " >&6
32437 else
32438   if test -n "$LEX"; then
32439   ac_cv_prog_LEX="$LEX" # Let the user override the test.
32440 else
32441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32442 for as_dir in $PATH
32443 do
32444   IFS=$as_save_IFS
32445   test -z "$as_dir" && as_dir=.
32446   for ac_exec_ext in '' $ac_executable_extensions; do
32447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32448     ac_cv_prog_LEX="$ac_prog"
32449     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32450     break 2
32451   fi
32452 done
32453 done
32454 IFS=$as_save_IFS
32455
32456 fi
32457 fi
32458 LEX=$ac_cv_prog_LEX
32459 if test -n "$LEX"; then
32460   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
32461 $as_echo "$LEX" >&6; }
32462 else
32463   { $as_echo "$as_me:$LINENO: result: no" >&5
32464 $as_echo "no" >&6; }
32465 fi
32466
32467
32468   test -n "$LEX" && break
32469 done
32470 test -n "$LEX" || LEX=":"
32471
32472 if test "x$LEX" != "x:"; then
32473   cat >conftest.l <<_ACEOF
32474 %%
32475 a { ECHO; }
32476 b { REJECT; }
32477 c { yymore (); }
32478 d { yyless (1); }
32479 e { yyless (input () != 0); }
32480 f { unput (yytext[0]); }
32481 . { BEGIN INITIAL; }
32482 %%
32483 #ifdef YYTEXT_POINTER
32484 extern char *yytext;
32485 #endif
32486 int
32487 main (void)
32488 {
32489   return ! yylex () + ! yywrap ();
32490 }
32491 _ACEOF
32492 { (ac_try="$LEX conftest.l"
32493 case "(($ac_try" in
32494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495   *) ac_try_echo=$ac_try;;
32496 esac
32497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32498 $as_echo "$ac_try_echo") >&5
32499   (eval "$LEX conftest.l") 2>&5
32500   ac_status=$?
32501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); }
32503 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
32504 $as_echo_n "checking lex output file root... " >&6; }
32505 if test "${ac_cv_prog_lex_root+set}" = set; then
32506   $as_echo_n "(cached) " >&6
32507 else
32508
32509 if test -f lex.yy.c; then
32510   ac_cv_prog_lex_root=lex.yy
32511 elif test -f lexyy.c; then
32512   ac_cv_prog_lex_root=lexyy
32513 else
32514   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
32515 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
32516    { (exit 1); exit 1; }; }
32517 fi
32518 fi
32519 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
32520 $as_echo "$ac_cv_prog_lex_root" >&6; }
32521 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
32522
32523 if test -z "${LEXLIB+set}"; then
32524   { $as_echo "$as_me:$LINENO: checking lex library" >&5
32525 $as_echo_n "checking lex library... " >&6; }
32526 if test "${ac_cv_lib_lex+set}" = set; then
32527   $as_echo_n "(cached) " >&6
32528 else
32529
32530     ac_save_LIBS=$LIBS
32531     ac_cv_lib_lex='none needed'
32532     for ac_lib in '' -lfl -ll; do
32533       LIBS="$ac_lib $ac_save_LIBS"
32534       cat >conftest.$ac_ext <<_ACEOF
32535 `cat $LEX_OUTPUT_ROOT.c`
32536 _ACEOF
32537 rm -f conftest.$ac_objext conftest$ac_exeext
32538 if { (ac_try="$ac_link"
32539 case "(($ac_try" in
32540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541   *) ac_try_echo=$ac_try;;
32542 esac
32543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32544 $as_echo "$ac_try_echo") >&5
32545   (eval "$ac_link") 2>conftest.er1
32546   ac_status=$?
32547   grep -v '^ *+' conftest.er1 >conftest.err
32548   rm -f conftest.er1
32549   cat conftest.err >&5
32550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551   (exit $ac_status); } && {
32552          test -z "$ac_c_werror_flag" ||
32553          test ! -s conftest.err
32554        } && test -s conftest$ac_exeext && {
32555          test "$cross_compiling" = yes ||
32556          $as_test_x conftest$ac_exeext
32557        }; then
32558   ac_cv_lib_lex=$ac_lib
32559 else
32560   $as_echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32562
32563
32564 fi
32565
32566 rm -rf conftest.dSYM
32567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32568       conftest$ac_exeext conftest.$ac_ext
32569       test "$ac_cv_lib_lex" != 'none needed' && break
32570     done
32571     LIBS=$ac_save_LIBS
32572
32573 fi
32574 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
32575 $as_echo "$ac_cv_lib_lex" >&6; }
32576   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
32577 fi
32578
32579
32580 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
32581 $as_echo_n "checking whether yytext is a pointer... " >&6; }
32582 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
32583   $as_echo_n "(cached) " >&6
32584 else
32585   # POSIX says lex can declare yytext either as a pointer or an array; the
32586 # default is implementation-dependent.  Figure out which it is, since
32587 # not all implementations provide the %pointer and %array declarations.
32588 ac_cv_prog_lex_yytext_pointer=no
32589 ac_save_LIBS=$LIBS
32590 LIBS="$LEXLIB $ac_save_LIBS"
32591 cat >conftest.$ac_ext <<_ACEOF
32592 #define YYTEXT_POINTER 1
32593 `cat $LEX_OUTPUT_ROOT.c`
32594 _ACEOF
32595 rm -f conftest.$ac_objext conftest$ac_exeext
32596 if { (ac_try="$ac_link"
32597 case "(($ac_try" in
32598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599   *) ac_try_echo=$ac_try;;
32600 esac
32601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32602 $as_echo "$ac_try_echo") >&5
32603   (eval "$ac_link") 2>conftest.er1
32604   ac_status=$?
32605   grep -v '^ *+' conftest.er1 >conftest.err
32606   rm -f conftest.er1
32607   cat conftest.err >&5
32608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); } && {
32610          test -z "$ac_c_werror_flag" ||
32611          test ! -s conftest.err
32612        } && test -s conftest$ac_exeext && {
32613          test "$cross_compiling" = yes ||
32614          $as_test_x conftest$ac_exeext
32615        }; then
32616   ac_cv_prog_lex_yytext_pointer=yes
32617 else
32618   $as_echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32620
32621
32622 fi
32623
32624 rm -rf conftest.dSYM
32625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32626       conftest$ac_exeext conftest.$ac_ext
32627 LIBS=$ac_save_LIBS
32628
32629 fi
32630 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
32631 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
32632 if test $ac_cv_prog_lex_yytext_pointer = yes; then
32633
32634 cat >>confdefs.h <<\_ACEOF
32635 #define YYTEXT_POINTER 1
32636 _ACEOF
32637
32638 fi
32639 rm -f conftest.l $LEX_OUTPUT_ROOT.c
32640
32641 fi
32642 if test "$LEX" = :; then
32643   LEX=${am_missing_run}flex
32644 fi
32645
32646
32647     # Extract the first word of "ar", so it can be a program name with args.
32648 set dummy ar; ac_word=$2
32649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32650 $as_echo_n "checking for $ac_word... " >&6; }
32651 if test "${ac_cv_path_AR+set}" = set; then
32652   $as_echo_n "(cached) " >&6
32653 else
32654   case $AR in
32655   [\\/]* | ?:[\\/]*)
32656   ac_cv_path_AR="$AR" # Let the user override the test with a path.
32657   ;;
32658   *)
32659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32660 for as_dir in $LOCSYSPATH
32661 do
32662   IFS=$as_save_IFS
32663   test -z "$as_dir" && as_dir=.
32664   for ac_exec_ext in '' $ac_executable_extensions; do
32665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32666     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
32667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32668     break 2
32669   fi
32670 done
32671 done
32672 IFS=$as_save_IFS
32673
32674   ;;
32675 esac
32676 fi
32677 AR=$ac_cv_path_AR
32678 if test -n "$AR"; then
32679   { $as_echo "$as_me:$LINENO: result: $AR" >&5
32680 $as_echo "$AR" >&6; }
32681 else
32682   { $as_echo "$as_me:$LINENO: result: no" >&5
32683 $as_echo "no" >&6; }
32684 fi
32685
32686
32687
32688
32689
32690     # Extract the first word of "gettext", so it can be a program name with args.
32691 set dummy gettext; ac_word=$2
32692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32693 $as_echo_n "checking for $ac_word... " >&6; }
32694 if test "${ac_cv_path_GETTEXT+set}" = set; then
32695   $as_echo_n "(cached) " >&6
32696 else
32697   case $GETTEXT in
32698   [\\/]* | ?:[\\/]*)
32699   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
32700   ;;
32701   *)
32702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32703 for as_dir in $LOCSYSPATH
32704 do
32705   IFS=$as_save_IFS
32706   test -z "$as_dir" && as_dir=.
32707   for ac_exec_ext in '' $ac_executable_extensions; do
32708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32709     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
32710     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32711     break 2
32712   fi
32713 done
32714 done
32715 IFS=$as_save_IFS
32716
32717   ;;
32718 esac
32719 fi
32720 GETTEXT=$ac_cv_path_GETTEXT
32721 if test -n "$GETTEXT"; then
32722   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
32723 $as_echo "$GETTEXT" >&6; }
32724 else
32725   { $as_echo "$as_me:$LINENO: result: no" >&5
32726 $as_echo "no" >&6; }
32727 fi
32728
32729
32730
32731 for ac_prog in gawk mawk nawk awk
32732 do
32733   # Extract the first word of "$ac_prog", so it can be a program name with args.
32734 set dummy $ac_prog; ac_word=$2
32735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32736 $as_echo_n "checking for $ac_word... " >&6; }
32737 if test "${ac_cv_prog_AWK+set}" = set; then
32738   $as_echo_n "(cached) " >&6
32739 else
32740   if test -n "$AWK"; then
32741   ac_cv_prog_AWK="$AWK" # Let the user override the test.
32742 else
32743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32744 for as_dir in $PATH
32745 do
32746   IFS=$as_save_IFS
32747   test -z "$as_dir" && as_dir=.
32748   for ac_exec_ext in '' $ac_executable_extensions; do
32749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32750     ac_cv_prog_AWK="$ac_prog"
32751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32752     break 2
32753   fi
32754 done
32755 done
32756 IFS=$as_save_IFS
32757
32758 fi
32759 fi
32760 AWK=$ac_cv_prog_AWK
32761 if test -n "$AWK"; then
32762   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
32763 $as_echo "$AWK" >&6; }
32764 else
32765   { $as_echo "$as_me:$LINENO: result: no" >&5
32766 $as_echo "no" >&6; }
32767 fi
32768
32769
32770   test -n "$AWK" && break
32771 done
32772
32773 for ac_prog in 'bison -y' byacc
32774 do
32775   # Extract the first word of "$ac_prog", so it can be a program name with args.
32776 set dummy $ac_prog; ac_word=$2
32777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32778 $as_echo_n "checking for $ac_word... " >&6; }
32779 if test "${ac_cv_prog_YACC+set}" = set; then
32780   $as_echo_n "(cached) " >&6
32781 else
32782   if test -n "$YACC"; then
32783   ac_cv_prog_YACC="$YACC" # Let the user override the test.
32784 else
32785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32786 for as_dir in $PATH
32787 do
32788   IFS=$as_save_IFS
32789   test -z "$as_dir" && as_dir=.
32790   for ac_exec_ext in '' $ac_executable_extensions; do
32791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32792     ac_cv_prog_YACC="$ac_prog"
32793     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32794     break 2
32795   fi
32796 done
32797 done
32798 IFS=$as_save_IFS
32799
32800 fi
32801 fi
32802 YACC=$ac_cv_prog_YACC
32803 if test -n "$YACC"; then
32804   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
32805 $as_echo "$YACC" >&6; }
32806 else
32807   { $as_echo "$as_me:$LINENO: result: no" >&5
32808 $as_echo "no" >&6; }
32809 fi
32810
32811
32812   test -n "$YACC" && break
32813 done
32814 test -n "$YACC" || YACC="yacc"
32815
32816 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
32817 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
32818 if test -z "$MKDIR_P"; then
32819   if test "${ac_cv_path_mkdir+set}" = set; then
32820   $as_echo_n "(cached) " >&6
32821 else
32822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32823 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
32824 do
32825   IFS=$as_save_IFS
32826   test -z "$as_dir" && as_dir=.
32827   for ac_prog in mkdir gmkdir; do
32828          for ac_exec_ext in '' $ac_executable_extensions; do
32829            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
32830            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
32831              'mkdir (GNU coreutils) '* | \
32832              'mkdir (coreutils) '* | \
32833              'mkdir (fileutils) '4.1*)
32834                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
32835                break 3;;
32836            esac
32837          done
32838        done
32839 done
32840 IFS=$as_save_IFS
32841
32842 fi
32843
32844   if test "${ac_cv_path_mkdir+set}" = set; then
32845     MKDIR_P="$ac_cv_path_mkdir -p"
32846   else
32847     # As a last resort, use the slow shell script.  Don't cache a
32848     # value for MKDIR_P within a source directory, because that will
32849     # break other packages using the cache if that directory is
32850     # removed, or if the value is a relative name.
32851     test -d ./--version && rmdir ./--version
32852     MKDIR_P="$ac_install_sh -d"
32853   fi
32854 fi
32855 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32856 $as_echo "$MKDIR_P" >&6; }
32857
32858
32859
32860     # Extract the first word of "dd", so it can be a program name with args.
32861 set dummy dd; ac_word=$2
32862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32863 $as_echo_n "checking for $ac_word... " >&6; }
32864 if test "${ac_cv_path_DD+set}" = set; then
32865   $as_echo_n "(cached) " >&6
32866 else
32867   case $DD in
32868   [\\/]* | ?:[\\/]*)
32869   ac_cv_path_DD="$DD" # Let the user override the test with a path.
32870   ;;
32871   *)
32872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32873 for as_dir in $LOCSYSPATH
32874 do
32875   IFS=$as_save_IFS
32876   test -z "$as_dir" && as_dir=.
32877   for ac_exec_ext in '' $ac_executable_extensions; do
32878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32879     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
32880     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32881     break 2
32882   fi
32883 done
32884 done
32885 IFS=$as_save_IFS
32886
32887   ;;
32888 esac
32889 fi
32890 DD=$ac_cv_path_DD
32891 if test -n "$DD"; then
32892   { $as_echo "$as_me:$LINENO: result: $DD" >&5
32893 $as_echo "$DD" >&6; }
32894 else
32895   { $as_echo "$as_me:$LINENO: result: no" >&5
32896 $as_echo "no" >&6; }
32897 fi
32898
32899
32900
32901
32902
32903     # Extract the first word of "bash", so it can be a program name with args.
32904 set dummy bash; ac_word=$2
32905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32906 $as_echo_n "checking for $ac_word... " >&6; }
32907 if test "${ac_cv_path_BASH+set}" = set; then
32908   $as_echo_n "(cached) " >&6
32909 else
32910   case $BASH in
32911   [\\/]* | ?:[\\/]*)
32912   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
32913   ;;
32914   *)
32915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32916 for as_dir in $SYSPATH
32917 do
32918   IFS=$as_save_IFS
32919   test -z "$as_dir" && as_dir=.
32920   for ac_exec_ext in '' $ac_executable_extensions; do
32921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32922     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
32923     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32924     break 2
32925   fi
32926 done
32927 done
32928 IFS=$as_save_IFS
32929
32930   ;;
32931 esac
32932 fi
32933 BASH=$ac_cv_path_BASH
32934 if test -n "$BASH"; then
32935   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
32936 $as_echo "$BASH" >&6; }
32937 else
32938   { $as_echo "$as_me:$LINENO: result: no" >&5
32939 $as_echo "no" >&6; }
32940 fi
32941
32942
32943
32944
32945
32946
32947
32948     # Extract the first word of "sort", so it can be a program name with args.
32949 set dummy sort; ac_word=$2
32950 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32951 $as_echo_n "checking for $ac_word... " >&6; }
32952 if test "${ac_cv_path_SORT+set}" = set; then
32953   $as_echo_n "(cached) " >&6
32954 else
32955   case $SORT in
32956   [\\/]* | ?:[\\/]*)
32957   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
32958   ;;
32959   *)
32960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32961 for as_dir in $LOCSYSPATH
32962 do
32963   IFS=$as_save_IFS
32964   test -z "$as_dir" && as_dir=.
32965   for ac_exec_ext in '' $ac_executable_extensions; do
32966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32967     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
32968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32969     break 2
32970   fi
32971 done
32972 done
32973 IFS=$as_save_IFS
32974
32975   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
32976   ;;
32977 esac
32978 fi
32979 SORT=$ac_cv_path_SORT
32980 if test -n "$SORT"; then
32981   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
32982 $as_echo "$SORT" >&6; }
32983 else
32984   { $as_echo "$as_me:$LINENO: result: no" >&5
32985 $as_echo "no" >&6; }
32986 fi
32987
32988
32989
32990     # sort is only needed in the server build
32991     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
32992         { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
32993 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
32994    { (exit 1); exit 1; }; }
32995     fi
32996
32997
32998 cat >>confdefs.h <<_ACEOF
32999 #define SORT_PATH "$SORT"
33000 _ACEOF
33001
33002
33003
33004
33005     for ac_prog in Mail mailx mail
33006 do
33007   # Extract the first word of "$ac_prog", so it can be a program name with args.
33008 set dummy $ac_prog; ac_word=$2
33009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33010 $as_echo_n "checking for $ac_word... " >&6; }
33011 if test "${ac_cv_path_MAILER+set}" = set; then
33012   $as_echo_n "(cached) " >&6
33013 else
33014   case $MAILER in
33015   [\\/]* | ?:[\\/]*)
33016   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
33017   ;;
33018   *)
33019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33020 for as_dir in $PATH
33021 do
33022   IFS=$as_save_IFS
33023   test -z "$as_dir" && as_dir=.
33024   for ac_exec_ext in '' $ac_executable_extensions; do
33025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33026     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
33027     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33028     break 2
33029   fi
33030 done
33031 done
33032 IFS=$as_save_IFS
33033
33034   ;;
33035 esac
33036 fi
33037 MAILER=$ac_cv_path_MAILER
33038 if test -n "$MAILER"; then
33039   { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
33040 $as_echo "$MAILER" >&6; }
33041 else
33042   { $as_echo "$as_me:$LINENO: result: no" >&5
33043 $as_echo "no" >&6; }
33044 fi
33045
33046
33047   test -n "$MAILER" && break
33048 done
33049 test -n "$MAILER" || MAILER="NONE"
33050
33051     if test x"$MAILER" = x"NONE"; then
33052
33053     { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
33054 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
33055
33056
33057     cat <<AAW_EOF >>config.warnings
33058 WARNING: Amanda cannot send mail reports without a mailer.
33059 AAW_EOF
33060
33061
33062         DEFAULT_MAILER=""
33063     else
33064         DEFAULT_MAILER="$MAILER"
33065     fi
33066
33067 cat >>confdefs.h <<_ACEOF
33068 #define DEFAULT_MAILER "$DEFAULT_MAILER"
33069 _ACEOF
33070
33071
33072
33073
33074
33075     # Extract the first word of "mt", so it can be a program name with args.
33076 set dummy mt; ac_word=$2
33077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33078 $as_echo_n "checking for $ac_word... " >&6; }
33079 if test "${ac_cv_path_MT+set}" = set; then
33080   $as_echo_n "(cached) " >&6
33081 else
33082   case $MT in
33083   [\\/]* | ?:[\\/]*)
33084   ac_cv_path_MT="$MT" # Let the user override the test with a path.
33085   ;;
33086   *)
33087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088 for as_dir in $LOCSYSPATH
33089 do
33090   IFS=$as_save_IFS
33091   test -z "$as_dir" && as_dir=.
33092   for ac_exec_ext in '' $ac_executable_extensions; do
33093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33094     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
33095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33096     break 2
33097   fi
33098 done
33099 done
33100 IFS=$as_save_IFS
33101
33102   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
33103   ;;
33104 esac
33105 fi
33106 MT=$ac_cv_path_MT
33107 if test -n "$MT"; then
33108   { $as_echo "$as_me:$LINENO: result: $MT" >&5
33109 $as_echo "$MT" >&6; }
33110 else
33111   { $as_echo "$as_me:$LINENO: result: no" >&5
33112 $as_echo "no" >&6; }
33113 fi
33114
33115
33116
33117     case "$target" in
33118         *-hp-*) MT_FILE_FLAG="-t" ;;
33119         *) MT_FILE_FLAG="-f" ;;
33120     esac
33121
33122
33123
33124 cat >>confdefs.h <<_ACEOF
33125 #define MT_FILE_FLAG "$MT_FILE_FLAG"
33126 _ACEOF
33127
33128
33129
33130
33131
33132     for ac_prog in lpr lp
33133 do
33134   # Extract the first word of "$ac_prog", so it can be a program name with args.
33135 set dummy $ac_prog; ac_word=$2
33136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33137 $as_echo_n "checking for $ac_word... " >&6; }
33138 if test "${ac_cv_path_PRINT+set}" = set; then
33139   $as_echo_n "(cached) " >&6
33140 else
33141   case $PRINT in
33142   [\\/]* | ?:[\\/]*)
33143   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
33144   ;;
33145   *)
33146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33147 for as_dir in $PATH
33148 do
33149   IFS=$as_save_IFS
33150   test -z "$as_dir" && as_dir=.
33151   for ac_exec_ext in '' $ac_executable_extensions; do
33152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33153     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
33154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33155     break 2
33156   fi
33157 done
33158 done
33159 IFS=$as_save_IFS
33160
33161   ;;
33162 esac
33163 fi
33164 PRINT=$ac_cv_path_PRINT
33165 if test -n "$PRINT"; then
33166   { $as_echo "$as_me:$LINENO: result: $PRINT" >&5
33167 $as_echo "$PRINT" >&6; }
33168 else
33169   { $as_echo "$as_me:$LINENO: result: no" >&5
33170 $as_echo "no" >&6; }
33171 fi
33172
33173
33174   test -n "$PRINT" && break
33175 done
33176
33177     if test ! -z "$PRINT"; then
33178
33179 cat >>confdefs.h <<_ACEOF
33180 #define LPRCMD "$PRINT"
33181 _ACEOF
33182
33183
33184         { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
33185 $as_echo_n "checking which flag to use to select a printer... " >&6; }
33186 if test "${amanda_cv_printer_flag+set}" = set; then
33187   $as_echo_n "(cached) " >&6
33188 else
33189
33190             amanda_cv_printer_flag=$PRINTER_FLAG
33191             case "$PRINT" in
33192                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
33193                 lp|*/lp) amanda_cv_printer_flag="-d";;
33194             esac
33195
33196 fi
33197 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
33198 $as_echo "$amanda_cv_printer_flag" >&6; }
33199         if test ! -z "$amanda_cv_printer_flag"; then
33200
33201 cat >>confdefs.h <<_ACEOF
33202 #define LPRFLAG "$amanda_cv_printer_flag"
33203 _ACEOF
33204
33205         else
33206
33207     { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
33208 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
33209
33210
33211     cat <<AAW_EOF >>config.warnings
33212 WARNING: amanda will always print to the default printer
33213 AAW_EOF
33214
33215
33216         fi
33217     fi
33218
33219
33220
33221     # Extract the first word of "pcat", so it can be a program name with args.
33222 set dummy pcat; ac_word=$2
33223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33224 $as_echo_n "checking for $ac_word... " >&6; }
33225 if test "${ac_cv_path_PCAT+set}" = set; then
33226   $as_echo_n "(cached) " >&6
33227 else
33228   case $PCAT in
33229   [\\/]* | ?:[\\/]*)
33230   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
33231   ;;
33232   *)
33233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33234 for as_dir in $LOCSYSPATH
33235 do
33236   IFS=$as_save_IFS
33237   test -z "$as_dir" && as_dir=.
33238   for ac_exec_ext in '' $ac_executable_extensions; do
33239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33240     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
33241     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33242     break 2
33243   fi
33244 done
33245 done
33246 IFS=$as_save_IFS
33247
33248   ;;
33249 esac
33250 fi
33251 PCAT=$ac_cv_path_PCAT
33252 if test -n "$PCAT"; then
33253   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
33254 $as_echo "$PCAT" >&6; }
33255 else
33256   { $as_echo "$as_me:$LINENO: result: no" >&5
33257 $as_echo "no" >&6; }
33258 fi
33259
33260
33261
33262
33263
33264     for ac_prog in perl5 perl
33265 do
33266   # Extract the first word of "$ac_prog", so it can be a program name with args.
33267 set dummy $ac_prog; ac_word=$2
33268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33269 $as_echo_n "checking for $ac_word... " >&6; }
33270 if test "${ac_cv_path_PERL+set}" = set; then
33271   $as_echo_n "(cached) " >&6
33272 else
33273   case $PERL in
33274   [\\/]* | ?:[\\/]*)
33275   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33276   ;;
33277   *)
33278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33279 for as_dir in $LOCSYSPATH
33280 do
33281   IFS=$as_save_IFS
33282   test -z "$as_dir" && as_dir=.
33283   for ac_exec_ext in '' $ac_executable_extensions; do
33284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33285     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33287     break 2
33288   fi
33289 done
33290 done
33291 IFS=$as_save_IFS
33292
33293   ;;
33294 esac
33295 fi
33296 PERL=$ac_cv_path_PERL
33297 if test -n "$PERL"; then
33298   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33299 $as_echo "$PERL" >&6; }
33300 else
33301   { $as_echo "$as_me:$LINENO: result: no" >&5
33302 $as_echo "no" >&6; }
33303 fi
33304
33305
33306   test -n "$PERL" && break
33307 done
33308
33309
33310     # Make sure we have perl
33311 if test -z "$PERL"; then
33312 # Extract the first word of "perl", so it can be a program name with args.
33313 set dummy perl; ac_word=$2
33314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33315 $as_echo_n "checking for $ac_word... " >&6; }
33316 if test "${ac_cv_prog_PERL+set}" = set; then
33317   $as_echo_n "(cached) " >&6
33318 else
33319   if test -n "$PERL"; then
33320   ac_cv_prog_PERL="$PERL" # Let the user override the test.
33321 else
33322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33323 for as_dir in $PATH
33324 do
33325   IFS=$as_save_IFS
33326   test -z "$as_dir" && as_dir=.
33327   for ac_exec_ext in '' $ac_executable_extensions; do
33328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33329     ac_cv_prog_PERL="perl"
33330     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33331     break 2
33332   fi
33333 done
33334 done
33335 IFS=$as_save_IFS
33336
33337 fi
33338 fi
33339 PERL=$ac_cv_prog_PERL
33340 if test -n "$PERL"; then
33341   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33342 $as_echo "$PERL" >&6; }
33343 else
33344   { $as_echo "$as_me:$LINENO: result: no" >&5
33345 $as_echo "no" >&6; }
33346 fi
33347
33348
33349 fi
33350
33351 # Check if version of Perl is sufficient
33352 ac_perl_version="5.6.0"
33353
33354 if test "x$PERL" != "x"; then
33355   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
33356 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
33357   # NB: It would be nice to log the error if there is one, but we cannot rely
33358   # on autoconf internals
33359   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
33360   if test $? -ne 0; then
33361     { $as_echo "$as_me:$LINENO: result: no" >&5
33362 $as_echo "no" >&6; };
33363
33364         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
33365 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
33366    { (exit 1); exit 1; }; }
33367
33368   else
33369     { $as_echo "$as_me:$LINENO: result: ok" >&5
33370 $as_echo "ok" >&6; };
33371
33372   fi
33373 else
33374   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
33375 $as_echo "$as_me: WARNING: could not find perl" >&2;}
33376 fi
33377
33378
33379
33380
33381     for ac_prog in swig
33382 do
33383   # Extract the first word of "$ac_prog", so it can be a program name with args.
33384 set dummy $ac_prog; ac_word=$2
33385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33386 $as_echo_n "checking for $ac_word... " >&6; }
33387 if test "${ac_cv_path_SWIG+set}" = set; then
33388   $as_echo_n "(cached) " >&6
33389 else
33390   case $SWIG in
33391   [\\/]* | ?:[\\/]*)
33392   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33393   ;;
33394   *)
33395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396 for as_dir in $LOCSYSPATH
33397 do
33398   IFS=$as_save_IFS
33399   test -z "$as_dir" && as_dir=.
33400   for ac_exec_ext in '' $ac_executable_extensions; do
33401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33402     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33404     break 2
33405   fi
33406 done
33407 done
33408 IFS=$as_save_IFS
33409
33410   ;;
33411 esac
33412 fi
33413 SWIG=$ac_cv_path_SWIG
33414 if test -n "$SWIG"; then
33415   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33416 $as_echo "$SWIG" >&6; }
33417 else
33418   { $as_echo "$as_me:$LINENO: result: no" >&5
33419 $as_echo "no" >&6; }
33420 fi
33421
33422
33423   test -n "$SWIG" && break
33424 done
33425
33426
33427
33428         # Extract the first word of "swig", so it can be a program name with args.
33429 set dummy swig; ac_word=$2
33430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33431 $as_echo_n "checking for $ac_word... " >&6; }
33432 if test "${ac_cv_path_SWIG+set}" = set; then
33433   $as_echo_n "(cached) " >&6
33434 else
33435   case $SWIG in
33436   [\\/]* | ?:[\\/]*)
33437   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33438   ;;
33439   *)
33440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441 for as_dir in $PATH
33442 do
33443   IFS=$as_save_IFS
33444   test -z "$as_dir" && as_dir=.
33445   for ac_exec_ext in '' $ac_executable_extensions; do
33446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33447     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33449     break 2
33450   fi
33451 done
33452 done
33453 IFS=$as_save_IFS
33454
33455   ;;
33456 esac
33457 fi
33458 SWIG=$ac_cv_path_SWIG
33459 if test -n "$SWIG"; then
33460   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33461 $as_echo "$SWIG" >&6; }
33462 else
33463   { $as_echo "$as_me:$LINENO: result: no" >&5
33464 $as_echo "no" >&6; }
33465 fi
33466
33467
33468         if test -z "$SWIG" ; then
33469                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
33470         elif test -n "1.3.28" ; then
33471                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
33472 $as_echo_n "checking for SWIG version... " >&6; }
33473                 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'`
33474                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
33475 $as_echo "$swig_version" >&6; }
33476                 if test -n "$swig_version" ; then
33477                         # Calculate the required version number components
33478                         required=1.3.28
33479                         required_major=`echo $required | sed 's/[^0-9].*//'`
33480                         if test -z "$required_major" ; then
33481                                 required_major=0
33482                         fi
33483                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33484                         required_minor=`echo $required | sed 's/[^0-9].*//'`
33485                         if test -z "$required_minor" ; then
33486                                 required_minor=0
33487                         fi
33488                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33489                         required_patch=`echo $required | sed 's/[^0-9].*//'`
33490                         if test -z "$required_patch" ; then
33491                                 required_patch=0
33492                         fi
33493                         # Calculate the available version number components
33494                         available=$swig_version
33495                         available_major=`echo $available | sed 's/[^0-9].*//'`
33496                         if test -z "$available_major" ; then
33497                                 available_major=0
33498                         fi
33499                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33500                         available_minor=`echo $available | sed 's/[^0-9].*//'`
33501                         if test -z "$available_minor" ; then
33502                                 available_minor=0
33503                         fi
33504                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33505                         available_patch=`echo $available | sed 's/[^0-9].*//'`
33506                         if test -z "$available_patch" ; then
33507                                 available_patch=0
33508                         fi
33509                         if test $available_major -ne $required_major \
33510                                 -o $available_minor -ne $required_minor \
33511                                 -o $available_patch -lt $required_patch ; then
33512                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
33513                         else
33514                                 SWIG_LIB=`$SWIG -swiglib`
33515                         fi
33516                 else
33517                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
33518                 fi
33519         fi
33520
33521
33522
33523
33524     # Extract the first word of "ps", so it can be a program name with args.
33525 set dummy ps; ac_word=$2
33526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33527 $as_echo_n "checking for $ac_word... " >&6; }
33528 if test "${ac_cv_path_PS+set}" = set; then
33529   $as_echo_n "(cached) " >&6
33530 else
33531   case $PS in
33532   [\\/]* | ?:[\\/]*)
33533   ac_cv_path_PS="$PS" # Let the user override the test with a path.
33534   ;;
33535   *)
33536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33537 for as_dir in $PATH
33538 do
33539   IFS=$as_save_IFS
33540   test -z "$as_dir" && as_dir=.
33541   for ac_exec_ext in '' $ac_executable_extensions; do
33542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33543     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
33544     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33545     break 2
33546   fi
33547 done
33548 done
33549 IFS=$as_save_IFS
33550
33551   ;;
33552 esac
33553 fi
33554 PS=$ac_cv_path_PS
33555 if test -n "$PS"; then
33556   { $as_echo "$as_me:$LINENO: result: $PS" >&5
33557 $as_echo "$PS" >&6; }
33558 else
33559   { $as_echo "$as_me:$LINENO: result: no" >&5
33560 $as_echo "no" >&6; }
33561 fi
33562
33563
33564     { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
33565 $as_echo_n "checking ps argument to use... " >&6; }
33566     PS_ARGUMENT=
33567
33568     # ps is *very* non-portable, and across many systems, the same option
33569     # (e.g., -e) can mean different things.  So this macro tries to
33570     # special-case most known systems, and makes an effort to detect unknown
33571     # systems
33572     case "$target" in
33573         *-*-solaris*)
33574             PS_ARGUMENT="-eo pid,ppid,comm"
33575             ;;
33576
33577         *-*-linux-*)
33578             PS_ARGUMENT="-eo pid,ppid,command"
33579             ;;
33580
33581         *-*-*bsd*)
33582             PS_ARGUMENT="-axo pid,ppid,command"
33583             ;;
33584
33585         *-apple-darwin*)
33586             PS_ARGUMENT="-aAco pid,ppid,command"
33587             ;;
33588
33589         *-pc-cygwin)
33590             # Cygwin is special-cased in Amanda::Process
33591             PS_ARGUMENT=CYGWIN
33592             ;;
33593
33594         *-*-hpux*)
33595             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
33596             PS="UNIX95=1 $PS"
33597             PS_ARGUMENT="-eo pid,ppid,comm"
33598             ;;
33599
33600         *)
33601             for try in \
33602                 "-axo pid,ppid,command" \
33603                 "-aAco pid,ppid,command" \
33604                 "-eo pid,ppid,comm"
33605             do
33606                 ps $try >/dev/null 2>/dev/null
33607                 if test $? -eq 0; then
33608                     PS_ARGUMENT="$try"
33609                     break
33610                 fi
33611             done
33612             if test -z "$PS_ARGUMENT"; then
33613                 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
33614 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
33615    { (exit 1); exit 1; }; }
33616             fi
33617             ;;
33618     esac
33619
33620     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
33621 $as_echo "$PS_ARGUMENT" >&6; }
33622
33623
33624
33625
33626 #
33627 # Compiler / system characteristics
33628 #
33629
33630 #
33631 # compiler
33632 #
33633 if test $ac_cv_c_compiler_gnu = yes; then
33634     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
33635 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
33636 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
33637   $as_echo_n "(cached) " >&6
33638 else
33639     ac_pattern="Autoconf.*'x'"
33640   cat >conftest.$ac_ext <<_ACEOF
33641 /* confdefs.h.  */
33642 _ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h.  */
33646 #include <sgtty.h>
33647 Autoconf TIOCGETP
33648 _ACEOF
33649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33650   $EGREP "$ac_pattern" >/dev/null 2>&1; then
33651   ac_cv_prog_gcc_traditional=yes
33652 else
33653   ac_cv_prog_gcc_traditional=no
33654 fi
33655 rm -f conftest*
33656
33657
33658   if test $ac_cv_prog_gcc_traditional = no; then
33659     cat >conftest.$ac_ext <<_ACEOF
33660 /* confdefs.h.  */
33661 _ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h.  */
33665 #include <termio.h>
33666 Autoconf TCGETA
33667 _ACEOF
33668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33669   $EGREP "$ac_pattern" >/dev/null 2>&1; then
33670   ac_cv_prog_gcc_traditional=yes
33671 fi
33672 rm -f conftest*
33673
33674   fi
33675 fi
33676 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
33677 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
33678   if test $ac_cv_prog_gcc_traditional = yes; then
33679     CC="$CC -traditional"
33680   fi
33681 fi
33682
33683 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33684 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33685 if test "${ac_cv_c_const+set}" = set; then
33686   $as_echo_n "(cached) " >&6
33687 else
33688   cat >conftest.$ac_ext <<_ACEOF
33689 /* confdefs.h.  */
33690 _ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h.  */
33694
33695 int
33696 main ()
33697 {
33698 /* FIXME: Include the comments suggested by Paul. */
33699 #ifndef __cplusplus
33700   /* Ultrix mips cc rejects this.  */
33701   typedef int charset[2];
33702   const charset cs;
33703   /* SunOS 4.1.1 cc rejects this.  */
33704   char const *const *pcpcc;
33705   char **ppc;
33706   /* NEC SVR4.0.2 mips cc rejects this.  */
33707   struct point {int x, y;};
33708   static struct point const zero = {0,0};
33709   /* AIX XL C 1.02.0.0 rejects this.
33710      It does not let you subtract one const X* pointer from another in
33711      an arm of an if-expression whose if-part is not a constant
33712      expression */
33713   const char *g = "string";
33714   pcpcc = &g + (g ? g-g : 0);
33715   /* HPUX 7.0 cc rejects these. */
33716   ++pcpcc;
33717   ppc = (char**) pcpcc;
33718   pcpcc = (char const *const *) ppc;
33719   { /* SCO 3.2v4 cc rejects this.  */
33720     char *t;
33721     char const *s = 0 ? (char *) 0 : (char const *) 0;
33722
33723     *t++ = 0;
33724     if (s) return 0;
33725   }
33726   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33727     int x[] = {25, 17};
33728     const int *foo = &x[0];
33729     ++foo;
33730   }
33731   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33732     typedef const int *iptr;
33733     iptr p = 0;
33734     ++p;
33735   }
33736   { /* AIX XL C 1.02.0.0 rejects this saying
33737        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33738     struct s { int j; const int *ap[3]; };
33739     struct s *b; b->j = 5;
33740   }
33741   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33742     const int foo = 10;
33743     if (!foo) return 0;
33744   }
33745   return !cs[0] && !zero.x;
33746 #endif
33747
33748   ;
33749   return 0;
33750 }
33751 _ACEOF
33752 rm -f conftest.$ac_objext
33753 if { (ac_try="$ac_compile"
33754 case "(($ac_try" in
33755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756   *) ac_try_echo=$ac_try;;
33757 esac
33758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33759 $as_echo "$ac_try_echo") >&5
33760   (eval "$ac_compile") 2>conftest.er1
33761   ac_status=$?
33762   grep -v '^ *+' conftest.er1 >conftest.err
33763   rm -f conftest.er1
33764   cat conftest.err >&5
33765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766   (exit $ac_status); } && {
33767          test -z "$ac_c_werror_flag" ||
33768          test ! -s conftest.err
33769        } && test -s conftest.$ac_objext; then
33770   ac_cv_c_const=yes
33771 else
33772   $as_echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33774
33775         ac_cv_c_const=no
33776 fi
33777
33778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33779 fi
33780 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33781 $as_echo "$ac_cv_c_const" >&6; }
33782 if test $ac_cv_c_const = no; then
33783
33784 cat >>confdefs.h <<\_ACEOF
33785 #define const /**/
33786 _ACEOF
33787
33788 fi
33789
33790
33791  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33792 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
33793 if test "${ac_cv_c_bigendian+set}" = set; then
33794   $as_echo_n "(cached) " >&6
33795 else
33796   ac_cv_c_bigendian=unknown
33797     # See if we're dealing with a universal compiler.
33798     cat >conftest.$ac_ext <<_ACEOF
33799 /* confdefs.h.  */
33800 _ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h.  */
33804 #ifndef __APPLE_CC__
33805                not a universal capable compiler
33806              #endif
33807              typedef int dummy;
33808
33809 _ACEOF
33810 rm -f conftest.$ac_objext
33811 if { (ac_try="$ac_compile"
33812 case "(($ac_try" in
33813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814   *) ac_try_echo=$ac_try;;
33815 esac
33816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33817 $as_echo "$ac_try_echo") >&5
33818   (eval "$ac_compile") 2>conftest.er1
33819   ac_status=$?
33820   grep -v '^ *+' conftest.er1 >conftest.err
33821   rm -f conftest.er1
33822   cat conftest.err >&5
33823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824   (exit $ac_status); } && {
33825          test -z "$ac_c_werror_flag" ||
33826          test ! -s conftest.err
33827        } && test -s conftest.$ac_objext; then
33828
33829         # Check for potential -arch flags.  It is not universal unless
33830         # there are some -arch flags.  Note that *ppc* also matches
33831         # ppc64.  This check is also rather less than ideal.
33832         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
33833           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
33834         esac
33835 else
33836   $as_echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839
33840 fi
33841
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843     if test $ac_cv_c_bigendian = unknown; then
33844       # See if sys/param.h defines the BYTE_ORDER macro.
33845       cat >conftest.$ac_ext <<_ACEOF
33846 /* confdefs.h.  */
33847 _ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h.  */
33851 #include <sys/types.h>
33852              #include <sys/param.h>
33853
33854 int
33855 main ()
33856 {
33857 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33858                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33859                      && LITTLE_ENDIAN)
33860               bogus endian macros
33861              #endif
33862
33863   ;
33864   return 0;
33865 }
33866 _ACEOF
33867 rm -f conftest.$ac_objext
33868 if { (ac_try="$ac_compile"
33869 case "(($ac_try" in
33870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871   *) ac_try_echo=$ac_try;;
33872 esac
33873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33874 $as_echo "$ac_try_echo") >&5
33875   (eval "$ac_compile") 2>conftest.er1
33876   ac_status=$?
33877   grep -v '^ *+' conftest.er1 >conftest.err
33878   rm -f conftest.er1
33879   cat conftest.err >&5
33880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); } && {
33882          test -z "$ac_c_werror_flag" ||
33883          test ! -s conftest.err
33884        } && test -s conftest.$ac_objext; then
33885   # It does; now see whether it defined to BIG_ENDIAN or not.
33886          cat >conftest.$ac_ext <<_ACEOF
33887 /* confdefs.h.  */
33888 _ACEOF
33889 cat confdefs.h >>conftest.$ac_ext
33890 cat >>conftest.$ac_ext <<_ACEOF
33891 /* end confdefs.h.  */
33892 #include <sys/types.h>
33893                 #include <sys/param.h>
33894
33895 int
33896 main ()
33897 {
33898 #if BYTE_ORDER != BIG_ENDIAN
33899                  not big endian
33900                 #endif
33901
33902   ;
33903   return 0;
33904 }
33905 _ACEOF
33906 rm -f conftest.$ac_objext
33907 if { (ac_try="$ac_compile"
33908 case "(($ac_try" in
33909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33910   *) ac_try_echo=$ac_try;;
33911 esac
33912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33913 $as_echo "$ac_try_echo") >&5
33914   (eval "$ac_compile") 2>conftest.er1
33915   ac_status=$?
33916   grep -v '^ *+' conftest.er1 >conftest.err
33917   rm -f conftest.er1
33918   cat conftest.err >&5
33919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920   (exit $ac_status); } && {
33921          test -z "$ac_c_werror_flag" ||
33922          test ! -s conftest.err
33923        } && test -s conftest.$ac_objext; then
33924   ac_cv_c_bigendian=yes
33925 else
33926   $as_echo "$as_me: failed program was:" >&5
33927 sed 's/^/| /' conftest.$ac_ext >&5
33928
33929         ac_cv_c_bigendian=no
33930 fi
33931
33932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33933 else
33934   $as_echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937
33938 fi
33939
33940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941     fi
33942     if test $ac_cv_c_bigendian = unknown; then
33943       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33944       cat >conftest.$ac_ext <<_ACEOF
33945 /* confdefs.h.  */
33946 _ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h.  */
33950 #include <limits.h>
33951
33952 int
33953 main ()
33954 {
33955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33956               bogus endian macros
33957              #endif
33958
33959   ;
33960   return 0;
33961 }
33962 _ACEOF
33963 rm -f conftest.$ac_objext
33964 if { (ac_try="$ac_compile"
33965 case "(($ac_try" in
33966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967   *) ac_try_echo=$ac_try;;
33968 esac
33969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33970 $as_echo "$ac_try_echo") >&5
33971   (eval "$ac_compile") 2>conftest.er1
33972   ac_status=$?
33973   grep -v '^ *+' conftest.er1 >conftest.err
33974   rm -f conftest.er1
33975   cat conftest.err >&5
33976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977   (exit $ac_status); } && {
33978          test -z "$ac_c_werror_flag" ||
33979          test ! -s conftest.err
33980        } && test -s conftest.$ac_objext; then
33981   # It does; now see whether it defined to _BIG_ENDIAN or not.
33982          cat >conftest.$ac_ext <<_ACEOF
33983 /* confdefs.h.  */
33984 _ACEOF
33985 cat confdefs.h >>conftest.$ac_ext
33986 cat >>conftest.$ac_ext <<_ACEOF
33987 /* end confdefs.h.  */
33988 #include <limits.h>
33989
33990 int
33991 main ()
33992 {
33993 #ifndef _BIG_ENDIAN
33994                  not big endian
33995                 #endif
33996
33997   ;
33998   return 0;
33999 }
34000 _ACEOF
34001 rm -f conftest.$ac_objext
34002 if { (ac_try="$ac_compile"
34003 case "(($ac_try" in
34004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005   *) ac_try_echo=$ac_try;;
34006 esac
34007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34008 $as_echo "$ac_try_echo") >&5
34009   (eval "$ac_compile") 2>conftest.er1
34010   ac_status=$?
34011   grep -v '^ *+' conftest.er1 >conftest.err
34012   rm -f conftest.er1
34013   cat conftest.err >&5
34014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); } && {
34016          test -z "$ac_c_werror_flag" ||
34017          test ! -s conftest.err
34018        } && test -s conftest.$ac_objext; then
34019   ac_cv_c_bigendian=yes
34020 else
34021   $as_echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.$ac_ext >&5
34023
34024         ac_cv_c_bigendian=no
34025 fi
34026
34027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34028 else
34029   $as_echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34031
34032
34033 fi
34034
34035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34036     fi
34037     if test $ac_cv_c_bigendian = unknown; then
34038       # Compile a test program.
34039       if test "$cross_compiling" = yes; then
34040   # Try to guess by grepping values from an object file.
34041          cat >conftest.$ac_ext <<_ACEOF
34042 /* confdefs.h.  */
34043 _ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h.  */
34047 short int ascii_mm[] =
34048                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34049                 short int ascii_ii[] =
34050                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34051                 int use_ascii (int i) {
34052                   return ascii_mm[i] + ascii_ii[i];
34053                 }
34054                 short int ebcdic_ii[] =
34055                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34056                 short int ebcdic_mm[] =
34057                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34058                 int use_ebcdic (int i) {
34059                   return ebcdic_mm[i] + ebcdic_ii[i];
34060                 }
34061                 extern int foo;
34062
34063 int
34064 main ()
34065 {
34066 return use_ascii (foo) == use_ebcdic (foo);
34067   ;
34068   return 0;
34069 }
34070 _ACEOF
34071 rm -f conftest.$ac_objext
34072 if { (ac_try="$ac_compile"
34073 case "(($ac_try" in
34074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34075   *) ac_try_echo=$ac_try;;
34076 esac
34077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34078 $as_echo "$ac_try_echo") >&5
34079   (eval "$ac_compile") 2>conftest.er1
34080   ac_status=$?
34081   grep -v '^ *+' conftest.er1 >conftest.err
34082   rm -f conftest.er1
34083   cat conftest.err >&5
34084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085   (exit $ac_status); } && {
34086          test -z "$ac_c_werror_flag" ||
34087          test ! -s conftest.err
34088        } && test -s conftest.$ac_objext; then
34089   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34090               ac_cv_c_bigendian=yes
34091             fi
34092             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34093               if test "$ac_cv_c_bigendian" = unknown; then
34094                 ac_cv_c_bigendian=no
34095               else
34096                 # finding both strings is unlikely to happen, but who knows?
34097                 ac_cv_c_bigendian=unknown
34098               fi
34099             fi
34100 else
34101   $as_echo "$as_me: failed program was:" >&5
34102 sed 's/^/| /' conftest.$ac_ext >&5
34103
34104
34105 fi
34106
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 else
34109   cat >conftest.$ac_ext <<_ACEOF
34110 /* confdefs.h.  */
34111 _ACEOF
34112 cat confdefs.h >>conftest.$ac_ext
34113 cat >>conftest.$ac_ext <<_ACEOF
34114 /* end confdefs.h.  */
34115 $ac_includes_default
34116 int
34117 main ()
34118 {
34119
34120              /* Are we little or big endian?  From Harbison&Steele.  */
34121              union
34122              {
34123                long int l;
34124                char c[sizeof (long int)];
34125              } u;
34126              u.l = 1;
34127              return u.c[sizeof (long int) - 1] == 1;
34128
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest$ac_exeext
34134 if { (ac_try="$ac_link"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34140 $as_echo "$ac_try_echo") >&5
34141   (eval "$ac_link") 2>&5
34142   ac_status=$?
34143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34145   { (case "(($ac_try" in
34146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34147   *) ac_try_echo=$ac_try;;
34148 esac
34149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34150 $as_echo "$ac_try_echo") >&5
34151   (eval "$ac_try") 2>&5
34152   ac_status=$?
34153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154   (exit $ac_status); }; }; then
34155   ac_cv_c_bigendian=no
34156 else
34157   $as_echo "$as_me: program exited with status $ac_status" >&5
34158 $as_echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34160
34161 ( exit $ac_status )
34162 ac_cv_c_bigendian=yes
34163 fi
34164 rm -rf conftest.dSYM
34165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34166 fi
34167
34168
34169     fi
34170 fi
34171 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34172 $as_echo "$ac_cv_c_bigendian" >&6; }
34173  case $ac_cv_c_bigendian in #(
34174    yes)
34175      cat >>confdefs.h <<\_ACEOF
34176 #define WORDS_BIGENDIAN 1
34177 _ACEOF
34178 ;; #(
34179    no)
34180       ;; #(
34181    universal)
34182
34183 cat >>confdefs.h <<\_ACEOF
34184 #define AC_APPLE_UNIVERSAL_BUILD 1
34185 _ACEOF
34186
34187      ;; #(
34188    *)
34189      { { $as_echo "$as_me:$LINENO: error: unknown endianness
34190  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34191 $as_echo "$as_me: error: unknown endianness
34192  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34193    { (exit 1); exit 1; }; } ;;
34194  esac
34195
34196
34197 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
34198  if test "x$GCC" = "xyes"; then
34199   GCC_COMPILER_TRUE=
34200   GCC_COMPILER_FALSE='#'
34201 else
34202   GCC_COMPILER_TRUE='#'
34203   GCC_COMPILER_FALSE=
34204 fi
34205
34206
34207 #
34208 # Warnings
34209 #
34210
34211
34212
34213
34214     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
34215 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
34216     if test "x$GCC" = "xyes"; then
34217                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34218            $CC -v --help 2>&1) |
34219          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
34220                 if test $? -eq 0; then
34221             found_warning=yes
34222             { $as_echo "$as_me:$LINENO: result: yes" >&5
34223 $as_echo "yes" >&6; }
34224         else
34225             found_warning=no
34226             { $as_echo "$as_me:$LINENO: result: no" >&5
34227 $as_echo "no" >&6; }
34228         fi
34229     else
34230         found_warning=no
34231         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34232 $as_echo "no (not using gcc)" >&6; }
34233     fi
34234
34235     if test x"$found_warning" = x"yes"; then
34236         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
34237
34238
34239     else
34240         :
34241     fi
34242
34243
34244
34245
34246
34247
34248     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
34249 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
34250     if test "x$GCC" = "xyes"; then
34251                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34252            $CC -v --help 2>&1) |
34253          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
34254                 if test $? -eq 0; then
34255             found_warning=yes
34256             { $as_echo "$as_me:$LINENO: result: yes" >&5
34257 $as_echo "yes" >&6; }
34258         else
34259             found_warning=no
34260             { $as_echo "$as_me:$LINENO: result: no" >&5
34261 $as_echo "no" >&6; }
34262         fi
34263     else
34264         found_warning=no
34265         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34266 $as_echo "no (not using gcc)" >&6; }
34267     fi
34268
34269     if test x"$found_warning" = x"yes"; then
34270         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
34271
34272
34273     else
34274         :
34275     fi
34276
34277
34278
34279
34280
34281
34282     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
34283 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
34284     if test "x$GCC" = "xyes"; then
34285                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34286            $CC -v --help 2>&1) |
34287          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34288                 if test $? -eq 0; then
34289             found_warning=yes
34290             { $as_echo "$as_me:$LINENO: result: yes" >&5
34291 $as_echo "yes" >&6; }
34292         else
34293             found_warning=no
34294             { $as_echo "$as_me:$LINENO: result: no" >&5
34295 $as_echo "no" >&6; }
34296         fi
34297     else
34298         found_warning=no
34299         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34300 $as_echo "no (not using gcc)" >&6; }
34301     fi
34302
34303     if test x"$found_warning" = x"yes"; then
34304         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
34305
34306
34307     else
34308         :
34309     fi
34310
34311
34312
34313
34314
34315
34316     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
34317 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
34318     if test "x$GCC" = "xyes"; then
34319                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34320            $CC -v --help 2>&1) |
34321          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34322                 if test $? -eq 0; then
34323             found_warning=yes
34324             { $as_echo "$as_me:$LINENO: result: yes" >&5
34325 $as_echo "yes" >&6; }
34326         else
34327             found_warning=no
34328             { $as_echo "$as_me:$LINENO: result: no" >&5
34329 $as_echo "no" >&6; }
34330         fi
34331     else
34332         found_warning=no
34333         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34334 $as_echo "no (not using gcc)" >&6; }
34335     fi
34336
34337     if test x"$found_warning" = x"yes"; then
34338         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
34339
34340
34341     else
34342         :
34343     fi
34344
34345
34346
34347
34348
34349
34350     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
34351 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
34352     if test "x$GCC" = "xyes"; then
34353                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34354            $CC -v --help 2>&1) |
34355          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
34356                 if test $? -eq 0; then
34357             found_warning=yes
34358             { $as_echo "$as_me:$LINENO: result: yes" >&5
34359 $as_echo "yes" >&6; }
34360         else
34361             found_warning=no
34362             { $as_echo "$as_me:$LINENO: result: no" >&5
34363 $as_echo "no" >&6; }
34364         fi
34365     else
34366         found_warning=no
34367         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34368 $as_echo "no (not using gcc)" >&6; }
34369     fi
34370
34371     if test x"$found_warning" = x"yes"; then
34372         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
34373
34374
34375     else
34376         :
34377     fi
34378
34379
34380
34381
34382
34383
34384     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
34385 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
34386     if test "x$GCC" = "xyes"; then
34387                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34388            $CC -v --help 2>&1) |
34389          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
34390                 if test $? -eq 0; then
34391             found_warning=yes
34392             { $as_echo "$as_me:$LINENO: result: yes" >&5
34393 $as_echo "yes" >&6; }
34394         else
34395             found_warning=no
34396             { $as_echo "$as_me:$LINENO: result: no" >&5
34397 $as_echo "no" >&6; }
34398         fi
34399     else
34400         found_warning=no
34401         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34402 $as_echo "no (not using gcc)" >&6; }
34403     fi
34404
34405     if test x"$found_warning" = x"yes"; then
34406         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
34407
34408
34409     else
34410         :
34411     fi
34412
34413
34414
34415
34416
34417
34418     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
34419 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
34420     if test "x$GCC" = "xyes"; then
34421                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34422            $CC -v --help 2>&1) |
34423          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
34424                 if test $? -eq 0; then
34425             found_warning=yes
34426             { $as_echo "$as_me:$LINENO: result: yes" >&5
34427 $as_echo "yes" >&6; }
34428         else
34429             found_warning=no
34430             { $as_echo "$as_me:$LINENO: result: no" >&5
34431 $as_echo "no" >&6; }
34432         fi
34433     else
34434         found_warning=no
34435         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34436 $as_echo "no (not using gcc)" >&6; }
34437     fi
34438
34439     if test x"$found_warning" = x"yes"; then
34440         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
34441
34442
34443     else
34444         :
34445     fi
34446
34447
34448
34449
34450
34451
34452     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
34453 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
34454     if test "x$GCC" = "xyes"; then
34455                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34456            $CC -v --help 2>&1) |
34457          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
34458                 if test $? -eq 0; then
34459             found_warning=yes
34460             { $as_echo "$as_me:$LINENO: result: yes" >&5
34461 $as_echo "yes" >&6; }
34462         else
34463             found_warning=no
34464             { $as_echo "$as_me:$LINENO: result: no" >&5
34465 $as_echo "no" >&6; }
34466         fi
34467     else
34468         found_warning=no
34469         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34470 $as_echo "no (not using gcc)" >&6; }
34471     fi
34472
34473     if test x"$found_warning" = x"yes"; then
34474         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
34475
34476
34477     else
34478         :
34479     fi
34480
34481
34482
34483
34484
34485
34486     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
34487 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
34488     if test "x$GCC" = "xyes"; then
34489                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34490            $CC -v --help 2>&1) |
34491          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
34492                 if test $? -eq 0; then
34493             found_warning=yes
34494             { $as_echo "$as_me:$LINENO: result: yes" >&5
34495 $as_echo "yes" >&6; }
34496         else
34497             found_warning=no
34498             { $as_echo "$as_me:$LINENO: result: no" >&5
34499 $as_echo "no" >&6; }
34500         fi
34501     else
34502         found_warning=no
34503         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34504 $as_echo "no (not using gcc)" >&6; }
34505     fi
34506
34507     if test x"$found_warning" = x"yes"; then
34508         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
34509
34510
34511     else
34512         :
34513     fi
34514
34515
34516
34517
34518
34519
34520     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
34521 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
34522     if test "x$GCC" = "xyes"; then
34523                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34524            $CC -v --help 2>&1) |
34525          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
34526                 if test $? -eq 0; then
34527             found_warning=yes
34528             { $as_echo "$as_me:$LINENO: result: yes" >&5
34529 $as_echo "yes" >&6; }
34530         else
34531             found_warning=no
34532             { $as_echo "$as_me:$LINENO: result: no" >&5
34533 $as_echo "no" >&6; }
34534         fi
34535     else
34536         found_warning=no
34537         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34538 $as_echo "no (not using gcc)" >&6; }
34539     fi
34540
34541     if test x"$found_warning" = x"yes"; then
34542         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
34543
34544
34545     else
34546         :
34547     fi
34548
34549
34550
34551     # test for -W'warning', then add the 'no-' version.
34552
34553
34554
34555     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
34556 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
34557     if test "x$GCC" = "xyes"; then
34558                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34559            $CC -v --help 2>&1) |
34560          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
34561                 if test $? -eq 0; then
34562             found_warning=yes
34563             { $as_echo "$as_me:$LINENO: result: yes" >&5
34564 $as_echo "yes" >&6; }
34565         else
34566             found_warning=no
34567             { $as_echo "$as_me:$LINENO: result: no" >&5
34568 $as_echo "no" >&6; }
34569         fi
34570     else
34571         found_warning=no
34572         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34573 $as_echo "no (not using gcc)" >&6; }
34574     fi
34575
34576     if test x"$found_warning" = x"yes"; then
34577         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
34578
34579
34580     else
34581         :
34582     fi
34583
34584
34585
34586     # test for -W'warning', then add the 'no-' version.
34587
34588
34589
34590     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
34591 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
34592     if test "x$GCC" = "xyes"; then
34593                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34594            $CC -v --help 2>&1) |
34595          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
34596                 if test $? -eq 0; then
34597             found_warning=yes
34598             { $as_echo "$as_me:$LINENO: result: yes" >&5
34599 $as_echo "yes" >&6; }
34600         else
34601             found_warning=no
34602             { $as_echo "$as_me:$LINENO: result: no" >&5
34603 $as_echo "no" >&6; }
34604         fi
34605     else
34606         found_warning=no
34607         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34608 $as_echo "no (not using gcc)" >&6; }
34609     fi
34610
34611     if test x"$found_warning" = x"yes"; then
34612         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
34613
34614
34615     else
34616         :
34617     fi
34618
34619
34620
34621
34622 #
34623 # Libtool
34624 #
34625 # Check whether --enable-shared was given.
34626 if test "${enable_shared+set}" = set; then
34627   enableval=$enable_shared; p=${PACKAGE-default}
34628     case $enableval in
34629     yes) enable_shared=yes ;;
34630     no) enable_shared=no ;;
34631     *)
34632       enable_shared=no
34633       # Look at the argument we got.  We use all the common list separators.
34634       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34635       for pkg in $enableval; do
34636         IFS="$lt_save_ifs"
34637         if test "X$pkg" = "X$p"; then
34638           enable_shared=yes
34639         fi
34640       done
34641       IFS="$lt_save_ifs"
34642       ;;
34643     esac
34644 else
34645   enable_shared=yes
34646 fi
34647
34648
34649 # Check whether --enable-static was given.
34650 if test "${enable_static+set}" = set; then
34651   enableval=$enable_static; p=${PACKAGE-default}
34652     case $enableval in
34653     yes) enable_static=yes ;;
34654     no) enable_static=no ;;
34655     *)
34656      enable_static=no
34657       # Look at the argument we got.  We use all the common list separators.
34658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34659       for pkg in $enableval; do
34660         IFS="$lt_save_ifs"
34661         if test "X$pkg" = "X$p"; then
34662           enable_static=yes
34663         fi
34664       done
34665       IFS="$lt_save_ifs"
34666       ;;
34667     esac
34668 else
34669   enable_static=yes
34670 fi
34671
34672
34673 # Check whether --enable-fast-install was given.
34674 if test "${enable_fast_install+set}" = set; then
34675   enableval=$enable_fast_install; p=${PACKAGE-default}
34676     case $enableval in
34677     yes) enable_fast_install=yes ;;
34678     no) enable_fast_install=no ;;
34679     *)
34680       enable_fast_install=no
34681       # Look at the argument we got.  We use all the common list separators.
34682       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34683       for pkg in $enableval; do
34684         IFS="$lt_save_ifs"
34685         if test "X$pkg" = "X$p"; then
34686           enable_fast_install=yes
34687         fi
34688       done
34689       IFS="$lt_save_ifs"
34690       ;;
34691     esac
34692 else
34693   enable_fast_install=yes
34694 fi
34695
34696
34697 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
34698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
34699 if test "${lt_cv_path_SED+set}" = set; then
34700   $as_echo_n "(cached) " >&6
34701 else
34702   # Loop through the user's path and test for sed and gsed.
34703 # Then use that list of sed's as ones to test for truncation.
34704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34705 for as_dir in $PATH
34706 do
34707   IFS=$as_save_IFS
34708   test -z "$as_dir" && as_dir=.
34709   for lt_ac_prog in sed gsed; do
34710     for ac_exec_ext in '' $ac_executable_extensions; do
34711       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
34712         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
34713       fi
34714     done
34715   done
34716 done
34717 lt_ac_max=0
34718 lt_ac_count=0
34719 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
34720 # along with /bin/sed that truncates output.
34721 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
34722   test ! -f $lt_ac_sed && continue
34723   cat /dev/null > conftest.in
34724   lt_ac_count=0
34725   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
34726   # Check for GNU sed and select it if it is found.
34727   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
34728     lt_cv_path_SED=$lt_ac_sed
34729     break
34730   fi
34731   while true; do
34732     cat conftest.in conftest.in >conftest.tmp
34733     mv conftest.tmp conftest.in
34734     cp conftest.in conftest.nl
34735     echo >>conftest.nl
34736     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
34737     cmp -s conftest.out conftest.nl || break
34738     # 10000 chars as input seems more than enough
34739     test $lt_ac_count -gt 10 && break
34740     lt_ac_count=`expr $lt_ac_count + 1`
34741     if test $lt_ac_count -gt $lt_ac_max; then
34742       lt_ac_max=$lt_ac_count
34743       lt_cv_path_SED=$lt_ac_sed
34744     fi
34745   done
34746 done
34747
34748 fi
34749
34750 SED=$lt_cv_path_SED
34751 { $as_echo "$as_me:$LINENO: result: $SED" >&5
34752 $as_echo "$SED" >&6; }
34753
34754
34755 # Check whether --with-gnu-ld was given.
34756 if test "${with_gnu_ld+set}" = set; then
34757   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34758 else
34759   with_gnu_ld=no
34760 fi
34761
34762 ac_prog=ld
34763 if test "$GCC" = yes; then
34764   # Check if gcc -print-prog-name=ld gives a path.
34765   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
34766 $as_echo_n "checking for ld used by $CC... " >&6; }
34767   case $host in
34768   *-*-mingw*)
34769     # gcc leaves a trailing carriage return which upsets mingw
34770     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34771   *)
34772     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34773   esac
34774   case $ac_prog in
34775     # Accept absolute paths.
34776     [\\/]* | ?:[\\/]*)
34777       re_direlt='/[^/][^/]*/\.\./'
34778       # Canonicalize the pathname of ld
34779       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
34780       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34781         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
34782       done
34783       test -z "$LD" && LD="$ac_prog"
34784       ;;
34785   "")
34786     # If it fails, then pretend we aren't using GCC.
34787     ac_prog=ld
34788     ;;
34789   *)
34790     # If it is relative, then search for the first ld in PATH.
34791     with_gnu_ld=unknown
34792     ;;
34793   esac
34794 elif test "$with_gnu_ld" = yes; then
34795   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
34796 $as_echo_n "checking for GNU ld... " >&6; }
34797 else
34798   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34799 $as_echo_n "checking for non-GNU ld... " >&6; }
34800 fi
34801 if test "${lt_cv_path_LD+set}" = set; then
34802   $as_echo_n "(cached) " >&6
34803 else
34804   if test -z "$LD"; then
34805   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34806   for ac_dir in $PATH; do
34807     IFS="$lt_save_ifs"
34808     test -z "$ac_dir" && ac_dir=.
34809     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34810       lt_cv_path_LD="$ac_dir/$ac_prog"
34811       # Check to see if the program is GNU ld.  I'd rather use --version,
34812       # but apparently some variants of GNU ld only accept -v.
34813       # Break only if it was the GNU/non-GNU ld that we prefer.
34814       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
34815       *GNU* | *'with BFD'*)
34816         test "$with_gnu_ld" != no && break
34817         ;;
34818       *)
34819         test "$with_gnu_ld" != yes && break
34820         ;;
34821       esac
34822     fi
34823   done
34824   IFS="$lt_save_ifs"
34825 else
34826   lt_cv_path_LD="$LD" # Let the user override the test with a path.
34827 fi
34828 fi
34829
34830 LD="$lt_cv_path_LD"
34831 if test -n "$LD"; then
34832   { $as_echo "$as_me:$LINENO: result: $LD" >&5
34833 $as_echo "$LD" >&6; }
34834 else
34835   { $as_echo "$as_me:$LINENO: result: no" >&5
34836 $as_echo "no" >&6; }
34837 fi
34838 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34839 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34840    { (exit 1); exit 1; }; }
34841 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34842 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
34843 if test "${lt_cv_prog_gnu_ld+set}" = set; then
34844   $as_echo_n "(cached) " >&6
34845 else
34846   # I'd rather use --version here, but apparently some GNU lds only accept -v.
34847 case `$LD -v 2>&1 </dev/null` in
34848 *GNU* | *'with BFD'*)
34849   lt_cv_prog_gnu_ld=yes
34850   ;;
34851 *)
34852   lt_cv_prog_gnu_ld=no
34853   ;;
34854 esac
34855 fi
34856 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
34857 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
34858 with_gnu_ld=$lt_cv_prog_gnu_ld
34859
34860
34861 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
34862 $as_echo_n "checking for $LD option to reload object files... " >&6; }
34863 if test "${lt_cv_ld_reload_flag+set}" = set; then
34864   $as_echo_n "(cached) " >&6
34865 else
34866   lt_cv_ld_reload_flag='-r'
34867 fi
34868 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
34869 $as_echo "$lt_cv_ld_reload_flag" >&6; }
34870 reload_flag=$lt_cv_ld_reload_flag
34871 case $reload_flag in
34872 "" | " "*) ;;
34873 *) reload_flag=" $reload_flag" ;;
34874 esac
34875 reload_cmds='$LD$reload_flag -o $output$reload_objs'
34876 case $host_os in
34877   darwin*)
34878     if test "$GCC" = yes; then
34879       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
34880     else
34881       reload_cmds='$LD$reload_flag -o $output$reload_objs'
34882     fi
34883     ;;
34884 esac
34885
34886 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
34887 $as_echo_n "checking for BSD-compatible nm... " >&6; }
34888 if test "${lt_cv_path_NM+set}" = set; then
34889   $as_echo_n "(cached) " >&6
34890 else
34891   if test -n "$NM"; then
34892   # Let the user override the test.
34893   lt_cv_path_NM="$NM"
34894 else
34895   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34896   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
34897     IFS="$lt_save_ifs"
34898     test -z "$ac_dir" && ac_dir=.
34899     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
34900     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
34901       # Check to see if the nm accepts a BSD-compat flag.
34902       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
34903       #   nm: unknown option "B" ignored
34904       # Tru64's nm complains that /dev/null is an invalid object file
34905       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
34906       */dev/null* | *'Invalid file or object type'*)
34907         lt_cv_path_NM="$tmp_nm -B"
34908         break
34909         ;;
34910       *)
34911         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34912         */dev/null*)
34913           lt_cv_path_NM="$tmp_nm -p"
34914           break
34915           ;;
34916         *)
34917           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34918           continue # so that we can try to find one that supports BSD flags
34919           ;;
34920         esac
34921       esac
34922     fi
34923   done
34924   IFS="$lt_save_ifs"
34925   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
34926 fi
34927 fi
34928 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
34929 $as_echo "$lt_cv_path_NM" >&6; }
34930 NM="$lt_cv_path_NM"
34931
34932 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
34933 $as_echo_n "checking whether ln -s works... " >&6; }
34934 LN_S=$as_ln_s
34935 if test "$LN_S" = "ln -s"; then
34936   { $as_echo "$as_me:$LINENO: result: yes" >&5
34937 $as_echo "yes" >&6; }
34938 else
34939   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34940 $as_echo "no, using $LN_S" >&6; }
34941 fi
34942
34943 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
34944 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
34945 if test "${lt_cv_deplibs_check_method+set}" = set; then
34946   $as_echo_n "(cached) " >&6
34947 else
34948   lt_cv_file_magic_cmd='$MAGIC_CMD'
34949 lt_cv_file_magic_test_file=
34950 lt_cv_deplibs_check_method='unknown'
34951 # Need to set the preceding variable on all platforms that support
34952 # interlibrary dependencies.
34953 # 'none' -- dependencies not supported.
34954 # `unknown' -- same as none, but documents that we really don't know.
34955 # 'pass_all' -- all dependencies passed with no checks.
34956 # 'test_compile' -- check by making test program.
34957 # 'file_magic [[regex]]' -- check by looking for files in library path
34958 # which responds to the $file_magic_cmd with a given extended regex.
34959 # If you have `file' or equivalent on your system and you're not sure
34960 # whether `pass_all' will *always* work, you probably want this one.
34961
34962 case $host_os in
34963 aix4* | aix5*)
34964   lt_cv_deplibs_check_method=pass_all
34965   ;;
34966
34967 beos*)
34968   lt_cv_deplibs_check_method=pass_all
34969   ;;
34970
34971 bsdi[45]*)
34972   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
34973   lt_cv_file_magic_cmd='/usr/bin/file -L'
34974   lt_cv_file_magic_test_file=/shlib/libc.so
34975   ;;
34976
34977 cygwin*)
34978   # func_win32_libid is a shell function defined in ltmain.sh
34979   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
34980   lt_cv_file_magic_cmd='func_win32_libid'
34981   ;;
34982
34983 mingw* | pw32*)
34984   # Base MSYS/MinGW do not provide the 'file' command needed by
34985   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
34986   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
34987   lt_cv_file_magic_cmd='$OBJDUMP -f'
34988   ;;
34989
34990 darwin* | rhapsody*)
34991   lt_cv_deplibs_check_method=pass_all
34992   ;;
34993
34994 freebsd* | kfreebsd*-gnu | dragonfly*)
34995   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
34996     case $host_cpu in
34997     i*86 )
34998       # Not sure whether the presence of OpenBSD here was a mistake.
34999       # Let's accept both of them until this is cleared up.
35000       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
35001       lt_cv_file_magic_cmd=/usr/bin/file
35002       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35003       ;;
35004     esac
35005   else
35006     lt_cv_deplibs_check_method=pass_all
35007   fi
35008   ;;
35009
35010 gnu*)
35011   lt_cv_deplibs_check_method=pass_all
35012   ;;
35013
35014 hpux10.20* | hpux11*)
35015   lt_cv_file_magic_cmd=/usr/bin/file
35016   case $host_cpu in
35017   ia64*)
35018     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
35019     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
35020     ;;
35021   hppa*64*)
35022     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]'
35023     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
35024     ;;
35025   *)
35026     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
35027     lt_cv_file_magic_test_file=/usr/lib/libc.sl
35028     ;;
35029   esac
35030   ;;
35031
35032 irix5* | irix6* | nonstopux*)
35033   case $LD in
35034   *-32|*"-32 ") libmagic=32-bit;;
35035   *-n32|*"-n32 ") libmagic=N32;;
35036   *-64|*"-64 ") libmagic=64-bit;;
35037   *) libmagic=never-match;;
35038   esac
35039   lt_cv_deplibs_check_method=pass_all
35040   ;;
35041
35042 # This must be Linux ELF.
35043 linux*)
35044   lt_cv_deplibs_check_method=pass_all
35045   ;;
35046
35047 netbsd*)
35048   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
35049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35050   else
35051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
35052   fi
35053   ;;
35054
35055 newos6*)
35056   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
35057   lt_cv_file_magic_cmd=/usr/bin/file
35058   lt_cv_file_magic_test_file=/usr/lib/libnls.so
35059   ;;
35060
35061 nto-qnx*)
35062   lt_cv_deplibs_check_method=unknown
35063   ;;
35064
35065 openbsd*)
35066   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
35068   else
35069     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35070   fi
35071   ;;
35072
35073 osf3* | osf4* | osf5*)
35074   lt_cv_deplibs_check_method=pass_all
35075   ;;
35076
35077 sco3.2v5*)
35078   lt_cv_deplibs_check_method=pass_all
35079   ;;
35080
35081 solaris*)
35082   lt_cv_deplibs_check_method=pass_all
35083   ;;
35084
35085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35086   case $host_vendor in
35087   motorola)
35088     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]'
35089     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
35090     ;;
35091   ncr)
35092     lt_cv_deplibs_check_method=pass_all
35093     ;;
35094   sequent)
35095     lt_cv_file_magic_cmd='/bin/file'
35096     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
35097     ;;
35098   sni)
35099     lt_cv_file_magic_cmd='/bin/file'
35100     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
35101     lt_cv_file_magic_test_file=/lib/libc.so
35102     ;;
35103   siemens)
35104     lt_cv_deplibs_check_method=pass_all
35105     ;;
35106   esac
35107   ;;
35108
35109 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
35110   lt_cv_deplibs_check_method=pass_all
35111   ;;
35112 esac
35113
35114 fi
35115 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
35116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
35117 file_magic_cmd=$lt_cv_file_magic_cmd
35118 deplibs_check_method=$lt_cv_deplibs_check_method
35119 test -z "$deplibs_check_method" && deplibs_check_method=unknown
35120
35121
35122 # If no C compiler was specified, use CC.
35123 LTCC=${LTCC-"$CC"}
35124
35125 # Allow CC to be a program name with arguments.
35126 compiler=$CC
35127
35128 # Check whether --enable-libtool-lock was given.
35129 if test "${enable_libtool_lock+set}" = set; then
35130   enableval=$enable_libtool_lock;
35131 fi
35132
35133 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35134
35135 # Some flags need to be propagated to the compiler or linker for good
35136 # libtool support.
35137 case $host in
35138 ia64-*-hpux*)
35139   # Find out which ABI we are using.
35140   echo 'int i;' > conftest.$ac_ext
35141   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35142   (eval $ac_compile) 2>&5
35143   ac_status=$?
35144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); }; then
35146     case `/usr/bin/file conftest.$ac_objext` in
35147     *ELF-32*)
35148       HPUX_IA64_MODE="32"
35149       ;;
35150     *ELF-64*)
35151       HPUX_IA64_MODE="64"
35152       ;;
35153     esac
35154   fi
35155   rm -rf conftest*
35156   ;;
35157 *-*-irix6*)
35158   # Find out which ABI we are using.
35159   echo '#line 35159 "configure"' > conftest.$ac_ext
35160   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35161   (eval $ac_compile) 2>&5
35162   ac_status=$?
35163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164   (exit $ac_status); }; then
35165    if test "$lt_cv_prog_gnu_ld" = yes; then
35166     case `/usr/bin/file conftest.$ac_objext` in
35167     *32-bit*)
35168       LD="${LD-ld} -melf32bsmip"
35169       ;;
35170     *N32*)
35171       LD="${LD-ld} -melf32bmipn32"
35172       ;;
35173     *64-bit*)
35174       LD="${LD-ld} -melf64bmip"
35175       ;;
35176     esac
35177    else
35178     case `/usr/bin/file conftest.$ac_objext` in
35179     *32-bit*)
35180       LD="${LD-ld} -32"
35181       ;;
35182     *N32*)
35183       LD="${LD-ld} -n32"
35184       ;;
35185     *64-bit*)
35186       LD="${LD-ld} -64"
35187       ;;
35188     esac
35189    fi
35190   fi
35191   rm -rf conftest*
35192   ;;
35193
35194 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
35195   # Find out which ABI we are using.
35196   echo 'int i;' > conftest.$ac_ext
35197   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35198   (eval $ac_compile) 2>&5
35199   ac_status=$?
35200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201   (exit $ac_status); }; then
35202     case `/usr/bin/file conftest.o` in
35203     *32-bit*)
35204       case $host in
35205         x86_64-*linux*)
35206           LD="${LD-ld} -m elf_i386"
35207           ;;
35208         ppc64-*linux*|powerpc64-*linux*)
35209           LD="${LD-ld} -m elf32ppclinux"
35210           ;;
35211         s390x-*linux*)
35212           LD="${LD-ld} -m elf_s390"
35213           ;;
35214         sparc64-*linux*)
35215           LD="${LD-ld} -m elf32_sparc"
35216           ;;
35217       esac
35218       ;;
35219     *64-bit*)
35220       case $host in
35221         x86_64-*linux*)
35222           LD="${LD-ld} -m elf_x86_64"
35223           ;;
35224         ppc*-*linux*|powerpc*-*linux*)
35225           LD="${LD-ld} -m elf64ppc"
35226           ;;
35227         s390*-*linux*)
35228           LD="${LD-ld} -m elf64_s390"
35229           ;;
35230         sparc*-*linux*)
35231           LD="${LD-ld} -m elf64_sparc"
35232           ;;
35233       esac
35234       ;;
35235     esac
35236   fi
35237   rm -rf conftest*
35238   ;;
35239
35240 *-*-sco3.2v5*)
35241   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
35242   SAVE_CFLAGS="$CFLAGS"
35243   CFLAGS="$CFLAGS -belf"
35244   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
35245 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
35246 if test "${lt_cv_cc_needs_belf+set}" = set; then
35247   $as_echo_n "(cached) " >&6
35248 else
35249   ac_ext=c
35250 ac_cpp='$CPP $CPPFLAGS'
35251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35254
35255      cat >conftest.$ac_ext <<_ACEOF
35256 /* confdefs.h.  */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h.  */
35261
35262 int
35263 main ()
35264 {
35265
35266   ;
35267   return 0;
35268 }
35269 _ACEOF
35270 rm -f conftest.$ac_objext conftest$ac_exeext
35271 if { (ac_try="$ac_link"
35272 case "(($ac_try" in
35273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35274   *) ac_try_echo=$ac_try;;
35275 esac
35276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35277 $as_echo "$ac_try_echo") >&5
35278   (eval "$ac_link") 2>conftest.er1
35279   ac_status=$?
35280   grep -v '^ *+' conftest.er1 >conftest.err
35281   rm -f conftest.er1
35282   cat conftest.err >&5
35283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284   (exit $ac_status); } && {
35285          test -z "$ac_c_werror_flag" ||
35286          test ! -s conftest.err
35287        } && test -s conftest$ac_exeext && {
35288          test "$cross_compiling" = yes ||
35289          $as_test_x conftest$ac_exeext
35290        }; then
35291   lt_cv_cc_needs_belf=yes
35292 else
35293   $as_echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35295
35296         lt_cv_cc_needs_belf=no
35297 fi
35298
35299 rm -rf conftest.dSYM
35300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35301       conftest$ac_exeext conftest.$ac_ext
35302      ac_ext=c
35303 ac_cpp='$CPP $CPPFLAGS'
35304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35307
35308 fi
35309 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
35310 $as_echo "$lt_cv_cc_needs_belf" >&6; }
35311   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
35312     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
35313     CFLAGS="$SAVE_CFLAGS"
35314   fi
35315   ;;
35316
35317 esac
35318
35319 need_locks="$enable_libtool_lock"
35320
35321
35322
35323 for ac_header in dlfcn.h
35324 do
35325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35327   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35328 $as_echo_n "checking for $ac_header... " >&6; }
35329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35330   $as_echo_n "(cached) " >&6
35331 fi
35332 ac_res=`eval 'as_val=${'$as_ac_Header'}
35333                  $as_echo "$as_val"'`
35334                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35335 $as_echo "$ac_res" >&6; }
35336 else
35337   # Is the header compilable?
35338 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35339 $as_echo_n "checking $ac_header usability... " >&6; }
35340 cat >conftest.$ac_ext <<_ACEOF
35341 /* confdefs.h.  */
35342 _ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h.  */
35346 $ac_includes_default
35347 #include <$ac_header>
35348 _ACEOF
35349 rm -f conftest.$ac_objext
35350 if { (ac_try="$ac_compile"
35351 case "(($ac_try" in
35352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35353   *) ac_try_echo=$ac_try;;
35354 esac
35355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35356 $as_echo "$ac_try_echo") >&5
35357   (eval "$ac_compile") 2>conftest.er1
35358   ac_status=$?
35359   grep -v '^ *+' conftest.er1 >conftest.err
35360   rm -f conftest.er1
35361   cat conftest.err >&5
35362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363   (exit $ac_status); } && {
35364          test -z "$ac_c_werror_flag" ||
35365          test ! -s conftest.err
35366        } && test -s conftest.$ac_objext; then
35367   ac_header_compiler=yes
35368 else
35369   $as_echo "$as_me: failed program was:" >&5
35370 sed 's/^/| /' conftest.$ac_ext >&5
35371
35372         ac_header_compiler=no
35373 fi
35374
35375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35376 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35377 $as_echo "$ac_header_compiler" >&6; }
35378
35379 # Is the header present?
35380 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35381 $as_echo_n "checking $ac_header presence... " >&6; }
35382 cat >conftest.$ac_ext <<_ACEOF
35383 /* confdefs.h.  */
35384 _ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h.  */
35388 #include <$ac_header>
35389 _ACEOF
35390 if { (ac_try="$ac_cpp conftest.$ac_ext"
35391 case "(($ac_try" in
35392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35393   *) ac_try_echo=$ac_try;;
35394 esac
35395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35396 $as_echo "$ac_try_echo") >&5
35397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35398   ac_status=$?
35399   grep -v '^ *+' conftest.er1 >conftest.err
35400   rm -f conftest.er1
35401   cat conftest.err >&5
35402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403   (exit $ac_status); } >/dev/null && {
35404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35405          test ! -s conftest.err
35406        }; then
35407   ac_header_preproc=yes
35408 else
35409   $as_echo "$as_me: failed program was:" >&5
35410 sed 's/^/| /' conftest.$ac_ext >&5
35411
35412   ac_header_preproc=no
35413 fi
35414
35415 rm -f conftest.err conftest.$ac_ext
35416 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35417 $as_echo "$ac_header_preproc" >&6; }
35418
35419 # So?  What about this header?
35420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35421   yes:no: )
35422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35423 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35426     ac_header_preproc=yes
35427     ;;
35428   no:yes:* )
35429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35430 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35432 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35434 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35436 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35440 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35441
35442     ;;
35443 esac
35444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35445 $as_echo_n "checking for $ac_header... " >&6; }
35446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35447   $as_echo_n "(cached) " >&6
35448 else
35449   eval "$as_ac_Header=\$ac_header_preproc"
35450 fi
35451 ac_res=`eval 'as_val=${'$as_ac_Header'}
35452                  $as_echo "$as_val"'`
35453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35454 $as_echo "$ac_res" >&6; }
35455
35456 fi
35457 as_val=`eval 'as_val=${'$as_ac_Header'}
35458                  $as_echo "$as_val"'`
35459    if test "x$as_val" = x""yes; then
35460   cat >>confdefs.h <<_ACEOF
35461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35462 _ACEOF
35463
35464 fi
35465
35466 done
35467
35468 ac_ext=cpp
35469 ac_cpp='$CXXCPP $CPPFLAGS'
35470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35473 if test -z "$CXX"; then
35474   if test -n "$CCC"; then
35475     CXX=$CCC
35476   else
35477     if test -n "$ac_tool_prefix"; then
35478   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35479   do
35480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35483 $as_echo_n "checking for $ac_word... " >&6; }
35484 if test "${ac_cv_prog_CXX+set}" = set; then
35485   $as_echo_n "(cached) " >&6
35486 else
35487   if test -n "$CXX"; then
35488   ac_cv_prog_CXX="$CXX" # Let the user override the test.
35489 else
35490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35491 for as_dir in $PATH
35492 do
35493   IFS=$as_save_IFS
35494   test -z "$as_dir" && as_dir=.
35495   for ac_exec_ext in '' $ac_executable_extensions; do
35496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35497     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
35498     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35499     break 2
35500   fi
35501 done
35502 done
35503 IFS=$as_save_IFS
35504
35505 fi
35506 fi
35507 CXX=$ac_cv_prog_CXX
35508 if test -n "$CXX"; then
35509   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
35510 $as_echo "$CXX" >&6; }
35511 else
35512   { $as_echo "$as_me:$LINENO: result: no" >&5
35513 $as_echo "no" >&6; }
35514 fi
35515
35516
35517     test -n "$CXX" && break
35518   done
35519 fi
35520 if test -z "$CXX"; then
35521   ac_ct_CXX=$CXX
35522   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35523 do
35524   # Extract the first word of "$ac_prog", so it can be a program name with args.
35525 set dummy $ac_prog; ac_word=$2
35526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35527 $as_echo_n "checking for $ac_word... " >&6; }
35528 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
35529   $as_echo_n "(cached) " >&6
35530 else
35531   if test -n "$ac_ct_CXX"; then
35532   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35533 else
35534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35535 for as_dir in $PATH
35536 do
35537   IFS=$as_save_IFS
35538   test -z "$as_dir" && as_dir=.
35539   for ac_exec_ext in '' $ac_executable_extensions; do
35540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35541     ac_cv_prog_ac_ct_CXX="$ac_prog"
35542     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35543     break 2
35544   fi
35545 done
35546 done
35547 IFS=$as_save_IFS
35548
35549 fi
35550 fi
35551 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
35552 if test -n "$ac_ct_CXX"; then
35553   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
35554 $as_echo "$ac_ct_CXX" >&6; }
35555 else
35556   { $as_echo "$as_me:$LINENO: result: no" >&5
35557 $as_echo "no" >&6; }
35558 fi
35559
35560
35561   test -n "$ac_ct_CXX" && break
35562 done
35563
35564   if test "x$ac_ct_CXX" = x; then
35565     CXX="g++"
35566   else
35567     case $cross_compiling:$ac_tool_warned in
35568 yes:)
35569 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
35570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35571 ac_tool_warned=yes ;;
35572 esac
35573     CXX=$ac_ct_CXX
35574   fi
35575 fi
35576
35577   fi
35578 fi
35579 # Provide some information about the compiler.
35580 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
35581 set X $ac_compile
35582 ac_compiler=$2
35583 { (ac_try="$ac_compiler --version >&5"
35584 case "(($ac_try" in
35585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586   *) ac_try_echo=$ac_try;;
35587 esac
35588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35589 $as_echo "$ac_try_echo") >&5
35590   (eval "$ac_compiler --version >&5") 2>&5
35591   ac_status=$?
35592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593   (exit $ac_status); }
35594 { (ac_try="$ac_compiler -v >&5"
35595 case "(($ac_try" in
35596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35597   *) ac_try_echo=$ac_try;;
35598 esac
35599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35600 $as_echo "$ac_try_echo") >&5
35601   (eval "$ac_compiler -v >&5") 2>&5
35602   ac_status=$?
35603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604   (exit $ac_status); }
35605 { (ac_try="$ac_compiler -V >&5"
35606 case "(($ac_try" in
35607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35608   *) ac_try_echo=$ac_try;;
35609 esac
35610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35611 $as_echo "$ac_try_echo") >&5
35612   (eval "$ac_compiler -V >&5") 2>&5
35613   ac_status=$?
35614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615   (exit $ac_status); }
35616
35617 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
35618 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
35619 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
35620   $as_echo_n "(cached) " >&6
35621 else
35622   cat >conftest.$ac_ext <<_ACEOF
35623 /* confdefs.h.  */
35624 _ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h.  */
35628
35629 int
35630 main ()
35631 {
35632 #ifndef __GNUC__
35633        choke me
35634 #endif
35635
35636   ;
35637   return 0;
35638 }
35639 _ACEOF
35640 rm -f conftest.$ac_objext
35641 if { (ac_try="$ac_compile"
35642 case "(($ac_try" in
35643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35644   *) ac_try_echo=$ac_try;;
35645 esac
35646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35647 $as_echo "$ac_try_echo") >&5
35648   (eval "$ac_compile") 2>conftest.er1
35649   ac_status=$?
35650   grep -v '^ *+' conftest.er1 >conftest.err
35651   rm -f conftest.er1
35652   cat conftest.err >&5
35653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654   (exit $ac_status); } && {
35655          test -z "$ac_cxx_werror_flag" ||
35656          test ! -s conftest.err
35657        } && test -s conftest.$ac_objext; then
35658   ac_compiler_gnu=yes
35659 else
35660   $as_echo "$as_me: failed program was:" >&5
35661 sed 's/^/| /' conftest.$ac_ext >&5
35662
35663         ac_compiler_gnu=no
35664 fi
35665
35666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35668
35669 fi
35670 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
35671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35672 if test $ac_compiler_gnu = yes; then
35673   GXX=yes
35674 else
35675   GXX=
35676 fi
35677 ac_test_CXXFLAGS=${CXXFLAGS+set}
35678 ac_save_CXXFLAGS=$CXXFLAGS
35679 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
35680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
35681 if test "${ac_cv_prog_cxx_g+set}" = set; then
35682   $as_echo_n "(cached) " >&6
35683 else
35684   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
35685    ac_cxx_werror_flag=yes
35686    ac_cv_prog_cxx_g=no
35687    CXXFLAGS="-g"
35688    cat >conftest.$ac_ext <<_ACEOF
35689 /* confdefs.h.  */
35690 _ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h.  */
35694
35695 int
35696 main ()
35697 {
35698
35699   ;
35700   return 0;
35701 }
35702 _ACEOF
35703 rm -f conftest.$ac_objext
35704 if { (ac_try="$ac_compile"
35705 case "(($ac_try" in
35706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35707   *) ac_try_echo=$ac_try;;
35708 esac
35709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35710 $as_echo "$ac_try_echo") >&5
35711   (eval "$ac_compile") 2>conftest.er1
35712   ac_status=$?
35713   grep -v '^ *+' conftest.er1 >conftest.err
35714   rm -f conftest.er1
35715   cat conftest.err >&5
35716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717   (exit $ac_status); } && {
35718          test -z "$ac_cxx_werror_flag" ||
35719          test ! -s conftest.err
35720        } && test -s conftest.$ac_objext; then
35721   ac_cv_prog_cxx_g=yes
35722 else
35723   $as_echo "$as_me: failed program was:" >&5
35724 sed 's/^/| /' conftest.$ac_ext >&5
35725
35726         CXXFLAGS=""
35727       cat >conftest.$ac_ext <<_ACEOF
35728 /* confdefs.h.  */
35729 _ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h.  */
35733
35734 int
35735 main ()
35736 {
35737
35738   ;
35739   return 0;
35740 }
35741 _ACEOF
35742 rm -f conftest.$ac_objext
35743 if { (ac_try="$ac_compile"
35744 case "(($ac_try" in
35745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746   *) ac_try_echo=$ac_try;;
35747 esac
35748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35749 $as_echo "$ac_try_echo") >&5
35750   (eval "$ac_compile") 2>conftest.er1
35751   ac_status=$?
35752   grep -v '^ *+' conftest.er1 >conftest.err
35753   rm -f conftest.er1
35754   cat conftest.err >&5
35755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); } && {
35757          test -z "$ac_cxx_werror_flag" ||
35758          test ! -s conftest.err
35759        } && test -s conftest.$ac_objext; then
35760   :
35761 else
35762   $as_echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35764
35765         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35766          CXXFLAGS="-g"
35767          cat >conftest.$ac_ext <<_ACEOF
35768 /* confdefs.h.  */
35769 _ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h.  */
35773
35774 int
35775 main ()
35776 {
35777
35778   ;
35779   return 0;
35780 }
35781 _ACEOF
35782 rm -f conftest.$ac_objext
35783 if { (ac_try="$ac_compile"
35784 case "(($ac_try" in
35785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35786   *) ac_try_echo=$ac_try;;
35787 esac
35788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35789 $as_echo "$ac_try_echo") >&5
35790   (eval "$ac_compile") 2>conftest.er1
35791   ac_status=$?
35792   grep -v '^ *+' conftest.er1 >conftest.err
35793   rm -f conftest.er1
35794   cat conftest.err >&5
35795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796   (exit $ac_status); } && {
35797          test -z "$ac_cxx_werror_flag" ||
35798          test ! -s conftest.err
35799        } && test -s conftest.$ac_objext; then
35800   ac_cv_prog_cxx_g=yes
35801 else
35802   $as_echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35804
35805
35806 fi
35807
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35809 fi
35810
35811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35812 fi
35813
35814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35815    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35816 fi
35817 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
35818 $as_echo "$ac_cv_prog_cxx_g" >&6; }
35819 if test "$ac_test_CXXFLAGS" = set; then
35820   CXXFLAGS=$ac_save_CXXFLAGS
35821 elif test $ac_cv_prog_cxx_g = yes; then
35822   if test "$GXX" = yes; then
35823     CXXFLAGS="-g -O2"
35824   else
35825     CXXFLAGS="-g"
35826   fi
35827 else
35828   if test "$GXX" = yes; then
35829     CXXFLAGS="-O2"
35830   else
35831     CXXFLAGS=
35832   fi
35833 fi
35834 ac_ext=cpp
35835 ac_cpp='$CXXCPP $CPPFLAGS'
35836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35839
35840 depcc="$CXX"  am_compiler_list=
35841
35842 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
35843 $as_echo_n "checking dependency style of $depcc... " >&6; }
35844 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
35845   $as_echo_n "(cached) " >&6
35846 else
35847   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35848   # We make a subdir and do the tests there.  Otherwise we can end up
35849   # making bogus files that we don't know about and never remove.  For
35850   # instance it was reported that on HP-UX the gcc test will end up
35851   # making a dummy file named `D' -- because `-MD' means `put the output
35852   # in D'.
35853   mkdir conftest.dir
35854   # Copy depcomp to subdir because otherwise we won't find it if we're
35855   # using a relative directory.
35856   cp "$am_depcomp" conftest.dir
35857   cd conftest.dir
35858   # We will build objects and dependencies in a subdirectory because
35859   # it helps to detect inapplicable dependency modes.  For instance
35860   # both Tru64's cc and ICC support -MD to output dependencies as a
35861   # side effect of compilation, but ICC will put the dependencies in
35862   # the current directory while Tru64 will put them in the object
35863   # directory.
35864   mkdir sub
35865
35866   am_cv_CXX_dependencies_compiler_type=none
35867   if test "$am_compiler_list" = ""; then
35868      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35869   fi
35870   for depmode in $am_compiler_list; do
35871     # Setup a source with many dependencies, because some compilers
35872     # like to wrap large dependency lists on column 80 (with \), and
35873     # we should not choose a depcomp mode which is confused by this.
35874     #
35875     # We need to recreate these files for each test, as the compiler may
35876     # overwrite some of them when testing with obscure command lines.
35877     # This happens at least with the AIX C compiler.
35878     : > sub/conftest.c
35879     for i in 1 2 3 4 5 6; do
35880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
35881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35882       # Solaris 8's {/usr,}/bin/sh.
35883       touch sub/conftst$i.h
35884     done
35885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35886
35887     case $depmode in
35888     nosideeffect)
35889       # after this tag, mechanisms are not by side-effect, so they'll
35890       # only be used when explicitly requested
35891       if test "x$enable_dependency_tracking" = xyes; then
35892         continue
35893       else
35894         break
35895       fi
35896       ;;
35897     none) break ;;
35898     esac
35899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
35900     # mode.  It turns out that the SunPro C++ compiler does not properly
35901     # handle `-M -o', and we need to detect this.
35902     if depmode=$depmode \
35903        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
35904        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35905        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
35906          >/dev/null 2>conftest.err &&
35907        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35908        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35909        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
35910        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35911       # icc doesn't choke on unknown options, it will just issue warnings
35912       # or remarks (even with -Werror).  So we grep stderr for any message
35913       # that says an option was ignored or not supported.
35914       # When given -MP, icc 7.0 and 7.1 complain thusly:
35915       #   icc: Command line warning: ignoring option '-M'; no argument required
35916       # The diagnosis changed in icc 8.0:
35917       #   icc: Command line remark: option '-MP' not supported
35918       if (grep 'ignoring option' conftest.err ||
35919           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35920         am_cv_CXX_dependencies_compiler_type=$depmode
35921         break
35922       fi
35923     fi
35924   done
35925
35926   cd ..
35927   rm -rf conftest.dir
35928 else
35929   am_cv_CXX_dependencies_compiler_type=none
35930 fi
35931
35932 fi
35933 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
35934 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
35935 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
35936
35937  if
35938   test "x$enable_dependency_tracking" != xno \
35939   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
35940   am__fastdepCXX_TRUE=
35941   am__fastdepCXX_FALSE='#'
35942 else
35943   am__fastdepCXX_TRUE='#'
35944   am__fastdepCXX_FALSE=
35945 fi
35946
35947
35948
35949
35950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
35951     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
35952     (test "X$CXX" != "Xg++"))) ; then
35953   ac_ext=cpp
35954 ac_cpp='$CXXCPP $CPPFLAGS'
35955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35958 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
35959 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
35960 if test -z "$CXXCPP"; then
35961   if test "${ac_cv_prog_CXXCPP+set}" = set; then
35962   $as_echo_n "(cached) " >&6
35963 else
35964       # Double quotes because CXXCPP needs to be expanded
35965     for CXXCPP in "$CXX -E" "/lib/cpp"
35966     do
35967       ac_preproc_ok=false
35968 for ac_cxx_preproc_warn_flag in '' yes
35969 do
35970   # Use a header file that comes with gcc, so configuring glibc
35971   # with a fresh cross-compiler works.
35972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35973   # <limits.h> exists even on freestanding compilers.
35974   # On the NeXT, cc -E runs the code through the compiler's parser,
35975   # not just through cpp. "Syntax error" is here to catch this case.
35976   cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h.  */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h.  */
35982 #ifdef __STDC__
35983 # include <limits.h>
35984 #else
35985 # include <assert.h>
35986 #endif
35987                      Syntax error
35988 _ACEOF
35989 if { (ac_try="$ac_cpp conftest.$ac_ext"
35990 case "(($ac_try" in
35991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35992   *) ac_try_echo=$ac_try;;
35993 esac
35994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35995 $as_echo "$ac_try_echo") >&5
35996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35997   ac_status=$?
35998   grep -v '^ *+' conftest.er1 >conftest.err
35999   rm -f conftest.er1
36000   cat conftest.err >&5
36001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); } >/dev/null && {
36003          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36004          test ! -s conftest.err
36005        }; then
36006   :
36007 else
36008   $as_echo "$as_me: failed program was:" >&5
36009 sed 's/^/| /' conftest.$ac_ext >&5
36010
36011   # Broken: fails on valid input.
36012 continue
36013 fi
36014
36015 rm -f conftest.err conftest.$ac_ext
36016
36017   # OK, works on sane cases.  Now check whether nonexistent headers
36018   # can be detected and how.
36019   cat >conftest.$ac_ext <<_ACEOF
36020 /* confdefs.h.  */
36021 _ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h.  */
36025 #include <ac_nonexistent.h>
36026 _ACEOF
36027 if { (ac_try="$ac_cpp conftest.$ac_ext"
36028 case "(($ac_try" in
36029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030   *) ac_try_echo=$ac_try;;
36031 esac
36032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36033 $as_echo "$ac_try_echo") >&5
36034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36035   ac_status=$?
36036   grep -v '^ *+' conftest.er1 >conftest.err
36037   rm -f conftest.er1
36038   cat conftest.err >&5
36039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040   (exit $ac_status); } >/dev/null && {
36041          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36042          test ! -s conftest.err
36043        }; then
36044   # Broken: success on invalid input.
36045 continue
36046 else
36047   $as_echo "$as_me: failed program was:" >&5
36048 sed 's/^/| /' conftest.$ac_ext >&5
36049
36050   # Passes both tests.
36051 ac_preproc_ok=:
36052 break
36053 fi
36054
36055 rm -f conftest.err conftest.$ac_ext
36056
36057 done
36058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36059 rm -f conftest.err conftest.$ac_ext
36060 if $ac_preproc_ok; then
36061   break
36062 fi
36063
36064     done
36065     ac_cv_prog_CXXCPP=$CXXCPP
36066
36067 fi
36068   CXXCPP=$ac_cv_prog_CXXCPP
36069 else
36070   ac_cv_prog_CXXCPP=$CXXCPP
36071 fi
36072 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
36073 $as_echo "$CXXCPP" >&6; }
36074 ac_preproc_ok=false
36075 for ac_cxx_preproc_warn_flag in '' yes
36076 do
36077   # Use a header file that comes with gcc, so configuring glibc
36078   # with a fresh cross-compiler works.
36079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36080   # <limits.h> exists even on freestanding compilers.
36081   # On the NeXT, cc -E runs the code through the compiler's parser,
36082   # not just through cpp. "Syntax error" is here to catch this case.
36083   cat >conftest.$ac_ext <<_ACEOF
36084 /* confdefs.h.  */
36085 _ACEOF
36086 cat confdefs.h >>conftest.$ac_ext
36087 cat >>conftest.$ac_ext <<_ACEOF
36088 /* end confdefs.h.  */
36089 #ifdef __STDC__
36090 # include <limits.h>
36091 #else
36092 # include <assert.h>
36093 #endif
36094                      Syntax error
36095 _ACEOF
36096 if { (ac_try="$ac_cpp conftest.$ac_ext"
36097 case "(($ac_try" in
36098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36099   *) ac_try_echo=$ac_try;;
36100 esac
36101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36102 $as_echo "$ac_try_echo") >&5
36103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36104   ac_status=$?
36105   grep -v '^ *+' conftest.er1 >conftest.err
36106   rm -f conftest.er1
36107   cat conftest.err >&5
36108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109   (exit $ac_status); } >/dev/null && {
36110          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36111          test ! -s conftest.err
36112        }; then
36113   :
36114 else
36115   $as_echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36117
36118   # Broken: fails on valid input.
36119 continue
36120 fi
36121
36122 rm -f conftest.err conftest.$ac_ext
36123
36124   # OK, works on sane cases.  Now check whether nonexistent headers
36125   # can be detected and how.
36126   cat >conftest.$ac_ext <<_ACEOF
36127 /* confdefs.h.  */
36128 _ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h.  */
36132 #include <ac_nonexistent.h>
36133 _ACEOF
36134 if { (ac_try="$ac_cpp conftest.$ac_ext"
36135 case "(($ac_try" in
36136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36137   *) ac_try_echo=$ac_try;;
36138 esac
36139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36140 $as_echo "$ac_try_echo") >&5
36141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36142   ac_status=$?
36143   grep -v '^ *+' conftest.er1 >conftest.err
36144   rm -f conftest.er1
36145   cat conftest.err >&5
36146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147   (exit $ac_status); } >/dev/null && {
36148          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36149          test ! -s conftest.err
36150        }; then
36151   # Broken: success on invalid input.
36152 continue
36153 else
36154   $as_echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36156
36157   # Passes both tests.
36158 ac_preproc_ok=:
36159 break
36160 fi
36161
36162 rm -f conftest.err conftest.$ac_ext
36163
36164 done
36165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36166 rm -f conftest.err conftest.$ac_ext
36167 if $ac_preproc_ok; then
36168   :
36169 else
36170   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36172 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36173 See \`config.log' for more details." >&5
36174 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36175 See \`config.log' for more details." >&2;}
36176    { (exit 1); exit 1; }; }; }
36177 fi
36178
36179 ac_ext=cpp
36180 ac_cpp='$CXXCPP $CPPFLAGS'
36181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36184
36185 fi
36186
36187
36188 ac_ext=f
36189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
36190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
36192 if test -n "$ac_tool_prefix"; then
36193   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
36194   do
36195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36198 $as_echo_n "checking for $ac_word... " >&6; }
36199 if test "${ac_cv_prog_F77+set}" = set; then
36200   $as_echo_n "(cached) " >&6
36201 else
36202   if test -n "$F77"; then
36203   ac_cv_prog_F77="$F77" # Let the user override the test.
36204 else
36205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36206 for as_dir in $PATH
36207 do
36208   IFS=$as_save_IFS
36209   test -z "$as_dir" && as_dir=.
36210   for ac_exec_ext in '' $ac_executable_extensions; do
36211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36212     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
36213     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36214     break 2
36215   fi
36216 done
36217 done
36218 IFS=$as_save_IFS
36219
36220 fi
36221 fi
36222 F77=$ac_cv_prog_F77
36223 if test -n "$F77"; then
36224   { $as_echo "$as_me:$LINENO: result: $F77" >&5
36225 $as_echo "$F77" >&6; }
36226 else
36227   { $as_echo "$as_me:$LINENO: result: no" >&5
36228 $as_echo "no" >&6; }
36229 fi
36230
36231
36232     test -n "$F77" && break
36233   done
36234 fi
36235 if test -z "$F77"; then
36236   ac_ct_F77=$F77
36237   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
36238 do
36239   # Extract the first word of "$ac_prog", so it can be a program name with args.
36240 set dummy $ac_prog; ac_word=$2
36241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36242 $as_echo_n "checking for $ac_word... " >&6; }
36243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
36244   $as_echo_n "(cached) " >&6
36245 else
36246   if test -n "$ac_ct_F77"; then
36247   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
36248 else
36249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36250 for as_dir in $PATH
36251 do
36252   IFS=$as_save_IFS
36253   test -z "$as_dir" && as_dir=.
36254   for ac_exec_ext in '' $ac_executable_extensions; do
36255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36256     ac_cv_prog_ac_ct_F77="$ac_prog"
36257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36258     break 2
36259   fi
36260 done
36261 done
36262 IFS=$as_save_IFS
36263
36264 fi
36265 fi
36266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
36267 if test -n "$ac_ct_F77"; then
36268   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
36269 $as_echo "$ac_ct_F77" >&6; }
36270 else
36271   { $as_echo "$as_me:$LINENO: result: no" >&5
36272 $as_echo "no" >&6; }
36273 fi
36274
36275
36276   test -n "$ac_ct_F77" && break
36277 done
36278
36279   if test "x$ac_ct_F77" = x; then
36280     F77=""
36281   else
36282     case $cross_compiling:$ac_tool_warned in
36283 yes:)
36284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
36285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36286 ac_tool_warned=yes ;;
36287 esac
36288     F77=$ac_ct_F77
36289   fi
36290 fi
36291
36292
36293 # Provide some information about the compiler.
36294 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
36295 set X $ac_compile
36296 ac_compiler=$2
36297 { (ac_try="$ac_compiler --version >&5"
36298 case "(($ac_try" in
36299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36300   *) ac_try_echo=$ac_try;;
36301 esac
36302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36303 $as_echo "$ac_try_echo") >&5
36304   (eval "$ac_compiler --version >&5") 2>&5
36305   ac_status=$?
36306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); }
36308 { (ac_try="$ac_compiler -v >&5"
36309 case "(($ac_try" in
36310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311   *) ac_try_echo=$ac_try;;
36312 esac
36313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36314 $as_echo "$ac_try_echo") >&5
36315   (eval "$ac_compiler -v >&5") 2>&5
36316   ac_status=$?
36317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318   (exit $ac_status); }
36319 { (ac_try="$ac_compiler -V >&5"
36320 case "(($ac_try" in
36321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36322   *) ac_try_echo=$ac_try;;
36323 esac
36324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36325 $as_echo "$ac_try_echo") >&5
36326   (eval "$ac_compiler -V >&5") 2>&5
36327   ac_status=$?
36328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329   (exit $ac_status); }
36330 rm -f a.out
36331
36332 # If we don't use `.F' as extension, the preprocessor is not run on the
36333 # input file.  (Note that this only needs to work for GNU compilers.)
36334 ac_save_ext=$ac_ext
36335 ac_ext=F
36336 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
36337 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
36338 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
36339   $as_echo_n "(cached) " >&6
36340 else
36341   cat >conftest.$ac_ext <<_ACEOF
36342       program main
36343 #ifndef __GNUC__
36344        choke me
36345 #endif
36346
36347       end
36348 _ACEOF
36349 rm -f conftest.$ac_objext
36350 if { (ac_try="$ac_compile"
36351 case "(($ac_try" in
36352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36353   *) ac_try_echo=$ac_try;;
36354 esac
36355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36356 $as_echo "$ac_try_echo") >&5
36357   (eval "$ac_compile") 2>conftest.er1
36358   ac_status=$?
36359   grep -v '^ *+' conftest.er1 >conftest.err
36360   rm -f conftest.er1
36361   cat conftest.err >&5
36362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); } && {
36364          test -z "$ac_f77_werror_flag" ||
36365          test ! -s conftest.err
36366        } && test -s conftest.$ac_objext; then
36367   ac_compiler_gnu=yes
36368 else
36369   $as_echo "$as_me: failed program was:" >&5
36370 sed 's/^/| /' conftest.$ac_ext >&5
36371
36372         ac_compiler_gnu=no
36373 fi
36374
36375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36376 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
36377
36378 fi
36379 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
36380 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
36381 ac_ext=$ac_save_ext
36382 ac_test_FFLAGS=${FFLAGS+set}
36383 ac_save_FFLAGS=$FFLAGS
36384 FFLAGS=
36385 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
36386 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
36387 if test "${ac_cv_prog_f77_g+set}" = set; then
36388   $as_echo_n "(cached) " >&6
36389 else
36390   FFLAGS=-g
36391 cat >conftest.$ac_ext <<_ACEOF
36392       program main
36393
36394       end
36395 _ACEOF
36396 rm -f conftest.$ac_objext
36397 if { (ac_try="$ac_compile"
36398 case "(($ac_try" in
36399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36400   *) ac_try_echo=$ac_try;;
36401 esac
36402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36403 $as_echo "$ac_try_echo") >&5
36404   (eval "$ac_compile") 2>conftest.er1
36405   ac_status=$?
36406   grep -v '^ *+' conftest.er1 >conftest.err
36407   rm -f conftest.er1
36408   cat conftest.err >&5
36409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410   (exit $ac_status); } && {
36411          test -z "$ac_f77_werror_flag" ||
36412          test ! -s conftest.err
36413        } && test -s conftest.$ac_objext; then
36414   ac_cv_prog_f77_g=yes
36415 else
36416   $as_echo "$as_me: failed program was:" >&5
36417 sed 's/^/| /' conftest.$ac_ext >&5
36418
36419         ac_cv_prog_f77_g=no
36420 fi
36421
36422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36423
36424 fi
36425 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
36426 $as_echo "$ac_cv_prog_f77_g" >&6; }
36427 if test "$ac_test_FFLAGS" = set; then
36428   FFLAGS=$ac_save_FFLAGS
36429 elif test $ac_cv_prog_f77_g = yes; then
36430   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36431     FFLAGS="-g -O2"
36432   else
36433     FFLAGS="-g"
36434   fi
36435 else
36436   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36437     FFLAGS="-O2"
36438   else
36439     FFLAGS=
36440   fi
36441 fi
36442
36443 if test $ac_compiler_gnu = yes; then
36444   G77=yes
36445 else
36446   G77=
36447 fi
36448 ac_ext=c
36449 ac_cpp='$CPP $CPPFLAGS'
36450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36453
36454
36455
36456 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
36457
36458 # find the maximum length of command line arguments
36459 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
36460 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36461 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
36462   $as_echo_n "(cached) " >&6
36463 else
36464     i=0
36465   teststring="ABCD"
36466
36467   case $build_os in
36468   msdosdjgpp*)
36469     # On DJGPP, this test can blow up pretty badly due to problems in libc
36470     # (any single argument exceeding 2000 bytes causes a buffer overrun
36471     # during glob expansion).  Even if it were fixed, the result of this
36472     # check would be larger than it should be.
36473     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
36474     ;;
36475
36476   gnu*)
36477     # Under GNU Hurd, this test is not required because there is
36478     # no limit to the length of command line arguments.
36479     # Libtool will interpret -1 as no limit whatsoever
36480     lt_cv_sys_max_cmd_len=-1;
36481     ;;
36482
36483   cygwin* | mingw*)
36484     # On Win9x/ME, this test blows up -- it succeeds, but takes
36485     # about 5 minutes as the teststring grows exponentially.
36486     # Worse, since 9x/ME are not pre-emptively multitasking,
36487     # you end up with a "frozen" computer, even though with patience
36488     # the test eventually succeeds (with a max line length of 256k).
36489     # Instead, let's just punt: use the minimum linelength reported by
36490     # all of the supported platforms: 8192 (on NT/2K/XP).
36491     lt_cv_sys_max_cmd_len=8192;
36492     ;;
36493
36494   amigaos*)
36495     # On AmigaOS with pdksh, this test takes hours, literally.
36496     # So we just punt and use a minimum line length of 8192.
36497     lt_cv_sys_max_cmd_len=8192;
36498     ;;
36499
36500   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36501     # This has been around since 386BSD, at least.  Likely further.
36502     if test -x /sbin/sysctl; then
36503       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36504     elif test -x /usr/sbin/sysctl; then
36505       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36506     else
36507       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
36508     fi
36509     # And add a safety zone
36510     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36511     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36512     ;;
36513   osf*)
36514     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36515     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36516     # nice to cause kernel panics so lets avoid the loop below.
36517     # First set a reasonable default.
36518     lt_cv_sys_max_cmd_len=16384
36519     #
36520     if test -x /sbin/sysconfig; then
36521       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36522         *1*) lt_cv_sys_max_cmd_len=-1 ;;
36523       esac
36524     fi
36525     ;;
36526   *)
36527     # If test is not a shell built-in, we'll probably end up computing a
36528     # maximum length that is only half of the actual maximum length, but
36529     # we can't tell.
36530     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36531     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
36532                = "XX$teststring") >/dev/null 2>&1 &&
36533             new_result=`expr "X$teststring" : ".*" 2>&1` &&
36534             lt_cv_sys_max_cmd_len=$new_result &&
36535             test $i != 17 # 1/2 MB should be enough
36536     do
36537       i=`expr $i + 1`
36538       teststring=$teststring$teststring
36539     done
36540     teststring=
36541     # Add a significant safety factor because C++ compilers can tack on massive
36542     # amounts of additional arguments before passing them to the linker.
36543     # It appears as though 1/2 is a usable value.
36544     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36545     ;;
36546   esac
36547
36548 fi
36549
36550 if test -n $lt_cv_sys_max_cmd_len ; then
36551   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
36552 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36553 else
36554   { $as_echo "$as_me:$LINENO: result: none" >&5
36555 $as_echo "none" >&6; }
36556 fi
36557
36558
36559
36560
36561 # Check for command to grab the raw symbol name followed by C symbol from nm.
36562 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
36563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
36564 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
36565   $as_echo_n "(cached) " >&6
36566 else
36567
36568 # These are sane defaults that work on at least a few old systems.
36569 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
36570
36571 # Character class describing NM global symbol codes.
36572 symcode='[BCDEGRST]'
36573
36574 # Regexp to match symbols that can be accessed directly from C.
36575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
36576
36577 # Transform an extracted symbol line into a proper C declaration
36578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
36579
36580 # Transform an extracted symbol line into symbol name and symbol address
36581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
36582
36583 # Define system-specific variables.
36584 case $host_os in
36585 aix*)
36586   symcode='[BCDT]'
36587   ;;
36588 cygwin* | mingw* | pw32*)
36589   symcode='[ABCDGISTW]'
36590   ;;
36591 hpux*) # Its linker distinguishes data from code symbols
36592   if test "$host_cpu" = ia64; then
36593     symcode='[ABCDEGRST]'
36594   fi
36595   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36596   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
36597   ;;
36598 linux*)
36599   if test "$host_cpu" = ia64; then
36600     symcode='[ABCDGIRSTW]'
36601     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36602     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
36603   fi
36604   ;;
36605 irix* | nonstopux*)
36606   symcode='[BCDEGRST]'
36607   ;;
36608 osf*)
36609   symcode='[BCDEGQRST]'
36610   ;;
36611 solaris* | sysv5*)
36612   symcode='[BDRT]'
36613   ;;
36614 sysv4)
36615   symcode='[DFNSTU]'
36616   ;;
36617 esac
36618
36619 # Handle CRLF in mingw tool chain
36620 opt_cr=
36621 case $build_os in
36622 mingw*)
36623   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
36624   ;;
36625 esac
36626
36627 # If we're using GNU nm, then use its standard symbol codes.
36628 case `$NM -V 2>&1` in
36629 *GNU* | *'with BFD'*)
36630   symcode='[ABCDGIRSTW]' ;;
36631 esac
36632
36633 # Try without a prefix undercore, then with it.
36634 for ac_symprfx in "" "_"; do
36635
36636   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
36637   symxfrm="\\1 $ac_symprfx\\2 \\2"
36638
36639   # Write the raw and C identifiers.
36640   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
36641
36642   # Check to see that the pipe works correctly.
36643   pipe_works=no
36644
36645   rm -f conftest*
36646   cat > conftest.$ac_ext <<EOF
36647 #ifdef __cplusplus
36648 extern "C" {
36649 #endif
36650 char nm_test_var;
36651 void nm_test_func(){}
36652 #ifdef __cplusplus
36653 }
36654 #endif
36655 int main(){nm_test_var='a';nm_test_func();return(0);}
36656 EOF
36657
36658   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36659   (eval $ac_compile) 2>&5
36660   ac_status=$?
36661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662   (exit $ac_status); }; then
36663     # Now try to grab the symbols.
36664     nlist=conftest.nm
36665     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
36666   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
36667   ac_status=$?
36668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669   (exit $ac_status); } && test -s "$nlist"; then
36670       # Try sorting and uniquifying the output.
36671       if sort "$nlist" | uniq > "$nlist"T; then
36672         mv -f "$nlist"T "$nlist"
36673       else
36674         rm -f "$nlist"T
36675       fi
36676
36677       # Make sure that we snagged all the symbols we need.
36678       if grep ' nm_test_var$' "$nlist" >/dev/null; then
36679         if grep ' nm_test_func$' "$nlist" >/dev/null; then
36680           cat <<EOF > conftest.$ac_ext
36681 #ifdef __cplusplus
36682 extern "C" {
36683 #endif
36684
36685 EOF
36686           # Now generate the symbol file.
36687           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
36688
36689           cat <<EOF >> conftest.$ac_ext
36690 #if defined (__STDC__) && __STDC__
36691 # define lt_ptr_t void *
36692 #else
36693 # define lt_ptr_t char *
36694 # define const
36695 #endif
36696
36697 /* The mapping between symbol names and symbols. */
36698 const struct {
36699   const char *name;
36700   lt_ptr_t address;
36701 }
36702 lt_preloaded_symbols[] =
36703 {
36704 EOF
36705           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
36706           cat <<\EOF >> conftest.$ac_ext
36707   {0, (lt_ptr_t) 0}
36708 };
36709
36710 #ifdef __cplusplus
36711 }
36712 #endif
36713 EOF
36714           # Now try linking the two files.
36715           mv conftest.$ac_objext conftstm.$ac_objext
36716           lt_save_LIBS="$LIBS"
36717           lt_save_CFLAGS="$CFLAGS"
36718           LIBS="conftstm.$ac_objext"
36719           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
36720           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36721   (eval $ac_link) 2>&5
36722   ac_status=$?
36723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724   (exit $ac_status); } && test -s conftest${ac_exeext}; then
36725             pipe_works=yes
36726           fi
36727           LIBS="$lt_save_LIBS"
36728           CFLAGS="$lt_save_CFLAGS"
36729         else
36730           echo "cannot find nm_test_func in $nlist" >&5
36731         fi
36732       else
36733         echo "cannot find nm_test_var in $nlist" >&5
36734       fi
36735     else
36736       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
36737     fi
36738   else
36739     echo "$progname: failed program was:" >&5
36740     cat conftest.$ac_ext >&5
36741   fi
36742   rm -f conftest* conftst*
36743
36744   # Do not use the global_symbol_pipe unless it works.
36745   if test "$pipe_works" = yes; then
36746     break
36747   else
36748     lt_cv_sys_global_symbol_pipe=
36749   fi
36750 done
36751
36752 fi
36753
36754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
36755   lt_cv_sys_global_symbol_to_cdecl=
36756 fi
36757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
36758   { $as_echo "$as_me:$LINENO: result: failed" >&5
36759 $as_echo "failed" >&6; }
36760 else
36761   { $as_echo "$as_me:$LINENO: result: ok" >&5
36762 $as_echo "ok" >&6; }
36763 fi
36764
36765 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
36766 $as_echo_n "checking for objdir... " >&6; }
36767 if test "${lt_cv_objdir+set}" = set; then
36768   $as_echo_n "(cached) " >&6
36769 else
36770   rm -f .libs 2>/dev/null
36771 mkdir .libs 2>/dev/null
36772 if test -d .libs; then
36773   lt_cv_objdir=.libs
36774 else
36775   # MS-DOS does not allow filenames that begin with a dot.
36776   lt_cv_objdir=_libs
36777 fi
36778 rmdir .libs 2>/dev/null
36779 fi
36780 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
36781 $as_echo "$lt_cv_objdir" >&6; }
36782 objdir=$lt_cv_objdir
36783
36784
36785
36786
36787
36788 case $host_os in
36789 aix3*)
36790   # AIX sometimes has problems with the GCC collect2 program.  For some
36791   # reason, if we set the COLLECT_NAMES environment variable, the problems
36792   # vanish in a puff of smoke.
36793   if test "X${COLLECT_NAMES+set}" != Xset; then
36794     COLLECT_NAMES=
36795     export COLLECT_NAMES
36796   fi
36797   ;;
36798 esac
36799
36800 # Sed substitution that helps us do robust quoting.  It backslashifies
36801 # metacharacters that are still active within double-quoted strings.
36802 Xsed='sed -e 1s/^X//'
36803 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
36804
36805 # Same as above, but do not quote variable references.
36806 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
36807
36808 # Sed substitution to delay expansion of an escaped shell variable in a
36809 # double_quote_subst'ed string.
36810 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
36811
36812 # Sed substitution to avoid accidental globbing in evaled expressions
36813 no_glob_subst='s/\*/\\\*/g'
36814
36815 # Constants:
36816 rm="rm -f"
36817
36818 # Global variables:
36819 default_ofile=libtool
36820 can_build_shared=yes
36821
36822 # All known linkers require a `.a' archive for static linking (except MSVC,
36823 # which needs '.lib').
36824 libext=a
36825 ltmain="$ac_aux_dir/ltmain.sh"
36826 ofile="$default_ofile"
36827 with_gnu_ld="$lt_cv_prog_gnu_ld"
36828
36829 if test -n "$ac_tool_prefix"; then
36830   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36831 set dummy ${ac_tool_prefix}ar; ac_word=$2
36832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36833 $as_echo_n "checking for $ac_word... " >&6; }
36834 if test "${ac_cv_prog_AR+set}" = set; then
36835   $as_echo_n "(cached) " >&6
36836 else
36837   if test -n "$AR"; then
36838   ac_cv_prog_AR="$AR" # Let the user override the test.
36839 else
36840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36841 for as_dir in $PATH
36842 do
36843   IFS=$as_save_IFS
36844   test -z "$as_dir" && as_dir=.
36845   for ac_exec_ext in '' $ac_executable_extensions; do
36846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36847     ac_cv_prog_AR="${ac_tool_prefix}ar"
36848     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36849     break 2
36850   fi
36851 done
36852 done
36853 IFS=$as_save_IFS
36854
36855 fi
36856 fi
36857 AR=$ac_cv_prog_AR
36858 if test -n "$AR"; then
36859   { $as_echo "$as_me:$LINENO: result: $AR" >&5
36860 $as_echo "$AR" >&6; }
36861 else
36862   { $as_echo "$as_me:$LINENO: result: no" >&5
36863 $as_echo "no" >&6; }
36864 fi
36865
36866
36867 fi
36868 if test -z "$ac_cv_prog_AR"; then
36869   ac_ct_AR=$AR
36870   # Extract the first word of "ar", so it can be a program name with args.
36871 set dummy ar; ac_word=$2
36872 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36873 $as_echo_n "checking for $ac_word... " >&6; }
36874 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36875   $as_echo_n "(cached) " >&6
36876 else
36877   if test -n "$ac_ct_AR"; then
36878   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36879 else
36880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36881 for as_dir in $PATH
36882 do
36883   IFS=$as_save_IFS
36884   test -z "$as_dir" && as_dir=.
36885   for ac_exec_ext in '' $ac_executable_extensions; do
36886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36887     ac_cv_prog_ac_ct_AR="ar"
36888     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36889     break 2
36890   fi
36891 done
36892 done
36893 IFS=$as_save_IFS
36894
36895 fi
36896 fi
36897 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36898 if test -n "$ac_ct_AR"; then
36899   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36900 $as_echo "$ac_ct_AR" >&6; }
36901 else
36902   { $as_echo "$as_me:$LINENO: result: no" >&5
36903 $as_echo "no" >&6; }
36904 fi
36905
36906   if test "x$ac_ct_AR" = x; then
36907     AR="false"
36908   else
36909     case $cross_compiling:$ac_tool_warned in
36910 yes:)
36911 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
36912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36913 ac_tool_warned=yes ;;
36914 esac
36915     AR=$ac_ct_AR
36916   fi
36917 else
36918   AR="$ac_cv_prog_AR"
36919 fi
36920
36921 if test -n "$ac_tool_prefix"; then
36922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36925 $as_echo_n "checking for $ac_word... " >&6; }
36926 if test "${ac_cv_prog_RANLIB+set}" = set; then
36927   $as_echo_n "(cached) " >&6
36928 else
36929   if test -n "$RANLIB"; then
36930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
36931 else
36932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36933 for as_dir in $PATH
36934 do
36935   IFS=$as_save_IFS
36936   test -z "$as_dir" && as_dir=.
36937   for ac_exec_ext in '' $ac_executable_extensions; do
36938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36940     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36941     break 2
36942   fi
36943 done
36944 done
36945 IFS=$as_save_IFS
36946
36947 fi
36948 fi
36949 RANLIB=$ac_cv_prog_RANLIB
36950 if test -n "$RANLIB"; then
36951   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
36952 $as_echo "$RANLIB" >&6; }
36953 else
36954   { $as_echo "$as_me:$LINENO: result: no" >&5
36955 $as_echo "no" >&6; }
36956 fi
36957
36958
36959 fi
36960 if test -z "$ac_cv_prog_RANLIB"; then
36961   ac_ct_RANLIB=$RANLIB
36962   # Extract the first word of "ranlib", so it can be a program name with args.
36963 set dummy ranlib; ac_word=$2
36964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36965 $as_echo_n "checking for $ac_word... " >&6; }
36966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36967   $as_echo_n "(cached) " >&6
36968 else
36969   if test -n "$ac_ct_RANLIB"; then
36970   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36971 else
36972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36973 for as_dir in $PATH
36974 do
36975   IFS=$as_save_IFS
36976   test -z "$as_dir" && as_dir=.
36977   for ac_exec_ext in '' $ac_executable_extensions; do
36978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36979     ac_cv_prog_ac_ct_RANLIB="ranlib"
36980     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36981     break 2
36982   fi
36983 done
36984 done
36985 IFS=$as_save_IFS
36986
36987 fi
36988 fi
36989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36990 if test -n "$ac_ct_RANLIB"; then
36991   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36992 $as_echo "$ac_ct_RANLIB" >&6; }
36993 else
36994   { $as_echo "$as_me:$LINENO: result: no" >&5
36995 $as_echo "no" >&6; }
36996 fi
36997
36998   if test "x$ac_ct_RANLIB" = x; then
36999     RANLIB=":"
37000   else
37001     case $cross_compiling:$ac_tool_warned in
37002 yes:)
37003 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37005 ac_tool_warned=yes ;;
37006 esac
37007     RANLIB=$ac_ct_RANLIB
37008   fi
37009 else
37010   RANLIB="$ac_cv_prog_RANLIB"
37011 fi
37012
37013 if test -n "$ac_tool_prefix"; then
37014   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37015 set dummy ${ac_tool_prefix}strip; ac_word=$2
37016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37017 $as_echo_n "checking for $ac_word... " >&6; }
37018 if test "${ac_cv_prog_STRIP+set}" = set; then
37019   $as_echo_n "(cached) " >&6
37020 else
37021   if test -n "$STRIP"; then
37022   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37023 else
37024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37025 for as_dir in $PATH
37026 do
37027   IFS=$as_save_IFS
37028   test -z "$as_dir" && as_dir=.
37029   for ac_exec_ext in '' $ac_executable_extensions; do
37030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37031     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37032     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37033     break 2
37034   fi
37035 done
37036 done
37037 IFS=$as_save_IFS
37038
37039 fi
37040 fi
37041 STRIP=$ac_cv_prog_STRIP
37042 if test -n "$STRIP"; then
37043   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
37044 $as_echo "$STRIP" >&6; }
37045 else
37046   { $as_echo "$as_me:$LINENO: result: no" >&5
37047 $as_echo "no" >&6; }
37048 fi
37049
37050
37051 fi
37052 if test -z "$ac_cv_prog_STRIP"; then
37053   ac_ct_STRIP=$STRIP
37054   # Extract the first word of "strip", so it can be a program name with args.
37055 set dummy strip; ac_word=$2
37056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37057 $as_echo_n "checking for $ac_word... " >&6; }
37058 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37059   $as_echo_n "(cached) " >&6
37060 else
37061   if test -n "$ac_ct_STRIP"; then
37062   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37063 else
37064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37065 for as_dir in $PATH
37066 do
37067   IFS=$as_save_IFS
37068   test -z "$as_dir" && as_dir=.
37069   for ac_exec_ext in '' $ac_executable_extensions; do
37070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37071     ac_cv_prog_ac_ct_STRIP="strip"
37072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37073     break 2
37074   fi
37075 done
37076 done
37077 IFS=$as_save_IFS
37078
37079 fi
37080 fi
37081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37082 if test -n "$ac_ct_STRIP"; then
37083   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37084 $as_echo "$ac_ct_STRIP" >&6; }
37085 else
37086   { $as_echo "$as_me:$LINENO: result: no" >&5
37087 $as_echo "no" >&6; }
37088 fi
37089
37090   if test "x$ac_ct_STRIP" = x; then
37091     STRIP=":"
37092   else
37093     case $cross_compiling:$ac_tool_warned in
37094 yes:)
37095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37097 ac_tool_warned=yes ;;
37098 esac
37099     STRIP=$ac_ct_STRIP
37100   fi
37101 else
37102   STRIP="$ac_cv_prog_STRIP"
37103 fi
37104
37105
37106 old_CC="$CC"
37107 old_CFLAGS="$CFLAGS"
37108
37109 # Set sane defaults for various variables
37110 test -z "$AR" && AR=ar
37111 test -z "$AR_FLAGS" && AR_FLAGS=cru
37112 test -z "$AS" && AS=as
37113 test -z "$CC" && CC=cc
37114 test -z "$LTCC" && LTCC=$CC
37115 test -z "$DLLTOOL" && DLLTOOL=dlltool
37116 test -z "$LD" && LD=ld
37117 test -z "$LN_S" && LN_S="ln -s"
37118 test -z "$MAGIC_CMD" && MAGIC_CMD=file
37119 test -z "$NM" && NM=nm
37120 test -z "$SED" && SED=sed
37121 test -z "$OBJDUMP" && OBJDUMP=objdump
37122 test -z "$RANLIB" && RANLIB=:
37123 test -z "$STRIP" && STRIP=:
37124 test -z "$ac_objext" && ac_objext=o
37125
37126 # Determine commands to create old-style static archives.
37127 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
37128 old_postinstall_cmds='chmod 644 $oldlib'
37129 old_postuninstall_cmds=
37130
37131 if test -n "$RANLIB"; then
37132   case $host_os in
37133   openbsd*)
37134     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
37135     ;;
37136   *)
37137     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
37138     ;;
37139   esac
37140   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
37141 fi
37142
37143 for cc_temp in $compiler""; do
37144   case $cc_temp in
37145     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37146     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37147     \-*) ;;
37148     *) break;;
37149   esac
37150 done
37151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37152
37153
37154 # Only perform the check for file, if the check method requires it
37155 case $deplibs_check_method in
37156 file_magic*)
37157   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
37158     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
37159 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
37160 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37161   $as_echo_n "(cached) " >&6
37162 else
37163   case $MAGIC_CMD in
37164 [\\/*] |  ?:[\\/]*)
37165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37166   ;;
37167 *)
37168   lt_save_MAGIC_CMD="$MAGIC_CMD"
37169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37170   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37171   for ac_dir in $ac_dummy; do
37172     IFS="$lt_save_ifs"
37173     test -z "$ac_dir" && ac_dir=.
37174     if test -f $ac_dir/${ac_tool_prefix}file; then
37175       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
37176       if test -n "$file_magic_test_file"; then
37177         case $deplibs_check_method in
37178         "file_magic "*)
37179           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37180           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37181           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37182             $EGREP "$file_magic_regex" > /dev/null; then
37183             :
37184           else
37185             cat <<EOF 1>&2
37186
37187 *** Warning: the command libtool uses to detect shared libraries,
37188 *** $file_magic_cmd, produces output that libtool cannot recognize.
37189 *** The result is that libtool may fail to recognize shared libraries
37190 *** as such.  This will affect the creation of libtool libraries that
37191 *** depend on shared libraries, but programs linked with such libtool
37192 *** libraries will work regardless of this problem.  Nevertheless, you
37193 *** may want to report the problem to your system manager and/or to
37194 *** bug-libtool@gnu.org
37195
37196 EOF
37197           fi ;;
37198         esac
37199       fi
37200       break
37201     fi
37202   done
37203   IFS="$lt_save_ifs"
37204   MAGIC_CMD="$lt_save_MAGIC_CMD"
37205   ;;
37206 esac
37207 fi
37208
37209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37210 if test -n "$MAGIC_CMD"; then
37211   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37212 $as_echo "$MAGIC_CMD" >&6; }
37213 else
37214   { $as_echo "$as_me:$LINENO: result: no" >&5
37215 $as_echo "no" >&6; }
37216 fi
37217
37218 if test -z "$lt_cv_path_MAGIC_CMD"; then
37219   if test -n "$ac_tool_prefix"; then
37220     { $as_echo "$as_me:$LINENO: checking for file" >&5
37221 $as_echo_n "checking for file... " >&6; }
37222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37223   $as_echo_n "(cached) " >&6
37224 else
37225   case $MAGIC_CMD in
37226 [\\/*] |  ?:[\\/]*)
37227   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37228   ;;
37229 *)
37230   lt_save_MAGIC_CMD="$MAGIC_CMD"
37231   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37232   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37233   for ac_dir in $ac_dummy; do
37234     IFS="$lt_save_ifs"
37235     test -z "$ac_dir" && ac_dir=.
37236     if test -f $ac_dir/file; then
37237       lt_cv_path_MAGIC_CMD="$ac_dir/file"
37238       if test -n "$file_magic_test_file"; then
37239         case $deplibs_check_method in
37240         "file_magic "*)
37241           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37242           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37243           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37244             $EGREP "$file_magic_regex" > /dev/null; then
37245             :
37246           else
37247             cat <<EOF 1>&2
37248
37249 *** Warning: the command libtool uses to detect shared libraries,
37250 *** $file_magic_cmd, produces output that libtool cannot recognize.
37251 *** The result is that libtool may fail to recognize shared libraries
37252 *** as such.  This will affect the creation of libtool libraries that
37253 *** depend on shared libraries, but programs linked with such libtool
37254 *** libraries will work regardless of this problem.  Nevertheless, you
37255 *** may want to report the problem to your system manager and/or to
37256 *** bug-libtool@gnu.org
37257
37258 EOF
37259           fi ;;
37260         esac
37261       fi
37262       break
37263     fi
37264   done
37265   IFS="$lt_save_ifs"
37266   MAGIC_CMD="$lt_save_MAGIC_CMD"
37267   ;;
37268 esac
37269 fi
37270
37271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37272 if test -n "$MAGIC_CMD"; then
37273   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37274 $as_echo "$MAGIC_CMD" >&6; }
37275 else
37276   { $as_echo "$as_me:$LINENO: result: no" >&5
37277 $as_echo "no" >&6; }
37278 fi
37279
37280   else
37281     MAGIC_CMD=:
37282   fi
37283 fi
37284
37285   fi
37286   ;;
37287 esac
37288
37289 enable_dlopen=no
37290 enable_win32_dll=no
37291
37292 # Check whether --enable-libtool-lock was given.
37293 if test "${enable_libtool_lock+set}" = set; then
37294   enableval=$enable_libtool_lock;
37295 fi
37296
37297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37298
37299
37300 # Check whether --with-pic was given.
37301 if test "${with_pic+set}" = set; then
37302   withval=$with_pic; pic_mode="$withval"
37303 else
37304   pic_mode=default
37305 fi
37306
37307 test -z "$pic_mode" && pic_mode=default
37308
37309 # Use C for the default configuration in the libtool script
37310 tagname=
37311 lt_save_CC="$CC"
37312 ac_ext=c
37313 ac_cpp='$CPP $CPPFLAGS'
37314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37317
37318
37319 # Source file extension for C test sources.
37320 ac_ext=c
37321
37322 # Object file extension for compiled C test sources.
37323 objext=o
37324 objext=$objext
37325
37326 # Code to be used in simple compile tests
37327 lt_simple_compile_test_code="int some_variable = 0;\n"
37328
37329 # Code to be used in simple link tests
37330 lt_simple_link_test_code='int main(){return(0);}\n'
37331
37332
37333 # If no C compiler was specified, use CC.
37334 LTCC=${LTCC-"$CC"}
37335
37336 # Allow CC to be a program name with arguments.
37337 compiler=$CC
37338
37339
37340 # save warnings/boilerplate of simple test code
37341 ac_outfile=conftest.$ac_objext
37342 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
37343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37344 _lt_compiler_boilerplate=`cat conftest.err`
37345 $rm conftest*
37346
37347 ac_outfile=conftest.$ac_objext
37348 printf "$lt_simple_link_test_code" >conftest.$ac_ext
37349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37350 _lt_linker_boilerplate=`cat conftest.err`
37351 $rm conftest*
37352
37353
37354 #
37355 # Check for any special shared library compilation flags.
37356 #
37357 lt_prog_cc_shlib=
37358 if test "$GCC" = no; then
37359   case $host_os in
37360   sco3.2v5*)
37361     lt_prog_cc_shlib='-belf'
37362     ;;
37363   esac
37364 fi
37365 if test -n "$lt_prog_cc_shlib"; then
37366
37367     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
37368 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
37369
37370
37371     cat <<AAW_EOF >>config.warnings
37372 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
37373 AAW_EOF
37374
37375
37376   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
37377   else
37378
37379     { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
37380 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
37381
37382
37383     cat <<AAW_EOF >>config.warnings
37384 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
37385 AAW_EOF
37386
37387
37388     lt_cv_prog_cc_can_build_shared=no
37389   fi
37390 fi
37391
37392
37393 #
37394 # Check to make sure the static flag actually works.
37395 #
37396 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
37397 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
37398 if test "${lt_prog_compiler_static_works+set}" = set; then
37399   $as_echo_n "(cached) " >&6
37400 else
37401   lt_prog_compiler_static_works=no
37402    save_LDFLAGS="$LDFLAGS"
37403    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
37404    printf "$lt_simple_link_test_code" > conftest.$ac_ext
37405    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
37406      # The linker can only warn and ignore the option if not recognized
37407      # So say no if there are warnings
37408      if test -s conftest.err; then
37409        # Append any errors to the config.log.
37410        cat conftest.err 1>&5
37411        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
37412        $SED '/^$/d' conftest.err >conftest.er2
37413        if diff conftest.exp conftest.er2 >/dev/null; then
37414          lt_prog_compiler_static_works=yes
37415        fi
37416      else
37417        lt_prog_compiler_static_works=yes
37418      fi
37419    fi
37420    $rm conftest*
37421    LDFLAGS="$save_LDFLAGS"
37422
37423 fi
37424 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
37425 $as_echo "$lt_prog_compiler_static_works" >&6; }
37426
37427 if test x"$lt_prog_compiler_static_works" = xyes; then
37428     :
37429 else
37430     lt_prog_compiler_static=
37431 fi
37432
37433
37434
37435 ## CAVEAT EMPTOR:
37436 ## There is no encapsulation within the following macros, do not change
37437 ## the running order or otherwise move them around unless you know exactly
37438 ## what you are doing...
37439
37440 lt_prog_compiler_no_builtin_flag=
37441
37442 if test "$GCC" = yes; then
37443   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
37444
37445
37446 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
37447 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
37448 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
37449   $as_echo_n "(cached) " >&6
37450 else
37451   lt_cv_prog_compiler_rtti_exceptions=no
37452   ac_outfile=conftest.$ac_objext
37453    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37454    lt_compiler_flag="-fno-rtti -fno-exceptions"
37455    # Insert the option either (1) after the last *FLAGS variable, or
37456    # (2) before a word containing "conftest.", or (3) at the end.
37457    # Note that $ac_compile itself does not contain backslashes and begins
37458    # with a dollar sign (not a hyphen), so the echo should work correctly.
37459    # The option is referenced via a variable to avoid confusing sed.
37460    lt_compile=`echo "$ac_compile" | $SED \
37461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37463    -e 's:$: $lt_compiler_flag:'`
37464    (eval echo "\"\$as_me:37464: $lt_compile\"" >&5)
37465    (eval "$lt_compile" 2>conftest.err)
37466    ac_status=$?
37467    cat conftest.err >&5
37468    echo "$as_me:37468: \$? = $ac_status" >&5
37469    if (exit $ac_status) && test -s "$ac_outfile"; then
37470      # The compiler can only warn and ignore the option if not recognized
37471      # So say no if there are warnings other than the usual output.
37472      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37473      $SED '/^$/d' conftest.err >conftest.er2
37474      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37475        lt_cv_prog_compiler_rtti_exceptions=yes
37476      fi
37477    fi
37478    $rm conftest*
37479
37480 fi
37481 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
37482 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
37483
37484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
37485     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
37486 else
37487     :
37488 fi
37489
37490 fi
37491
37492 lt_prog_compiler_wl=
37493 lt_prog_compiler_pic=
37494 lt_prog_compiler_static=
37495
37496 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
37497 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
37498
37499   if test "$GCC" = yes; then
37500     lt_prog_compiler_wl='-Wl,'
37501     lt_prog_compiler_static='-static'
37502
37503     case $host_os in
37504       aix*)
37505       # All AIX code is PIC.
37506       if test "$host_cpu" = ia64; then
37507         # AIX 5 now supports IA64 processor
37508         lt_prog_compiler_static='-Bstatic'
37509       fi
37510       ;;
37511
37512     amigaos*)
37513       # FIXME: we need at least 68020 code to build shared libraries, but
37514       # adding the `-m68020' flag to GCC prevents building anything better,
37515       # like `-m68040'.
37516       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
37517       ;;
37518
37519     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
37520       # PIC is the default for these OSes.
37521       ;;
37522
37523     mingw* | pw32* | os2*)
37524       # This hack is so that the source file can tell whether it is being
37525       # built for inclusion in a dll (and should export symbols for example).
37526       lt_prog_compiler_pic='-DDLL_EXPORT'
37527       ;;
37528
37529     darwin* | rhapsody*)
37530       # PIC is the default on this platform
37531       # Common symbols not allowed in MH_DYLIB files
37532       lt_prog_compiler_pic='-fno-common'
37533       ;;
37534
37535     msdosdjgpp*)
37536       # Just because we use GCC doesn't mean we suddenly get shared libraries
37537       # on systems that don't support them.
37538       lt_prog_compiler_can_build_shared=no
37539       enable_shared=no
37540       ;;
37541
37542     sysv4*MP*)
37543       if test -d /usr/nec; then
37544         lt_prog_compiler_pic=-Kconform_pic
37545       fi
37546       ;;
37547
37548     hpux*)
37549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37550       # not for PA HP-UX.
37551       case $host_cpu in
37552       hppa*64*|ia64*)
37553         # +Z the default
37554         ;;
37555       *)
37556         lt_prog_compiler_pic='-fPIC'
37557         ;;
37558       esac
37559       ;;
37560
37561     *)
37562       lt_prog_compiler_pic='-fPIC'
37563       ;;
37564     esac
37565   else
37566     # PORTME Check for flag to pass linker flags through the system compiler.
37567     case $host_os in
37568     aix*)
37569       lt_prog_compiler_wl='-Wl,'
37570       if test "$host_cpu" = ia64; then
37571         # AIX 5 now supports IA64 processor
37572         lt_prog_compiler_static='-Bstatic'
37573       else
37574         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
37575       fi
37576       ;;
37577       darwin*)
37578         # PIC is the default on this platform
37579         # Common symbols not allowed in MH_DYLIB files
37580        case $cc_basename in
37581          xlc*)
37582          lt_prog_compiler_pic='-qnocommon'
37583          lt_prog_compiler_wl='-Wl,'
37584          ;;
37585        esac
37586        ;;
37587
37588     mingw* | pw32* | os2*)
37589       # This hack is so that the source file can tell whether it is being
37590       # built for inclusion in a dll (and should export symbols for example).
37591       lt_prog_compiler_pic='-DDLL_EXPORT'
37592       ;;
37593
37594     hpux9* | hpux10* | hpux11*)
37595       lt_prog_compiler_wl='-Wl,'
37596       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37597       # not for PA HP-UX.
37598       case $host_cpu in
37599       hppa*64*|ia64*)
37600         # +Z the default
37601         ;;
37602       *)
37603         lt_prog_compiler_pic='+Z'
37604         ;;
37605       esac
37606       # Is there a better lt_prog_compiler_static that works with the bundled CC?
37607       lt_prog_compiler_static='${wl}-a ${wl}archive'
37608       ;;
37609
37610     irix5* | irix6* | nonstopux*)
37611       lt_prog_compiler_wl='-Wl,'
37612       # PIC (with -KPIC) is the default.
37613       lt_prog_compiler_static='-non_shared'
37614       ;;
37615
37616     newsos6)
37617       lt_prog_compiler_pic='-KPIC'
37618       lt_prog_compiler_static='-Bstatic'
37619       ;;
37620
37621     linux*)
37622       case $cc_basename in
37623       icc* | ecc*)
37624         lt_prog_compiler_wl='-Wl,'
37625         lt_prog_compiler_pic='-KPIC'
37626         lt_prog_compiler_static='-static'
37627         ;;
37628       pgcc* | pgf77* | pgf90* | pgf95*)
37629         # Portland Group compilers (*not* the Pentium gcc compiler,
37630         # which looks to be a dead project)
37631         lt_prog_compiler_wl='-Wl,'
37632         lt_prog_compiler_pic='-fpic'
37633         lt_prog_compiler_static='-Bstatic'
37634         ;;
37635       ccc*)
37636         lt_prog_compiler_wl='-Wl,'
37637         # All Alpha code is PIC.
37638         lt_prog_compiler_static='-non_shared'
37639         ;;
37640       esac
37641       ;;
37642
37643     osf3* | osf4* | osf5*)
37644       lt_prog_compiler_wl='-Wl,'
37645       # All OSF/1 code is PIC.
37646       lt_prog_compiler_static='-non_shared'
37647       ;;
37648
37649     sco3.2v5*)
37650       lt_prog_compiler_pic='-Kpic'
37651       lt_prog_compiler_static='-dn'
37652       ;;
37653
37654     solaris*)
37655       lt_prog_compiler_pic='-KPIC'
37656       lt_prog_compiler_static='-Bstatic'
37657       case $cc_basename in
37658       f77* | f90* | f95*)
37659         lt_prog_compiler_wl='-Qoption ld ';;
37660       *)
37661         lt_prog_compiler_wl='-Wl,';;
37662       esac
37663       ;;
37664
37665     sunos4*)
37666       lt_prog_compiler_wl='-Qoption ld '
37667       lt_prog_compiler_pic='-PIC'
37668       lt_prog_compiler_static='-Bstatic'
37669       ;;
37670
37671     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37672       lt_prog_compiler_wl='-Wl,'
37673       lt_prog_compiler_pic='-KPIC'
37674       lt_prog_compiler_static='-Bstatic'
37675       ;;
37676
37677     sysv4*MP*)
37678       if test -d /usr/nec ;then
37679         lt_prog_compiler_pic='-Kconform_pic'
37680         lt_prog_compiler_static='-Bstatic'
37681       fi
37682       ;;
37683
37684     unicos*)
37685       lt_prog_compiler_wl='-Wl,'
37686       lt_prog_compiler_can_build_shared=no
37687       ;;
37688
37689     uts4*)
37690       lt_prog_compiler_pic='-pic'
37691       lt_prog_compiler_static='-Bstatic'
37692       ;;
37693
37694     *)
37695       lt_prog_compiler_can_build_shared=no
37696       ;;
37697     esac
37698   fi
37699
37700 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
37701 $as_echo "$lt_prog_compiler_pic" >&6; }
37702
37703 #
37704 # Check to make sure the PIC flag actually works.
37705 #
37706 if test -n "$lt_prog_compiler_pic"; then
37707
37708 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
37709 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
37710 if test "${lt_prog_compiler_pic_works+set}" = set; then
37711   $as_echo_n "(cached) " >&6
37712 else
37713   lt_prog_compiler_pic_works=no
37714   ac_outfile=conftest.$ac_objext
37715    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37716    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
37717    # Insert the option either (1) after the last *FLAGS variable, or
37718    # (2) before a word containing "conftest.", or (3) at the end.
37719    # Note that $ac_compile itself does not contain backslashes and begins
37720    # with a dollar sign (not a hyphen), so the echo should work correctly.
37721    # The option is referenced via a variable to avoid confusing sed.
37722    lt_compile=`echo "$ac_compile" | $SED \
37723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37725    -e 's:$: $lt_compiler_flag:'`
37726    (eval echo "\"\$as_me:37726: $lt_compile\"" >&5)
37727    (eval "$lt_compile" 2>conftest.err)
37728    ac_status=$?
37729    cat conftest.err >&5
37730    echo "$as_me:37730: \$? = $ac_status" >&5
37731    if (exit $ac_status) && test -s "$ac_outfile"; then
37732      # The compiler can only warn and ignore the option if not recognized
37733      # So say no if there are warnings other than the usual output.
37734      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37735      $SED '/^$/d' conftest.err >conftest.er2
37736      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37737        lt_prog_compiler_pic_works=yes
37738      fi
37739    fi
37740    $rm conftest*
37741
37742 fi
37743 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
37744 $as_echo "$lt_prog_compiler_pic_works" >&6; }
37745
37746 if test x"$lt_prog_compiler_pic_works" = xyes; then
37747     case $lt_prog_compiler_pic in
37748      "" | " "*) ;;
37749      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
37750      esac
37751 else
37752     lt_prog_compiler_pic=
37753      lt_prog_compiler_can_build_shared=no
37754 fi
37755
37756 fi
37757 case $host_os in
37758   # For platforms which do not support PIC, -DPIC is meaningless:
37759   *djgpp*)
37760     lt_prog_compiler_pic=
37761     ;;
37762   *)
37763     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
37764     ;;
37765 esac
37766
37767 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
37768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
37769 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
37770   $as_echo_n "(cached) " >&6
37771 else
37772   lt_cv_prog_compiler_c_o=no
37773    $rm -r conftest 2>/dev/null
37774    mkdir conftest
37775    cd conftest
37776    mkdir out
37777    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37778
37779    lt_compiler_flag="-o out/conftest2.$ac_objext"
37780    # Insert the option either (1) after the last *FLAGS variable, or
37781    # (2) before a word containing "conftest.", or (3) at the end.
37782    # Note that $ac_compile itself does not contain backslashes and begins
37783    # with a dollar sign (not a hyphen), so the echo should work correctly.
37784    lt_compile=`echo "$ac_compile" | $SED \
37785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37787    -e 's:$: $lt_compiler_flag:'`
37788    (eval echo "\"\$as_me:37788: $lt_compile\"" >&5)
37789    (eval "$lt_compile" 2>out/conftest.err)
37790    ac_status=$?
37791    cat out/conftest.err >&5
37792    echo "$as_me:37792: \$? = $ac_status" >&5
37793    if (exit $ac_status) && test -s out/conftest2.$ac_objext
37794    then
37795      # The compiler can only warn and ignore the option if not recognized
37796      # So say no if there are warnings
37797      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
37798      $SED '/^$/d' out/conftest.err >out/conftest.er2
37799      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
37800        lt_cv_prog_compiler_c_o=yes
37801      fi
37802    fi
37803    chmod u+w . 2>&5
37804    $rm conftest*
37805    # SGI C++ compiler will create directory out/ii_files/ for
37806    # template instantiation
37807    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
37808    $rm out/* && rmdir out
37809    cd ..
37810    rmdir conftest
37811    $rm conftest*
37812
37813 fi
37814 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
37815 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
37816
37817
37818 hard_links="nottested"
37819 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
37820   # do not overwrite the value of need_locks provided by the user
37821   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
37822 $as_echo_n "checking if we can lock with hard links... " >&6; }
37823   hard_links=yes
37824   $rm conftest*
37825   ln conftest.a conftest.b 2>/dev/null && hard_links=no
37826   touch conftest.a
37827   ln conftest.a conftest.b 2>&5 || hard_links=no
37828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
37829   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
37830 $as_echo "$hard_links" >&6; }
37831   if test "$hard_links" = no; then
37832
37833     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
37834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
37835
37836
37837     cat <<AAW_EOF >>config.warnings
37838 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
37839 AAW_EOF
37840
37841
37842     need_locks=warn
37843   fi
37844 else
37845   need_locks=no
37846 fi
37847
37848 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
37849 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
37850
37851   runpath_var=
37852   allow_undefined_flag=
37853   enable_shared_with_static_runtimes=no
37854   archive_cmds=
37855   archive_expsym_cmds=
37856   old_archive_From_new_cmds=
37857   old_archive_from_expsyms_cmds=
37858   export_dynamic_flag_spec=
37859   whole_archive_flag_spec=
37860   thread_safe_flag_spec=
37861   hardcode_libdir_flag_spec=
37862   hardcode_libdir_flag_spec_ld=
37863   hardcode_libdir_separator=
37864   hardcode_direct=no
37865   hardcode_minus_L=no
37866   hardcode_shlibpath_var=unsupported
37867   link_all_deplibs=unknown
37868   hardcode_automatic=no
37869   module_cmds=
37870   module_expsym_cmds=
37871   always_export_symbols=no
37872   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
37873   # include_expsyms should be a list of space-separated symbols to be *always*
37874   # included in the symbol list
37875   include_expsyms=
37876   # exclude_expsyms can be an extended regexp of symbols to exclude
37877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
37878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
37879   # as well as any symbol that contains `d'.
37880   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
37881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
37882   # platforms (ab)use it in PIC code, but their linkers get confused if
37883   # the symbol is explicitly referenced.  Since portable code cannot
37884   # rely on this symbol name, it's probably fine to never include it in
37885   # preloaded symbol tables.
37886   extract_expsyms_cmds=
37887   # Just being paranoid about ensuring that cc_basename is set.
37888   for cc_temp in $compiler""; do
37889   case $cc_temp in
37890     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37891     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37892     \-*) ;;
37893     *) break;;
37894   esac
37895 done
37896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37897
37898   case $host_os in
37899   cygwin* | mingw* | pw32*)
37900     # FIXME: the MSVC++ port hasn't been tested in a loooong time
37901     # When not using gcc, we currently assume that we are using
37902     # Microsoft Visual C++.
37903     if test "$GCC" != yes; then
37904       with_gnu_ld=no
37905     fi
37906     ;;
37907   openbsd*)
37908     with_gnu_ld=no
37909     ;;
37910   esac
37911
37912   ld_shlibs=yes
37913   if test "$with_gnu_ld" = yes; then
37914     # If archive_cmds runs LD, not CC, wlarc should be empty
37915     wlarc='${wl}'
37916
37917     # Set some defaults for GNU ld with shared library support. These
37918     # are reset later if shared libraries are not supported. Putting them
37919     # here allows them to be overridden if necessary.
37920     runpath_var=LD_RUN_PATH
37921     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
37922     export_dynamic_flag_spec='${wl}--export-dynamic'
37923     # ancient GNU ld didn't support --whole-archive et. al.
37924     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
37925         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
37926       else
37927         whole_archive_flag_spec=
37928     fi
37929     supports_anon_versioning=no
37930     case `$LD -v 2>/dev/null` in
37931       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
37932       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
37933       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
37934       *\ 2.11.*) ;; # other 2.11 versions
37935       *) supports_anon_versioning=yes ;;
37936     esac
37937
37938     # See if GNU ld supports shared libraries.
37939     case $host_os in
37940     aix3* | aix4* | aix5*)
37941       # On AIX/PPC, the GNU linker is very broken
37942       if test "$host_cpu" != ia64; then
37943         ld_shlibs=no
37944         cat <<EOF 1>&2
37945
37946 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
37947 *** to be unable to reliably create shared libraries on AIX.
37948 *** Therefore, libtool is disabling shared libraries support.  If you
37949 *** really care for shared libraries, you may want to modify your PATH
37950 *** so that a non-GNU linker is found, and then restart.
37951
37952 EOF
37953       fi
37954       ;;
37955
37956     amigaos*)
37957       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)'
37958       hardcode_libdir_flag_spec='-L$libdir'
37959       hardcode_minus_L=yes
37960
37961       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
37962       # that the semantics of dynamic libraries on AmigaOS, at least up
37963       # to version 4, is to share data among multiple programs linked
37964       # with the same dynamic library.  Since this doesn't match the
37965       # behavior of shared libraries on other platforms, we can't use
37966       # them.
37967       ld_shlibs=no
37968       ;;
37969
37970     beos*)
37971       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37972         allow_undefined_flag=unsupported
37973         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
37974         # support --undefined.  This deserves some investigation.  FIXME
37975         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37976       else
37977         ld_shlibs=no
37978       fi
37979       ;;
37980
37981     cygwin* | mingw* | pw32*)
37982       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
37983       # as there is no search path for DLLs.
37984       hardcode_libdir_flag_spec='-L$libdir'
37985       allow_undefined_flag=unsupported
37986       always_export_symbols=no
37987       enable_shared_with_static_runtimes=yes
37988       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
37989
37990       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
37991         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
37992         # If the export-symbols file already is a .def file (1st line
37993         # is EXPORTS), use it as is; otherwise, prepend...
37994         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
37995           cp $export_symbols $output_objdir/$soname.def;
37996         else
37997           echo EXPORTS > $output_objdir/$soname.def;
37998           cat $export_symbols >> $output_objdir/$soname.def;
37999         fi~
38000         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
38001       else
38002         ld_shlibs=no
38003       fi
38004       ;;
38005
38006     linux*)
38007       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38008         tmp_addflag=
38009         case $cc_basename,$host_cpu in
38010         pgcc*)                          # Portland Group C compiler
38011           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'
38012           tmp_addflag=' $pic_flag'
38013           ;;
38014         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
38015           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'
38016           tmp_addflag=' $pic_flag -Mnomain' ;;
38017         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
38018           tmp_addflag=' -i_dynamic' ;;
38019         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
38020           tmp_addflag=' -i_dynamic -nofor_main' ;;
38021         ifc* | ifort*)                  # Intel Fortran compiler
38022           tmp_addflag=' -nofor_main' ;;
38023         esac
38024         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38025
38026         if test $supports_anon_versioning = yes; then
38027           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
38028   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38029   $echo "local: *; };" >> $output_objdir/$libname.ver~
38030           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
38031         fi
38032       else
38033         ld_shlibs=no
38034       fi
38035       ;;
38036
38037     netbsd*)
38038       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38039         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
38040         wlarc=
38041       else
38042         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38043         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38044       fi
38045       ;;
38046
38047     solaris* | sysv5*)
38048       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
38049         ld_shlibs=no
38050         cat <<EOF 1>&2
38051
38052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
38053 *** create shared libraries on Solaris systems.  Therefore, libtool
38054 *** is disabling shared libraries support.  We urge you to upgrade GNU
38055 *** binutils to release 2.9.1 or newer.  Another option is to modify
38056 *** your PATH or compiler configuration so that the native linker is
38057 *** used, and then restart.
38058
38059 EOF
38060       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38061         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38062         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38063       else
38064         ld_shlibs=no
38065       fi
38066       ;;
38067
38068     sunos4*)
38069       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38070       wlarc=
38071       hardcode_direct=yes
38072       hardcode_shlibpath_var=no
38073       ;;
38074
38075     *)
38076       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38077         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38078         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38079       else
38080         ld_shlibs=no
38081       fi
38082       ;;
38083     esac
38084
38085     if test "$ld_shlibs" = no; then
38086       runpath_var=
38087       hardcode_libdir_flag_spec=
38088       export_dynamic_flag_spec=
38089       whole_archive_flag_spec=
38090     fi
38091   else
38092     # PORTME fill in a description of your system's linker (not GNU ld)
38093     case $host_os in
38094     aix3*)
38095       allow_undefined_flag=unsupported
38096       always_export_symbols=yes
38097       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'
38098       # Note: this linker hardcodes the directories in LIBPATH if there
38099       # are no directories specified by -L.
38100       hardcode_minus_L=yes
38101       if test "$GCC" = yes && test -z "$link_static_flag"; then
38102         # Neither direct hardcoding nor static linking is supported with a
38103         # broken collect2.
38104         hardcode_direct=unsupported
38105       fi
38106       ;;
38107
38108     aix4* | aix5*)
38109       if test "$host_cpu" = ia64; then
38110         # On IA64, the linker does run time linking by default, so we don't
38111         # have to do anything special.
38112         aix_use_runtimelinking=no
38113         exp_sym_flag='-Bexport'
38114         no_entry_flag=""
38115       else
38116         # If we're using GNU nm, then we don't want the "-C" option.
38117         # -C means demangle to AIX nm, but means don't demangle with GNU nm
38118         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
38119           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'
38120         else
38121           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'
38122         fi
38123         aix_use_runtimelinking=no
38124
38125         # Test if we are trying to use run time linking or normal
38126         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38127         # need to do runtime linking.
38128         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38129           for ld_flag in $LDFLAGS; do
38130           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
38131             aix_use_runtimelinking=yes
38132             break
38133           fi
38134           done
38135         esac
38136
38137         exp_sym_flag='-bexport'
38138         no_entry_flag='-bnoentry'
38139       fi
38140
38141       # When large executables or shared objects are built, AIX ld can
38142       # have problems creating the table of contents.  If linking a library
38143       # or program results in "error TOC overflow" add -mminimal-toc to
38144       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38145       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38146
38147       archive_cmds=''
38148       hardcode_direct=yes
38149       hardcode_libdir_separator=':'
38150       link_all_deplibs=yes
38151
38152       if test "$GCC" = yes; then
38153         case $host_os in aix4.[012]|aix4.[012].*)
38154         # We only want to do this on AIX 4.2 and lower, the check
38155         # below for broken collect2 doesn't work under 4.3+
38156           collect2name=`${CC} -print-prog-name=collect2`
38157           if test -f "$collect2name" && \
38158            strings "$collect2name" | grep resolve_lib_name >/dev/null
38159           then
38160           # We have reworked collect2
38161           hardcode_direct=yes
38162           else
38163           # We have old collect2
38164           hardcode_direct=unsupported
38165           # It fails to find uninstalled libraries when the uninstalled
38166           # path is not listed in the libpath.  Setting hardcode_minus_L
38167           # to unsupported forces relinking
38168           hardcode_minus_L=yes
38169           hardcode_libdir_flag_spec='-L$libdir'
38170           hardcode_libdir_separator=
38171           fi
38172         esac
38173         shared_flag='-shared'
38174         if test "$aix_use_runtimelinking" = yes; then
38175           shared_flag="$shared_flag "'${wl}-G'
38176         fi
38177       else
38178         # not using gcc
38179         if test "$host_cpu" = ia64; then
38180         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38181         # chokes on -Wl,-G. The following line is correct:
38182           shared_flag='-G'
38183         else
38184         if test "$aix_use_runtimelinking" = yes; then
38185             shared_flag='${wl}-G'
38186           else
38187             shared_flag='${wl}-bM:SRE'
38188         fi
38189         fi
38190       fi
38191
38192       # It seems that -bexpall does not export symbols beginning with
38193       # underscore (_), so it is better to generate a list of symbols to export.
38194       always_export_symbols=yes
38195       if test "$aix_use_runtimelinking" = yes; then
38196         # Warning - without using the other runtime loading flags (-brtl),
38197         # -berok will link without error, but may produce a broken library.
38198         allow_undefined_flag='-berok'
38199        # Determine the default libpath from the value encoded in an empty executable.
38200        cat >conftest.$ac_ext <<_ACEOF
38201 /* confdefs.h.  */
38202 _ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h.  */
38206
38207 int
38208 main ()
38209 {
38210
38211   ;
38212   return 0;
38213 }
38214 _ACEOF
38215 rm -f conftest.$ac_objext conftest$ac_exeext
38216 if { (ac_try="$ac_link"
38217 case "(($ac_try" in
38218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38219   *) ac_try_echo=$ac_try;;
38220 esac
38221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38222 $as_echo "$ac_try_echo") >&5
38223   (eval "$ac_link") 2>conftest.er1
38224   ac_status=$?
38225   grep -v '^ *+' conftest.er1 >conftest.err
38226   rm -f conftest.er1
38227   cat conftest.err >&5
38228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229   (exit $ac_status); } && {
38230          test -z "$ac_c_werror_flag" ||
38231          test ! -s conftest.err
38232        } && test -s conftest$ac_exeext && {
38233          test "$cross_compiling" = yes ||
38234          $as_test_x conftest$ac_exeext
38235        }; then
38236
38237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38238 }'`
38239 # Check for a 64-bit object if we didn't find anything.
38240 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38241 }'`; fi
38242 else
38243   $as_echo "$as_me: failed program was:" >&5
38244 sed 's/^/| /' conftest.$ac_ext >&5
38245
38246
38247 fi
38248
38249 rm -rf conftest.dSYM
38250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38251       conftest$ac_exeext conftest.$ac_ext
38252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38253
38254        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38255         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
38256        else
38257         if test "$host_cpu" = ia64; then
38258           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
38259           allow_undefined_flag="-z nodefs"
38260           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
38261         else
38262          # Determine the default libpath from the value encoded in an empty executable.
38263          cat >conftest.$ac_ext <<_ACEOF
38264 /* confdefs.h.  */
38265 _ACEOF
38266 cat confdefs.h >>conftest.$ac_ext
38267 cat >>conftest.$ac_ext <<_ACEOF
38268 /* end confdefs.h.  */
38269
38270 int
38271 main ()
38272 {
38273
38274   ;
38275   return 0;
38276 }
38277 _ACEOF
38278 rm -f conftest.$ac_objext conftest$ac_exeext
38279 if { (ac_try="$ac_link"
38280 case "(($ac_try" in
38281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38282   *) ac_try_echo=$ac_try;;
38283 esac
38284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38285 $as_echo "$ac_try_echo") >&5
38286   (eval "$ac_link") 2>conftest.er1
38287   ac_status=$?
38288   grep -v '^ *+' conftest.er1 >conftest.err
38289   rm -f conftest.er1
38290   cat conftest.err >&5
38291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292   (exit $ac_status); } && {
38293          test -z "$ac_c_werror_flag" ||
38294          test ! -s conftest.err
38295        } && test -s conftest$ac_exeext && {
38296          test "$cross_compiling" = yes ||
38297          $as_test_x conftest$ac_exeext
38298        }; then
38299
38300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38301 }'`
38302 # Check for a 64-bit object if we didn't find anything.
38303 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38304 }'`; fi
38305 else
38306   $as_echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38308
38309
38310 fi
38311
38312 rm -rf conftest.dSYM
38313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38314       conftest$ac_exeext conftest.$ac_ext
38315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38316
38317          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38318           # Warning - without using the other run time loading flags,
38319           # -berok will link without error, but may produce a broken library.
38320           no_undefined_flag=' ${wl}-bernotok'
38321           allow_undefined_flag=' ${wl}-berok'
38322           # -bexpall does not export symbols beginning with underscore (_)
38323           always_export_symbols=yes
38324           # Exported symbols can be pulled into shared objects from archives
38325           whole_archive_flag_spec=' '
38326           archive_cmds_need_lc=yes
38327           # This is similar to how AIX traditionally builds its shared libraries.
38328           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
38329         fi
38330       fi
38331       ;;
38332
38333     amigaos*)
38334       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)'
38335       hardcode_libdir_flag_spec='-L$libdir'
38336       hardcode_minus_L=yes
38337       # see comment about different semantics on the GNU ld section
38338       ld_shlibs=no
38339       ;;
38340
38341     bsdi[45]*)
38342       export_dynamic_flag_spec=-rdynamic
38343       ;;
38344
38345     cygwin* | mingw* | pw32*)
38346       # When not using gcc, we currently assume that we are using
38347       # Microsoft Visual C++.
38348       # hardcode_libdir_flag_spec is actually meaningless, as there is
38349       # no search path for DLLs.
38350       hardcode_libdir_flag_spec=' '
38351       allow_undefined_flag=unsupported
38352       # Tell ltmain to make .lib files, not .a files.
38353       libext=lib
38354       # Tell ltmain to make .dll files, not .so files.
38355       shrext_cmds=".dll"
38356       # FIXME: Setting linknames here is a bad hack.
38357       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
38358       # The linker will automatically build a .lib file if we build a DLL.
38359       old_archive_From_new_cmds='true'
38360       # FIXME: Should let the user specify the lib program.
38361       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
38362       fix_srcfile_path='`cygpath -w "$srcfile"`'
38363       enable_shared_with_static_runtimes=yes
38364       ;;
38365
38366     darwin* | rhapsody*)
38367       case $host_os in
38368         rhapsody* | darwin1.[012])
38369          allow_undefined_flag='${wl}-undefined ${wl}suppress'
38370          ;;
38371        *) # Darwin 1.3 on
38372          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
38373            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38374          else
38375            case ${MACOSX_DEPLOYMENT_TARGET} in
38376              10.[012])
38377                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38378                ;;
38379              10.*)
38380                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
38381                ;;
38382            esac
38383          fi
38384          ;;
38385       esac
38386       archive_cmds_need_lc=no
38387       hardcode_direct=no
38388       hardcode_automatic=yes
38389       hardcode_shlibpath_var=unsupported
38390       whole_archive_flag_spec=''
38391       link_all_deplibs=yes
38392     if test "$GCC" = yes ; then
38393         output_verbose_link_cmd='echo'
38394         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
38395       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38396       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38397       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38398       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38399     else
38400       case $cc_basename in
38401         xlc*)
38402          output_verbose_link_cmd='echo'
38403          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
38404          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38405           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38406          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38407           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38408           ;;
38409        *)
38410          ld_shlibs=no
38411           ;;
38412       esac
38413     fi
38414       ;;
38415
38416     dgux*)
38417       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38418       hardcode_libdir_flag_spec='-L$libdir'
38419       hardcode_shlibpath_var=no
38420       ;;
38421
38422     freebsd1*)
38423       ld_shlibs=no
38424       ;;
38425
38426     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
38427     # support.  Future versions do this automatically, but an explicit c++rt0.o
38428     # does not break anything, and helps significantly (at the cost of a little
38429     # extra space).
38430     freebsd2.2*)
38431       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
38432       hardcode_libdir_flag_spec='-R$libdir'
38433       hardcode_direct=yes
38434       hardcode_shlibpath_var=no
38435       ;;
38436
38437     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
38438     freebsd2*)
38439       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38440       hardcode_direct=yes
38441       hardcode_minus_L=yes
38442       hardcode_shlibpath_var=no
38443       ;;
38444
38445     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
38446     freebsd* | kfreebsd*-gnu | dragonfly*)
38447       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
38448       hardcode_libdir_flag_spec='-R$libdir'
38449       hardcode_direct=yes
38450       hardcode_shlibpath_var=no
38451       ;;
38452
38453     hpux9*)
38454       if test "$GCC" = yes; then
38455         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'
38456       else
38457         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'
38458       fi
38459       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38460       hardcode_libdir_separator=:
38461       hardcode_direct=yes
38462
38463       # hardcode_minus_L: Not really in the search PATH,
38464       # but as the default location of the library.
38465       hardcode_minus_L=yes
38466       export_dynamic_flag_spec='${wl}-E'
38467       ;;
38468
38469     hpux10* | hpux11*)
38470       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38471         case $host_cpu in
38472         hppa*64*|ia64*)
38473           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38474           ;;
38475         *)
38476           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38477           ;;
38478         esac
38479       else
38480         case $host_cpu in
38481         hppa*64*|ia64*)
38482           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
38483           ;;
38484         *)
38485           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
38486           ;;
38487         esac
38488       fi
38489       if test "$with_gnu_ld" = no; then
38490         case $host_cpu in
38491         hppa*64*)
38492           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38493           hardcode_libdir_flag_spec_ld='+b $libdir'
38494           hardcode_libdir_separator=:
38495           hardcode_direct=no
38496           hardcode_shlibpath_var=no
38497           ;;
38498         ia64*)
38499           hardcode_libdir_flag_spec='-L$libdir'
38500           hardcode_direct=no
38501           hardcode_shlibpath_var=no
38502
38503           # hardcode_minus_L: Not really in the search PATH,
38504           # but as the default location of the library.
38505           hardcode_minus_L=yes
38506           ;;
38507         *)
38508           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38509           hardcode_libdir_separator=:
38510           hardcode_direct=yes
38511           export_dynamic_flag_spec='${wl}-E'
38512
38513           # hardcode_minus_L: Not really in the search PATH,
38514           # but as the default location of the library.
38515           hardcode_minus_L=yes
38516           ;;
38517         esac
38518       fi
38519       ;;
38520
38521     irix5* | irix6* | nonstopux*)
38522       if test "$GCC" = yes; then
38523         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38524       else
38525         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38526         hardcode_libdir_flag_spec_ld='-rpath $libdir'
38527       fi
38528       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38529       hardcode_libdir_separator=:
38530       link_all_deplibs=yes
38531       ;;
38532
38533     netbsd*)
38534       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38535         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
38536       else
38537         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
38538       fi
38539       hardcode_libdir_flag_spec='-R$libdir'
38540       hardcode_direct=yes
38541       hardcode_shlibpath_var=no
38542       ;;
38543
38544     newsos6)
38545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38546       hardcode_direct=yes
38547       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38548       hardcode_libdir_separator=:
38549       hardcode_shlibpath_var=no
38550       ;;
38551
38552     openbsd*)
38553       hardcode_direct=yes
38554       hardcode_shlibpath_var=no
38555       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38556         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38557         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
38558         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38559         export_dynamic_flag_spec='${wl}-E'
38560       else
38561        case $host_os in
38562          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
38563            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38564            hardcode_libdir_flag_spec='-R$libdir'
38565            ;;
38566          *)
38567            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38568            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38569            ;;
38570        esac
38571       fi
38572       ;;
38573
38574     os2*)
38575       hardcode_libdir_flag_spec='-L$libdir'
38576       hardcode_minus_L=yes
38577       allow_undefined_flag=unsupported
38578       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'
38579       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
38580       ;;
38581
38582     osf3*)
38583       if test "$GCC" = yes; then
38584         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38585         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38586       else
38587         allow_undefined_flag=' -expect_unresolved \*'
38588         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38589       fi
38590       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38591       hardcode_libdir_separator=:
38592       ;;
38593
38594     osf4* | osf5*)      # as osf3* with the addition of -msym flag
38595       if test "$GCC" = yes; then
38596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38597         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
38598         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38599       else
38600         allow_undefined_flag=' -expect_unresolved \*'
38601         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
38602         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
38603         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
38604
38605         # Both c and cxx compiler support -rpath directly
38606         hardcode_libdir_flag_spec='-rpath $libdir'
38607       fi
38608       hardcode_libdir_separator=:
38609       ;;
38610
38611     sco3.2v5*)
38612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38613       hardcode_shlibpath_var=no
38614       export_dynamic_flag_spec='${wl}-Bexport'
38615       runpath_var=LD_RUN_PATH
38616       hardcode_runpath_var=yes
38617       ;;
38618
38619     solaris*)
38620       no_undefined_flag=' -z text'
38621       if test "x$archive_cmds" = "x"; then
38622         if test "$GCC" = yes; then
38623           wlarc='${wl}'
38624           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
38625             archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38626             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38627             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38628           else
38629             archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38630             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38631             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38632           fi
38633         else
38634           wlarc=''
38635           lt_prog_compiler_static='-static'
38636           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38637           archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38638           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38639           lt_prog_compiler_static='-static'
38640         fi
38641       fi
38642       hardcode_libdir_flag_spec='-R$libdir'
38643       hardcode_shlibpath_var=no
38644       case $host_os in
38645       solaris2.[0-5] | solaris2.[0-5].*) ;;
38646       *)
38647         # The compiler driver will combine linker options so we
38648         # cannot just pass the convience library names through
38649         # without $wl, iff we do not link with $LD.
38650         # Luckily, gcc supports the same syntax we need for Sun Studio.
38651         # Supported since Solaris 2.6 (maybe 2.5.1?)
38652         case $wlarc in
38653         '')
38654           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
38655         *)
38656           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
38657         esac ;;
38658       esac
38659       link_all_deplibs=yes
38660       ;;
38661
38662     sunos4*)
38663       if test "x$host_vendor" = xsequent; then
38664         # Use $CC to link under sequent, because it throws in some extra .o
38665         # files that make .init and .fini sections work.
38666         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
38667       else
38668         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
38669       fi
38670       hardcode_libdir_flag_spec='-L$libdir'
38671       hardcode_direct=yes
38672       hardcode_minus_L=yes
38673       hardcode_shlibpath_var=no
38674       ;;
38675
38676     sysv4)
38677       case $host_vendor in
38678         sni)
38679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38680           hardcode_direct=yes # is this really true???
38681         ;;
38682         siemens)
38683           ## LD is ld it makes a PLAMLIB
38684           ## CC just makes a GrossModule.
38685           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38686           reload_cmds='$CC -r -o $output$reload_objs'
38687           hardcode_direct=no
38688         ;;
38689         motorola)
38690           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38691           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
38692         ;;
38693       esac
38694       runpath_var='LD_RUN_PATH'
38695       hardcode_shlibpath_var=no
38696       ;;
38697
38698     sysv4.3*)
38699       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38700       hardcode_shlibpath_var=no
38701       export_dynamic_flag_spec='-Bexport'
38702       ;;
38703
38704     sysv4*MP*)
38705       if test -d /usr/nec; then
38706         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38707         hardcode_shlibpath_var=no
38708         runpath_var=LD_RUN_PATH
38709         hardcode_runpath_var=yes
38710         ld_shlibs=yes
38711       fi
38712       ;;
38713
38714     sysv4.2uw2*)
38715       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38716       hardcode_direct=yes
38717       hardcode_minus_L=no
38718       hardcode_shlibpath_var=no
38719       hardcode_runpath_var=yes
38720       runpath_var=LD_RUN_PATH
38721       ;;
38722
38723    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
38724       no_undefined_flag='${wl}-z ${wl}text'
38725       if test "$GCC" = yes; then
38726         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38727       else
38728         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38729       fi
38730       runpath_var='LD_RUN_PATH'
38731       hardcode_shlibpath_var=no
38732       ;;
38733
38734     sysv5*)
38735       no_undefined_flag=' -z text'
38736       # $CC -shared without GNU ld will not create a library from C++
38737       # object files and a static libstdc++, better avoid it by now
38738       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38739       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38740                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38741       hardcode_libdir_flag_spec=
38742       hardcode_shlibpath_var=no
38743       runpath_var='LD_RUN_PATH'
38744       ;;
38745
38746     uts4*)
38747       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38748       hardcode_libdir_flag_spec='-L$libdir'
38749       hardcode_shlibpath_var=no
38750       ;;
38751
38752     *)
38753       ld_shlibs=no
38754       ;;
38755     esac
38756   fi
38757
38758 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
38759 $as_echo "$ld_shlibs" >&6; }
38760 test "$ld_shlibs" = no && can_build_shared=no
38761
38762 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
38763 if test "$GCC" = yes; then
38764   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
38765 fi
38766
38767 #
38768 # Do we need to explicitly link libc?
38769 #
38770 case "x$archive_cmds_need_lc" in
38771 x|xyes)
38772   # Assume -lc should be added
38773   archive_cmds_need_lc=yes
38774
38775   if test "$enable_shared" = yes && test "$GCC" = yes; then
38776     case $archive_cmds in
38777     *'~'*)
38778       # FIXME: we may have to deal with multi-command sequences.
38779       ;;
38780     '$CC '*)
38781       # Test whether the compiler implicitly links with -lc since on some
38782       # systems, -lgcc has to come before -lc. If gcc already passes -lc
38783       # to ld, don't add -lc before -lgcc.
38784       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
38785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
38786       $rm conftest*
38787       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
38788
38789       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38790   (eval $ac_compile) 2>&5
38791   ac_status=$?
38792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793   (exit $ac_status); } 2>conftest.err; then
38794         soname=conftest
38795         lib=conftest
38796         libobjs=conftest.$ac_objext
38797         deplibs=
38798         wl=$lt_prog_compiler_wl
38799         compiler_flags=-v
38800         linker_flags=-v
38801         verstring=
38802         output_objdir=.
38803         libname=conftest
38804         lt_save_allow_undefined_flag=$allow_undefined_flag
38805         allow_undefined_flag=
38806         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
38807   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
38808   ac_status=$?
38809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810   (exit $ac_status); }
38811         then
38812           archive_cmds_need_lc=no
38813         else
38814           archive_cmds_need_lc=yes
38815         fi
38816         allow_undefined_flag=$lt_save_allow_undefined_flag
38817       else
38818         cat conftest.err 1>&5
38819       fi
38820       $rm conftest*
38821       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
38822 $as_echo "$archive_cmds_need_lc" >&6; }
38823       ;;
38824     esac
38825   fi
38826   ;;
38827 esac
38828
38829 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
38830 $as_echo_n "checking dynamic linker characteristics... " >&6; }
38831 library_names_spec=
38832 libname_spec='lib$name'
38833 soname_spec=
38834 shrext_cmds=".so"
38835 postinstall_cmds=
38836 postuninstall_cmds=
38837 finish_cmds=
38838 finish_eval=
38839 shlibpath_var=
38840 shlibpath_overrides_runpath=unknown
38841 version_type=none
38842 dynamic_linker="$host_os ld.so"
38843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
38844 if test "$GCC" = yes; then
38845   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38846   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
38847     # if the path contains ";" then we assume it to be the separator
38848     # otherwise default to the standard path separator (i.e. ":") - it is
38849     # assumed that no part of a normal pathname contains ";" but that should
38850     # okay in the real world where ";" in dirpaths is itself problematic.
38851     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38852   else
38853     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
38854   fi
38855 else
38856   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
38857 fi
38858 need_lib_prefix=unknown
38859 hardcode_into_libs=no
38860
38861 # when you set need_version to no, make sure it does not cause -set_version
38862 # flags to be left without arguments
38863 need_version=unknown
38864
38865 case $host_os in
38866 aix3*)
38867   version_type=linux
38868   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
38869   shlibpath_var=LIBPATH
38870
38871   # AIX 3 has no versioning support, so we append a major version to the name.
38872   soname_spec='${libname}${release}${shared_ext}$major'
38873   ;;
38874
38875 aix4* | aix5*)
38876   version_type=linux
38877   need_lib_prefix=no
38878   need_version=no
38879   hardcode_into_libs=yes
38880   if test "$host_cpu" = ia64; then
38881     # AIX 5 supports IA64
38882     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
38883     shlibpath_var=LD_LIBRARY_PATH
38884   else
38885     # With GCC up to 2.95.x, collect2 would create an import file
38886     # for dependence libraries.  The import file would start with
38887     # the line `#! .'.  This would cause the generated library to
38888     # depend on `.', always an invalid library.  This was fixed in
38889     # development snapshots of GCC prior to 3.0.
38890     case $host_os in
38891       aix4 | aix4.[01] | aix4.[01].*)
38892       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38893            echo ' yes '
38894            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
38895         :
38896       else
38897         can_build_shared=no
38898       fi
38899       ;;
38900     esac
38901     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
38902     # soname into executable. Probably we can add versioning support to
38903     # collect2, so additional links can be useful in future.
38904     if test "$aix_use_runtimelinking" = yes; then
38905       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
38906       # instead of lib<name>.a to let people know that these are not
38907       # typical AIX shared libraries.
38908       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38909     else
38910       # We preserve .a as extension for shared libraries through AIX4.2
38911       # and later when we are not doing run time linking.
38912       library_names_spec='${libname}${release}.a $libname.a'
38913       soname_spec='${libname}${release}${shared_ext}$major'
38914     fi
38915     shlibpath_var=LIBPATH
38916   fi
38917   ;;
38918
38919 amigaos*)
38920   library_names_spec='$libname.ixlibrary $libname.a'
38921   # Create ${libname}_ixlibrary.a entries in /sys/libs.
38922   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'
38923   ;;
38924
38925 beos*)
38926   library_names_spec='${libname}${shared_ext}'
38927   dynamic_linker="$host_os ld.so"
38928   shlibpath_var=LIBRARY_PATH
38929   ;;
38930
38931 bsdi[45]*)
38932   version_type=linux
38933   need_version=no
38934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38935   soname_spec='${libname}${release}${shared_ext}$major'
38936   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
38937   shlibpath_var=LD_LIBRARY_PATH
38938   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
38939   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
38940   # the default ld.so.conf also contains /usr/contrib/lib and
38941   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
38942   # libtool to hard-code these into programs
38943   ;;
38944
38945 cygwin* | mingw* | pw32*)
38946   version_type=windows
38947   shrext_cmds=".dll"
38948   need_version=no
38949   need_lib_prefix=no
38950
38951   case $GCC,$host_os in
38952   yes,cygwin* | yes,mingw* | yes,pw32*)
38953     library_names_spec='$libname.dll.a'
38954     # DLL is installed to $(libdir)/../bin by postinstall_cmds
38955     postinstall_cmds='base_file=`basename \${file}`~
38956       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
38957       dldir=$destdir/`dirname \$dlpath`~
38958       test -d \$dldir || mkdir -p \$dldir~
38959       $install_prog $dir/$dlname \$dldir/$dlname~
38960       chmod a+x \$dldir/$dlname'
38961     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
38962       dlpath=$dir/\$dldll~
38963        $rm \$dlpath'
38964     shlibpath_overrides_runpath=yes
38965
38966     case $host_os in
38967     cygwin*)
38968       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
38969       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38970       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
38971       ;;
38972     mingw*)
38973       # MinGW DLLs use traditional 'lib' prefix
38974       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38975       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38976       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
38977         # It is most probably a Windows format PATH printed by
38978         # mingw gcc, but we are running on Cygwin. Gcc prints its search
38979         # path with ; separators, and with drive letters. We can handle the
38980         # drive letters (cygwin fileutils understands them), so leave them,
38981         # especially as we might pass files found there to a mingw objdump,
38982         # which wouldn't understand a cygwinified path. Ahh.
38983         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38984       else
38985         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
38986       fi
38987       ;;
38988     pw32*)
38989       # pw32 DLLs use 'pw' prefix rather than 'lib'
38990       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38991       ;;
38992     esac
38993     ;;
38994
38995   *)
38996     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
38997     ;;
38998   esac
38999   dynamic_linker='Win32 ld.exe'
39000   # FIXME: first we should search . and the directory the executable is in
39001   shlibpath_var=PATH
39002   ;;
39003
39004 darwin* | rhapsody*)
39005   dynamic_linker="$host_os dyld"
39006   version_type=darwin
39007   need_lib_prefix=no
39008   need_version=no
39009   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
39010   soname_spec='${libname}${release}${major}$shared_ext'
39011   shlibpath_overrides_runpath=yes
39012   shlibpath_var=DYLD_LIBRARY_PATH
39013   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
39014   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
39015   if test "$GCC" = yes; then
39016     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
39017   else
39018     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
39019   fi
39020   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
39021   ;;
39022
39023 dgux*)
39024   version_type=linux
39025   need_lib_prefix=no
39026   need_version=no
39027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
39028   soname_spec='${libname}${release}${shared_ext}$major'
39029   shlibpath_var=LD_LIBRARY_PATH
39030   ;;
39031
39032 freebsd1*)
39033   dynamic_linker=no
39034   ;;
39035
39036 kfreebsd*-gnu)
39037   version_type=linux
39038   need_lib_prefix=no
39039   need_version=no
39040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39041   soname_spec='${libname}${release}${shared_ext}$major'
39042   shlibpath_var=LD_LIBRARY_PATH
39043   shlibpath_overrides_runpath=no
39044   hardcode_into_libs=yes
39045   dynamic_linker='GNU ld.so'
39046   ;;
39047
39048 freebsd* | dragonfly*)
39049   # DragonFly does not have aout.  When/if they implement a new
39050   # versioning mechanism, adjust this.
39051   if test -x /usr/bin/objformat; then
39052     objformat=`/usr/bin/objformat`
39053   else
39054     case $host_os in
39055     freebsd[123]*) objformat=aout ;;
39056     *) objformat=elf ;;
39057     esac
39058   fi
39059   version_type=freebsd-$objformat
39060   case $version_type in
39061     freebsd-elf*)
39062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
39063       need_version=no
39064       need_lib_prefix=no
39065       ;;
39066     freebsd-*)
39067       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
39068       need_version=yes
39069       ;;
39070   esac
39071   shlibpath_var=LD_LIBRARY_PATH
39072   case $host_os in
39073   freebsd2*)
39074     shlibpath_overrides_runpath=yes
39075     ;;
39076   freebsd3.[01]* | freebsdelf3.[01]*)
39077     shlibpath_overrides_runpath=yes
39078     hardcode_into_libs=yes
39079     ;;
39080   *) # from 3.2 on
39081     shlibpath_overrides_runpath=no
39082     hardcode_into_libs=yes
39083     ;;
39084   esac
39085   ;;
39086
39087 gnu*)
39088   version_type=linux
39089   need_lib_prefix=no
39090   need_version=no
39091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
39092   soname_spec='${libname}${release}${shared_ext}$major'
39093   shlibpath_var=LD_LIBRARY_PATH
39094   hardcode_into_libs=yes
39095   ;;
39096
39097 hpux9* | hpux10* | hpux11*)
39098   # Give a soname corresponding to the major version so that dld.sl refuses to
39099   # link against other versions.
39100   version_type=sunos
39101   need_lib_prefix=no
39102   need_version=no
39103   case $host_cpu in
39104   ia64*)
39105     shrext_cmds='.so'
39106     hardcode_into_libs=yes
39107     dynamic_linker="$host_os dld.so"
39108     shlibpath_var=LD_LIBRARY_PATH
39109     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39111     soname_spec='${libname}${release}${shared_ext}$major'
39112     if test "X$HPUX_IA64_MODE" = X32; then
39113       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
39114     else
39115       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
39116     fi
39117     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39118     ;;
39119    hppa*64*)
39120      shrext_cmds='.sl'
39121      hardcode_into_libs=yes
39122      dynamic_linker="$host_os dld.sl"
39123      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
39124      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39125      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39126      soname_spec='${libname}${release}${shared_ext}$major'
39127      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
39128      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39129      ;;
39130    *)
39131     shrext_cmds='.sl'
39132     dynamic_linker="$host_os dld.sl"
39133     shlibpath_var=SHLIB_PATH
39134     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
39135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39136     soname_spec='${libname}${release}${shared_ext}$major'
39137     ;;
39138   esac
39139   # HP-UX runs *really* slowly unless shared libraries are mode 555.
39140   postinstall_cmds='chmod 555 $lib'
39141   ;;
39142
39143 irix5* | irix6* | nonstopux*)
39144   case $host_os in
39145     nonstopux*) version_type=nonstopux ;;
39146     *)
39147         if test "$lt_cv_prog_gnu_ld" = yes; then
39148                 version_type=linux
39149         else
39150                 version_type=irix
39151         fi ;;
39152   esac
39153   need_lib_prefix=no
39154   need_version=no
39155   soname_spec='${libname}${release}${shared_ext}$major'
39156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
39157   case $host_os in
39158   irix5* | nonstopux*)
39159     libsuff= shlibsuff=
39160     ;;
39161   *)
39162     case $LD in # libtool.m4 will add one of these switches to LD
39163     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
39164       libsuff= shlibsuff= libmagic=32-bit;;
39165     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
39166       libsuff=32 shlibsuff=N32 libmagic=N32;;
39167     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
39168       libsuff=64 shlibsuff=64 libmagic=64-bit;;
39169     *) libsuff= shlibsuff= libmagic=never-match;;
39170     esac
39171     ;;
39172   esac
39173   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
39174   shlibpath_overrides_runpath=no
39175   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
39176   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
39177   hardcode_into_libs=yes
39178   ;;
39179
39180 # No shared lib support for Linux oldld, aout, or coff.
39181 linux*oldld* | linux*aout* | linux*coff*)
39182   dynamic_linker=no
39183   ;;
39184
39185 # This must be Linux ELF.
39186 linux*)
39187   version_type=linux
39188   need_lib_prefix=no
39189   need_version=no
39190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39191   soname_spec='${libname}${release}${shared_ext}$major'
39192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
39193   shlibpath_var=LD_LIBRARY_PATH
39194   shlibpath_overrides_runpath=no
39195   # This implies no fast_install, which is unacceptable.
39196   # Some rework will be needed to allow for fast_install
39197   # before this can be enabled.
39198   hardcode_into_libs=yes
39199
39200   # Append ld.so.conf contents to the search path
39201   if test -f /etc/ld.so.conf; then
39202     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
39203     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
39204   fi
39205
39206   # We used to test for /lib/ld.so.1 and disable shared libraries on
39207   # powerpc, because MkLinux only supported shared libraries with the
39208   # GNU dynamic linker.  Since this was broken with cross compilers,
39209   # most powerpc-linux boxes support dynamic linking these days and
39210   # people can always --disable-shared, the test was removed, and we
39211   # assume the GNU/Linux dynamic linker is in use.
39212   dynamic_linker='GNU/Linux ld.so'
39213   ;;
39214
39215 knetbsd*-gnu)
39216   version_type=linux
39217   need_lib_prefix=no
39218   need_version=no
39219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39220   soname_spec='${libname}${release}${shared_ext}$major'
39221   shlibpath_var=LD_LIBRARY_PATH
39222   shlibpath_overrides_runpath=no
39223   hardcode_into_libs=yes
39224   dynamic_linker='GNU ld.so'
39225   ;;
39226
39227 netbsd*)
39228   version_type=sunos
39229   need_lib_prefix=no
39230   need_version=no
39231   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39233     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39234     dynamic_linker='NetBSD (a.out) ld.so'
39235   else
39236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39237     soname_spec='${libname}${release}${shared_ext}$major'
39238     dynamic_linker='NetBSD ld.elf_so'
39239   fi
39240   shlibpath_var=LD_LIBRARY_PATH
39241   shlibpath_overrides_runpath=yes
39242   hardcode_into_libs=yes
39243   ;;
39244
39245 newsos6)
39246   version_type=linux
39247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39248   shlibpath_var=LD_LIBRARY_PATH
39249   shlibpath_overrides_runpath=yes
39250   ;;
39251
39252 nto-qnx*)
39253   version_type=linux
39254   need_lib_prefix=no
39255   need_version=no
39256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39257   soname_spec='${libname}${release}${shared_ext}$major'
39258   shlibpath_var=LD_LIBRARY_PATH
39259   shlibpath_overrides_runpath=yes
39260   ;;
39261
39262 openbsd*)
39263   version_type=sunos
39264   need_lib_prefix=no
39265   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
39266   case $host_os in
39267     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
39268     *)                         need_version=no  ;;
39269   esac
39270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39272   shlibpath_var=LD_LIBRARY_PATH
39273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39274     case $host_os in
39275       openbsd2.[89] | openbsd2.[89].*)
39276         shlibpath_overrides_runpath=no
39277         ;;
39278       *)
39279         shlibpath_overrides_runpath=yes
39280         ;;
39281       esac
39282   else
39283     shlibpath_overrides_runpath=yes
39284   fi
39285   ;;
39286
39287 os2*)
39288   libname_spec='$name'
39289   shrext_cmds=".dll"
39290   need_lib_prefix=no
39291   library_names_spec='$libname${shared_ext} $libname.a'
39292   dynamic_linker='OS/2 ld.exe'
39293   shlibpath_var=LIBPATH
39294   ;;
39295
39296 osf3* | osf4* | osf5*)
39297   version_type=osf
39298   need_lib_prefix=no
39299   need_version=no
39300   soname_spec='${libname}${release}${shared_ext}$major'
39301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39302   shlibpath_var=LD_LIBRARY_PATH
39303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
39304   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
39305   ;;
39306
39307 sco3.2v5*)
39308   version_type=osf
39309   soname_spec='${libname}${release}${shared_ext}$major'
39310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39311   shlibpath_var=LD_LIBRARY_PATH
39312   ;;
39313
39314 solaris*)
39315   version_type=linux
39316   need_lib_prefix=no
39317   need_version=no
39318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39319   soname_spec='${libname}${release}${shared_ext}$major'
39320   shlibpath_var=LD_LIBRARY_PATH
39321   shlibpath_overrides_runpath=yes
39322   hardcode_into_libs=yes
39323   # ldd complains unless libraries are executable
39324   postinstall_cmds='chmod +x $lib'
39325   ;;
39326
39327 sunos4*)
39328   version_type=sunos
39329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39330   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
39331   shlibpath_var=LD_LIBRARY_PATH
39332   shlibpath_overrides_runpath=yes
39333   if test "$with_gnu_ld" = yes; then
39334     need_lib_prefix=no
39335   fi
39336   need_version=yes
39337   ;;
39338
39339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
39340   version_type=linux
39341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39342   soname_spec='${libname}${release}${shared_ext}$major'
39343   shlibpath_var=LD_LIBRARY_PATH
39344   case $host_vendor in
39345     sni)
39346       shlibpath_overrides_runpath=no
39347       need_lib_prefix=no
39348       export_dynamic_flag_spec='${wl}-Blargedynsym'
39349       runpath_var=LD_RUN_PATH
39350       ;;
39351     siemens)
39352       need_lib_prefix=no
39353       ;;
39354     motorola)
39355       need_lib_prefix=no
39356       need_version=no
39357       shlibpath_overrides_runpath=no
39358       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
39359       ;;
39360   esac
39361   ;;
39362
39363 sysv4*MP*)
39364   if test -d /usr/nec ;then
39365     version_type=linux
39366     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
39367     soname_spec='$libname${shared_ext}.$major'
39368     shlibpath_var=LD_LIBRARY_PATH
39369   fi
39370   ;;
39371
39372 uts4*)
39373   version_type=linux
39374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39375   soname_spec='${libname}${release}${shared_ext}$major'
39376   shlibpath_var=LD_LIBRARY_PATH
39377   ;;
39378
39379 *)
39380   dynamic_linker=no
39381   ;;
39382 esac
39383 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
39384 $as_echo "$dynamic_linker" >&6; }
39385 test "$dynamic_linker" = no && can_build_shared=no
39386
39387 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
39388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
39389 hardcode_action=
39390 if test -n "$hardcode_libdir_flag_spec" || \
39391    test -n "$runpath_var" || \
39392    test "X$hardcode_automatic" = "Xyes" ; then
39393
39394   # We can hardcode non-existant directories.
39395   if test "$hardcode_direct" != no &&
39396      # If the only mechanism to avoid hardcoding is shlibpath_var, we
39397      # have to relink, otherwise we might link with an installed library
39398      # when we should be linking with a yet-to-be-installed one
39399      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
39400      test "$hardcode_minus_L" != no; then
39401     # Linking always hardcodes the temporary library directory.
39402     hardcode_action=relink
39403   else
39404     # We can link without hardcoding, and we can hardcode nonexisting dirs.
39405     hardcode_action=immediate
39406   fi
39407 else
39408   # We cannot hardcode anything, or else we can only hardcode existing
39409   # directories.
39410   hardcode_action=unsupported
39411 fi
39412 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
39413 $as_echo "$hardcode_action" >&6; }
39414
39415 if test "$hardcode_action" = relink; then
39416   # Fast installation is not supported
39417   enable_fast_install=no
39418 elif test "$shlibpath_overrides_runpath" = yes ||
39419      test "$enable_shared" = no; then
39420   # Fast installation is not necessary
39421   enable_fast_install=needless
39422 fi
39423
39424 striplib=
39425 old_striplib=
39426 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
39427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
39428 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
39429   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
39430   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
39431   { $as_echo "$as_me:$LINENO: result: yes" >&5
39432 $as_echo "yes" >&6; }
39433 else
39434 # FIXME - insert some real tests, host_os isn't really good enough
39435   case $host_os in
39436    darwin*)
39437        if test -n "$STRIP" ; then
39438          striplib="$STRIP -x"
39439          { $as_echo "$as_me:$LINENO: result: yes" >&5
39440 $as_echo "yes" >&6; }
39441        else
39442   { $as_echo "$as_me:$LINENO: result: no" >&5
39443 $as_echo "no" >&6; }
39444 fi
39445        ;;
39446    *)
39447   { $as_echo "$as_me:$LINENO: result: no" >&5
39448 $as_echo "no" >&6; }
39449     ;;
39450   esac
39451 fi
39452
39453 if test "x$enable_dlopen" != xyes; then
39454   enable_dlopen=unknown
39455   enable_dlopen_self=unknown
39456   enable_dlopen_self_static=unknown
39457 else
39458   lt_cv_dlopen=no
39459   lt_cv_dlopen_libs=
39460
39461   case $host_os in
39462   beos*)
39463     lt_cv_dlopen="load_add_on"
39464     lt_cv_dlopen_libs=
39465     lt_cv_dlopen_self=yes
39466     ;;
39467
39468   mingw* | pw32*)
39469     lt_cv_dlopen="LoadLibrary"
39470     lt_cv_dlopen_libs=
39471    ;;
39472
39473   cygwin*)
39474     lt_cv_dlopen="dlopen"
39475     lt_cv_dlopen_libs=
39476    ;;
39477
39478   darwin*)
39479   # if libdl is installed we need to link against it
39480     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39483   $as_echo_n "(cached) " >&6
39484 else
39485   ac_check_lib_save_LIBS=$LIBS
39486 LIBS="-ldl  $LIBS"
39487 cat >conftest.$ac_ext <<_ACEOF
39488 /* confdefs.h.  */
39489 _ACEOF
39490 cat confdefs.h >>conftest.$ac_ext
39491 cat >>conftest.$ac_ext <<_ACEOF
39492 /* end confdefs.h.  */
39493
39494 /* Override any GCC internal prototype to avoid an error.
39495    Use char because int might match the return type of a GCC
39496    builtin and then its argument prototype would still apply.  */
39497 #ifdef __cplusplus
39498 extern "C"
39499 #endif
39500 char dlopen ();
39501 int
39502 main ()
39503 {
39504 return dlopen ();
39505   ;
39506   return 0;
39507 }
39508 _ACEOF
39509 rm -f conftest.$ac_objext conftest$ac_exeext
39510 if { (ac_try="$ac_link"
39511 case "(($ac_try" in
39512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513   *) ac_try_echo=$ac_try;;
39514 esac
39515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39516 $as_echo "$ac_try_echo") >&5
39517   (eval "$ac_link") 2>conftest.er1
39518   ac_status=$?
39519   grep -v '^ *+' conftest.er1 >conftest.err
39520   rm -f conftest.er1
39521   cat conftest.err >&5
39522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523   (exit $ac_status); } && {
39524          test -z "$ac_c_werror_flag" ||
39525          test ! -s conftest.err
39526        } && test -s conftest$ac_exeext && {
39527          test "$cross_compiling" = yes ||
39528          $as_test_x conftest$ac_exeext
39529        }; then
39530   ac_cv_lib_dl_dlopen=yes
39531 else
39532   $as_echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535         ac_cv_lib_dl_dlopen=no
39536 fi
39537
39538 rm -rf conftest.dSYM
39539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39540       conftest$ac_exeext conftest.$ac_ext
39541 LIBS=$ac_check_lib_save_LIBS
39542 fi
39543 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39544 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39545 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39546   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39547 else
39548
39549     lt_cv_dlopen="dyld"
39550     lt_cv_dlopen_libs=
39551     lt_cv_dlopen_self=yes
39552
39553 fi
39554
39555    ;;
39556
39557   *)
39558     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
39559 $as_echo_n "checking for shl_load... " >&6; }
39560 if test "${ac_cv_func_shl_load+set}" = set; then
39561   $as_echo_n "(cached) " >&6
39562 else
39563   cat >conftest.$ac_ext <<_ACEOF
39564 /* confdefs.h.  */
39565 _ACEOF
39566 cat confdefs.h >>conftest.$ac_ext
39567 cat >>conftest.$ac_ext <<_ACEOF
39568 /* end confdefs.h.  */
39569 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
39570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39571 #define shl_load innocuous_shl_load
39572
39573 /* System header to define __stub macros and hopefully few prototypes,
39574     which can conflict with char shl_load (); below.
39575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39576     <limits.h> exists even on freestanding compilers.  */
39577
39578 #ifdef __STDC__
39579 # include <limits.h>
39580 #else
39581 # include <assert.h>
39582 #endif
39583
39584 #undef shl_load
39585
39586 /* Override any GCC internal prototype to avoid an error.
39587    Use char because int might match the return type of a GCC
39588    builtin and then its argument prototype would still apply.  */
39589 #ifdef __cplusplus
39590 extern "C"
39591 #endif
39592 char shl_load ();
39593 /* The GNU C library defines this for functions which it implements
39594     to always fail with ENOSYS.  Some functions are actually named
39595     something starting with __ and the normal name is an alias.  */
39596 #if defined __stub_shl_load || defined __stub___shl_load
39597 choke me
39598 #endif
39599
39600 int
39601 main ()
39602 {
39603 return shl_load ();
39604   ;
39605   return 0;
39606 }
39607 _ACEOF
39608 rm -f conftest.$ac_objext conftest$ac_exeext
39609 if { (ac_try="$ac_link"
39610 case "(($ac_try" in
39611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39612   *) ac_try_echo=$ac_try;;
39613 esac
39614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39615 $as_echo "$ac_try_echo") >&5
39616   (eval "$ac_link") 2>conftest.er1
39617   ac_status=$?
39618   grep -v '^ *+' conftest.er1 >conftest.err
39619   rm -f conftest.er1
39620   cat conftest.err >&5
39621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622   (exit $ac_status); } && {
39623          test -z "$ac_c_werror_flag" ||
39624          test ! -s conftest.err
39625        } && test -s conftest$ac_exeext && {
39626          test "$cross_compiling" = yes ||
39627          $as_test_x conftest$ac_exeext
39628        }; then
39629   ac_cv_func_shl_load=yes
39630 else
39631   $as_echo "$as_me: failed program was:" >&5
39632 sed 's/^/| /' conftest.$ac_ext >&5
39633
39634         ac_cv_func_shl_load=no
39635 fi
39636
39637 rm -rf conftest.dSYM
39638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39639       conftest$ac_exeext conftest.$ac_ext
39640 fi
39641 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
39642 $as_echo "$ac_cv_func_shl_load" >&6; }
39643 if test "x$ac_cv_func_shl_load" = x""yes; then
39644   lt_cv_dlopen="shl_load"
39645 else
39646   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
39647 $as_echo_n "checking for shl_load in -ldld... " >&6; }
39648 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
39649   $as_echo_n "(cached) " >&6
39650 else
39651   ac_check_lib_save_LIBS=$LIBS
39652 LIBS="-ldld  $LIBS"
39653 cat >conftest.$ac_ext <<_ACEOF
39654 /* confdefs.h.  */
39655 _ACEOF
39656 cat confdefs.h >>conftest.$ac_ext
39657 cat >>conftest.$ac_ext <<_ACEOF
39658 /* end confdefs.h.  */
39659
39660 /* Override any GCC internal prototype to avoid an error.
39661    Use char because int might match the return type of a GCC
39662    builtin and then its argument prototype would still apply.  */
39663 #ifdef __cplusplus
39664 extern "C"
39665 #endif
39666 char shl_load ();
39667 int
39668 main ()
39669 {
39670 return shl_load ();
39671   ;
39672   return 0;
39673 }
39674 _ACEOF
39675 rm -f conftest.$ac_objext conftest$ac_exeext
39676 if { (ac_try="$ac_link"
39677 case "(($ac_try" in
39678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39679   *) ac_try_echo=$ac_try;;
39680 esac
39681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39682 $as_echo "$ac_try_echo") >&5
39683   (eval "$ac_link") 2>conftest.er1
39684   ac_status=$?
39685   grep -v '^ *+' conftest.er1 >conftest.err
39686   rm -f conftest.er1
39687   cat conftest.err >&5
39688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689   (exit $ac_status); } && {
39690          test -z "$ac_c_werror_flag" ||
39691          test ! -s conftest.err
39692        } && test -s conftest$ac_exeext && {
39693          test "$cross_compiling" = yes ||
39694          $as_test_x conftest$ac_exeext
39695        }; then
39696   ac_cv_lib_dld_shl_load=yes
39697 else
39698   $as_echo "$as_me: failed program was:" >&5
39699 sed 's/^/| /' conftest.$ac_ext >&5
39700
39701         ac_cv_lib_dld_shl_load=no
39702 fi
39703
39704 rm -rf conftest.dSYM
39705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39706       conftest$ac_exeext conftest.$ac_ext
39707 LIBS=$ac_check_lib_save_LIBS
39708 fi
39709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
39710 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
39711 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
39712   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
39713 else
39714   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
39715 $as_echo_n "checking for dlopen... " >&6; }
39716 if test "${ac_cv_func_dlopen+set}" = set; then
39717   $as_echo_n "(cached) " >&6
39718 else
39719   cat >conftest.$ac_ext <<_ACEOF
39720 /* confdefs.h.  */
39721 _ACEOF
39722 cat confdefs.h >>conftest.$ac_ext
39723 cat >>conftest.$ac_ext <<_ACEOF
39724 /* end confdefs.h.  */
39725 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
39726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39727 #define dlopen innocuous_dlopen
39728
39729 /* System header to define __stub macros and hopefully few prototypes,
39730     which can conflict with char dlopen (); below.
39731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39732     <limits.h> exists even on freestanding compilers.  */
39733
39734 #ifdef __STDC__
39735 # include <limits.h>
39736 #else
39737 # include <assert.h>
39738 #endif
39739
39740 #undef dlopen
39741
39742 /* Override any GCC internal prototype to avoid an error.
39743    Use char because int might match the return type of a GCC
39744    builtin and then its argument prototype would still apply.  */
39745 #ifdef __cplusplus
39746 extern "C"
39747 #endif
39748 char dlopen ();
39749 /* The GNU C library defines this for functions which it implements
39750     to always fail with ENOSYS.  Some functions are actually named
39751     something starting with __ and the normal name is an alias.  */
39752 #if defined __stub_dlopen || defined __stub___dlopen
39753 choke me
39754 #endif
39755
39756 int
39757 main ()
39758 {
39759 return dlopen ();
39760   ;
39761   return 0;
39762 }
39763 _ACEOF
39764 rm -f conftest.$ac_objext conftest$ac_exeext
39765 if { (ac_try="$ac_link"
39766 case "(($ac_try" in
39767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768   *) ac_try_echo=$ac_try;;
39769 esac
39770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39771 $as_echo "$ac_try_echo") >&5
39772   (eval "$ac_link") 2>conftest.er1
39773   ac_status=$?
39774   grep -v '^ *+' conftest.er1 >conftest.err
39775   rm -f conftest.er1
39776   cat conftest.err >&5
39777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778   (exit $ac_status); } && {
39779          test -z "$ac_c_werror_flag" ||
39780          test ! -s conftest.err
39781        } && test -s conftest$ac_exeext && {
39782          test "$cross_compiling" = yes ||
39783          $as_test_x conftest$ac_exeext
39784        }; then
39785   ac_cv_func_dlopen=yes
39786 else
39787   $as_echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39789
39790         ac_cv_func_dlopen=no
39791 fi
39792
39793 rm -rf conftest.dSYM
39794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39795       conftest$ac_exeext conftest.$ac_ext
39796 fi
39797 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
39798 $as_echo "$ac_cv_func_dlopen" >&6; }
39799 if test "x$ac_cv_func_dlopen" = x""yes; then
39800   lt_cv_dlopen="dlopen"
39801 else
39802   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39805   $as_echo_n "(cached) " >&6
39806 else
39807   ac_check_lib_save_LIBS=$LIBS
39808 LIBS="-ldl  $LIBS"
39809 cat >conftest.$ac_ext <<_ACEOF
39810 /* confdefs.h.  */
39811 _ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h.  */
39815
39816 /* Override any GCC internal prototype to avoid an error.
39817    Use char because int might match the return type of a GCC
39818    builtin and then its argument prototype would still apply.  */
39819 #ifdef __cplusplus
39820 extern "C"
39821 #endif
39822 char dlopen ();
39823 int
39824 main ()
39825 {
39826 return dlopen ();
39827   ;
39828   return 0;
39829 }
39830 _ACEOF
39831 rm -f conftest.$ac_objext conftest$ac_exeext
39832 if { (ac_try="$ac_link"
39833 case "(($ac_try" in
39834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39835   *) ac_try_echo=$ac_try;;
39836 esac
39837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39838 $as_echo "$ac_try_echo") >&5
39839   (eval "$ac_link") 2>conftest.er1
39840   ac_status=$?
39841   grep -v '^ *+' conftest.er1 >conftest.err
39842   rm -f conftest.er1
39843   cat conftest.err >&5
39844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845   (exit $ac_status); } && {
39846          test -z "$ac_c_werror_flag" ||
39847          test ! -s conftest.err
39848        } && test -s conftest$ac_exeext && {
39849          test "$cross_compiling" = yes ||
39850          $as_test_x conftest$ac_exeext
39851        }; then
39852   ac_cv_lib_dl_dlopen=yes
39853 else
39854   $as_echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39856
39857         ac_cv_lib_dl_dlopen=no
39858 fi
39859
39860 rm -rf conftest.dSYM
39861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39862       conftest$ac_exeext conftest.$ac_ext
39863 LIBS=$ac_check_lib_save_LIBS
39864 fi
39865 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39866 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39867 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39868   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39869 else
39870   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
39871 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
39872 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
39873   $as_echo_n "(cached) " >&6
39874 else
39875   ac_check_lib_save_LIBS=$LIBS
39876 LIBS="-lsvld  $LIBS"
39877 cat >conftest.$ac_ext <<_ACEOF
39878 /* confdefs.h.  */
39879 _ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h.  */
39883
39884 /* Override any GCC internal prototype to avoid an error.
39885    Use char because int might match the return type of a GCC
39886    builtin and then its argument prototype would still apply.  */
39887 #ifdef __cplusplus
39888 extern "C"
39889 #endif
39890 char dlopen ();
39891 int
39892 main ()
39893 {
39894 return dlopen ();
39895   ;
39896   return 0;
39897 }
39898 _ACEOF
39899 rm -f conftest.$ac_objext conftest$ac_exeext
39900 if { (ac_try="$ac_link"
39901 case "(($ac_try" in
39902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39903   *) ac_try_echo=$ac_try;;
39904 esac
39905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39906 $as_echo "$ac_try_echo") >&5
39907   (eval "$ac_link") 2>conftest.er1
39908   ac_status=$?
39909   grep -v '^ *+' conftest.er1 >conftest.err
39910   rm -f conftest.er1
39911   cat conftest.err >&5
39912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913   (exit $ac_status); } && {
39914          test -z "$ac_c_werror_flag" ||
39915          test ! -s conftest.err
39916        } && test -s conftest$ac_exeext && {
39917          test "$cross_compiling" = yes ||
39918          $as_test_x conftest$ac_exeext
39919        }; then
39920   ac_cv_lib_svld_dlopen=yes
39921 else
39922   $as_echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39924
39925         ac_cv_lib_svld_dlopen=no
39926 fi
39927
39928 rm -rf conftest.dSYM
39929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39930       conftest$ac_exeext conftest.$ac_ext
39931 LIBS=$ac_check_lib_save_LIBS
39932 fi
39933 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
39934 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
39935 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
39936   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
39937 else
39938   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
39939 $as_echo_n "checking for dld_link in -ldld... " >&6; }
39940 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
39941   $as_echo_n "(cached) " >&6
39942 else
39943   ac_check_lib_save_LIBS=$LIBS
39944 LIBS="-ldld  $LIBS"
39945 cat >conftest.$ac_ext <<_ACEOF
39946 /* confdefs.h.  */
39947 _ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h.  */
39951
39952 /* Override any GCC internal prototype to avoid an error.
39953    Use char because int might match the return type of a GCC
39954    builtin and then its argument prototype would still apply.  */
39955 #ifdef __cplusplus
39956 extern "C"
39957 #endif
39958 char dld_link ();
39959 int
39960 main ()
39961 {
39962 return dld_link ();
39963   ;
39964   return 0;
39965 }
39966 _ACEOF
39967 rm -f conftest.$ac_objext conftest$ac_exeext
39968 if { (ac_try="$ac_link"
39969 case "(($ac_try" in
39970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39971   *) ac_try_echo=$ac_try;;
39972 esac
39973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39974 $as_echo "$ac_try_echo") >&5
39975   (eval "$ac_link") 2>conftest.er1
39976   ac_status=$?
39977   grep -v '^ *+' conftest.er1 >conftest.err
39978   rm -f conftest.er1
39979   cat conftest.err >&5
39980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981   (exit $ac_status); } && {
39982          test -z "$ac_c_werror_flag" ||
39983          test ! -s conftest.err
39984        } && test -s conftest$ac_exeext && {
39985          test "$cross_compiling" = yes ||
39986          $as_test_x conftest$ac_exeext
39987        }; then
39988   ac_cv_lib_dld_dld_link=yes
39989 else
39990   $as_echo "$as_me: failed program was:" >&5
39991 sed 's/^/| /' conftest.$ac_ext >&5
39992
39993         ac_cv_lib_dld_dld_link=no
39994 fi
39995
39996 rm -rf conftest.dSYM
39997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39998       conftest$ac_exeext conftest.$ac_ext
39999 LIBS=$ac_check_lib_save_LIBS
40000 fi
40001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
40002 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
40003 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
40004   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
40005 fi
40006
40007
40008 fi
40009
40010
40011 fi
40012
40013
40014 fi
40015
40016
40017 fi
40018
40019
40020 fi
40021
40022     ;;
40023   esac
40024
40025   if test "x$lt_cv_dlopen" != xno; then
40026     enable_dlopen=yes
40027   else
40028     enable_dlopen=no
40029   fi
40030
40031   case $lt_cv_dlopen in
40032   dlopen)
40033     save_CPPFLAGS="$CPPFLAGS"
40034     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
40035
40036     save_LDFLAGS="$LDFLAGS"
40037     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
40038
40039     save_LIBS="$LIBS"
40040     LIBS="$lt_cv_dlopen_libs $LIBS"
40041
40042     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
40043 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
40044 if test "${lt_cv_dlopen_self+set}" = set; then
40045   $as_echo_n "(cached) " >&6
40046 else
40047           if test "$cross_compiling" = yes; then :
40048   lt_cv_dlopen_self=cross
40049 else
40050   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40051   lt_status=$lt_dlunknown
40052   cat > conftest.$ac_ext <<EOF
40053 #line 40053 "configure"
40054 #include "confdefs.h"
40055
40056 #if HAVE_DLFCN_H
40057 #include <dlfcn.h>
40058 #endif
40059
40060 #include <stdio.h>
40061
40062 #ifdef RTLD_GLOBAL
40063 #  define LT_DLGLOBAL           RTLD_GLOBAL
40064 #else
40065 #  ifdef DL_GLOBAL
40066 #    define LT_DLGLOBAL         DL_GLOBAL
40067 #  else
40068 #    define LT_DLGLOBAL         0
40069 #  endif
40070 #endif
40071
40072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40073    find out it does not work in some platform. */
40074 #ifndef LT_DLLAZY_OR_NOW
40075 #  ifdef RTLD_LAZY
40076 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
40077 #  else
40078 #    ifdef DL_LAZY
40079 #      define LT_DLLAZY_OR_NOW          DL_LAZY
40080 #    else
40081 #      ifdef RTLD_NOW
40082 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
40083 #      else
40084 #        ifdef DL_NOW
40085 #          define LT_DLLAZY_OR_NOW      DL_NOW
40086 #        else
40087 #          define LT_DLLAZY_OR_NOW      0
40088 #        endif
40089 #      endif
40090 #    endif
40091 #  endif
40092 #endif
40093
40094 #ifdef __cplusplus
40095 extern "C" void exit (int);
40096 #endif
40097
40098 void fnord() { int i=42;}
40099 int main ()
40100 {
40101   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40102   int status = $lt_dlunknown;
40103
40104   if (self)
40105     {
40106       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
40107       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40108       /* dlclose (self); */
40109     }
40110
40111     exit (status);
40112 }
40113 EOF
40114   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40115   (eval $ac_link) 2>&5
40116   ac_status=$?
40117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40119     (./conftest; exit; ) >&5 2>/dev/null
40120     lt_status=$?
40121     case x$lt_status in
40122       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
40123       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
40124       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
40125     esac
40126   else :
40127     # compilation failed
40128     lt_cv_dlopen_self=no
40129   fi
40130 fi
40131 rm -fr conftest*
40132
40133
40134 fi
40135 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
40136 $as_echo "$lt_cv_dlopen_self" >&6; }
40137
40138     if test "x$lt_cv_dlopen_self" = xyes; then
40139       LDFLAGS="$LDFLAGS $link_static_flag"
40140       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
40141 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
40142 if test "${lt_cv_dlopen_self_static+set}" = set; then
40143   $as_echo_n "(cached) " >&6
40144 else
40145           if test "$cross_compiling" = yes; then :
40146   lt_cv_dlopen_self_static=cross
40147 else
40148   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40149   lt_status=$lt_dlunknown
40150   cat > conftest.$ac_ext <<EOF
40151 #line 40151 "configure"
40152 #include "confdefs.h"
40153
40154 #if HAVE_DLFCN_H
40155 #include <dlfcn.h>
40156 #endif
40157
40158 #include <stdio.h>
40159
40160 #ifdef RTLD_GLOBAL
40161 #  define LT_DLGLOBAL           RTLD_GLOBAL
40162 #else
40163 #  ifdef DL_GLOBAL
40164 #    define LT_DLGLOBAL         DL_GLOBAL
40165 #  else
40166 #    define LT_DLGLOBAL         0
40167 #  endif
40168 #endif
40169
40170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40171    find out it does not work in some platform. */
40172 #ifndef LT_DLLAZY_OR_NOW
40173 #  ifdef RTLD_LAZY
40174 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
40175 #  else
40176 #    ifdef DL_LAZY
40177 #      define LT_DLLAZY_OR_NOW          DL_LAZY
40178 #    else
40179 #      ifdef RTLD_NOW
40180 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
40181 #      else
40182 #        ifdef DL_NOW
40183 #          define LT_DLLAZY_OR_NOW      DL_NOW
40184 #        else
40185 #          define LT_DLLAZY_OR_NOW      0
40186 #        endif
40187 #      endif
40188 #    endif
40189 #  endif
40190 #endif
40191
40192 #ifdef __cplusplus
40193 extern "C" void exit (int);
40194 #endif
40195
40196 void fnord() { int i=42;}
40197 int main ()
40198 {
40199   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40200   int status = $lt_dlunknown;
40201
40202   if (self)
40203     {
40204       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
40205       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40206       /* dlclose (self); */
40207     }
40208
40209     exit (status);
40210 }
40211 EOF
40212   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40213   (eval $ac_link) 2>&5
40214   ac_status=$?
40215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40217     (./conftest; exit; ) >&5 2>/dev/null
40218     lt_status=$?
40219     case x$lt_status in
40220       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
40221       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
40222       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
40223     esac
40224   else :
40225     # compilation failed
40226     lt_cv_dlopen_self_static=no
40227   fi
40228 fi
40229 rm -fr conftest*
40230
40231
40232 fi
40233 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
40234 $as_echo "$lt_cv_dlopen_self_static" >&6; }
40235     fi
40236
40237     CPPFLAGS="$save_CPPFLAGS"
40238     LDFLAGS="$save_LDFLAGS"
40239     LIBS="$save_LIBS"
40240     ;;
40241   esac
40242
40243   case $lt_cv_dlopen_self in
40244   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
40245   *) enable_dlopen_self=unknown ;;
40246   esac
40247
40248   case $lt_cv_dlopen_self_static in
40249   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
40250   *) enable_dlopen_self_static=unknown ;;
40251   esac
40252 fi
40253
40254
40255 # Report which librarie types wil actually be built
40256 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
40257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
40258 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
40259 $as_echo "$can_build_shared" >&6; }
40260
40261 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
40262 $as_echo_n "checking whether to build shared libraries... " >&6; }
40263 test "$can_build_shared" = "no" && enable_shared=no
40264
40265 # On AIX, shared libraries and static libraries use the same namespace, and
40266 # are all built from PIC.
40267 case $host_os in
40268 aix3*)
40269   test "$enable_shared" = yes && enable_static=no
40270   if test -n "$RANLIB"; then
40271     archive_cmds="$archive_cmds~\$RANLIB \$lib"
40272     postinstall_cmds='$RANLIB $lib'
40273   fi
40274   ;;
40275
40276 aix4* | aix5*)
40277   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
40278     test "$enable_shared" = yes && enable_static=no
40279   fi
40280     ;;
40281 esac
40282 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
40283 $as_echo "$enable_shared" >&6; }
40284
40285 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
40286 $as_echo_n "checking whether to build static libraries... " >&6; }
40287 # Make sure either enable_shared or enable_static is yes.
40288 test "$enable_shared" = yes || enable_static=yes
40289 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
40290 $as_echo "$enable_static" >&6; }
40291
40292 # The else clause should only fire when bootstrapping the
40293 # libtool distribution, otherwise you forgot to ship ltmain.sh
40294 # with your package, and you will get complaints that there are
40295 # no rules to generate ltmain.sh.
40296 if test -f "$ltmain"; then
40297   # See if we are running on zsh, and set the options which allow our commands through
40298   # without removal of \ escapes.
40299   if test -n "${ZSH_VERSION+set}" ; then
40300     setopt NO_GLOB_SUBST
40301   fi
40302   # Now quote all the things that may contain metacharacters while being
40303   # careful not to overquote the AC_SUBSTed values.  We take copies of the
40304   # variables and quote the copies for generation of the libtool script.
40305   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
40306     SED SHELL STRIP \
40307     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
40308     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
40309     deplibs_check_method reload_flag reload_cmds need_locks \
40310     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
40311     lt_cv_sys_global_symbol_to_c_name_address \
40312     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
40313     old_postinstall_cmds old_postuninstall_cmds \
40314     compiler \
40315     CC \
40316     LD \
40317     lt_prog_compiler_wl \
40318     lt_prog_compiler_pic \
40319     lt_prog_compiler_static \
40320     lt_prog_compiler_no_builtin_flag \
40321     export_dynamic_flag_spec \
40322     thread_safe_flag_spec \
40323     whole_archive_flag_spec \
40324     enable_shared_with_static_runtimes \
40325     old_archive_cmds \
40326     old_archive_from_new_cmds \
40327     predep_objects \
40328     postdep_objects \
40329     predeps \
40330     postdeps \
40331     compiler_lib_search_path \
40332     archive_cmds \
40333     archive_expsym_cmds \
40334     postinstall_cmds \
40335     postuninstall_cmds \
40336     old_archive_from_expsyms_cmds \
40337     allow_undefined_flag \
40338     no_undefined_flag \
40339     export_symbols_cmds \
40340     hardcode_libdir_flag_spec \
40341     hardcode_libdir_flag_spec_ld \
40342     hardcode_libdir_separator \
40343     hardcode_automatic \
40344     module_cmds \
40345     module_expsym_cmds \
40346     lt_cv_prog_compiler_c_o \
40347     exclude_expsyms \
40348     include_expsyms; do
40349
40350     case $var in
40351     old_archive_cmds | \
40352     old_archive_from_new_cmds | \
40353     archive_cmds | \
40354     archive_expsym_cmds | \
40355     module_cmds | \
40356     module_expsym_cmds | \
40357     old_archive_from_expsyms_cmds | \
40358     export_symbols_cmds | \
40359     extract_expsyms_cmds | reload_cmds | finish_cmds | \
40360     postinstall_cmds | postuninstall_cmds | \
40361     old_postinstall_cmds | old_postuninstall_cmds | \
40362     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
40363       # Double-quote double-evaled strings.
40364       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
40365       ;;
40366     *)
40367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
40368       ;;
40369     esac
40370   done
40371
40372   case $lt_echo in
40373   *'\$0 --fallback-echo"')
40374     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
40375     ;;
40376   esac
40377
40378 cfgfile="${ofile}T"
40379   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
40380   $rm -f "$cfgfile"
40381   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
40382 $as_echo "$as_me: creating $ofile" >&6;}
40383
40384   cat <<__EOF__ >> "$cfgfile"
40385 #! $SHELL
40386
40387 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
40388 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
40389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
40390 #
40391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
40392 # Free Software Foundation, Inc.
40393 #
40394 # This file is part of GNU Libtool:
40395 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
40396 #
40397 # This program is free software; you can redistribute it and/or modify
40398 # it under the terms of the GNU General Public License as published by
40399 # the Free Software Foundation; either version 2 of the License, or
40400 # (at your option) any later version.
40401 #
40402 # This program is distributed in the hope that it will be useful, but
40403 # WITHOUT ANY WARRANTY; without even the implied warranty of
40404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
40405 # General Public License for more details.
40406 #
40407 # You should have received a copy of the GNU General Public License
40408 # along with this program; if not, write to the Free Software
40409 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40410 #
40411 # As a special exception to the GNU General Public License, if you
40412 # distribute this file as part of a program that contains a
40413 # configuration script generated by Autoconf, you may include it under
40414 # the same distribution terms that you use for the rest of that program.
40415
40416 # A sed program that does not truncate output.
40417 SED=$lt_SED
40418
40419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
40420 Xsed="$SED -e 1s/^X//"
40421
40422 # The HP-UX ksh and POSIX shell print the target directory to stdout
40423 # if CDPATH is set.
40424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40425
40426 # The names of the tagged configurations supported by this script.
40427 available_tags=
40428
40429 # ### BEGIN LIBTOOL CONFIG
40430
40431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
40432
40433 # Shell to use when invoking shell scripts.
40434 SHELL=$lt_SHELL
40435
40436 # Whether or not to build shared libraries.
40437 build_libtool_libs=$enable_shared
40438
40439 # Whether or not to build static libraries.
40440 build_old_libs=$enable_static
40441
40442 # Whether or not to add -lc for building shared libraries.
40443 build_libtool_need_lc=$archive_cmds_need_lc
40444
40445 # Whether or not to disallow shared libs when runtime libs are static
40446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40447
40448 # Whether or not to optimize for fast installation.
40449 fast_install=$enable_fast_install
40450
40451 # The host system.
40452 host_alias=$host_alias
40453 host=$host
40454 host_os=$host_os
40455
40456 # The build system.
40457 build_alias=$build_alias
40458 build=$build
40459 build_os=$build_os
40460
40461 # An echo program that does not interpret backslashes.
40462 echo=$lt_echo
40463
40464 # The archiver.
40465 AR=$lt_AR
40466 AR_FLAGS=$lt_AR_FLAGS
40467
40468 # A C compiler.
40469 LTCC=$lt_LTCC
40470
40471 # A language-specific compiler.
40472 CC=$lt_compiler
40473
40474 # Is the compiler the GNU C compiler?
40475 with_gcc=$GCC
40476
40477 # An ERE matcher.
40478 EGREP=$lt_EGREP
40479
40480 # The linker used to build libraries.
40481 LD=$lt_LD
40482
40483 # Whether we need hard or soft links.
40484 LN_S=$lt_LN_S
40485
40486 # A BSD-compatible nm program.
40487 NM=$lt_NM
40488
40489 # A symbol stripping program
40490 STRIP=$lt_STRIP
40491
40492 # Used to examine libraries when file_magic_cmd begins "file"
40493 MAGIC_CMD=$MAGIC_CMD
40494
40495 # Used on cygwin: DLL creation program.
40496 DLLTOOL="$DLLTOOL"
40497
40498 # Used on cygwin: object dumper.
40499 OBJDUMP="$OBJDUMP"
40500
40501 # Used on cygwin: assembler.
40502 AS="$AS"
40503
40504 # The name of the directory that contains temporary libtool files.
40505 objdir=$objdir
40506
40507 # How to create reloadable object files.
40508 reload_flag=$lt_reload_flag
40509 reload_cmds=$lt_reload_cmds
40510
40511 # How to pass a linker flag through the compiler.
40512 wl=$lt_lt_prog_compiler_wl
40513
40514 # Object file suffix (normally "o").
40515 objext="$ac_objext"
40516
40517 # Old archive suffix (normally "a").
40518 libext="$libext"
40519
40520 # Shared library suffix (normally ".so").
40521 shrext_cmds='$shrext_cmds'
40522
40523 # Executable file suffix (normally "").
40524 exeext="$exeext"
40525
40526 # Additional compiler flags for building library objects.
40527 pic_flag=$lt_lt_prog_compiler_pic
40528 pic_mode=$pic_mode
40529
40530 # What is the maximum length of a command?
40531 max_cmd_len=$lt_cv_sys_max_cmd_len
40532
40533 # Does compiler simultaneously support -c and -o options?
40534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40535
40536 # Must we lock files when doing compilation?
40537 need_locks=$lt_need_locks
40538
40539 # Do we need the lib prefix for modules?
40540 need_lib_prefix=$need_lib_prefix
40541
40542 # Do we need a version for libraries?
40543 need_version=$need_version
40544
40545 # Whether dlopen is supported.
40546 dlopen_support=$enable_dlopen
40547
40548 # Whether dlopen of programs is supported.
40549 dlopen_self=$enable_dlopen_self
40550
40551 # Whether dlopen of statically linked programs is supported.
40552 dlopen_self_static=$enable_dlopen_self_static
40553
40554 # Compiler flag to prevent dynamic linking.
40555 link_static_flag=$lt_lt_prog_compiler_static
40556
40557 # Compiler flag to turn off builtin functions.
40558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40559
40560 # Compiler flag to allow reflexive dlopens.
40561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40562
40563 # Compiler flag to generate shared objects directly from archives.
40564 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40565
40566 # Compiler flag to generate thread-safe objects.
40567 thread_safe_flag_spec=$lt_thread_safe_flag_spec
40568
40569 # Library versioning type.
40570 version_type=$version_type
40571
40572 # Format of library name prefix.
40573 libname_spec=$lt_libname_spec
40574
40575 # List of archive names.  First name is the real one, the rest are links.
40576 # The last name is the one that the linker finds with -lNAME.
40577 library_names_spec=$lt_library_names_spec
40578
40579 # The coded name of the library, if different from the real name.
40580 soname_spec=$lt_soname_spec
40581
40582 # Commands used to build and install an old-style archive.
40583 RANLIB=$lt_RANLIB
40584 old_archive_cmds=$lt_old_archive_cmds
40585 old_postinstall_cmds=$lt_old_postinstall_cmds
40586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
40587
40588 # Create an old-style archive from a shared archive.
40589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40590
40591 # Create a temporary old-style archive to link instead of a shared archive.
40592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40593
40594 # Commands used to build and install a shared archive.
40595 archive_cmds=$lt_archive_cmds
40596 archive_expsym_cmds=$lt_archive_expsym_cmds
40597 postinstall_cmds=$lt_postinstall_cmds
40598 postuninstall_cmds=$lt_postuninstall_cmds
40599
40600 # Commands used to build a loadable module (assumed same as above if empty)
40601 module_cmds=$lt_module_cmds
40602 module_expsym_cmds=$lt_module_expsym_cmds
40603
40604 # Commands to strip libraries.
40605 old_striplib=$lt_old_striplib
40606 striplib=$lt_striplib
40607
40608 # Dependencies to place before the objects being linked to create a
40609 # shared library.
40610 predep_objects=$lt_predep_objects
40611
40612 # Dependencies to place after the objects being linked to create a
40613 # shared library.
40614 postdep_objects=$lt_postdep_objects
40615
40616 # Dependencies to place before the objects being linked to create a
40617 # shared library.
40618 predeps=$lt_predeps
40619
40620 # Dependencies to place after the objects being linked to create a
40621 # shared library.
40622 postdeps=$lt_postdeps
40623
40624 # The library search path used internally by the compiler when linking
40625 # a shared library.
40626 compiler_lib_search_path=$lt_compiler_lib_search_path
40627
40628 # Method to check whether dependent libraries are shared objects.
40629 deplibs_check_method=$lt_deplibs_check_method
40630
40631 # Command to use when deplibs_check_method == file_magic.
40632 file_magic_cmd=$lt_file_magic_cmd
40633
40634 # Flag that allows shared libraries with undefined symbols to be built.
40635 allow_undefined_flag=$lt_allow_undefined_flag
40636
40637 # Flag that forces no undefined symbols.
40638 no_undefined_flag=$lt_no_undefined_flag
40639
40640 # Commands used to finish a libtool library installation in a directory.
40641 finish_cmds=$lt_finish_cmds
40642
40643 # Same as above, but a single script fragment to be evaled but not shown.
40644 finish_eval=$lt_finish_eval
40645
40646 # Take the output of nm and produce a listing of raw symbols and C names.
40647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
40648
40649 # Transform the output of nm in a proper C declaration
40650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
40651
40652 # Transform the output of nm in a C name address pair
40653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
40654
40655 # This is the shared library runtime path variable.
40656 runpath_var=$runpath_var
40657
40658 # This is the shared library path variable.
40659 shlibpath_var=$shlibpath_var
40660
40661 # Is shlibpath searched before the hard-coded library search path?
40662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40663
40664 # How to hardcode a shared library path into an executable.
40665 hardcode_action=$hardcode_action
40666
40667 # Whether we should hardcode library paths into libraries.
40668 hardcode_into_libs=$hardcode_into_libs
40669
40670 # Flag to hardcode \$libdir into a binary during linking.
40671 # This must work even if \$libdir does not exist.
40672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40673
40674 # If ld is used when linking, flag to hardcode \$libdir into
40675 # a binary during linking. This must work even if \$libdir does
40676 # not exist.
40677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
40678
40679 # Whether we need a single -rpath flag with a separated argument.
40680 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40681
40682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
40683 # resulting binary.
40684 hardcode_direct=$hardcode_direct
40685
40686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
40687 # resulting binary.
40688 hardcode_minus_L=$hardcode_minus_L
40689
40690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
40691 # the resulting binary.
40692 hardcode_shlibpath_var=$hardcode_shlibpath_var
40693
40694 # Set to yes if building a shared library automatically hardcodes DIR into the library
40695 # and all subsequent libraries and executables linked against it.
40696 hardcode_automatic=$hardcode_automatic
40697
40698 # Variables whose values should be saved in libtool wrapper scripts and
40699 # restored at relink time.
40700 variables_saved_for_relink="$variables_saved_for_relink"
40701
40702 # Whether libtool must link a program against all its dependency libraries.
40703 link_all_deplibs=$link_all_deplibs
40704
40705 # Compile-time system search path for libraries
40706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40707
40708 # Run-time system search path for libraries
40709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
40710
40711 # Fix the shell variable \$srcfile for the compiler.
40712 fix_srcfile_path="$fix_srcfile_path"
40713
40714 # Set to yes if exported symbols are required.
40715 always_export_symbols=$always_export_symbols
40716
40717 # The commands to list exported symbols.
40718 export_symbols_cmds=$lt_export_symbols_cmds
40719
40720 # The commands to extract the exported symbol list from a shared archive.
40721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
40722
40723 # Symbols that should not be listed in the preloaded symbols.
40724 exclude_expsyms=$lt_exclude_expsyms
40725
40726 # Symbols that must always be exported.
40727 include_expsyms=$lt_include_expsyms
40728
40729 # ### END LIBTOOL CONFIG
40730
40731 __EOF__
40732
40733
40734   case $host_os in
40735   aix3*)
40736     cat <<\EOF >> "$cfgfile"
40737
40738 # AIX sometimes has problems with the GCC collect2 program.  For some
40739 # reason, if we set the COLLECT_NAMES environment variable, the problems
40740 # vanish in a puff of smoke.
40741 if test "X${COLLECT_NAMES+set}" != Xset; then
40742   COLLECT_NAMES=
40743   export COLLECT_NAMES
40744 fi
40745 EOF
40746     ;;
40747   esac
40748
40749   # We use sed instead of cat because bash on DJGPP gets confused if
40750   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
40751   # text mode, it properly converts lines to CR/LF.  This bash problem
40752   # is reportedly fixed, but why not run on old versions too?
40753   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
40754
40755   mv -f "$cfgfile" "$ofile" || \
40756     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40757   chmod +x "$ofile"
40758
40759 else
40760   # If there is no Makefile yet, we rely on a make rule to execute
40761   # `config.status --recheck' to rerun these tests and create the
40762   # libtool script then.
40763   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
40764   if test -f "$ltmain_in"; then
40765     test -f Makefile && make "$ltmain"
40766   fi
40767 fi
40768
40769
40770 ac_ext=c
40771 ac_cpp='$CPP $CPPFLAGS'
40772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40775
40776 CC="$lt_save_CC"
40777
40778
40779 # Check whether --with-tags was given.
40780 if test "${with_tags+set}" = set; then
40781   withval=$with_tags; tagnames="$withval"
40782 fi
40783
40784
40785 if test -f "$ltmain" && test -n "$tagnames"; then
40786   if test ! -f "${ofile}"; then
40787
40788     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
40789 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
40790
40791
40792     cat <<AAW_EOF >>config.warnings
40793 output file \`$ofile' does not exist
40794 AAW_EOF
40795
40796
40797   fi
40798
40799   if test -z "$LTCC"; then
40800     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
40801     if test -z "$LTCC"; then
40802
40803     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
40804 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
40805
40806
40807     cat <<AAW_EOF >>config.warnings
40808 output file \`$ofile' does not look like a libtool script
40809 AAW_EOF
40810
40811
40812     else
40813
40814     { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
40815 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
40816
40817
40818     cat <<AAW_EOF >>config.warnings
40819 using \`LTCC=$LTCC', extracted from \`$ofile'
40820 AAW_EOF
40821
40822
40823     fi
40824   fi
40825
40826   # Extract list of available tagged configurations in $ofile.
40827   # Note that this assumes the entire list is on one line.
40828   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
40829
40830   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
40831   for tagname in $tagnames; do
40832     IFS="$lt_save_ifs"
40833     # Check whether tagname contains only valid characters
40834     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
40835     "") ;;
40836     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
40837 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
40838    { (exit 1); exit 1; }; }
40839         ;;
40840     esac
40841
40842     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
40843     then
40844       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
40845 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
40846    { (exit 1); exit 1; }; }
40847     fi
40848
40849     # Update the list of available tags.
40850     if test -n "$tagname"; then
40851       echo appending configuration tag \"$tagname\" to $ofile
40852
40853       case $tagname in
40854       CXX)
40855         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
40856             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
40857             (test "X$CXX" != "Xg++"))) ; then
40858           ac_ext=cpp
40859 ac_cpp='$CXXCPP $CPPFLAGS'
40860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40863
40864
40865
40866
40867 archive_cmds_need_lc_CXX=no
40868 allow_undefined_flag_CXX=
40869 always_export_symbols_CXX=no
40870 archive_expsym_cmds_CXX=
40871 export_dynamic_flag_spec_CXX=
40872 hardcode_direct_CXX=no
40873 hardcode_libdir_flag_spec_CXX=
40874 hardcode_libdir_flag_spec_ld_CXX=
40875 hardcode_libdir_separator_CXX=
40876 hardcode_minus_L_CXX=no
40877 hardcode_automatic_CXX=no
40878 module_cmds_CXX=
40879 module_expsym_cmds_CXX=
40880 link_all_deplibs_CXX=unknown
40881 old_archive_cmds_CXX=$old_archive_cmds
40882 no_undefined_flag_CXX=
40883 whole_archive_flag_spec_CXX=
40884 enable_shared_with_static_runtimes_CXX=no
40885
40886 # Dependencies to place before and after the object being linked:
40887 predep_objects_CXX=
40888 postdep_objects_CXX=
40889 predeps_CXX=
40890 postdeps_CXX=
40891 compiler_lib_search_path_CXX=
40892
40893 # Source file extension for C++ test sources.
40894 ac_ext=cpp
40895
40896 # Object file extension for compiled C++ test sources.
40897 objext=o
40898 objext_CXX=$objext
40899
40900 # Code to be used in simple compile tests
40901 lt_simple_compile_test_code="int some_variable = 0;\n"
40902
40903 # Code to be used in simple link tests
40904 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
40905
40906 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
40907
40908 # If no C compiler was specified, use CC.
40909 LTCC=${LTCC-"$CC"}
40910
40911 # Allow CC to be a program name with arguments.
40912 compiler=$CC
40913
40914
40915 # save warnings/boilerplate of simple test code
40916 ac_outfile=conftest.$ac_objext
40917 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
40918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
40919 _lt_compiler_boilerplate=`cat conftest.err`
40920 $rm conftest*
40921
40922 ac_outfile=conftest.$ac_objext
40923 printf "$lt_simple_link_test_code" >conftest.$ac_ext
40924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
40925 _lt_linker_boilerplate=`cat conftest.err`
40926 $rm conftest*
40927
40928
40929 # Allow CC to be a program name with arguments.
40930 lt_save_CC=$CC
40931 lt_save_LD=$LD
40932 lt_save_GCC=$GCC
40933 GCC=$GXX
40934 lt_save_with_gnu_ld=$with_gnu_ld
40935 lt_save_path_LD=$lt_cv_path_LD
40936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
40937   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
40938 else
40939   unset lt_cv_prog_gnu_ld
40940 fi
40941 if test -n "${lt_cv_path_LDCXX+set}"; then
40942   lt_cv_path_LD=$lt_cv_path_LDCXX
40943 else
40944   unset lt_cv_path_LD
40945 fi
40946 test -z "${LDCXX+set}" || LD=$LDCXX
40947 CC=${CXX-"c++"}
40948 compiler=$CC
40949 compiler_CXX=$CC
40950 for cc_temp in $compiler""; do
40951   case $cc_temp in
40952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40954     \-*) ;;
40955     *) break;;
40956   esac
40957 done
40958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
40959
40960
40961 # We don't want -fno-exception wen compiling C++ code, so set the
40962 # no_builtin_flag separately
40963 if test "$GXX" = yes; then
40964   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
40965 else
40966   lt_prog_compiler_no_builtin_flag_CXX=
40967 fi
40968
40969 if test "$GXX" = yes; then
40970   # Set up default GNU C++ configuration
40971
40972
40973 # Check whether --with-gnu-ld was given.
40974 if test "${with_gnu_ld+set}" = set; then
40975   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
40976 else
40977   with_gnu_ld=no
40978 fi
40979
40980 ac_prog=ld
40981 if test "$GCC" = yes; then
40982   # Check if gcc -print-prog-name=ld gives a path.
40983   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
40984 $as_echo_n "checking for ld used by $CC... " >&6; }
40985   case $host in
40986   *-*-mingw*)
40987     # gcc leaves a trailing carriage return which upsets mingw
40988     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
40989   *)
40990     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
40991   esac
40992   case $ac_prog in
40993     # Accept absolute paths.
40994     [\\/]* | ?:[\\/]*)
40995       re_direlt='/[^/][^/]*/\.\./'
40996       # Canonicalize the pathname of ld
40997       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
40998       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
40999         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
41000       done
41001       test -z "$LD" && LD="$ac_prog"
41002       ;;
41003   "")
41004     # If it fails, then pretend we aren't using GCC.
41005     ac_prog=ld
41006     ;;
41007   *)
41008     # If it is relative, then search for the first ld in PATH.
41009     with_gnu_ld=unknown
41010     ;;
41011   esac
41012 elif test "$with_gnu_ld" = yes; then
41013   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
41014 $as_echo_n "checking for GNU ld... " >&6; }
41015 else
41016   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
41017 $as_echo_n "checking for non-GNU ld... " >&6; }
41018 fi
41019 if test "${lt_cv_path_LD+set}" = set; then
41020   $as_echo_n "(cached) " >&6
41021 else
41022   if test -z "$LD"; then
41023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41024   for ac_dir in $PATH; do
41025     IFS="$lt_save_ifs"
41026     test -z "$ac_dir" && ac_dir=.
41027     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
41028       lt_cv_path_LD="$ac_dir/$ac_prog"
41029       # Check to see if the program is GNU ld.  I'd rather use --version,
41030       # but apparently some variants of GNU ld only accept -v.
41031       # Break only if it was the GNU/non-GNU ld that we prefer.
41032       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
41033       *GNU* | *'with BFD'*)
41034         test "$with_gnu_ld" != no && break
41035         ;;
41036       *)
41037         test "$with_gnu_ld" != yes && break
41038         ;;
41039       esac
41040     fi
41041   done
41042   IFS="$lt_save_ifs"
41043 else
41044   lt_cv_path_LD="$LD" # Let the user override the test with a path.
41045 fi
41046 fi
41047
41048 LD="$lt_cv_path_LD"
41049 if test -n "$LD"; then
41050   { $as_echo "$as_me:$LINENO: result: $LD" >&5
41051 $as_echo "$LD" >&6; }
41052 else
41053   { $as_echo "$as_me:$LINENO: result: no" >&5
41054 $as_echo "no" >&6; }
41055 fi
41056 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
41057 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
41058    { (exit 1); exit 1; }; }
41059 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
41060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
41061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
41062   $as_echo_n "(cached) " >&6
41063 else
41064   # I'd rather use --version here, but apparently some GNU lds only accept -v.
41065 case `$LD -v 2>&1 </dev/null` in
41066 *GNU* | *'with BFD'*)
41067   lt_cv_prog_gnu_ld=yes
41068   ;;
41069 *)
41070   lt_cv_prog_gnu_ld=no
41071   ;;
41072 esac
41073 fi
41074 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
41075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
41076 with_gnu_ld=$lt_cv_prog_gnu_ld
41077
41078
41079
41080   # Check if GNU C++ uses GNU ld as the underlying linker, since the
41081   # archiving commands below assume that GNU ld is being used.
41082   if test "$with_gnu_ld" = yes; then
41083     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41084     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41085
41086     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41087     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41088
41089     # If archive_cmds runs LD, not CC, wlarc should be empty
41090     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
41091     #     investigate it a little bit more. (MM)
41092     wlarc='${wl}'
41093
41094     # ancient GNU ld didn't support --whole-archive et. al.
41095     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
41096         grep 'no-whole-archive' > /dev/null; then
41097       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41098     else
41099       whole_archive_flag_spec_CXX=
41100     fi
41101   else
41102     with_gnu_ld=no
41103     wlarc=
41104
41105     # A generic and very simple default shared library creation
41106     # command for GNU C++ for the case where it uses the native
41107     # linker, instead of GNU ld.  If possible, this setting should
41108     # overridden to take advantage of the native linker features on
41109     # the platform it is being used on.
41110     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41111   fi
41112
41113   # Commands to make compiler produce verbose output that lists
41114   # what "hidden" libraries, object files and flags are used when
41115   # linking a shared library.
41116   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41117
41118 else
41119   GXX=no
41120   with_gnu_ld=no
41121   wlarc=
41122 fi
41123
41124 # PORTME: fill in a description of your system's C++ link characteristics
41125 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
41126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
41127 ld_shlibs_CXX=yes
41128 case $host_os in
41129   aix3*)
41130     # FIXME: insert proper C++ library support
41131     ld_shlibs_CXX=no
41132     ;;
41133   aix4* | aix5*)
41134     if test "$host_cpu" = ia64; then
41135       # On IA64, the linker does run time linking by default, so we don't
41136       # have to do anything special.
41137       aix_use_runtimelinking=no
41138       exp_sym_flag='-Bexport'
41139       no_entry_flag=""
41140     else
41141       aix_use_runtimelinking=no
41142
41143       # Test if we are trying to use run time linking or normal
41144       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
41145       # need to do runtime linking.
41146       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
41147         for ld_flag in $LDFLAGS; do
41148           case $ld_flag in
41149           *-brtl*)
41150             aix_use_runtimelinking=yes
41151             break
41152             ;;
41153           esac
41154         done
41155       esac
41156
41157       exp_sym_flag='-bexport'
41158       no_entry_flag='-bnoentry'
41159     fi
41160
41161     # When large executables or shared objects are built, AIX ld can
41162     # have problems creating the table of contents.  If linking a library
41163     # or program results in "error TOC overflow" add -mminimal-toc to
41164     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
41165     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
41166
41167     archive_cmds_CXX=''
41168     hardcode_direct_CXX=yes
41169     hardcode_libdir_separator_CXX=':'
41170     link_all_deplibs_CXX=yes
41171
41172     if test "$GXX" = yes; then
41173       case $host_os in aix4.[012]|aix4.[012].*)
41174       # We only want to do this on AIX 4.2 and lower, the check
41175       # below for broken collect2 doesn't work under 4.3+
41176         collect2name=`${CC} -print-prog-name=collect2`
41177         if test -f "$collect2name" && \
41178            strings "$collect2name" | grep resolve_lib_name >/dev/null
41179         then
41180           # We have reworked collect2
41181           hardcode_direct_CXX=yes
41182         else
41183           # We have old collect2
41184           hardcode_direct_CXX=unsupported
41185           # It fails to find uninstalled libraries when the uninstalled
41186           # path is not listed in the libpath.  Setting hardcode_minus_L
41187           # to unsupported forces relinking
41188           hardcode_minus_L_CXX=yes
41189           hardcode_libdir_flag_spec_CXX='-L$libdir'
41190           hardcode_libdir_separator_CXX=
41191         fi
41192       esac
41193       shared_flag='-shared'
41194       if test "$aix_use_runtimelinking" = yes; then
41195         shared_flag="$shared_flag "'${wl}-G'
41196       fi
41197     else
41198       # not using gcc
41199       if test "$host_cpu" = ia64; then
41200         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
41201         # chokes on -Wl,-G. The following line is correct:
41202         shared_flag='-G'
41203       else
41204         if test "$aix_use_runtimelinking" = yes; then
41205           shared_flag='${wl}-G'
41206         else
41207           shared_flag='${wl}-bM:SRE'
41208         fi
41209       fi
41210     fi
41211
41212     # It seems that -bexpall does not export symbols beginning with
41213     # underscore (_), so it is better to generate a list of symbols to export.
41214     always_export_symbols_CXX=yes
41215     if test "$aix_use_runtimelinking" = yes; then
41216       # Warning - without using the other runtime loading flags (-brtl),
41217       # -berok will link without error, but may produce a broken library.
41218       allow_undefined_flag_CXX='-berok'
41219       # Determine the default libpath from the value encoded in an empty executable.
41220       cat >conftest.$ac_ext <<_ACEOF
41221 /* confdefs.h.  */
41222 _ACEOF
41223 cat confdefs.h >>conftest.$ac_ext
41224 cat >>conftest.$ac_ext <<_ACEOF
41225 /* end confdefs.h.  */
41226
41227 int
41228 main ()
41229 {
41230
41231   ;
41232   return 0;
41233 }
41234 _ACEOF
41235 rm -f conftest.$ac_objext conftest$ac_exeext
41236 if { (ac_try="$ac_link"
41237 case "(($ac_try" in
41238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41239   *) ac_try_echo=$ac_try;;
41240 esac
41241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41242 $as_echo "$ac_try_echo") >&5
41243   (eval "$ac_link") 2>conftest.er1
41244   ac_status=$?
41245   grep -v '^ *+' conftest.er1 >conftest.err
41246   rm -f conftest.er1
41247   cat conftest.err >&5
41248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249   (exit $ac_status); } && {
41250          test -z "$ac_cxx_werror_flag" ||
41251          test ! -s conftest.err
41252        } && test -s conftest$ac_exeext && {
41253          test "$cross_compiling" = yes ||
41254          $as_test_x conftest$ac_exeext
41255        }; then
41256
41257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41258 }'`
41259 # Check for a 64-bit object if we didn't find anything.
41260 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41261 }'`; fi
41262 else
41263   $as_echo "$as_me: failed program was:" >&5
41264 sed 's/^/| /' conftest.$ac_ext >&5
41265
41266
41267 fi
41268
41269 rm -rf conftest.dSYM
41270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41271       conftest$ac_exeext conftest.$ac_ext
41272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41273
41274       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41275
41276       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
41277      else
41278       if test "$host_cpu" = ia64; then
41279         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
41280         allow_undefined_flag_CXX="-z nodefs"
41281         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
41282       else
41283         # Determine the default libpath from the value encoded in an empty executable.
41284         cat >conftest.$ac_ext <<_ACEOF
41285 /* confdefs.h.  */
41286 _ACEOF
41287 cat confdefs.h >>conftest.$ac_ext
41288 cat >>conftest.$ac_ext <<_ACEOF
41289 /* end confdefs.h.  */
41290
41291 int
41292 main ()
41293 {
41294
41295   ;
41296   return 0;
41297 }
41298 _ACEOF
41299 rm -f conftest.$ac_objext conftest$ac_exeext
41300 if { (ac_try="$ac_link"
41301 case "(($ac_try" in
41302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41303   *) ac_try_echo=$ac_try;;
41304 esac
41305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41306 $as_echo "$ac_try_echo") >&5
41307   (eval "$ac_link") 2>conftest.er1
41308   ac_status=$?
41309   grep -v '^ *+' conftest.er1 >conftest.err
41310   rm -f conftest.er1
41311   cat conftest.err >&5
41312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313   (exit $ac_status); } && {
41314          test -z "$ac_cxx_werror_flag" ||
41315          test ! -s conftest.err
41316        } && test -s conftest$ac_exeext && {
41317          test "$cross_compiling" = yes ||
41318          $as_test_x conftest$ac_exeext
41319        }; then
41320
41321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41322 }'`
41323 # Check for a 64-bit object if we didn't find anything.
41324 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
41325 }'`; fi
41326 else
41327   $as_echo "$as_me: failed program was:" >&5
41328 sed 's/^/| /' conftest.$ac_ext >&5
41329
41330
41331 fi
41332
41333 rm -rf conftest.dSYM
41334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41335       conftest$ac_exeext conftest.$ac_ext
41336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41337
41338         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41339         # Warning - without using the other run time loading flags,
41340         # -berok will link without error, but may produce a broken library.
41341         no_undefined_flag_CXX=' ${wl}-bernotok'
41342         allow_undefined_flag_CXX=' ${wl}-berok'
41343         # -bexpall does not export symbols beginning with underscore (_)
41344         always_export_symbols_CXX=yes
41345         # Exported symbols can be pulled into shared objects from archives
41346         whole_archive_flag_spec_CXX=' '
41347         archive_cmds_need_lc_CXX=yes
41348         # This is similar to how AIX traditionally builds its shared libraries.
41349         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
41350       fi
41351     fi
41352     ;;
41353   chorus*)
41354     case $cc_basename in
41355       *)
41356         # FIXME: insert proper C++ library support
41357         ld_shlibs_CXX=no
41358         ;;
41359     esac
41360     ;;
41361
41362
41363   cygwin* | mingw* | pw32*)
41364     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
41365     # as there is no search path for DLLs.
41366     hardcode_libdir_flag_spec_CXX='-L$libdir'
41367     allow_undefined_flag_CXX=unsupported
41368     always_export_symbols_CXX=no
41369     enable_shared_with_static_runtimes_CXX=yes
41370
41371     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
41372       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41373       # If the export-symbols file already is a .def file (1st line
41374       # is EXPORTS), use it as is; otherwise, prepend...
41375       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
41376         cp $export_symbols $output_objdir/$soname.def;
41377       else
41378         echo EXPORTS > $output_objdir/$soname.def;
41379         cat $export_symbols >> $output_objdir/$soname.def;
41380       fi~
41381       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41382     else
41383       ld_shlibs_CXX=no
41384     fi
41385   ;;
41386       darwin* | rhapsody*)
41387         case $host_os in
41388         rhapsody* | darwin1.[012])
41389          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
41390          ;;
41391        *) # Darwin 1.3 on
41392          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
41393            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41394          else
41395            case ${MACOSX_DEPLOYMENT_TARGET} in
41396              10.[012])
41397                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41398                ;;
41399              10.*)
41400                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
41401                ;;
41402            esac
41403          fi
41404          ;;
41405         esac
41406       archive_cmds_need_lc_CXX=no
41407       hardcode_direct_CXX=no
41408       hardcode_automatic_CXX=yes
41409       hardcode_shlibpath_var_CXX=unsupported
41410       whole_archive_flag_spec_CXX=''
41411       link_all_deplibs_CXX=yes
41412
41413     if test "$GXX" = yes ; then
41414       lt_int_apple_cc_single_mod=no
41415       output_verbose_link_cmd='echo'
41416       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
41417        lt_int_apple_cc_single_mod=yes
41418       fi
41419       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41420        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41421       else
41422           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41423         fi
41424         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41425         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41426           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41427             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41428           else
41429             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41430           fi
41431             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41432       else
41433       case $cc_basename in
41434         xlc*)
41435          output_verbose_link_cmd='echo'
41436           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
41437           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41438           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41439           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41440           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
41441           ;;
41442        *)
41443          ld_shlibs_CXX=no
41444           ;;
41445       esac
41446       fi
41447         ;;
41448
41449   dgux*)
41450     case $cc_basename in
41451       ec++*)
41452         # FIXME: insert proper C++ library support
41453         ld_shlibs_CXX=no
41454         ;;
41455       ghcx*)
41456         # Green Hills C++ Compiler
41457         # FIXME: insert proper C++ library support
41458         ld_shlibs_CXX=no
41459         ;;
41460       *)
41461         # FIXME: insert proper C++ library support
41462         ld_shlibs_CXX=no
41463         ;;
41464     esac
41465     ;;
41466   freebsd[12]*)
41467     # C++ shared libraries reported to be fairly broken before switch to ELF
41468     ld_shlibs_CXX=no
41469     ;;
41470   freebsd-elf*)
41471     archive_cmds_need_lc_CXX=no
41472     ;;
41473   freebsd* | kfreebsd*-gnu | dragonfly*)
41474     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
41475     # conventions
41476     ld_shlibs_CXX=yes
41477     ;;
41478   gnu*)
41479     ;;
41480   hpux9*)
41481     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41482     hardcode_libdir_separator_CXX=:
41483     export_dynamic_flag_spec_CXX='${wl}-E'
41484     hardcode_direct_CXX=yes
41485     hardcode_minus_L_CXX=yes # Not in the search PATH,
41486                                 # but as the default
41487                                 # location of the library.
41488
41489     case $cc_basename in
41490     CC*)
41491       # FIXME: insert proper C++ library support
41492       ld_shlibs_CXX=no
41493       ;;
41494     aCC*)
41495       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
41496       # Commands to make compiler produce verbose output that lists
41497       # what "hidden" libraries, object files and flags are used when
41498       # linking a shared library.
41499       #
41500       # There doesn't appear to be a way to prevent this compiler from
41501       # explicitly linking system object files so we need to strip them
41502       # from the output so that they don't get included in the library
41503       # dependencies.
41504       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41505       ;;
41506     *)
41507       if test "$GXX" = yes; then
41508         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
41509       else
41510         # FIXME: insert proper C++ library support
41511         ld_shlibs_CXX=no
41512       fi
41513       ;;
41514     esac
41515     ;;
41516   hpux10*|hpux11*)
41517     if test $with_gnu_ld = no; then
41518       case $host_cpu in
41519       hppa*64*)
41520         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41521         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
41522         hardcode_libdir_separator_CXX=:
41523         ;;
41524       ia64*)
41525         hardcode_libdir_flag_spec_CXX='-L$libdir'
41526         ;;
41527       *)
41528         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41529         hardcode_libdir_separator_CXX=:
41530         export_dynamic_flag_spec_CXX='${wl}-E'
41531         ;;
41532       esac
41533     fi
41534     case $host_cpu in
41535     hppa*64*)
41536       hardcode_direct_CXX=no
41537       hardcode_shlibpath_var_CXX=no
41538       ;;
41539     ia64*)
41540       hardcode_direct_CXX=no
41541       hardcode_shlibpath_var_CXX=no
41542       hardcode_minus_L_CXX=yes # Not in the search PATH,
41543                                               # but as the default
41544                                               # location of the library.
41545       ;;
41546     *)
41547       hardcode_direct_CXX=yes
41548       hardcode_minus_L_CXX=yes # Not in the search PATH,
41549                                               # but as the default
41550                                               # location of the library.
41551       ;;
41552     esac
41553
41554     case $cc_basename in
41555       CC*)
41556         # FIXME: insert proper C++ library support
41557         ld_shlibs_CXX=no
41558         ;;
41559       aCC*)
41560         case $host_cpu in
41561         hppa*64*|ia64*)
41562           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41563           ;;
41564         *)
41565           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41566           ;;
41567         esac
41568         # Commands to make compiler produce verbose output that lists
41569         # what "hidden" libraries, object files and flags are used when
41570         # linking a shared library.
41571         #
41572         # There doesn't appear to be a way to prevent this compiler from
41573         # explicitly linking system object files so we need to strip them
41574         # from the output so that they don't get included in the library
41575         # dependencies.
41576         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41577         ;;
41578       *)
41579         if test "$GXX" = yes; then
41580           if test $with_gnu_ld = no; then
41581             case $host_cpu in
41582             ia64*|hppa*64*)
41583               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41584               ;;
41585             *)
41586               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41587               ;;
41588             esac
41589           fi
41590         else
41591           # FIXME: insert proper C++ library support
41592           ld_shlibs_CXX=no
41593         fi
41594         ;;
41595     esac
41596     ;;
41597   irix5* | irix6*)
41598     case $cc_basename in
41599       CC*)
41600         # SGI C++
41601         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41602
41603         # Archives containing C++ object files must be created using
41604         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
41605         # necessary to make sure instantiated templates are included
41606         # in the archive.
41607         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
41608         ;;
41609       *)
41610         if test "$GXX" = yes; then
41611           if test "$with_gnu_ld" = no; then
41612             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41613           else
41614             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
41615           fi
41616         fi
41617         link_all_deplibs_CXX=yes
41618         ;;
41619     esac
41620     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41621     hardcode_libdir_separator_CXX=:
41622     ;;
41623   linux*)
41624     case $cc_basename in
41625       KCC*)
41626         # Kuck and Associates, Inc. (KAI) C++ Compiler
41627
41628         # KCC will only create a shared library if the output file
41629         # ends with ".so" (or ".sl" for HP-UX), so rename the library
41630         # to its proper name (with version) after linking.
41631         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41632         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
41633         # Commands to make compiler produce verbose output that lists
41634         # what "hidden" libraries, object files and flags are used when
41635         # linking a shared library.
41636         #
41637         # There doesn't appear to be a way to prevent this compiler from
41638         # explicitly linking system object files so we need to strip them
41639         # from the output so that they don't get included in the library
41640         # dependencies.
41641         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41642
41643         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
41644         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41645
41646         # Archives containing C++ object files must be created using
41647         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41648         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41649         ;;
41650       icpc*)
41651         # Intel C++
41652         with_gnu_ld=yes
41653         # version 8.0 and above of icpc choke on multiply defined symbols
41654         # if we add $predep_objects and $postdep_objects, however 7.1 and
41655         # earlier do not add the objects themselves.
41656         case `$CC -V 2>&1` in
41657         *"Version 7."*)
41658           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41659           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41660           ;;
41661         *)  # Version 8.0 or newer
41662           tmp_idyn=
41663           case $host_cpu in
41664             ia64*) tmp_idyn=' -i_dynamic';;
41665           esac
41666           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
41667           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
41668           ;;
41669         esac
41670         archive_cmds_need_lc_CXX=no
41671         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41672         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41673         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
41674         ;;
41675       pgCC*)
41676         # Portland Group C++ compiler
41677         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
41678         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
41679
41680         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41681         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41682         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
41683         ;;
41684       cxx*)
41685         # Compaq C++
41686         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41687         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
41688
41689         runpath_var=LD_RUN_PATH
41690         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41691         hardcode_libdir_separator_CXX=:
41692
41693         # Commands to make compiler produce verbose output that lists
41694         # what "hidden" libraries, object files and flags are used when
41695         # linking a shared library.
41696         #
41697         # There doesn't appear to be a way to prevent this compiler from
41698         # explicitly linking system object files so we need to strip them
41699         # from the output so that they don't get included in the library
41700         # dependencies.
41701         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41702         ;;
41703     esac
41704     ;;
41705   lynxos*)
41706     # FIXME: insert proper C++ library support
41707     ld_shlibs_CXX=no
41708     ;;
41709   m88k*)
41710     # FIXME: insert proper C++ library support
41711     ld_shlibs_CXX=no
41712     ;;
41713   mvs*)
41714     case $cc_basename in
41715       cxx*)
41716         # FIXME: insert proper C++ library support
41717         ld_shlibs_CXX=no
41718         ;;
41719       *)
41720         # FIXME: insert proper C++ library support
41721         ld_shlibs_CXX=no
41722         ;;
41723     esac
41724     ;;
41725   netbsd*)
41726     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
41727       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
41728       wlarc=
41729       hardcode_libdir_flag_spec_CXX='-R$libdir'
41730       hardcode_direct_CXX=yes
41731       hardcode_shlibpath_var_CXX=no
41732     fi
41733     # Workaround some broken pre-1.5 toolchains
41734     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
41735     ;;
41736   openbsd2*)
41737     # C++ shared libraries are fairly broken
41738     ld_shlibs_CXX=no
41739     ;;
41740   openbsd*)
41741     hardcode_direct_CXX=yes
41742     hardcode_shlibpath_var_CXX=no
41743     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41744     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41745     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41746       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
41747       export_dynamic_flag_spec_CXX='${wl}-E'
41748       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41749     fi
41750     output_verbose_link_cmd='echo'
41751     ;;
41752   osf3*)
41753     case $cc_basename in
41754       KCC*)
41755         # Kuck and Associates, Inc. (KAI) C++ Compiler
41756
41757         # KCC will only create a shared library if the output file
41758         # ends with ".so" (or ".sl" for HP-UX), so rename the library
41759         # to its proper name (with version) after linking.
41760         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41761
41762         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41763         hardcode_libdir_separator_CXX=:
41764
41765         # Archives containing C++ object files must be created using
41766         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41767         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41768
41769         ;;
41770       RCC*)
41771         # Rational C++ 2.4.1
41772         # FIXME: insert proper C++ library support
41773         ld_shlibs_CXX=no
41774         ;;
41775       cxx*)
41776         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41777         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41778
41779         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41780         hardcode_libdir_separator_CXX=:
41781
41782         # Commands to make compiler produce verbose output that lists
41783         # what "hidden" libraries, object files and flags are used when
41784         # linking a shared library.
41785         #
41786         # There doesn't appear to be a way to prevent this compiler from
41787         # explicitly linking system object files so we need to strip them
41788         # from the output so that they don't get included in the library
41789         # dependencies.
41790         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41791         ;;
41792       *)
41793         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41794           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41795           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41796
41797           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41798           hardcode_libdir_separator_CXX=:
41799
41800           # Commands to make compiler produce verbose output that lists
41801           # what "hidden" libraries, object files and flags are used when
41802           # linking a shared library.
41803           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41804
41805         else
41806           # FIXME: insert proper C++ library support
41807           ld_shlibs_CXX=no
41808         fi
41809         ;;
41810     esac
41811     ;;
41812   osf4* | osf5*)
41813     case $cc_basename in
41814       KCC*)
41815         # Kuck and Associates, Inc. (KAI) C++ Compiler
41816
41817         # KCC will only create a shared library if the output file
41818         # ends with ".so" (or ".sl" for HP-UX), so rename the library
41819         # to its proper name (with version) after linking.
41820         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
41821
41822         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41823         hardcode_libdir_separator_CXX=:
41824
41825         # Archives containing C++ object files must be created using
41826         # the KAI C++ compiler.
41827         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
41828         ;;
41829       RCC*)
41830         # Rational C++ 2.4.1
41831         # FIXME: insert proper C++ library support
41832         ld_shlibs_CXX=no
41833         ;;
41834       cxx*)
41835         allow_undefined_flag_CXX=' -expect_unresolved \*'
41836         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
41837         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
41838           echo "-hidden">> $lib.exp~
41839           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
41840           $rm $lib.exp'
41841
41842         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41843         hardcode_libdir_separator_CXX=:
41844
41845         # Commands to make compiler produce verbose output that lists
41846         # what "hidden" libraries, object files and flags are used when
41847         # linking a shared library.
41848         #
41849         # There doesn't appear to be a way to prevent this compiler from
41850         # explicitly linking system object files so we need to strip them
41851         # from the output so that they don't get included in the library
41852         # dependencies.
41853         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
41854         ;;
41855       *)
41856         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41857           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41858          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
41859
41860           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41861           hardcode_libdir_separator_CXX=:
41862
41863           # Commands to make compiler produce verbose output that lists
41864           # what "hidden" libraries, object files and flags are used when
41865           # linking a shared library.
41866           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41867
41868         else
41869           # FIXME: insert proper C++ library support
41870           ld_shlibs_CXX=no
41871         fi
41872         ;;
41873     esac
41874     ;;
41875   psos*)
41876     # FIXME: insert proper C++ library support
41877     ld_shlibs_CXX=no
41878     ;;
41879   sco*)
41880     archive_cmds_need_lc_CXX=no
41881     case $cc_basename in
41882       CC*)
41883         # FIXME: insert proper C++ library support
41884         ld_shlibs_CXX=no
41885         ;;
41886       *)
41887         # FIXME: insert proper C++ library support
41888         ld_shlibs_CXX=no
41889         ;;
41890     esac
41891     ;;
41892   sunos4*)
41893     case $cc_basename in
41894       CC*)
41895         # Sun C++ 4.x
41896         # FIXME: insert proper C++ library support
41897         ld_shlibs_CXX=no
41898         ;;
41899       lcc*)
41900         # Lucid
41901         # FIXME: insert proper C++ library support
41902         ld_shlibs_CXX=no
41903         ;;
41904       *)
41905         # FIXME: insert proper C++ library support
41906         ld_shlibs_CXX=no
41907         ;;
41908     esac
41909     ;;
41910   solaris*)
41911     case $cc_basename in
41912       CC*)
41913         # Sun C++ 4.2, 5.x and Centerline C++
41914         archive_cmds_need_lc_CXX=yes
41915         no_undefined_flag_CXX=' -zdefs'
41916         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41917         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41918         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41919
41920         hardcode_libdir_flag_spec_CXX='-R$libdir'
41921         hardcode_shlibpath_var_CXX=no
41922         case $host_os in
41923           solaris2.[0-5] | solaris2.[0-5].*) ;;
41924           *)
41925             # The C++ compiler is used as linker so we must use $wl
41926             # flag to pass the commands to the underlying system
41927             # linker. We must also pass each convience library through
41928             # to the system linker between allextract/defaultextract.
41929             # The C++ compiler will combine linker options so we
41930             # cannot just pass the convience library names through
41931             # without $wl.
41932             # Supported since Solaris 2.6 (maybe 2.5.1?)
41933             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
41934             ;;
41935         esac
41936         link_all_deplibs_CXX=yes
41937
41938         output_verbose_link_cmd='echo'
41939
41940         # Archives containing C++ object files must be created using
41941         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
41942         # necessary to make sure instantiated templates are included
41943         # in the archive.
41944         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
41945         ;;
41946       gcx*)
41947         # Green Hills C++ Compiler
41948         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41949
41950         # The C++ compiler must be used to create the archive.
41951         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
41952         ;;
41953       *)
41954         # GNU C++ compiler with Solaris linker
41955         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41956           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
41957           if $CC --version | grep -v '^2\.7' > /dev/null; then
41958             if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
41959               archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41960               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41961                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41962
41963               # Commands to make compiler produce verbose output that lists
41964               # what "hidden" libraries, object files and flags are used when
41965               # linking a shared library.
41966               output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
41967               lt_prog_compiler_static_CXX='-static'
41968             else
41969               archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41970               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41971                 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41972
41973               # Commands to make compiler produce verbose output that lists
41974               # what "hidden" libraries, object files and flags are used when
41975               # linking a shared library.
41976               output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
41977               lt_prog_compiler_static_CXX='${wl}-Bstatic'
41978             fi
41979           else
41980             # g++ 2.7 appears to require `-G' NOT `-shared' on this
41981             # platform.
41982             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
41983             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41984                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
41985
41986             # Commands to make compiler produce verbose output that lists
41987             # what "hidden" libraries, object files and flags are used when
41988             # linking a shared library.
41989             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
41990           fi
41991
41992           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
41993         fi
41994         ;;
41995     esac
41996     ;;
41997   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
41998     archive_cmds_need_lc_CXX=no
41999     ;;
42000   tandem*)
42001     case $cc_basename in
42002       NCC*)
42003         # NonStop-UX NCC 3.20
42004         # FIXME: insert proper C++ library support
42005         ld_shlibs_CXX=no
42006         ;;
42007       *)
42008         # FIXME: insert proper C++ library support
42009         ld_shlibs_CXX=no
42010         ;;
42011     esac
42012     ;;
42013   vxworks*)
42014     # FIXME: insert proper C++ library support
42015     ld_shlibs_CXX=no
42016     ;;
42017   *)
42018     # FIXME: insert proper C++ library support
42019     ld_shlibs_CXX=no
42020     ;;
42021 esac
42022 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42023 $as_echo "$ld_shlibs_CXX" >&6; }
42024 test "$ld_shlibs_CXX" = no && can_build_shared=no
42025
42026 GCC_CXX="$GXX"
42027 LD_CXX="$LD"
42028
42029 ## CAVEAT EMPTOR:
42030 ## There is no encapsulation within the following macros, do not change
42031 ## the running order or otherwise move them around unless you know exactly
42032 ## what you are doing...
42033
42034 cat > conftest.$ac_ext <<EOF
42035 class Foo
42036 {
42037 public:
42038   Foo (void) { a = 0; }
42039 private:
42040   int a;
42041 };
42042 EOF
42043
42044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42045   (eval $ac_compile) 2>&5
42046   ac_status=$?
42047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42048   (exit $ac_status); }; then
42049   # Parse the compiler output and extract the necessary
42050   # objects, libraries and library flags.
42051
42052   # Sentinel used to keep track of whether or not we are before
42053   # the conftest object file.
42054   pre_test_object_deps_done=no
42055
42056   # The `*' in the case matches for architectures that use `case' in
42057   # $output_verbose_cmd can trigger glob expansion during the loop
42058   # eval without this substitution.
42059   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
42060
42061   for p in `eval $output_verbose_link_cmd`; do
42062     case $p in
42063
42064     -L* | -R* | -l*)
42065        # Some compilers place space between "-{L,R}" and the path.
42066        # Remove the space.
42067        if test $p = "-L" \
42068           || test $p = "-R"; then
42069          prev=$p
42070          continue
42071        else
42072          prev=
42073        fi
42074
42075        if test "$pre_test_object_deps_done" = no; then
42076          case $p in
42077          -L* | -R*)
42078            # Internal compiler library paths should come after those
42079            # provided the user.  The postdeps already come after the
42080            # user supplied libs so there is no need to process them.
42081            if test -z "$compiler_lib_search_path_CXX"; then
42082              compiler_lib_search_path_CXX="${prev}${p}"
42083            else
42084              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
42085            fi
42086            ;;
42087          # The "-l" case would never come before the object being
42088          # linked, so don't bother handling this case.
42089          esac
42090        else
42091          if test -z "$postdeps_CXX"; then
42092            postdeps_CXX="${prev}${p}"
42093          else
42094            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
42095          fi
42096        fi
42097        ;;
42098
42099     *.$objext)
42100        # This assumes that the test object file only shows up
42101        # once in the compiler output.
42102        if test "$p" = "conftest.$objext"; then
42103          pre_test_object_deps_done=yes
42104          continue
42105        fi
42106
42107        if test "$pre_test_object_deps_done" = no; then
42108          if test -z "$predep_objects_CXX"; then
42109            predep_objects_CXX="$p"
42110          else
42111            predep_objects_CXX="$predep_objects_CXX $p"
42112          fi
42113        else
42114          if test -z "$postdep_objects_CXX"; then
42115            postdep_objects_CXX="$p"
42116          else
42117            postdep_objects_CXX="$postdep_objects_CXX $p"
42118          fi
42119        fi
42120        ;;
42121
42122     *) ;; # Ignore the rest.
42123
42124     esac
42125   done
42126
42127   # Clean up.
42128   rm -f a.out a.exe
42129 else
42130   echo "libtool.m4: error: problem compiling CXX test program"
42131 fi
42132
42133 $rm -f confest.$objext
42134
42135 # PORTME: override above test on systems where it is broken
42136 case $host_os in
42137 solaris*)
42138   case $cc_basename in
42139   CC*)
42140     # Adding this requires a known-good setup of shared libraries for
42141     # Sun compiler versions before 5.6, else PIC objects from an old
42142     # archive will be linked into the output, leading to subtle bugs.
42143     postdeps_CXX='-lCstd -lCrun'
42144     ;;
42145   esac
42146 esac
42147
42148
42149 case " $postdeps_CXX " in
42150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
42151 esac
42152
42153 lt_prog_compiler_wl_CXX=
42154 lt_prog_compiler_pic_CXX=
42155 lt_prog_compiler_static_CXX=
42156
42157 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42158 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
42159
42160   # C++ specific cases for pic, static, wl, etc.
42161   if test "$GXX" = yes; then
42162     lt_prog_compiler_wl_CXX='-Wl,'
42163     lt_prog_compiler_static_CXX='-static'
42164
42165     case $host_os in
42166     aix*)
42167       # All AIX code is PIC.
42168       if test "$host_cpu" = ia64; then
42169         # AIX 5 now supports IA64 processor
42170         lt_prog_compiler_static_CXX='-Bstatic'
42171       fi
42172       ;;
42173     amigaos*)
42174       # FIXME: we need at least 68020 code to build shared libraries, but
42175       # adding the `-m68020' flag to GCC prevents building anything better,
42176       # like `-m68040'.
42177       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
42178       ;;
42179     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42180       # PIC is the default for these OSes.
42181       ;;
42182     mingw* | os2* | pw32*)
42183       # This hack is so that the source file can tell whether it is being
42184       # built for inclusion in a dll (and should export symbols for example).
42185       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
42186       ;;
42187     darwin* | rhapsody*)
42188       # PIC is the default on this platform
42189       # Common symbols not allowed in MH_DYLIB files
42190       lt_prog_compiler_pic_CXX='-fno-common'
42191       ;;
42192     *djgpp*)
42193       # DJGPP does not support shared libraries at all
42194       lt_prog_compiler_pic_CXX=
42195       ;;
42196     sysv4*MP*)
42197       if test -d /usr/nec; then
42198         lt_prog_compiler_pic_CXX=-Kconform_pic
42199       fi
42200       ;;
42201     hpux*)
42202       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42203       # not for PA HP-UX.
42204       case $host_cpu in
42205       hppa*64*|ia64*)
42206         ;;
42207       *)
42208         lt_prog_compiler_pic_CXX='-fPIC'
42209         ;;
42210       esac
42211       ;;
42212     *)
42213       lt_prog_compiler_pic_CXX='-fPIC'
42214       ;;
42215     esac
42216   else
42217     case $host_os in
42218       aix4* | aix5*)
42219         # All AIX code is PIC.
42220         if test "$host_cpu" = ia64; then
42221           # AIX 5 now supports IA64 processor
42222           lt_prog_compiler_static_CXX='-Bstatic'
42223         else
42224           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
42225         fi
42226         ;;
42227       chorus*)
42228         case $cc_basename in
42229         cxch68*)
42230           # Green Hills C++ Compiler
42231           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
42232           ;;
42233         esac
42234         ;;
42235        darwin*)
42236          # PIC is the default on this platform
42237          # Common symbols not allowed in MH_DYLIB files
42238          case $cc_basename in
42239            xlc*)
42240            lt_prog_compiler_pic_CXX='-qnocommon'
42241            lt_prog_compiler_wl_CXX='-Wl,'
42242            ;;
42243          esac
42244        ;;
42245       dgux*)
42246         case $cc_basename in
42247           ec++*)
42248             lt_prog_compiler_pic_CXX='-KPIC'
42249             ;;
42250           ghcx*)
42251             # Green Hills C++ Compiler
42252             lt_prog_compiler_pic_CXX='-pic'
42253             ;;
42254           *)
42255             ;;
42256         esac
42257         ;;
42258       freebsd* | kfreebsd*-gnu | dragonfly*)
42259         # FreeBSD uses GNU C++
42260         ;;
42261       hpux9* | hpux10* | hpux11*)
42262         case $cc_basename in
42263           CC*)
42264             lt_prog_compiler_wl_CXX='-Wl,'
42265             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42266             if test "$host_cpu" != ia64; then
42267               lt_prog_compiler_pic_CXX='+Z'
42268             fi
42269             ;;
42270           aCC*)
42271             lt_prog_compiler_wl_CXX='-Wl,'
42272             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42273             case $host_cpu in
42274             hppa*64*|ia64*)
42275               # +Z the default
42276               ;;
42277             *)
42278               lt_prog_compiler_pic_CXX='+Z'
42279               ;;
42280             esac
42281             ;;
42282           *)
42283             ;;
42284         esac
42285         ;;
42286       irix5* | irix6* | nonstopux*)
42287         case $cc_basename in
42288           CC*)
42289             lt_prog_compiler_wl_CXX='-Wl,'
42290             lt_prog_compiler_static_CXX='-non_shared'
42291             # CC pic flag -KPIC is the default.
42292             ;;
42293           *)
42294             ;;
42295         esac
42296         ;;
42297       linux*)
42298         case $cc_basename in
42299           KCC*)
42300             # KAI C++ Compiler
42301             lt_prog_compiler_wl_CXX='--backend -Wl,'
42302             lt_prog_compiler_pic_CXX='-fPIC'
42303             ;;
42304           icpc* | ecpc*)
42305             # Intel C++
42306             lt_prog_compiler_wl_CXX='-Wl,'
42307             lt_prog_compiler_pic_CXX='-KPIC'
42308             lt_prog_compiler_static_CXX='-static'
42309             ;;
42310           pgCC*)
42311             # Portland Group C++ compiler.
42312             lt_prog_compiler_wl_CXX='-Wl,'
42313             lt_prog_compiler_pic_CXX='-fpic'
42314             lt_prog_compiler_static_CXX='-Bstatic'
42315             ;;
42316           cxx*)
42317             # Compaq C++
42318             # Make sure the PIC flag is empty.  It appears that all Alpha
42319             # Linux and Compaq Tru64 Unix objects are PIC.
42320             lt_prog_compiler_pic_CXX=
42321             lt_prog_compiler_static_CXX='-non_shared'
42322             ;;
42323           *)
42324             ;;
42325         esac
42326         ;;
42327       lynxos*)
42328         ;;
42329       m88k*)
42330         ;;
42331       mvs*)
42332         case $cc_basename in
42333           cxx*)
42334             lt_prog_compiler_pic_CXX='-W c,exportall'
42335             ;;
42336           *)
42337             ;;
42338         esac
42339         ;;
42340       netbsd*)
42341         ;;
42342       osf3* | osf4* | osf5*)
42343         case $cc_basename in
42344           KCC*)
42345             lt_prog_compiler_wl_CXX='--backend -Wl,'
42346             ;;
42347           RCC*)
42348             # Rational C++ 2.4.1
42349             lt_prog_compiler_pic_CXX='-pic'
42350             ;;
42351           cxx*)
42352             # Digital/Compaq C++
42353             lt_prog_compiler_wl_CXX='-Wl,'
42354             # Make sure the PIC flag is empty.  It appears that all Alpha
42355             # Linux and Compaq Tru64 Unix objects are PIC.
42356             lt_prog_compiler_pic_CXX=
42357             lt_prog_compiler_static_CXX='-non_shared'
42358             ;;
42359           *)
42360             ;;
42361         esac
42362         ;;
42363       psos*)
42364         ;;
42365       sco*)
42366         case $cc_basename in
42367           CC*)
42368             lt_prog_compiler_pic_CXX='-fPIC'
42369             ;;
42370           *)
42371             ;;
42372         esac
42373         ;;
42374       solaris*)
42375         case $cc_basename in
42376           CC*)
42377             # Sun C++ 4.2, 5.x and Centerline C++
42378             lt_prog_compiler_pic_CXX='-KPIC'
42379             lt_prog_compiler_static_CXX='-Bstatic'
42380             lt_prog_compiler_wl_CXX='-Qoption ld '
42381             ;;
42382           gcx*)
42383             # Green Hills C++ Compiler
42384             lt_prog_compiler_pic_CXX='-PIC'
42385             ;;
42386           *)
42387             if $CC -v --help 2>/dev/null | grep -- -static  > /dev/null 2> /dev/null; then
42388               lt_prog_compiler_static_CXX='-static'
42389             else
42390               # GCC with Sun linker
42391               lt_prog_compiler_pic_CXX='-KPIC'
42392               lt_prog_compiler_static_CXX='${wl}-Bstatic'
42393             fi
42394             ;;
42395         esac
42396         ;;
42397       sunos4*)
42398         case $cc_basename in
42399           CC*)
42400             # Sun C++ 4.x
42401             lt_prog_compiler_pic_CXX='-pic'
42402             lt_prog_compiler_static_CXX='-Bstatic'
42403             ;;
42404           lcc*)
42405             # Lucid
42406             lt_prog_compiler_pic_CXX='-pic'
42407             ;;
42408           *)
42409             ;;
42410         esac
42411         ;;
42412       tandem*)
42413         case $cc_basename in
42414           NCC*)
42415             # NonStop-UX NCC 3.20
42416             lt_prog_compiler_pic_CXX='-KPIC'
42417             ;;
42418           *)
42419             ;;
42420         esac
42421         ;;
42422       unixware*)
42423         ;;
42424       vxworks*)
42425         ;;
42426       *)
42427         lt_prog_compiler_can_build_shared_CXX=no
42428         ;;
42429     esac
42430   fi
42431
42432 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
42433 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
42434
42435 #
42436 # Check to make sure the PIC flag actually works.
42437 #
42438 if test -n "$lt_prog_compiler_pic_CXX"; then
42439
42440 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
42441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
42442 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
42443   $as_echo_n "(cached) " >&6
42444 else
42445   lt_prog_compiler_pic_works_CXX=no
42446   ac_outfile=conftest.$ac_objext
42447    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42448    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
42449    # Insert the option either (1) after the last *FLAGS variable, or
42450    # (2) before a word containing "conftest.", or (3) at the end.
42451    # Note that $ac_compile itself does not contain backslashes and begins
42452    # with a dollar sign (not a hyphen), so the echo should work correctly.
42453    # The option is referenced via a variable to avoid confusing sed.
42454    lt_compile=`echo "$ac_compile" | $SED \
42455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42457    -e 's:$: $lt_compiler_flag:'`
42458    (eval echo "\"\$as_me:42458: $lt_compile\"" >&5)
42459    (eval "$lt_compile" 2>conftest.err)
42460    ac_status=$?
42461    cat conftest.err >&5
42462    echo "$as_me:42462: \$? = $ac_status" >&5
42463    if (exit $ac_status) && test -s "$ac_outfile"; then
42464      # The compiler can only warn and ignore the option if not recognized
42465      # So say no if there are warnings other than the usual output.
42466      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42467      $SED '/^$/d' conftest.err >conftest.er2
42468      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42469        lt_prog_compiler_pic_works_CXX=yes
42470      fi
42471    fi
42472    $rm conftest*
42473
42474 fi
42475 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
42476 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
42477
42478 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
42479     case $lt_prog_compiler_pic_CXX in
42480      "" | " "*) ;;
42481      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
42482      esac
42483 else
42484     lt_prog_compiler_pic_CXX=
42485      lt_prog_compiler_can_build_shared_CXX=no
42486 fi
42487
42488 fi
42489 case $host_os in
42490   # For platforms which do not support PIC, -DPIC is meaningless:
42491   *djgpp*)
42492     lt_prog_compiler_pic_CXX=
42493     ;;
42494   *)
42495     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
42496     ;;
42497 esac
42498
42499 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
42501 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
42502   $as_echo_n "(cached) " >&6
42503 else
42504   lt_cv_prog_compiler_c_o_CXX=no
42505    $rm -r conftest 2>/dev/null
42506    mkdir conftest
42507    cd conftest
42508    mkdir out
42509    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42510
42511    lt_compiler_flag="-o out/conftest2.$ac_objext"
42512    # Insert the option either (1) after the last *FLAGS variable, or
42513    # (2) before a word containing "conftest.", or (3) at the end.
42514    # Note that $ac_compile itself does not contain backslashes and begins
42515    # with a dollar sign (not a hyphen), so the echo should work correctly.
42516    lt_compile=`echo "$ac_compile" | $SED \
42517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42519    -e 's:$: $lt_compiler_flag:'`
42520    (eval echo "\"\$as_me:42520: $lt_compile\"" >&5)
42521    (eval "$lt_compile" 2>out/conftest.err)
42522    ac_status=$?
42523    cat out/conftest.err >&5
42524    echo "$as_me:42524: \$? = $ac_status" >&5
42525    if (exit $ac_status) && test -s out/conftest2.$ac_objext
42526    then
42527      # The compiler can only warn and ignore the option if not recognized
42528      # So say no if there are warnings
42529      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42530      $SED '/^$/d' out/conftest.err >out/conftest.er2
42531      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42532        lt_cv_prog_compiler_c_o_CXX=yes
42533      fi
42534    fi
42535    chmod u+w . 2>&5
42536    $rm conftest*
42537    # SGI C++ compiler will create directory out/ii_files/ for
42538    # template instantiation
42539    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42540    $rm out/* && rmdir out
42541    cd ..
42542    rmdir conftest
42543    $rm conftest*
42544
42545 fi
42546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
42547 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
42548
42549
42550 hard_links="nottested"
42551 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
42552   # do not overwrite the value of need_locks provided by the user
42553   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42554 $as_echo_n "checking if we can lock with hard links... " >&6; }
42555   hard_links=yes
42556   $rm conftest*
42557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42558   touch conftest.a
42559   ln conftest.a conftest.b 2>&5 || hard_links=no
42560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42561   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
42562 $as_echo "$hard_links" >&6; }
42563   if test "$hard_links" = no; then
42564
42565     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42566 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42567
42568
42569     cat <<AAW_EOF >>config.warnings
42570 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42571 AAW_EOF
42572
42573
42574     need_locks=warn
42575   fi
42576 else
42577   need_locks=no
42578 fi
42579
42580 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42581 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
42582
42583   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42584   case $host_os in
42585   aix4* | aix5*)
42586     # If we're using GNU nm, then we don't want the "-C" option.
42587     # -C means demangle to AIX nm, but means don't demangle with GNU nm
42588     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42589       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42590     else
42591       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
42592     fi
42593     ;;
42594   pw32*)
42595     export_symbols_cmds_CXX="$ltdll_cmds"
42596   ;;
42597   cygwin* | mingw*)
42598     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
42599   ;;
42600   *)
42601     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42602   ;;
42603   esac
42604
42605 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42606 $as_echo "$ld_shlibs_CXX" >&6; }
42607 test "$ld_shlibs_CXX" = no && can_build_shared=no
42608
42609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
42610 if test "$GCC" = yes; then
42611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
42612 fi
42613
42614 #
42615 # Do we need to explicitly link libc?
42616 #
42617 case "x$archive_cmds_need_lc_CXX" in
42618 x|xyes)
42619   # Assume -lc should be added
42620   archive_cmds_need_lc_CXX=yes
42621
42622   if test "$enable_shared" = yes && test "$GCC" = yes; then
42623     case $archive_cmds_CXX in
42624     *'~'*)
42625       # FIXME: we may have to deal with multi-command sequences.
42626       ;;
42627     '$CC '*)
42628       # Test whether the compiler implicitly links with -lc since on some
42629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
42630       # to ld, don't add -lc before -lgcc.
42631       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
42632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
42633       $rm conftest*
42634       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42635
42636       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42637   (eval $ac_compile) 2>&5
42638   ac_status=$?
42639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42640   (exit $ac_status); } 2>conftest.err; then
42641         soname=conftest
42642         lib=conftest
42643         libobjs=conftest.$ac_objext
42644         deplibs=
42645         wl=$lt_prog_compiler_wl_CXX
42646         compiler_flags=-v
42647         linker_flags=-v
42648         verstring=
42649         output_objdir=.
42650         libname=conftest
42651         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
42652         allow_undefined_flag_CXX=
42653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
42654   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
42655   ac_status=$?
42656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657   (exit $ac_status); }
42658         then
42659           archive_cmds_need_lc_CXX=no
42660         else
42661           archive_cmds_need_lc_CXX=yes
42662         fi
42663         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
42664       else
42665         cat conftest.err 1>&5
42666       fi
42667       $rm conftest*
42668       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
42669 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
42670       ;;
42671     esac
42672   fi
42673   ;;
42674 esac
42675
42676 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
42677 $as_echo_n "checking dynamic linker characteristics... " >&6; }
42678 library_names_spec=
42679 libname_spec='lib$name'
42680 soname_spec=
42681 shrext_cmds=".so"
42682 postinstall_cmds=
42683 postuninstall_cmds=
42684 finish_cmds=
42685 finish_eval=
42686 shlibpath_var=
42687 shlibpath_overrides_runpath=unknown
42688 version_type=none
42689 dynamic_linker="$host_os ld.so"
42690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
42691 if test "$GCC" = yes; then
42692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
42694     # if the path contains ";" then we assume it to be the separator
42695     # otherwise default to the standard path separator (i.e. ":") - it is
42696     # assumed that no part of a normal pathname contains ";" but that should
42697     # okay in the real world where ";" in dirpaths is itself problematic.
42698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42699   else
42700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
42701   fi
42702 else
42703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
42704 fi
42705 need_lib_prefix=unknown
42706 hardcode_into_libs=no
42707
42708 # when you set need_version to no, make sure it does not cause -set_version
42709 # flags to be left without arguments
42710 need_version=unknown
42711
42712 case $host_os in
42713 aix3*)
42714   version_type=linux
42715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
42716   shlibpath_var=LIBPATH
42717
42718   # AIX 3 has no versioning support, so we append a major version to the name.
42719   soname_spec='${libname}${release}${shared_ext}$major'
42720   ;;
42721
42722 aix4* | aix5*)
42723   version_type=linux
42724   need_lib_prefix=no
42725   need_version=no
42726   hardcode_into_libs=yes
42727   if test "$host_cpu" = ia64; then
42728     # AIX 5 supports IA64
42729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
42730     shlibpath_var=LD_LIBRARY_PATH
42731   else
42732     # With GCC up to 2.95.x, collect2 would create an import file
42733     # for dependence libraries.  The import file would start with
42734     # the line `#! .'.  This would cause the generated library to
42735     # depend on `.', always an invalid library.  This was fixed in
42736     # development snapshots of GCC prior to 3.0.
42737     case $host_os in
42738       aix4 | aix4.[01] | aix4.[01].*)
42739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
42740            echo ' yes '
42741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
42742         :
42743       else
42744         can_build_shared=no
42745       fi
42746       ;;
42747     esac
42748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
42749     # soname into executable. Probably we can add versioning support to
42750     # collect2, so additional links can be useful in future.
42751     if test "$aix_use_runtimelinking" = yes; then
42752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
42753       # instead of lib<name>.a to let people know that these are not
42754       # typical AIX shared libraries.
42755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42756     else
42757       # We preserve .a as extension for shared libraries through AIX4.2
42758       # and later when we are not doing run time linking.
42759       library_names_spec='${libname}${release}.a $libname.a'
42760       soname_spec='${libname}${release}${shared_ext}$major'
42761     fi
42762     shlibpath_var=LIBPATH
42763   fi
42764   ;;
42765
42766 amigaos*)
42767   library_names_spec='$libname.ixlibrary $libname.a'
42768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
42769   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'
42770   ;;
42771
42772 beos*)
42773   library_names_spec='${libname}${shared_ext}'
42774   dynamic_linker="$host_os ld.so"
42775   shlibpath_var=LIBRARY_PATH
42776   ;;
42777
42778 bsdi[45]*)
42779   version_type=linux
42780   need_version=no
42781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42782   soname_spec='${libname}${release}${shared_ext}$major'
42783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
42784   shlibpath_var=LD_LIBRARY_PATH
42785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
42786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
42787   # the default ld.so.conf also contains /usr/contrib/lib and
42788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
42789   # libtool to hard-code these into programs
42790   ;;
42791
42792 cygwin* | mingw* | pw32*)
42793   version_type=windows
42794   shrext_cmds=".dll"
42795   need_version=no
42796   need_lib_prefix=no
42797
42798   case $GCC,$host_os in
42799   yes,cygwin* | yes,mingw* | yes,pw32*)
42800     library_names_spec='$libname.dll.a'
42801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
42802     postinstall_cmds='base_file=`basename \${file}`~
42803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
42804       dldir=$destdir/`dirname \$dlpath`~
42805       test -d \$dldir || mkdir -p \$dldir~
42806       $install_prog $dir/$dlname \$dldir/$dlname~
42807       chmod a+x \$dldir/$dlname'
42808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
42809       dlpath=$dir/\$dldll~
42810        $rm \$dlpath'
42811     shlibpath_overrides_runpath=yes
42812
42813     case $host_os in
42814     cygwin*)
42815       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
42816       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42817       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
42818       ;;
42819     mingw*)
42820       # MinGW DLLs use traditional 'lib' prefix
42821       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42822       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42823       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
42824         # It is most probably a Windows format PATH printed by
42825         # mingw gcc, but we are running on Cygwin. Gcc prints its search
42826         # path with ; separators, and with drive letters. We can handle the
42827         # drive letters (cygwin fileutils understands them), so leave them,
42828         # especially as we might pass files found there to a mingw objdump,
42829         # which wouldn't understand a cygwinified path. Ahh.
42830         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42831       else
42832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
42833       fi
42834       ;;
42835     pw32*)
42836       # pw32 DLLs use 'pw' prefix rather than 'lib'
42837       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42838       ;;
42839     esac
42840     ;;
42841
42842   *)
42843     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
42844     ;;
42845   esac
42846   dynamic_linker='Win32 ld.exe'
42847   # FIXME: first we should search . and the directory the executable is in
42848   shlibpath_var=PATH
42849   ;;
42850
42851 darwin* | rhapsody*)
42852   dynamic_linker="$host_os dyld"
42853   version_type=darwin
42854   need_lib_prefix=no
42855   need_version=no
42856   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
42857   soname_spec='${libname}${release}${major}$shared_ext'
42858   shlibpath_overrides_runpath=yes
42859   shlibpath_var=DYLD_LIBRARY_PATH
42860   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
42861   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
42862   if test "$GCC" = yes; then
42863     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
42864   else
42865     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
42866   fi
42867   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
42868   ;;
42869
42870 dgux*)
42871   version_type=linux
42872   need_lib_prefix=no
42873   need_version=no
42874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
42875   soname_spec='${libname}${release}${shared_ext}$major'
42876   shlibpath_var=LD_LIBRARY_PATH
42877   ;;
42878
42879 freebsd1*)
42880   dynamic_linker=no
42881   ;;
42882
42883 kfreebsd*-gnu)
42884   version_type=linux
42885   need_lib_prefix=no
42886   need_version=no
42887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42888   soname_spec='${libname}${release}${shared_ext}$major'
42889   shlibpath_var=LD_LIBRARY_PATH
42890   shlibpath_overrides_runpath=no
42891   hardcode_into_libs=yes
42892   dynamic_linker='GNU ld.so'
42893   ;;
42894
42895 freebsd* | dragonfly*)
42896   # DragonFly does not have aout.  When/if they implement a new
42897   # versioning mechanism, adjust this.
42898   if test -x /usr/bin/objformat; then
42899     objformat=`/usr/bin/objformat`
42900   else
42901     case $host_os in
42902     freebsd[123]*) objformat=aout ;;
42903     *) objformat=elf ;;
42904     esac
42905   fi
42906   version_type=freebsd-$objformat
42907   case $version_type in
42908     freebsd-elf*)
42909       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
42910       need_version=no
42911       need_lib_prefix=no
42912       ;;
42913     freebsd-*)
42914       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
42915       need_version=yes
42916       ;;
42917   esac
42918   shlibpath_var=LD_LIBRARY_PATH
42919   case $host_os in
42920   freebsd2*)
42921     shlibpath_overrides_runpath=yes
42922     ;;
42923   freebsd3.[01]* | freebsdelf3.[01]*)
42924     shlibpath_overrides_runpath=yes
42925     hardcode_into_libs=yes
42926     ;;
42927   *) # from 3.2 on
42928     shlibpath_overrides_runpath=no
42929     hardcode_into_libs=yes
42930     ;;
42931   esac
42932   ;;
42933
42934 gnu*)
42935   version_type=linux
42936   need_lib_prefix=no
42937   need_version=no
42938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
42939   soname_spec='${libname}${release}${shared_ext}$major'
42940   shlibpath_var=LD_LIBRARY_PATH
42941   hardcode_into_libs=yes
42942   ;;
42943
42944 hpux9* | hpux10* | hpux11*)
42945   # Give a soname corresponding to the major version so that dld.sl refuses to
42946   # link against other versions.
42947   version_type=sunos
42948   need_lib_prefix=no
42949   need_version=no
42950   case $host_cpu in
42951   ia64*)
42952     shrext_cmds='.so'
42953     hardcode_into_libs=yes
42954     dynamic_linker="$host_os dld.so"
42955     shlibpath_var=LD_LIBRARY_PATH
42956     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
42957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42958     soname_spec='${libname}${release}${shared_ext}$major'
42959     if test "X$HPUX_IA64_MODE" = X32; then
42960       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
42961     else
42962       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
42963     fi
42964     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
42965     ;;
42966    hppa*64*)
42967      shrext_cmds='.sl'
42968      hardcode_into_libs=yes
42969      dynamic_linker="$host_os dld.sl"
42970      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
42971      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
42972      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42973      soname_spec='${libname}${release}${shared_ext}$major'
42974      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
42975      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
42976      ;;
42977    *)
42978     shrext_cmds='.sl'
42979     dynamic_linker="$host_os dld.sl"
42980     shlibpath_var=SHLIB_PATH
42981     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
42982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42983     soname_spec='${libname}${release}${shared_ext}$major'
42984     ;;
42985   esac
42986   # HP-UX runs *really* slowly unless shared libraries are mode 555.
42987   postinstall_cmds='chmod 555 $lib'
42988   ;;
42989
42990 irix5* | irix6* | nonstopux*)
42991   case $host_os in
42992     nonstopux*) version_type=nonstopux ;;
42993     *)
42994         if test "$lt_cv_prog_gnu_ld" = yes; then
42995                 version_type=linux
42996         else
42997                 version_type=irix
42998         fi ;;
42999   esac
43000   need_lib_prefix=no
43001   need_version=no
43002   soname_spec='${libname}${release}${shared_ext}$major'
43003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43004   case $host_os in
43005   irix5* | nonstopux*)
43006     libsuff= shlibsuff=
43007     ;;
43008   *)
43009     case $LD in # libtool.m4 will add one of these switches to LD
43010     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43011       libsuff= shlibsuff= libmagic=32-bit;;
43012     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43013       libsuff=32 shlibsuff=N32 libmagic=N32;;
43014     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43015       libsuff=64 shlibsuff=64 libmagic=64-bit;;
43016     *) libsuff= shlibsuff= libmagic=never-match;;
43017     esac
43018     ;;
43019   esac
43020   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43021   shlibpath_overrides_runpath=no
43022   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43023   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43024   hardcode_into_libs=yes
43025   ;;
43026
43027 # No shared lib support for Linux oldld, aout, or coff.
43028 linux*oldld* | linux*aout* | linux*coff*)
43029   dynamic_linker=no
43030   ;;
43031
43032 # This must be Linux ELF.
43033 linux*)
43034   version_type=linux
43035   need_lib_prefix=no
43036   need_version=no
43037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43038   soname_spec='${libname}${release}${shared_ext}$major'
43039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
43040   shlibpath_var=LD_LIBRARY_PATH
43041   shlibpath_overrides_runpath=no
43042   # This implies no fast_install, which is unacceptable.
43043   # Some rework will be needed to allow for fast_install
43044   # before this can be enabled.
43045   hardcode_into_libs=yes
43046
43047   # Append ld.so.conf contents to the search path
43048   if test -f /etc/ld.so.conf; then
43049     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
43050     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
43051   fi
43052
43053   # We used to test for /lib/ld.so.1 and disable shared libraries on
43054   # powerpc, because MkLinux only supported shared libraries with the
43055   # GNU dynamic linker.  Since this was broken with cross compilers,
43056   # most powerpc-linux boxes support dynamic linking these days and
43057   # people can always --disable-shared, the test was removed, and we
43058   # assume the GNU/Linux dynamic linker is in use.
43059   dynamic_linker='GNU/Linux ld.so'
43060   ;;
43061
43062 knetbsd*-gnu)
43063   version_type=linux
43064   need_lib_prefix=no
43065   need_version=no
43066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43067   soname_spec='${libname}${release}${shared_ext}$major'
43068   shlibpath_var=LD_LIBRARY_PATH
43069   shlibpath_overrides_runpath=no
43070   hardcode_into_libs=yes
43071   dynamic_linker='GNU ld.so'
43072   ;;
43073
43074 netbsd*)
43075   version_type=sunos
43076   need_lib_prefix=no
43077   need_version=no
43078   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43080     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43081     dynamic_linker='NetBSD (a.out) ld.so'
43082   else
43083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43084     soname_spec='${libname}${release}${shared_ext}$major'
43085     dynamic_linker='NetBSD ld.elf_so'
43086   fi
43087   shlibpath_var=LD_LIBRARY_PATH
43088   shlibpath_overrides_runpath=yes
43089   hardcode_into_libs=yes
43090   ;;
43091
43092 newsos6)
43093   version_type=linux
43094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43095   shlibpath_var=LD_LIBRARY_PATH
43096   shlibpath_overrides_runpath=yes
43097   ;;
43098
43099 nto-qnx*)
43100   version_type=linux
43101   need_lib_prefix=no
43102   need_version=no
43103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43104   soname_spec='${libname}${release}${shared_ext}$major'
43105   shlibpath_var=LD_LIBRARY_PATH
43106   shlibpath_overrides_runpath=yes
43107   ;;
43108
43109 openbsd*)
43110   version_type=sunos
43111   need_lib_prefix=no
43112   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
43113   case $host_os in
43114     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
43115     *)                         need_version=no  ;;
43116   esac
43117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43118   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43119   shlibpath_var=LD_LIBRARY_PATH
43120   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43121     case $host_os in
43122       openbsd2.[89] | openbsd2.[89].*)
43123         shlibpath_overrides_runpath=no
43124         ;;
43125       *)
43126         shlibpath_overrides_runpath=yes
43127         ;;
43128       esac
43129   else
43130     shlibpath_overrides_runpath=yes
43131   fi
43132   ;;
43133
43134 os2*)
43135   libname_spec='$name'
43136   shrext_cmds=".dll"
43137   need_lib_prefix=no
43138   library_names_spec='$libname${shared_ext} $libname.a'
43139   dynamic_linker='OS/2 ld.exe'
43140   shlibpath_var=LIBPATH
43141   ;;
43142
43143 osf3* | osf4* | osf5*)
43144   version_type=osf
43145   need_lib_prefix=no
43146   need_version=no
43147   soname_spec='${libname}${release}${shared_ext}$major'
43148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43149   shlibpath_var=LD_LIBRARY_PATH
43150   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
43151   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
43152   ;;
43153
43154 sco3.2v5*)
43155   version_type=osf
43156   soname_spec='${libname}${release}${shared_ext}$major'
43157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43158   shlibpath_var=LD_LIBRARY_PATH
43159   ;;
43160
43161 solaris*)
43162   version_type=linux
43163   need_lib_prefix=no
43164   need_version=no
43165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43166   soname_spec='${libname}${release}${shared_ext}$major'
43167   shlibpath_var=LD_LIBRARY_PATH
43168   shlibpath_overrides_runpath=yes
43169   hardcode_into_libs=yes
43170   # ldd complains unless libraries are executable
43171   postinstall_cmds='chmod +x $lib'
43172   ;;
43173
43174 sunos4*)
43175   version_type=sunos
43176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43177   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
43178   shlibpath_var=LD_LIBRARY_PATH
43179   shlibpath_overrides_runpath=yes
43180   if test "$with_gnu_ld" = yes; then
43181     need_lib_prefix=no
43182   fi
43183   need_version=yes
43184   ;;
43185
43186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
43187   version_type=linux
43188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43189   soname_spec='${libname}${release}${shared_ext}$major'
43190   shlibpath_var=LD_LIBRARY_PATH
43191   case $host_vendor in
43192     sni)
43193       shlibpath_overrides_runpath=no
43194       need_lib_prefix=no
43195       export_dynamic_flag_spec='${wl}-Blargedynsym'
43196       runpath_var=LD_RUN_PATH
43197       ;;
43198     siemens)
43199       need_lib_prefix=no
43200       ;;
43201     motorola)
43202       need_lib_prefix=no
43203       need_version=no
43204       shlibpath_overrides_runpath=no
43205       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
43206       ;;
43207   esac
43208   ;;
43209
43210 sysv4*MP*)
43211   if test -d /usr/nec ;then
43212     version_type=linux
43213     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
43214     soname_spec='$libname${shared_ext}.$major'
43215     shlibpath_var=LD_LIBRARY_PATH
43216   fi
43217   ;;
43218
43219 uts4*)
43220   version_type=linux
43221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43222   soname_spec='${libname}${release}${shared_ext}$major'
43223   shlibpath_var=LD_LIBRARY_PATH
43224   ;;
43225
43226 *)
43227   dynamic_linker=no
43228   ;;
43229 esac
43230 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
43231 $as_echo "$dynamic_linker" >&6; }
43232 test "$dynamic_linker" = no && can_build_shared=no
43233
43234 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
43235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
43236 hardcode_action_CXX=
43237 if test -n "$hardcode_libdir_flag_spec_CXX" || \
43238    test -n "$runpath_var_CXX" || \
43239    test "X$hardcode_automatic_CXX" = "Xyes" ; then
43240
43241   # We can hardcode non-existant directories.
43242   if test "$hardcode_direct_CXX" != no &&
43243      # If the only mechanism to avoid hardcoding is shlibpath_var, we
43244      # have to relink, otherwise we might link with an installed library
43245      # when we should be linking with a yet-to-be-installed one
43246      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
43247      test "$hardcode_minus_L_CXX" != no; then
43248     # Linking always hardcodes the temporary library directory.
43249     hardcode_action_CXX=relink
43250   else
43251     # We can link without hardcoding, and we can hardcode nonexisting dirs.
43252     hardcode_action_CXX=immediate
43253   fi
43254 else
43255   # We cannot hardcode anything, or else we can only hardcode existing
43256   # directories.
43257   hardcode_action_CXX=unsupported
43258 fi
43259 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
43260 $as_echo "$hardcode_action_CXX" >&6; }
43261
43262 if test "$hardcode_action_CXX" = relink; then
43263   # Fast installation is not supported
43264   enable_fast_install=no
43265 elif test "$shlibpath_overrides_runpath" = yes ||
43266      test "$enable_shared" = no; then
43267   # Fast installation is not necessary
43268   enable_fast_install=needless
43269 fi
43270
43271 striplib=
43272 old_striplib=
43273 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
43274 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
43275 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
43276   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
43277   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
43278   { $as_echo "$as_me:$LINENO: result: yes" >&5
43279 $as_echo "yes" >&6; }
43280 else
43281 # FIXME - insert some real tests, host_os isn't really good enough
43282   case $host_os in
43283    darwin*)
43284        if test -n "$STRIP" ; then
43285          striplib="$STRIP -x"
43286          { $as_echo "$as_me:$LINENO: result: yes" >&5
43287 $as_echo "yes" >&6; }
43288        else
43289   { $as_echo "$as_me:$LINENO: result: no" >&5
43290 $as_echo "no" >&6; }
43291 fi
43292        ;;
43293    *)
43294   { $as_echo "$as_me:$LINENO: result: no" >&5
43295 $as_echo "no" >&6; }
43296     ;;
43297   esac
43298 fi
43299
43300 if test "x$enable_dlopen" != xyes; then
43301   enable_dlopen=unknown
43302   enable_dlopen_self=unknown
43303   enable_dlopen_self_static=unknown
43304 else
43305   lt_cv_dlopen=no
43306   lt_cv_dlopen_libs=
43307
43308   case $host_os in
43309   beos*)
43310     lt_cv_dlopen="load_add_on"
43311     lt_cv_dlopen_libs=
43312     lt_cv_dlopen_self=yes
43313     ;;
43314
43315   mingw* | pw32*)
43316     lt_cv_dlopen="LoadLibrary"
43317     lt_cv_dlopen_libs=
43318    ;;
43319
43320   cygwin*)
43321     lt_cv_dlopen="dlopen"
43322     lt_cv_dlopen_libs=
43323    ;;
43324
43325   darwin*)
43326   # if libdl is installed we need to link against it
43327     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43329 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43330   $as_echo_n "(cached) " >&6
43331 else
43332   ac_check_lib_save_LIBS=$LIBS
43333 LIBS="-ldl  $LIBS"
43334 cat >conftest.$ac_ext <<_ACEOF
43335 /* confdefs.h.  */
43336 _ACEOF
43337 cat confdefs.h >>conftest.$ac_ext
43338 cat >>conftest.$ac_ext <<_ACEOF
43339 /* end confdefs.h.  */
43340
43341 /* Override any GCC internal prototype to avoid an error.
43342    Use char because int might match the return type of a GCC
43343    builtin and then its argument prototype would still apply.  */
43344 #ifdef __cplusplus
43345 extern "C"
43346 #endif
43347 char dlopen ();
43348 int
43349 main ()
43350 {
43351 return dlopen ();
43352   ;
43353   return 0;
43354 }
43355 _ACEOF
43356 rm -f conftest.$ac_objext conftest$ac_exeext
43357 if { (ac_try="$ac_link"
43358 case "(($ac_try" in
43359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43360   *) ac_try_echo=$ac_try;;
43361 esac
43362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43363 $as_echo "$ac_try_echo") >&5
43364   (eval "$ac_link") 2>conftest.er1
43365   ac_status=$?
43366   grep -v '^ *+' conftest.er1 >conftest.err
43367   rm -f conftest.er1
43368   cat conftest.err >&5
43369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370   (exit $ac_status); } && {
43371          test -z "$ac_cxx_werror_flag" ||
43372          test ! -s conftest.err
43373        } && test -s conftest$ac_exeext && {
43374          test "$cross_compiling" = yes ||
43375          $as_test_x conftest$ac_exeext
43376        }; then
43377   ac_cv_lib_dl_dlopen=yes
43378 else
43379   $as_echo "$as_me: failed program was:" >&5
43380 sed 's/^/| /' conftest.$ac_ext >&5
43381
43382         ac_cv_lib_dl_dlopen=no
43383 fi
43384
43385 rm -rf conftest.dSYM
43386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43387       conftest$ac_exeext conftest.$ac_ext
43388 LIBS=$ac_check_lib_save_LIBS
43389 fi
43390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43392 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43393   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43394 else
43395
43396     lt_cv_dlopen="dyld"
43397     lt_cv_dlopen_libs=
43398     lt_cv_dlopen_self=yes
43399
43400 fi
43401
43402    ;;
43403
43404   *)
43405     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
43406 $as_echo_n "checking for shl_load... " >&6; }
43407 if test "${ac_cv_func_shl_load+set}" = set; then
43408   $as_echo_n "(cached) " >&6
43409 else
43410   cat >conftest.$ac_ext <<_ACEOF
43411 /* confdefs.h.  */
43412 _ACEOF
43413 cat confdefs.h >>conftest.$ac_ext
43414 cat >>conftest.$ac_ext <<_ACEOF
43415 /* end confdefs.h.  */
43416 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
43417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43418 #define shl_load innocuous_shl_load
43419
43420 /* System header to define __stub macros and hopefully few prototypes,
43421     which can conflict with char shl_load (); below.
43422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43423     <limits.h> exists even on freestanding compilers.  */
43424
43425 #ifdef __STDC__
43426 # include <limits.h>
43427 #else
43428 # include <assert.h>
43429 #endif
43430
43431 #undef shl_load
43432
43433 /* Override any GCC internal prototype to avoid an error.
43434    Use char because int might match the return type of a GCC
43435    builtin and then its argument prototype would still apply.  */
43436 #ifdef __cplusplus
43437 extern "C"
43438 #endif
43439 char shl_load ();
43440 /* The GNU C library defines this for functions which it implements
43441     to always fail with ENOSYS.  Some functions are actually named
43442     something starting with __ and the normal name is an alias.  */
43443 #if defined __stub_shl_load || defined __stub___shl_load
43444 choke me
43445 #endif
43446
43447 int
43448 main ()
43449 {
43450 return shl_load ();
43451   ;
43452   return 0;
43453 }
43454 _ACEOF
43455 rm -f conftest.$ac_objext conftest$ac_exeext
43456 if { (ac_try="$ac_link"
43457 case "(($ac_try" in
43458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43459   *) ac_try_echo=$ac_try;;
43460 esac
43461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43462 $as_echo "$ac_try_echo") >&5
43463   (eval "$ac_link") 2>conftest.er1
43464   ac_status=$?
43465   grep -v '^ *+' conftest.er1 >conftest.err
43466   rm -f conftest.er1
43467   cat conftest.err >&5
43468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43469   (exit $ac_status); } && {
43470          test -z "$ac_cxx_werror_flag" ||
43471          test ! -s conftest.err
43472        } && test -s conftest$ac_exeext && {
43473          test "$cross_compiling" = yes ||
43474          $as_test_x conftest$ac_exeext
43475        }; then
43476   ac_cv_func_shl_load=yes
43477 else
43478   $as_echo "$as_me: failed program was:" >&5
43479 sed 's/^/| /' conftest.$ac_ext >&5
43480
43481         ac_cv_func_shl_load=no
43482 fi
43483
43484 rm -rf conftest.dSYM
43485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43486       conftest$ac_exeext conftest.$ac_ext
43487 fi
43488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
43489 $as_echo "$ac_cv_func_shl_load" >&6; }
43490 if test "x$ac_cv_func_shl_load" = x""yes; then
43491   lt_cv_dlopen="shl_load"
43492 else
43493   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
43494 $as_echo_n "checking for shl_load in -ldld... " >&6; }
43495 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
43496   $as_echo_n "(cached) " >&6
43497 else
43498   ac_check_lib_save_LIBS=$LIBS
43499 LIBS="-ldld  $LIBS"
43500 cat >conftest.$ac_ext <<_ACEOF
43501 /* confdefs.h.  */
43502 _ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h.  */
43506
43507 /* Override any GCC internal prototype to avoid an error.
43508    Use char because int might match the return type of a GCC
43509    builtin and then its argument prototype would still apply.  */
43510 #ifdef __cplusplus
43511 extern "C"
43512 #endif
43513 char shl_load ();
43514 int
43515 main ()
43516 {
43517 return shl_load ();
43518   ;
43519   return 0;
43520 }
43521 _ACEOF
43522 rm -f conftest.$ac_objext conftest$ac_exeext
43523 if { (ac_try="$ac_link"
43524 case "(($ac_try" in
43525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43526   *) ac_try_echo=$ac_try;;
43527 esac
43528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43529 $as_echo "$ac_try_echo") >&5
43530   (eval "$ac_link") 2>conftest.er1
43531   ac_status=$?
43532   grep -v '^ *+' conftest.er1 >conftest.err
43533   rm -f conftest.er1
43534   cat conftest.err >&5
43535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43536   (exit $ac_status); } && {
43537          test -z "$ac_cxx_werror_flag" ||
43538          test ! -s conftest.err
43539        } && test -s conftest$ac_exeext && {
43540          test "$cross_compiling" = yes ||
43541          $as_test_x conftest$ac_exeext
43542        }; then
43543   ac_cv_lib_dld_shl_load=yes
43544 else
43545   $as_echo "$as_me: failed program was:" >&5
43546 sed 's/^/| /' conftest.$ac_ext >&5
43547
43548         ac_cv_lib_dld_shl_load=no
43549 fi
43550
43551 rm -rf conftest.dSYM
43552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43553       conftest$ac_exeext conftest.$ac_ext
43554 LIBS=$ac_check_lib_save_LIBS
43555 fi
43556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
43557 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
43558 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
43559   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
43560 else
43561   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
43562 $as_echo_n "checking for dlopen... " >&6; }
43563 if test "${ac_cv_func_dlopen+set}" = set; then
43564   $as_echo_n "(cached) " >&6
43565 else
43566   cat >conftest.$ac_ext <<_ACEOF
43567 /* confdefs.h.  */
43568 _ACEOF
43569 cat confdefs.h >>conftest.$ac_ext
43570 cat >>conftest.$ac_ext <<_ACEOF
43571 /* end confdefs.h.  */
43572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
43573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43574 #define dlopen innocuous_dlopen
43575
43576 /* System header to define __stub macros and hopefully few prototypes,
43577     which can conflict with char dlopen (); below.
43578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43579     <limits.h> exists even on freestanding compilers.  */
43580
43581 #ifdef __STDC__
43582 # include <limits.h>
43583 #else
43584 # include <assert.h>
43585 #endif
43586
43587 #undef dlopen
43588
43589 /* Override any GCC internal prototype to avoid an error.
43590    Use char because int might match the return type of a GCC
43591    builtin and then its argument prototype would still apply.  */
43592 #ifdef __cplusplus
43593 extern "C"
43594 #endif
43595 char dlopen ();
43596 /* The GNU C library defines this for functions which it implements
43597     to always fail with ENOSYS.  Some functions are actually named
43598     something starting with __ and the normal name is an alias.  */
43599 #if defined __stub_dlopen || defined __stub___dlopen
43600 choke me
43601 #endif
43602
43603 int
43604 main ()
43605 {
43606 return dlopen ();
43607   ;
43608   return 0;
43609 }
43610 _ACEOF
43611 rm -f conftest.$ac_objext conftest$ac_exeext
43612 if { (ac_try="$ac_link"
43613 case "(($ac_try" in
43614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43615   *) ac_try_echo=$ac_try;;
43616 esac
43617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43618 $as_echo "$ac_try_echo") >&5
43619   (eval "$ac_link") 2>conftest.er1
43620   ac_status=$?
43621   grep -v '^ *+' conftest.er1 >conftest.err
43622   rm -f conftest.er1
43623   cat conftest.err >&5
43624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625   (exit $ac_status); } && {
43626          test -z "$ac_cxx_werror_flag" ||
43627          test ! -s conftest.err
43628        } && test -s conftest$ac_exeext && {
43629          test "$cross_compiling" = yes ||
43630          $as_test_x conftest$ac_exeext
43631        }; then
43632   ac_cv_func_dlopen=yes
43633 else
43634   $as_echo "$as_me: failed program was:" >&5
43635 sed 's/^/| /' conftest.$ac_ext >&5
43636
43637         ac_cv_func_dlopen=no
43638 fi
43639
43640 rm -rf conftest.dSYM
43641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43642       conftest$ac_exeext conftest.$ac_ext
43643 fi
43644 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
43645 $as_echo "$ac_cv_func_dlopen" >&6; }
43646 if test "x$ac_cv_func_dlopen" = x""yes; then
43647   lt_cv_dlopen="dlopen"
43648 else
43649   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43650 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43652   $as_echo_n "(cached) " >&6
43653 else
43654   ac_check_lib_save_LIBS=$LIBS
43655 LIBS="-ldl  $LIBS"
43656 cat >conftest.$ac_ext <<_ACEOF
43657 /* confdefs.h.  */
43658 _ACEOF
43659 cat confdefs.h >>conftest.$ac_ext
43660 cat >>conftest.$ac_ext <<_ACEOF
43661 /* end confdefs.h.  */
43662
43663 /* Override any GCC internal prototype to avoid an error.
43664    Use char because int might match the return type of a GCC
43665    builtin and then its argument prototype would still apply.  */
43666 #ifdef __cplusplus
43667 extern "C"
43668 #endif
43669 char dlopen ();
43670 int
43671 main ()
43672 {
43673 return dlopen ();
43674   ;
43675   return 0;
43676 }
43677 _ACEOF
43678 rm -f conftest.$ac_objext conftest$ac_exeext
43679 if { (ac_try="$ac_link"
43680 case "(($ac_try" in
43681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43682   *) ac_try_echo=$ac_try;;
43683 esac
43684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43685 $as_echo "$ac_try_echo") >&5
43686   (eval "$ac_link") 2>conftest.er1
43687   ac_status=$?
43688   grep -v '^ *+' conftest.er1 >conftest.err
43689   rm -f conftest.er1
43690   cat conftest.err >&5
43691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692   (exit $ac_status); } && {
43693          test -z "$ac_cxx_werror_flag" ||
43694          test ! -s conftest.err
43695        } && test -s conftest$ac_exeext && {
43696          test "$cross_compiling" = yes ||
43697          $as_test_x conftest$ac_exeext
43698        }; then
43699   ac_cv_lib_dl_dlopen=yes
43700 else
43701   $as_echo "$as_me: failed program was:" >&5
43702 sed 's/^/| /' conftest.$ac_ext >&5
43703
43704         ac_cv_lib_dl_dlopen=no
43705 fi
43706
43707 rm -rf conftest.dSYM
43708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43709       conftest$ac_exeext conftest.$ac_ext
43710 LIBS=$ac_check_lib_save_LIBS
43711 fi
43712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43713 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43714 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43715   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43716 else
43717   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
43718 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
43719 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
43720   $as_echo_n "(cached) " >&6
43721 else
43722   ac_check_lib_save_LIBS=$LIBS
43723 LIBS="-lsvld  $LIBS"
43724 cat >conftest.$ac_ext <<_ACEOF
43725 /* confdefs.h.  */
43726 _ACEOF
43727 cat confdefs.h >>conftest.$ac_ext
43728 cat >>conftest.$ac_ext <<_ACEOF
43729 /* end confdefs.h.  */
43730
43731 /* Override any GCC internal prototype to avoid an error.
43732    Use char because int might match the return type of a GCC
43733    builtin and then its argument prototype would still apply.  */
43734 #ifdef __cplusplus
43735 extern "C"
43736 #endif
43737 char dlopen ();
43738 int
43739 main ()
43740 {
43741 return dlopen ();
43742   ;
43743   return 0;
43744 }
43745 _ACEOF
43746 rm -f conftest.$ac_objext conftest$ac_exeext
43747 if { (ac_try="$ac_link"
43748 case "(($ac_try" in
43749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43750   *) ac_try_echo=$ac_try;;
43751 esac
43752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43753 $as_echo "$ac_try_echo") >&5
43754   (eval "$ac_link") 2>conftest.er1
43755   ac_status=$?
43756   grep -v '^ *+' conftest.er1 >conftest.err
43757   rm -f conftest.er1
43758   cat conftest.err >&5
43759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43760   (exit $ac_status); } && {
43761          test -z "$ac_cxx_werror_flag" ||
43762          test ! -s conftest.err
43763        } && test -s conftest$ac_exeext && {
43764          test "$cross_compiling" = yes ||
43765          $as_test_x conftest$ac_exeext
43766        }; then
43767   ac_cv_lib_svld_dlopen=yes
43768 else
43769   $as_echo "$as_me: failed program was:" >&5
43770 sed 's/^/| /' conftest.$ac_ext >&5
43771
43772         ac_cv_lib_svld_dlopen=no
43773 fi
43774
43775 rm -rf conftest.dSYM
43776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43777       conftest$ac_exeext conftest.$ac_ext
43778 LIBS=$ac_check_lib_save_LIBS
43779 fi
43780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
43781 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
43782 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
43783   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
43784 else
43785   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
43786 $as_echo_n "checking for dld_link in -ldld... " >&6; }
43787 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
43788   $as_echo_n "(cached) " >&6
43789 else
43790   ac_check_lib_save_LIBS=$LIBS
43791 LIBS="-ldld  $LIBS"
43792 cat >conftest.$ac_ext <<_ACEOF
43793 /* confdefs.h.  */
43794 _ACEOF
43795 cat confdefs.h >>conftest.$ac_ext
43796 cat >>conftest.$ac_ext <<_ACEOF
43797 /* end confdefs.h.  */
43798
43799 /* Override any GCC internal prototype to avoid an error.
43800    Use char because int might match the return type of a GCC
43801    builtin and then its argument prototype would still apply.  */
43802 #ifdef __cplusplus
43803 extern "C"
43804 #endif
43805 char dld_link ();
43806 int
43807 main ()
43808 {
43809 return dld_link ();
43810   ;
43811   return 0;
43812 }
43813 _ACEOF
43814 rm -f conftest.$ac_objext conftest$ac_exeext
43815 if { (ac_try="$ac_link"
43816 case "(($ac_try" in
43817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43818   *) ac_try_echo=$ac_try;;
43819 esac
43820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43821 $as_echo "$ac_try_echo") >&5
43822   (eval "$ac_link") 2>conftest.er1
43823   ac_status=$?
43824   grep -v '^ *+' conftest.er1 >conftest.err
43825   rm -f conftest.er1
43826   cat conftest.err >&5
43827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828   (exit $ac_status); } && {
43829          test -z "$ac_cxx_werror_flag" ||
43830          test ! -s conftest.err
43831        } && test -s conftest$ac_exeext && {
43832          test "$cross_compiling" = yes ||
43833          $as_test_x conftest$ac_exeext
43834        }; then
43835   ac_cv_lib_dld_dld_link=yes
43836 else
43837   $as_echo "$as_me: failed program was:" >&5
43838 sed 's/^/| /' conftest.$ac_ext >&5
43839
43840         ac_cv_lib_dld_dld_link=no
43841 fi
43842
43843 rm -rf conftest.dSYM
43844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43845       conftest$ac_exeext conftest.$ac_ext
43846 LIBS=$ac_check_lib_save_LIBS
43847 fi
43848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
43849 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
43850 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
43851   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
43852 fi
43853
43854
43855 fi
43856
43857
43858 fi
43859
43860
43861 fi
43862
43863
43864 fi
43865
43866
43867 fi
43868
43869     ;;
43870   esac
43871
43872   if test "x$lt_cv_dlopen" != xno; then
43873     enable_dlopen=yes
43874   else
43875     enable_dlopen=no
43876   fi
43877
43878   case $lt_cv_dlopen in
43879   dlopen)
43880     save_CPPFLAGS="$CPPFLAGS"
43881     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
43882
43883     save_LDFLAGS="$LDFLAGS"
43884     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
43885
43886     save_LIBS="$LIBS"
43887     LIBS="$lt_cv_dlopen_libs $LIBS"
43888
43889     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
43890 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
43891 if test "${lt_cv_dlopen_self+set}" = set; then
43892   $as_echo_n "(cached) " >&6
43893 else
43894           if test "$cross_compiling" = yes; then :
43895   lt_cv_dlopen_self=cross
43896 else
43897   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
43898   lt_status=$lt_dlunknown
43899   cat > conftest.$ac_ext <<EOF
43900 #line 43900 "configure"
43901 #include "confdefs.h"
43902
43903 #if HAVE_DLFCN_H
43904 #include <dlfcn.h>
43905 #endif
43906
43907 #include <stdio.h>
43908
43909 #ifdef RTLD_GLOBAL
43910 #  define LT_DLGLOBAL           RTLD_GLOBAL
43911 #else
43912 #  ifdef DL_GLOBAL
43913 #    define LT_DLGLOBAL         DL_GLOBAL
43914 #  else
43915 #    define LT_DLGLOBAL         0
43916 #  endif
43917 #endif
43918
43919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
43920    find out it does not work in some platform. */
43921 #ifndef LT_DLLAZY_OR_NOW
43922 #  ifdef RTLD_LAZY
43923 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
43924 #  else
43925 #    ifdef DL_LAZY
43926 #      define LT_DLLAZY_OR_NOW          DL_LAZY
43927 #    else
43928 #      ifdef RTLD_NOW
43929 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
43930 #      else
43931 #        ifdef DL_NOW
43932 #          define LT_DLLAZY_OR_NOW      DL_NOW
43933 #        else
43934 #          define LT_DLLAZY_OR_NOW      0
43935 #        endif
43936 #      endif
43937 #    endif
43938 #  endif
43939 #endif
43940
43941 #ifdef __cplusplus
43942 extern "C" void exit (int);
43943 #endif
43944
43945 void fnord() { int i=42;}
43946 int main ()
43947 {
43948   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
43949   int status = $lt_dlunknown;
43950
43951   if (self)
43952     {
43953       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
43954       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
43955       /* dlclose (self); */
43956     }
43957
43958     exit (status);
43959 }
43960 EOF
43961   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43962   (eval $ac_link) 2>&5
43963   ac_status=$?
43964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
43966     (./conftest; exit; ) >&5 2>/dev/null
43967     lt_status=$?
43968     case x$lt_status in
43969       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
43970       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
43971       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
43972     esac
43973   else :
43974     # compilation failed
43975     lt_cv_dlopen_self=no
43976   fi
43977 fi
43978 rm -fr conftest*
43979
43980
43981 fi
43982 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
43983 $as_echo "$lt_cv_dlopen_self" >&6; }
43984
43985     if test "x$lt_cv_dlopen_self" = xyes; then
43986       LDFLAGS="$LDFLAGS $link_static_flag"
43987       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
43988 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
43989 if test "${lt_cv_dlopen_self_static+set}" = set; then
43990   $as_echo_n "(cached) " >&6
43991 else
43992           if test "$cross_compiling" = yes; then :
43993   lt_cv_dlopen_self_static=cross
43994 else
43995   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
43996   lt_status=$lt_dlunknown
43997   cat > conftest.$ac_ext <<EOF
43998 #line 43998 "configure"
43999 #include "confdefs.h"
44000
44001 #if HAVE_DLFCN_H
44002 #include <dlfcn.h>
44003 #endif
44004
44005 #include <stdio.h>
44006
44007 #ifdef RTLD_GLOBAL
44008 #  define LT_DLGLOBAL           RTLD_GLOBAL
44009 #else
44010 #  ifdef DL_GLOBAL
44011 #    define LT_DLGLOBAL         DL_GLOBAL
44012 #  else
44013 #    define LT_DLGLOBAL         0
44014 #  endif
44015 #endif
44016
44017 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
44018    find out it does not work in some platform. */
44019 #ifndef LT_DLLAZY_OR_NOW
44020 #  ifdef RTLD_LAZY
44021 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
44022 #  else
44023 #    ifdef DL_LAZY
44024 #      define LT_DLLAZY_OR_NOW          DL_LAZY
44025 #    else
44026 #      ifdef RTLD_NOW
44027 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
44028 #      else
44029 #        ifdef DL_NOW
44030 #          define LT_DLLAZY_OR_NOW      DL_NOW
44031 #        else
44032 #          define LT_DLLAZY_OR_NOW      0
44033 #        endif
44034 #      endif
44035 #    endif
44036 #  endif
44037 #endif
44038
44039 #ifdef __cplusplus
44040 extern "C" void exit (int);
44041 #endif
44042
44043 void fnord() { int i=42;}
44044 int main ()
44045 {
44046   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
44047   int status = $lt_dlunknown;
44048
44049   if (self)
44050     {
44051       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
44052       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44053       /* dlclose (self); */
44054     }
44055
44056     exit (status);
44057 }
44058 EOF
44059   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44060   (eval $ac_link) 2>&5
44061   ac_status=$?
44062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44063   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
44064     (./conftest; exit; ) >&5 2>/dev/null
44065     lt_status=$?
44066     case x$lt_status in
44067       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
44068       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
44069       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
44070     esac
44071   else :
44072     # compilation failed
44073     lt_cv_dlopen_self_static=no
44074   fi
44075 fi
44076 rm -fr conftest*
44077
44078
44079 fi
44080 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
44081 $as_echo "$lt_cv_dlopen_self_static" >&6; }
44082     fi
44083
44084     CPPFLAGS="$save_CPPFLAGS"
44085     LDFLAGS="$save_LDFLAGS"
44086     LIBS="$save_LIBS"
44087     ;;
44088   esac
44089
44090   case $lt_cv_dlopen_self in
44091   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
44092   *) enable_dlopen_self=unknown ;;
44093   esac
44094
44095   case $lt_cv_dlopen_self_static in
44096   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
44097   *) enable_dlopen_self_static=unknown ;;
44098   esac
44099 fi
44100
44101
44102 # The else clause should only fire when bootstrapping the
44103 # libtool distribution, otherwise you forgot to ship ltmain.sh
44104 # with your package, and you will get complaints that there are
44105 # no rules to generate ltmain.sh.
44106 if test -f "$ltmain"; then
44107   # See if we are running on zsh, and set the options which allow our commands through
44108   # without removal of \ escapes.
44109   if test -n "${ZSH_VERSION+set}" ; then
44110     setopt NO_GLOB_SUBST
44111   fi
44112   # Now quote all the things that may contain metacharacters while being
44113   # careful not to overquote the AC_SUBSTed values.  We take copies of the
44114   # variables and quote the copies for generation of the libtool script.
44115   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44116     SED SHELL STRIP \
44117     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44118     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44119     deplibs_check_method reload_flag reload_cmds need_locks \
44120     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44121     lt_cv_sys_global_symbol_to_c_name_address \
44122     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44123     old_postinstall_cmds old_postuninstall_cmds \
44124     compiler_CXX \
44125     CC_CXX \
44126     LD_CXX \
44127     lt_prog_compiler_wl_CXX \
44128     lt_prog_compiler_pic_CXX \
44129     lt_prog_compiler_static_CXX \
44130     lt_prog_compiler_no_builtin_flag_CXX \
44131     export_dynamic_flag_spec_CXX \
44132     thread_safe_flag_spec_CXX \
44133     whole_archive_flag_spec_CXX \
44134     enable_shared_with_static_runtimes_CXX \
44135     old_archive_cmds_CXX \
44136     old_archive_from_new_cmds_CXX \
44137     predep_objects_CXX \
44138     postdep_objects_CXX \
44139     predeps_CXX \
44140     postdeps_CXX \
44141     compiler_lib_search_path_CXX \
44142     archive_cmds_CXX \
44143     archive_expsym_cmds_CXX \
44144     postinstall_cmds_CXX \
44145     postuninstall_cmds_CXX \
44146     old_archive_from_expsyms_cmds_CXX \
44147     allow_undefined_flag_CXX \
44148     no_undefined_flag_CXX \
44149     export_symbols_cmds_CXX \
44150     hardcode_libdir_flag_spec_CXX \
44151     hardcode_libdir_flag_spec_ld_CXX \
44152     hardcode_libdir_separator_CXX \
44153     hardcode_automatic_CXX \
44154     module_cmds_CXX \
44155     module_expsym_cmds_CXX \
44156     lt_cv_prog_compiler_c_o_CXX \
44157     exclude_expsyms_CXX \
44158     include_expsyms_CXX; do
44159
44160     case $var in
44161     old_archive_cmds_CXX | \
44162     old_archive_from_new_cmds_CXX | \
44163     archive_cmds_CXX | \
44164     archive_expsym_cmds_CXX | \
44165     module_cmds_CXX | \
44166     module_expsym_cmds_CXX | \
44167     old_archive_from_expsyms_cmds_CXX | \
44168     export_symbols_cmds_CXX | \
44169     extract_expsyms_cmds | reload_cmds | finish_cmds | \
44170     postinstall_cmds | postuninstall_cmds | \
44171     old_postinstall_cmds | old_postuninstall_cmds | \
44172     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44173       # Double-quote double-evaled strings.
44174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44175       ;;
44176     *)
44177       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44178       ;;
44179     esac
44180   done
44181
44182   case $lt_echo in
44183   *'\$0 --fallback-echo"')
44184     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44185     ;;
44186   esac
44187
44188 cfgfile="$ofile"
44189
44190   cat <<__EOF__ >> "$cfgfile"
44191 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44192
44193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44194
44195 # Shell to use when invoking shell scripts.
44196 SHELL=$lt_SHELL
44197
44198 # Whether or not to build shared libraries.
44199 build_libtool_libs=$enable_shared
44200
44201 # Whether or not to build static libraries.
44202 build_old_libs=$enable_static
44203
44204 # Whether or not to add -lc for building shared libraries.
44205 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44206
44207 # Whether or not to disallow shared libs when runtime libs are static
44208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44209
44210 # Whether or not to optimize for fast installation.
44211 fast_install=$enable_fast_install
44212
44213 # The host system.
44214 host_alias=$host_alias
44215 host=$host
44216 host_os=$host_os
44217
44218 # The build system.
44219 build_alias=$build_alias
44220 build=$build
44221 build_os=$build_os
44222
44223 # An echo program that does not interpret backslashes.
44224 echo=$lt_echo
44225
44226 # The archiver.
44227 AR=$lt_AR
44228 AR_FLAGS=$lt_AR_FLAGS
44229
44230 # A C compiler.
44231 LTCC=$lt_LTCC
44232
44233 # A language-specific compiler.
44234 CC=$lt_compiler_CXX
44235
44236 # Is the compiler the GNU C compiler?
44237 with_gcc=$GCC_CXX
44238
44239 # An ERE matcher.
44240 EGREP=$lt_EGREP
44241
44242 # The linker used to build libraries.
44243 LD=$lt_LD_CXX
44244
44245 # Whether we need hard or soft links.
44246 LN_S=$lt_LN_S
44247
44248 # A BSD-compatible nm program.
44249 NM=$lt_NM
44250
44251 # A symbol stripping program
44252 STRIP=$lt_STRIP
44253
44254 # Used to examine libraries when file_magic_cmd begins "file"
44255 MAGIC_CMD=$MAGIC_CMD
44256
44257 # Used on cygwin: DLL creation program.
44258 DLLTOOL="$DLLTOOL"
44259
44260 # Used on cygwin: object dumper.
44261 OBJDUMP="$OBJDUMP"
44262
44263 # Used on cygwin: assembler.
44264 AS="$AS"
44265
44266 # The name of the directory that contains temporary libtool files.
44267 objdir=$objdir
44268
44269 # How to create reloadable object files.
44270 reload_flag=$lt_reload_flag
44271 reload_cmds=$lt_reload_cmds
44272
44273 # How to pass a linker flag through the compiler.
44274 wl=$lt_lt_prog_compiler_wl_CXX
44275
44276 # Object file suffix (normally "o").
44277 objext="$ac_objext"
44278
44279 # Old archive suffix (normally "a").
44280 libext="$libext"
44281
44282 # Shared library suffix (normally ".so").
44283 shrext_cmds='$shrext_cmds'
44284
44285 # Executable file suffix (normally "").
44286 exeext="$exeext"
44287
44288 # Additional compiler flags for building library objects.
44289 pic_flag=$lt_lt_prog_compiler_pic_CXX
44290 pic_mode=$pic_mode
44291
44292 # What is the maximum length of a command?
44293 max_cmd_len=$lt_cv_sys_max_cmd_len
44294
44295 # Does compiler simultaneously support -c and -o options?
44296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44297
44298 # Must we lock files when doing compilation?
44299 need_locks=$lt_need_locks
44300
44301 # Do we need the lib prefix for modules?
44302 need_lib_prefix=$need_lib_prefix
44303
44304 # Do we need a version for libraries?
44305 need_version=$need_version
44306
44307 # Whether dlopen is supported.
44308 dlopen_support=$enable_dlopen
44309
44310 # Whether dlopen of programs is supported.
44311 dlopen_self=$enable_dlopen_self
44312
44313 # Whether dlopen of statically linked programs is supported.
44314 dlopen_self_static=$enable_dlopen_self_static
44315
44316 # Compiler flag to prevent dynamic linking.
44317 link_static_flag=$lt_lt_prog_compiler_static_CXX
44318
44319 # Compiler flag to turn off builtin functions.
44320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44321
44322 # Compiler flag to allow reflexive dlopens.
44323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44324
44325 # Compiler flag to generate shared objects directly from archives.
44326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44327
44328 # Compiler flag to generate thread-safe objects.
44329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
44330
44331 # Library versioning type.
44332 version_type=$version_type
44333
44334 # Format of library name prefix.
44335 libname_spec=$lt_libname_spec
44336
44337 # List of archive names.  First name is the real one, the rest are links.
44338 # The last name is the one that the linker finds with -lNAME.
44339 library_names_spec=$lt_library_names_spec
44340
44341 # The coded name of the library, if different from the real name.
44342 soname_spec=$lt_soname_spec
44343
44344 # Commands used to build and install an old-style archive.
44345 RANLIB=$lt_RANLIB
44346 old_archive_cmds=$lt_old_archive_cmds_CXX
44347 old_postinstall_cmds=$lt_old_postinstall_cmds
44348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44349
44350 # Create an old-style archive from a shared archive.
44351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44352
44353 # Create a temporary old-style archive to link instead of a shared archive.
44354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44355
44356 # Commands used to build and install a shared archive.
44357 archive_cmds=$lt_archive_cmds_CXX
44358 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44359 postinstall_cmds=$lt_postinstall_cmds
44360 postuninstall_cmds=$lt_postuninstall_cmds
44361
44362 # Commands used to build a loadable module (assumed same as above if empty)
44363 module_cmds=$lt_module_cmds_CXX
44364 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44365
44366 # Commands to strip libraries.
44367 old_striplib=$lt_old_striplib
44368 striplib=$lt_striplib
44369
44370 # Dependencies to place before the objects being linked to create a
44371 # shared library.
44372 predep_objects=$lt_predep_objects_CXX
44373
44374 # Dependencies to place after the objects being linked to create a
44375 # shared library.
44376 postdep_objects=$lt_postdep_objects_CXX
44377
44378 # Dependencies to place before the objects being linked to create a
44379 # shared library.
44380 predeps=$lt_predeps_CXX
44381
44382 # Dependencies to place after the objects being linked to create a
44383 # shared library.
44384 postdeps=$lt_postdeps_CXX
44385
44386 # The library search path used internally by the compiler when linking
44387 # a shared library.
44388 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44389
44390 # Method to check whether dependent libraries are shared objects.
44391 deplibs_check_method=$lt_deplibs_check_method
44392
44393 # Command to use when deplibs_check_method == file_magic.
44394 file_magic_cmd=$lt_file_magic_cmd
44395
44396 # Flag that allows shared libraries with undefined symbols to be built.
44397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44398
44399 # Flag that forces no undefined symbols.
44400 no_undefined_flag=$lt_no_undefined_flag_CXX
44401
44402 # Commands used to finish a libtool library installation in a directory.
44403 finish_cmds=$lt_finish_cmds
44404
44405 # Same as above, but a single script fragment to be evaled but not shown.
44406 finish_eval=$lt_finish_eval
44407
44408 # Take the output of nm and produce a listing of raw symbols and C names.
44409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44410
44411 # Transform the output of nm in a proper C declaration
44412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44413
44414 # Transform the output of nm in a C name address pair
44415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44416
44417 # This is the shared library runtime path variable.
44418 runpath_var=$runpath_var
44419
44420 # This is the shared library path variable.
44421 shlibpath_var=$shlibpath_var
44422
44423 # Is shlibpath searched before the hard-coded library search path?
44424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44425
44426 # How to hardcode a shared library path into an executable.
44427 hardcode_action=$hardcode_action_CXX
44428
44429 # Whether we should hardcode library paths into libraries.
44430 hardcode_into_libs=$hardcode_into_libs
44431
44432 # Flag to hardcode \$libdir into a binary during linking.
44433 # This must work even if \$libdir does not exist.
44434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44435
44436 # If ld is used when linking, flag to hardcode \$libdir into
44437 # a binary during linking. This must work even if \$libdir does
44438 # not exist.
44439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44440
44441 # Whether we need a single -rpath flag with a separated argument.
44442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44443
44444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44445 # resulting binary.
44446 hardcode_direct=$hardcode_direct_CXX
44447
44448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44449 # resulting binary.
44450 hardcode_minus_L=$hardcode_minus_L_CXX
44451
44452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44453 # the resulting binary.
44454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44455
44456 # Set to yes if building a shared library automatically hardcodes DIR into the library
44457 # and all subsequent libraries and executables linked against it.
44458 hardcode_automatic=$hardcode_automatic_CXX
44459
44460 # Variables whose values should be saved in libtool wrapper scripts and
44461 # restored at relink time.
44462 variables_saved_for_relink="$variables_saved_for_relink"
44463
44464 # Whether libtool must link a program against all its dependency libraries.
44465 link_all_deplibs=$link_all_deplibs_CXX
44466
44467 # Compile-time system search path for libraries
44468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44469
44470 # Run-time system search path for libraries
44471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44472
44473 # Fix the shell variable \$srcfile for the compiler.
44474 fix_srcfile_path="$fix_srcfile_path_CXX"
44475
44476 # Set to yes if exported symbols are required.
44477 always_export_symbols=$always_export_symbols_CXX
44478
44479 # The commands to list exported symbols.
44480 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44481
44482 # The commands to extract the exported symbol list from a shared archive.
44483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44484
44485 # Symbols that should not be listed in the preloaded symbols.
44486 exclude_expsyms=$lt_exclude_expsyms_CXX
44487
44488 # Symbols that must always be exported.
44489 include_expsyms=$lt_include_expsyms_CXX
44490
44491 # ### END LIBTOOL TAG CONFIG: $tagname
44492
44493 __EOF__
44494
44495
44496 else
44497   # If there is no Makefile yet, we rely on a make rule to execute
44498   # `config.status --recheck' to rerun these tests and create the
44499   # libtool script then.
44500   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44501   if test -f "$ltmain_in"; then
44502     test -f Makefile && make "$ltmain"
44503   fi
44504 fi
44505
44506
44507 ac_ext=c
44508 ac_cpp='$CPP $CPPFLAGS'
44509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44512
44513 CC=$lt_save_CC
44514 LDCXX=$LD
44515 LD=$lt_save_LD
44516 GCC=$lt_save_GCC
44517 with_gnu_ldcxx=$with_gnu_ld
44518 with_gnu_ld=$lt_save_with_gnu_ld
44519 lt_cv_path_LDCXX=$lt_cv_path_LD
44520 lt_cv_path_LD=$lt_save_path_LD
44521 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
44522 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
44523
44524         else
44525           tagname=""
44526         fi
44527         ;;
44528
44529       F77)
44530         if test -n "$F77" && test "X$F77" != "Xno"; then
44531
44532 ac_ext=f
44533 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44534 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44535 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44536
44537
44538 archive_cmds_need_lc_F77=no
44539 allow_undefined_flag_F77=
44540 always_export_symbols_F77=no
44541 archive_expsym_cmds_F77=
44542 export_dynamic_flag_spec_F77=
44543 hardcode_direct_F77=no
44544 hardcode_libdir_flag_spec_F77=
44545 hardcode_libdir_flag_spec_ld_F77=
44546 hardcode_libdir_separator_F77=
44547 hardcode_minus_L_F77=no
44548 hardcode_automatic_F77=no
44549 module_cmds_F77=
44550 module_expsym_cmds_F77=
44551 link_all_deplibs_F77=unknown
44552 old_archive_cmds_F77=$old_archive_cmds
44553 no_undefined_flag_F77=
44554 whole_archive_flag_spec_F77=
44555 enable_shared_with_static_runtimes_F77=no
44556
44557 # Source file extension for f77 test sources.
44558 ac_ext=f
44559
44560 # Object file extension for compiled f77 test sources.
44561 objext=o
44562 objext_F77=$objext
44563
44564 # Code to be used in simple compile tests
44565 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
44566
44567 # Code to be used in simple link tests
44568 lt_simple_link_test_code="      program t\n      end\n"
44569
44570 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44571
44572 # If no C compiler was specified, use CC.
44573 LTCC=${LTCC-"$CC"}
44574
44575 # Allow CC to be a program name with arguments.
44576 compiler=$CC
44577
44578
44579 # save warnings/boilerplate of simple test code
44580 ac_outfile=conftest.$ac_objext
44581 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44583 _lt_compiler_boilerplate=`cat conftest.err`
44584 $rm conftest*
44585
44586 ac_outfile=conftest.$ac_objext
44587 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44589 _lt_linker_boilerplate=`cat conftest.err`
44590 $rm conftest*
44591
44592
44593 # Allow CC to be a program name with arguments.
44594 lt_save_CC="$CC"
44595 CC=${F77-"f77"}
44596 compiler=$CC
44597 compiler_F77=$CC
44598 for cc_temp in $compiler""; do
44599   case $cc_temp in
44600     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44601     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44602     \-*) ;;
44603     *) break;;
44604   esac
44605 done
44606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44607
44608
44609 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
44610 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
44611 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
44612 $as_echo "$can_build_shared" >&6; }
44613
44614 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
44615 $as_echo_n "checking whether to build shared libraries... " >&6; }
44616 test "$can_build_shared" = "no" && enable_shared=no
44617
44618 # On AIX, shared libraries and static libraries use the same namespace, and
44619 # are all built from PIC.
44620 case $host_os in
44621 aix3*)
44622   test "$enable_shared" = yes && enable_static=no
44623   if test -n "$RANLIB"; then
44624     archive_cmds="$archive_cmds~\$RANLIB \$lib"
44625     postinstall_cmds='$RANLIB $lib'
44626   fi
44627   ;;
44628 aix4* | aix5*)
44629   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
44630     test "$enable_shared" = yes && enable_static=no
44631   fi
44632   ;;
44633 esac
44634 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
44635 $as_echo "$enable_shared" >&6; }
44636
44637 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
44638 $as_echo_n "checking whether to build static libraries... " >&6; }
44639 # Make sure either enable_shared or enable_static is yes.
44640 test "$enable_shared" = yes || enable_static=yes
44641 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
44642 $as_echo "$enable_static" >&6; }
44643
44644 test "$ld_shlibs_F77" = no && can_build_shared=no
44645
44646 GCC_F77="$G77"
44647 LD_F77="$LD"
44648
44649 lt_prog_compiler_wl_F77=
44650 lt_prog_compiler_pic_F77=
44651 lt_prog_compiler_static_F77=
44652
44653 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
44655
44656   if test "$GCC" = yes; then
44657     lt_prog_compiler_wl_F77='-Wl,'
44658     lt_prog_compiler_static_F77='-static'
44659
44660     case $host_os in
44661       aix*)
44662       # All AIX code is PIC.
44663       if test "$host_cpu" = ia64; then
44664         # AIX 5 now supports IA64 processor
44665         lt_prog_compiler_static_F77='-Bstatic'
44666       fi
44667       ;;
44668
44669     amigaos*)
44670       # FIXME: we need at least 68020 code to build shared libraries, but
44671       # adding the `-m68020' flag to GCC prevents building anything better,
44672       # like `-m68040'.
44673       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
44674       ;;
44675
44676     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44677       # PIC is the default for these OSes.
44678       ;;
44679
44680     mingw* | pw32* | os2*)
44681       # This hack is so that the source file can tell whether it is being
44682       # built for inclusion in a dll (and should export symbols for example).
44683       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44684       ;;
44685
44686     darwin* | rhapsody*)
44687       # PIC is the default on this platform
44688       # Common symbols not allowed in MH_DYLIB files
44689       lt_prog_compiler_pic_F77='-fno-common'
44690       ;;
44691
44692     msdosdjgpp*)
44693       # Just because we use GCC doesn't mean we suddenly get shared libraries
44694       # on systems that don't support them.
44695       lt_prog_compiler_can_build_shared_F77=no
44696       enable_shared=no
44697       ;;
44698
44699     sysv4*MP*)
44700       if test -d /usr/nec; then
44701         lt_prog_compiler_pic_F77=-Kconform_pic
44702       fi
44703       ;;
44704
44705     hpux*)
44706       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44707       # not for PA HP-UX.
44708       case $host_cpu in
44709       hppa*64*|ia64*)
44710         # +Z the default
44711         ;;
44712       *)
44713         lt_prog_compiler_pic_F77='-fPIC'
44714         ;;
44715       esac
44716       ;;
44717
44718     *)
44719       lt_prog_compiler_pic_F77='-fPIC'
44720       ;;
44721     esac
44722   else
44723     # PORTME Check for flag to pass linker flags through the system compiler.
44724     case $host_os in
44725     aix*)
44726       lt_prog_compiler_wl_F77='-Wl,'
44727       if test "$host_cpu" = ia64; then
44728         # AIX 5 now supports IA64 processor
44729         lt_prog_compiler_static_F77='-Bstatic'
44730       else
44731         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
44732       fi
44733       ;;
44734       darwin*)
44735         # PIC is the default on this platform
44736         # Common symbols not allowed in MH_DYLIB files
44737        case $cc_basename in
44738          xlc*)
44739          lt_prog_compiler_pic_F77='-qnocommon'
44740          lt_prog_compiler_wl_F77='-Wl,'
44741          ;;
44742        esac
44743        ;;
44744
44745     mingw* | pw32* | os2*)
44746       # This hack is so that the source file can tell whether it is being
44747       # built for inclusion in a dll (and should export symbols for example).
44748       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44749       ;;
44750
44751     hpux9* | hpux10* | hpux11*)
44752       lt_prog_compiler_wl_F77='-Wl,'
44753       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44754       # not for PA HP-UX.
44755       case $host_cpu in
44756       hppa*64*|ia64*)
44757         # +Z the default
44758         ;;
44759       *)
44760         lt_prog_compiler_pic_F77='+Z'
44761         ;;
44762       esac
44763       # Is there a better lt_prog_compiler_static that works with the bundled CC?
44764       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
44765       ;;
44766
44767     irix5* | irix6* | nonstopux*)
44768       lt_prog_compiler_wl_F77='-Wl,'
44769       # PIC (with -KPIC) is the default.
44770       lt_prog_compiler_static_F77='-non_shared'
44771       ;;
44772
44773     newsos6)
44774       lt_prog_compiler_pic_F77='-KPIC'
44775       lt_prog_compiler_static_F77='-Bstatic'
44776       ;;
44777
44778     linux*)
44779       case $cc_basename in
44780       icc* | ecc*)
44781         lt_prog_compiler_wl_F77='-Wl,'
44782         lt_prog_compiler_pic_F77='-KPIC'
44783         lt_prog_compiler_static_F77='-static'
44784         ;;
44785       pgcc* | pgf77* | pgf90* | pgf95*)
44786         # Portland Group compilers (*not* the Pentium gcc compiler,
44787         # which looks to be a dead project)
44788         lt_prog_compiler_wl_F77='-Wl,'
44789         lt_prog_compiler_pic_F77='-fpic'
44790         lt_prog_compiler_static_F77='-Bstatic'
44791         ;;
44792       ccc*)
44793         lt_prog_compiler_wl_F77='-Wl,'
44794         # All Alpha code is PIC.
44795         lt_prog_compiler_static_F77='-non_shared'
44796         ;;
44797       esac
44798       ;;
44799
44800     osf3* | osf4* | osf5*)
44801       lt_prog_compiler_wl_F77='-Wl,'
44802       # All OSF/1 code is PIC.
44803       lt_prog_compiler_static_F77='-non_shared'
44804       ;;
44805
44806     sco3.2v5*)
44807       lt_prog_compiler_pic_F77='-Kpic'
44808       lt_prog_compiler_static_F77='-dn'
44809       ;;
44810
44811     solaris*)
44812       lt_prog_compiler_pic_F77='-KPIC'
44813       lt_prog_compiler_static_F77='-Bstatic'
44814       case $cc_basename in
44815       f77* | f90* | f95*)
44816         lt_prog_compiler_wl_F77='-Qoption ld ';;
44817       *)
44818         lt_prog_compiler_wl_F77='-Wl,';;
44819       esac
44820       ;;
44821
44822     sunos4*)
44823       lt_prog_compiler_wl_F77='-Qoption ld '
44824       lt_prog_compiler_pic_F77='-PIC'
44825       lt_prog_compiler_static_F77='-Bstatic'
44826       ;;
44827
44828     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44829       lt_prog_compiler_wl_F77='-Wl,'
44830       lt_prog_compiler_pic_F77='-KPIC'
44831       lt_prog_compiler_static_F77='-Bstatic'
44832       ;;
44833
44834     sysv4*MP*)
44835       if test -d /usr/nec ;then
44836         lt_prog_compiler_pic_F77='-Kconform_pic'
44837         lt_prog_compiler_static_F77='-Bstatic'
44838       fi
44839       ;;
44840
44841     unicos*)
44842       lt_prog_compiler_wl_F77='-Wl,'
44843       lt_prog_compiler_can_build_shared_F77=no
44844       ;;
44845
44846     uts4*)
44847       lt_prog_compiler_pic_F77='-pic'
44848       lt_prog_compiler_static_F77='-Bstatic'
44849       ;;
44850
44851     *)
44852       lt_prog_compiler_can_build_shared_F77=no
44853       ;;
44854     esac
44855   fi
44856
44857 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
44858 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
44859
44860 #
44861 # Check to make sure the PIC flag actually works.
44862 #
44863 if test -n "$lt_prog_compiler_pic_F77"; then
44864
44865 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
44866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
44867 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
44868   $as_echo_n "(cached) " >&6
44869 else
44870   lt_prog_compiler_pic_works_F77=no
44871   ac_outfile=conftest.$ac_objext
44872    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44873    lt_compiler_flag="$lt_prog_compiler_pic_F77"
44874    # Insert the option either (1) after the last *FLAGS variable, or
44875    # (2) before a word containing "conftest.", or (3) at the end.
44876    # Note that $ac_compile itself does not contain backslashes and begins
44877    # with a dollar sign (not a hyphen), so the echo should work correctly.
44878    # The option is referenced via a variable to avoid confusing sed.
44879    lt_compile=`echo "$ac_compile" | $SED \
44880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44882    -e 's:$: $lt_compiler_flag:'`
44883    (eval echo "\"\$as_me:44883: $lt_compile\"" >&5)
44884    (eval "$lt_compile" 2>conftest.err)
44885    ac_status=$?
44886    cat conftest.err >&5
44887    echo "$as_me:44887: \$? = $ac_status" >&5
44888    if (exit $ac_status) && test -s "$ac_outfile"; then
44889      # The compiler can only warn and ignore the option if not recognized
44890      # So say no if there are warnings other than the usual output.
44891      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44892      $SED '/^$/d' conftest.err >conftest.er2
44893      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44894        lt_prog_compiler_pic_works_F77=yes
44895      fi
44896    fi
44897    $rm conftest*
44898
44899 fi
44900 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
44901 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
44902
44903 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
44904     case $lt_prog_compiler_pic_F77 in
44905      "" | " "*) ;;
44906      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
44907      esac
44908 else
44909     lt_prog_compiler_pic_F77=
44910      lt_prog_compiler_can_build_shared_F77=no
44911 fi
44912
44913 fi
44914 case $host_os in
44915   # For platforms which do not support PIC, -DPIC is meaningless:
44916   *djgpp*)
44917     lt_prog_compiler_pic_F77=
44918     ;;
44919   *)
44920     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
44921     ;;
44922 esac
44923
44924 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
44925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
44926 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
44927   $as_echo_n "(cached) " >&6
44928 else
44929   lt_cv_prog_compiler_c_o_F77=no
44930    $rm -r conftest 2>/dev/null
44931    mkdir conftest
44932    cd conftest
44933    mkdir out
44934    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44935
44936    lt_compiler_flag="-o out/conftest2.$ac_objext"
44937    # Insert the option either (1) after the last *FLAGS variable, or
44938    # (2) before a word containing "conftest.", or (3) at the end.
44939    # Note that $ac_compile itself does not contain backslashes and begins
44940    # with a dollar sign (not a hyphen), so the echo should work correctly.
44941    lt_compile=`echo "$ac_compile" | $SED \
44942    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44943    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44944    -e 's:$: $lt_compiler_flag:'`
44945    (eval echo "\"\$as_me:44945: $lt_compile\"" >&5)
44946    (eval "$lt_compile" 2>out/conftest.err)
44947    ac_status=$?
44948    cat out/conftest.err >&5
44949    echo "$as_me:44949: \$? = $ac_status" >&5
44950    if (exit $ac_status) && test -s out/conftest2.$ac_objext
44951    then
44952      # The compiler can only warn and ignore the option if not recognized
44953      # So say no if there are warnings
44954      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
44955      $SED '/^$/d' out/conftest.err >out/conftest.er2
44956      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44957        lt_cv_prog_compiler_c_o_F77=yes
44958      fi
44959    fi
44960    chmod u+w . 2>&5
44961    $rm conftest*
44962    # SGI C++ compiler will create directory out/ii_files/ for
44963    # template instantiation
44964    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
44965    $rm out/* && rmdir out
44966    cd ..
44967    rmdir conftest
44968    $rm conftest*
44969
44970 fi
44971 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
44972 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
44973
44974
44975 hard_links="nottested"
44976 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
44977   # do not overwrite the value of need_locks provided by the user
44978   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
44979 $as_echo_n "checking if we can lock with hard links... " >&6; }
44980   hard_links=yes
44981   $rm conftest*
44982   ln conftest.a conftest.b 2>/dev/null && hard_links=no
44983   touch conftest.a
44984   ln conftest.a conftest.b 2>&5 || hard_links=no
44985   ln conftest.a conftest.b 2>/dev/null && hard_links=no
44986   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
44987 $as_echo "$hard_links" >&6; }
44988   if test "$hard_links" = no; then
44989
44990     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
44991 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
44992
44993
44994     cat <<AAW_EOF >>config.warnings
44995 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
44996 AAW_EOF
44997
44998
44999     need_locks=warn
45000   fi
45001 else
45002   need_locks=no
45003 fi
45004
45005 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45007
45008   runpath_var=
45009   allow_undefined_flag_F77=
45010   enable_shared_with_static_runtimes_F77=no
45011   archive_cmds_F77=
45012   archive_expsym_cmds_F77=
45013   old_archive_From_new_cmds_F77=
45014   old_archive_from_expsyms_cmds_F77=
45015   export_dynamic_flag_spec_F77=
45016   whole_archive_flag_spec_F77=
45017   thread_safe_flag_spec_F77=
45018   hardcode_libdir_flag_spec_F77=
45019   hardcode_libdir_flag_spec_ld_F77=
45020   hardcode_libdir_separator_F77=
45021   hardcode_direct_F77=no
45022   hardcode_minus_L_F77=no
45023   hardcode_shlibpath_var_F77=unsupported
45024   link_all_deplibs_F77=unknown
45025   hardcode_automatic_F77=no
45026   module_cmds_F77=
45027   module_expsym_cmds_F77=
45028   always_export_symbols_F77=no
45029   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45030   # include_expsyms should be a list of space-separated symbols to be *always*
45031   # included in the symbol list
45032   include_expsyms_F77=
45033   # exclude_expsyms can be an extended regexp of symbols to exclude
45034   # it will be wrapped by ` (' and `)$', so one must not match beginning or
45035   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45036   # as well as any symbol that contains `d'.
45037   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
45038   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45039   # platforms (ab)use it in PIC code, but their linkers get confused if
45040   # the symbol is explicitly referenced.  Since portable code cannot
45041   # rely on this symbol name, it's probably fine to never include it in
45042   # preloaded symbol tables.
45043   extract_expsyms_cmds=
45044   # Just being paranoid about ensuring that cc_basename is set.
45045   for cc_temp in $compiler""; do
45046   case $cc_temp in
45047     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45048     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45049     \-*) ;;
45050     *) break;;
45051   esac
45052 done
45053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45054
45055   case $host_os in
45056   cygwin* | mingw* | pw32*)
45057     # FIXME: the MSVC++ port hasn't been tested in a loooong time
45058     # When not using gcc, we currently assume that we are using
45059     # Microsoft Visual C++.
45060     if test "$GCC" != yes; then
45061       with_gnu_ld=no
45062     fi
45063     ;;
45064   openbsd*)
45065     with_gnu_ld=no
45066     ;;
45067   esac
45068
45069   ld_shlibs_F77=yes
45070   if test "$with_gnu_ld" = yes; then
45071     # If archive_cmds runs LD, not CC, wlarc should be empty
45072     wlarc='${wl}'
45073
45074     # Set some defaults for GNU ld with shared library support. These
45075     # are reset later if shared libraries are not supported. Putting them
45076     # here allows them to be overridden if necessary.
45077     runpath_var=LD_RUN_PATH
45078     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
45079     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
45080     # ancient GNU ld didn't support --whole-archive et. al.
45081     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45082         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45083       else
45084         whole_archive_flag_spec_F77=
45085     fi
45086     supports_anon_versioning=no
45087     case `$LD -v 2>/dev/null` in
45088       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45089       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45090       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45091       *\ 2.11.*) ;; # other 2.11 versions
45092       *) supports_anon_versioning=yes ;;
45093     esac
45094
45095     # See if GNU ld supports shared libraries.
45096     case $host_os in
45097     aix3* | aix4* | aix5*)
45098       # On AIX/PPC, the GNU linker is very broken
45099       if test "$host_cpu" != ia64; then
45100         ld_shlibs_F77=no
45101         cat <<EOF 1>&2
45102
45103 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45104 *** to be unable to reliably create shared libraries on AIX.
45105 *** Therefore, libtool is disabling shared libraries support.  If you
45106 *** really care for shared libraries, you may want to modify your PATH
45107 *** so that a non-GNU linker is found, and then restart.
45108
45109 EOF
45110       fi
45111       ;;
45112
45113     amigaos*)
45114       archive_cmds_F77='$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)'
45115       hardcode_libdir_flag_spec_F77='-L$libdir'
45116       hardcode_minus_L_F77=yes
45117
45118       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45119       # that the semantics of dynamic libraries on AmigaOS, at least up
45120       # to version 4, is to share data among multiple programs linked
45121       # with the same dynamic library.  Since this doesn't match the
45122       # behavior of shared libraries on other platforms, we can't use
45123       # them.
45124       ld_shlibs_F77=no
45125       ;;
45126
45127     beos*)
45128       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45129         allow_undefined_flag_F77=unsupported
45130         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45131         # support --undefined.  This deserves some investigation.  FIXME
45132         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45133       else
45134         ld_shlibs_F77=no
45135       fi
45136       ;;
45137
45138     cygwin* | mingw* | pw32*)
45139       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
45140       # as there is no search path for DLLs.
45141       hardcode_libdir_flag_spec_F77='-L$libdir'
45142       allow_undefined_flag_F77=unsupported
45143       always_export_symbols_F77=no
45144       enable_shared_with_static_runtimes_F77=yes
45145       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45146
45147       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45148         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45149         # If the export-symbols file already is a .def file (1st line
45150         # is EXPORTS), use it as is; otherwise, prepend...
45151         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45152           cp $export_symbols $output_objdir/$soname.def;
45153         else
45154           echo EXPORTS > $output_objdir/$soname.def;
45155           cat $export_symbols >> $output_objdir/$soname.def;
45156         fi~
45157         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
45158       else
45159         ld_shlibs_F77=no
45160       fi
45161       ;;
45162
45163     linux*)
45164       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45165         tmp_addflag=
45166         case $cc_basename,$host_cpu in
45167         pgcc*)                          # Portland Group C compiler
45168           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45169           tmp_addflag=' $pic_flag'
45170           ;;
45171         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
45172           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
45173           tmp_addflag=' $pic_flag -Mnomain' ;;
45174         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
45175           tmp_addflag=' -i_dynamic' ;;
45176         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
45177           tmp_addflag=' -i_dynamic -nofor_main' ;;
45178         ifc* | ifort*)                  # Intel Fortran compiler
45179           tmp_addflag=' -nofor_main' ;;
45180         esac
45181         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45182
45183         if test $supports_anon_versioning = yes; then
45184           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
45185   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45186   $echo "local: *; };" >> $output_objdir/$libname.ver~
45187           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45188         fi
45189       else
45190         ld_shlibs_F77=no
45191       fi
45192       ;;
45193
45194     netbsd*)
45195       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45196         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45197         wlarc=
45198       else
45199         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45200         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45201       fi
45202       ;;
45203
45204     solaris* | sysv5*)
45205       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45206         ld_shlibs_F77=no
45207         cat <<EOF 1>&2
45208
45209 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45210 *** create shared libraries on Solaris systems.  Therefore, libtool
45211 *** is disabling shared libraries support.  We urge you to upgrade GNU
45212 *** binutils to release 2.9.1 or newer.  Another option is to modify
45213 *** your PATH or compiler configuration so that the native linker is
45214 *** used, and then restart.
45215
45216 EOF
45217       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45218         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45219         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45220       else
45221         ld_shlibs_F77=no
45222       fi
45223       ;;
45224
45225     sunos4*)
45226       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45227       wlarc=
45228       hardcode_direct_F77=yes
45229       hardcode_shlibpath_var_F77=no
45230       ;;
45231
45232     *)
45233       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45234         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45235         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45236       else
45237         ld_shlibs_F77=no
45238       fi
45239       ;;
45240     esac
45241
45242     if test "$ld_shlibs_F77" = no; then
45243       runpath_var=
45244       hardcode_libdir_flag_spec_F77=
45245       export_dynamic_flag_spec_F77=
45246       whole_archive_flag_spec_F77=
45247     fi
45248   else
45249     # PORTME fill in a description of your system's linker (not GNU ld)
45250     case $host_os in
45251     aix3*)
45252       allow_undefined_flag_F77=unsupported
45253       always_export_symbols_F77=yes
45254       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
45255       # Note: this linker hardcodes the directories in LIBPATH if there
45256       # are no directories specified by -L.
45257       hardcode_minus_L_F77=yes
45258       if test "$GCC" = yes && test -z "$link_static_flag"; then
45259         # Neither direct hardcoding nor static linking is supported with a
45260         # broken collect2.
45261         hardcode_direct_F77=unsupported
45262       fi
45263       ;;
45264
45265     aix4* | aix5*)
45266       if test "$host_cpu" = ia64; then
45267         # On IA64, the linker does run time linking by default, so we don't
45268         # have to do anything special.
45269         aix_use_runtimelinking=no
45270         exp_sym_flag='-Bexport'
45271         no_entry_flag=""
45272       else
45273         # If we're using GNU nm, then we don't want the "-C" option.
45274         # -C means demangle to AIX nm, but means don't demangle with GNU nm
45275         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45276           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45277         else
45278           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
45279         fi
45280         aix_use_runtimelinking=no
45281
45282         # Test if we are trying to use run time linking or normal
45283         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45284         # need to do runtime linking.
45285         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45286           for ld_flag in $LDFLAGS; do
45287           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45288             aix_use_runtimelinking=yes
45289             break
45290           fi
45291           done
45292         esac
45293
45294         exp_sym_flag='-bexport'
45295         no_entry_flag='-bnoentry'
45296       fi
45297
45298       # When large executables or shared objects are built, AIX ld can
45299       # have problems creating the table of contents.  If linking a library
45300       # or program results in "error TOC overflow" add -mminimal-toc to
45301       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
45302       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45303
45304       archive_cmds_F77=''
45305       hardcode_direct_F77=yes
45306       hardcode_libdir_separator_F77=':'
45307       link_all_deplibs_F77=yes
45308
45309       if test "$GCC" = yes; then
45310         case $host_os in aix4.[012]|aix4.[012].*)
45311         # We only want to do this on AIX 4.2 and lower, the check
45312         # below for broken collect2 doesn't work under 4.3+
45313           collect2name=`${CC} -print-prog-name=collect2`
45314           if test -f "$collect2name" && \
45315            strings "$collect2name" | grep resolve_lib_name >/dev/null
45316           then
45317           # We have reworked collect2
45318           hardcode_direct_F77=yes
45319           else
45320           # We have old collect2
45321           hardcode_direct_F77=unsupported
45322           # It fails to find uninstalled libraries when the uninstalled
45323           # path is not listed in the libpath.  Setting hardcode_minus_L
45324           # to unsupported forces relinking
45325           hardcode_minus_L_F77=yes
45326           hardcode_libdir_flag_spec_F77='-L$libdir'
45327           hardcode_libdir_separator_F77=
45328           fi
45329         esac
45330         shared_flag='-shared'
45331         if test "$aix_use_runtimelinking" = yes; then
45332           shared_flag="$shared_flag "'${wl}-G'
45333         fi
45334       else
45335         # not using gcc
45336         if test "$host_cpu" = ia64; then
45337         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45338         # chokes on -Wl,-G. The following line is correct:
45339           shared_flag='-G'
45340         else
45341         if test "$aix_use_runtimelinking" = yes; then
45342             shared_flag='${wl}-G'
45343           else
45344             shared_flag='${wl}-bM:SRE'
45345         fi
45346         fi
45347       fi
45348
45349       # It seems that -bexpall does not export symbols beginning with
45350       # underscore (_), so it is better to generate a list of symbols to export.
45351       always_export_symbols_F77=yes
45352       if test "$aix_use_runtimelinking" = yes; then
45353         # Warning - without using the other runtime loading flags (-brtl),
45354         # -berok will link without error, but may produce a broken library.
45355         allow_undefined_flag_F77='-berok'
45356        # Determine the default libpath from the value encoded in an empty executable.
45357        cat >conftest.$ac_ext <<_ACEOF
45358       program main
45359
45360       end
45361 _ACEOF
45362 rm -f conftest.$ac_objext conftest$ac_exeext
45363 if { (ac_try="$ac_link"
45364 case "(($ac_try" in
45365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45366   *) ac_try_echo=$ac_try;;
45367 esac
45368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45369 $as_echo "$ac_try_echo") >&5
45370   (eval "$ac_link") 2>conftest.er1
45371   ac_status=$?
45372   grep -v '^ *+' conftest.er1 >conftest.err
45373   rm -f conftest.er1
45374   cat conftest.err >&5
45375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45376   (exit $ac_status); } && {
45377          test -z "$ac_f77_werror_flag" ||
45378          test ! -s conftest.err
45379        } && test -s conftest$ac_exeext && {
45380          test "$cross_compiling" = yes ||
45381          $as_test_x conftest$ac_exeext
45382        }; then
45383
45384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45385 }'`
45386 # Check for a 64-bit object if we didn't find anything.
45387 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45388 }'`; fi
45389 else
45390   $as_echo "$as_me: failed program was:" >&5
45391 sed 's/^/| /' conftest.$ac_ext >&5
45392
45393
45394 fi
45395
45396 rm -rf conftest.dSYM
45397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45398       conftest$ac_exeext conftest.$ac_ext
45399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45400
45401        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45402         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
45403        else
45404         if test "$host_cpu" = ia64; then
45405           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
45406           allow_undefined_flag_F77="-z nodefs"
45407           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
45408         else
45409          # Determine the default libpath from the value encoded in an empty executable.
45410          cat >conftest.$ac_ext <<_ACEOF
45411       program main
45412
45413       end
45414 _ACEOF
45415 rm -f conftest.$ac_objext conftest$ac_exeext
45416 if { (ac_try="$ac_link"
45417 case "(($ac_try" in
45418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45419   *) ac_try_echo=$ac_try;;
45420 esac
45421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45422 $as_echo "$ac_try_echo") >&5
45423   (eval "$ac_link") 2>conftest.er1
45424   ac_status=$?
45425   grep -v '^ *+' conftest.er1 >conftest.err
45426   rm -f conftest.er1
45427   cat conftest.err >&5
45428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45429   (exit $ac_status); } && {
45430          test -z "$ac_f77_werror_flag" ||
45431          test ! -s conftest.err
45432        } && test -s conftest$ac_exeext && {
45433          test "$cross_compiling" = yes ||
45434          $as_test_x conftest$ac_exeext
45435        }; then
45436
45437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45438 }'`
45439 # Check for a 64-bit object if we didn't find anything.
45440 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45441 }'`; fi
45442 else
45443   $as_echo "$as_me: failed program was:" >&5
45444 sed 's/^/| /' conftest.$ac_ext >&5
45445
45446
45447 fi
45448
45449 rm -rf conftest.dSYM
45450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45451       conftest$ac_exeext conftest.$ac_ext
45452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45453
45454          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45455           # Warning - without using the other run time loading flags,
45456           # -berok will link without error, but may produce a broken library.
45457           no_undefined_flag_F77=' ${wl}-bernotok'
45458           allow_undefined_flag_F77=' ${wl}-berok'
45459           # -bexpall does not export symbols beginning with underscore (_)
45460           always_export_symbols_F77=yes
45461           # Exported symbols can be pulled into shared objects from archives
45462           whole_archive_flag_spec_F77=' '
45463           archive_cmds_need_lc_F77=yes
45464           # This is similar to how AIX traditionally builds its shared libraries.
45465           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
45466         fi
45467       fi
45468       ;;
45469
45470     amigaos*)
45471       archive_cmds_F77='$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)'
45472       hardcode_libdir_flag_spec_F77='-L$libdir'
45473       hardcode_minus_L_F77=yes
45474       # see comment about different semantics on the GNU ld section
45475       ld_shlibs_F77=no
45476       ;;
45477
45478     bsdi[45]*)
45479       export_dynamic_flag_spec_F77=-rdynamic
45480       ;;
45481
45482     cygwin* | mingw* | pw32*)
45483       # When not using gcc, we currently assume that we are using
45484       # Microsoft Visual C++.
45485       # hardcode_libdir_flag_spec is actually meaningless, as there is
45486       # no search path for DLLs.
45487       hardcode_libdir_flag_spec_F77=' '
45488       allow_undefined_flag_F77=unsupported
45489       # Tell ltmain to make .lib files, not .a files.
45490       libext=lib
45491       # Tell ltmain to make .dll files, not .so files.
45492       shrext_cmds=".dll"
45493       # FIXME: Setting linknames here is a bad hack.
45494       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45495       # The linker will automatically build a .lib file if we build a DLL.
45496       old_archive_From_new_cmds_F77='true'
45497       # FIXME: Should let the user specify the lib program.
45498       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
45499       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
45500       enable_shared_with_static_runtimes_F77=yes
45501       ;;
45502
45503     darwin* | rhapsody*)
45504       case $host_os in
45505         rhapsody* | darwin1.[012])
45506          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
45507          ;;
45508        *) # Darwin 1.3 on
45509          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45510            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45511          else
45512            case ${MACOSX_DEPLOYMENT_TARGET} in
45513              10.[012])
45514                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45515                ;;
45516              10.*)
45517                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
45518                ;;
45519            esac
45520          fi
45521          ;;
45522       esac
45523       archive_cmds_need_lc_F77=no
45524       hardcode_direct_F77=no
45525       hardcode_automatic_F77=yes
45526       hardcode_shlibpath_var_F77=unsupported
45527       whole_archive_flag_spec_F77=''
45528       link_all_deplibs_F77=yes
45529     if test "$GCC" = yes ; then
45530         output_verbose_link_cmd='echo'
45531         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45532       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45533       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45534       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45535       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45536     else
45537       case $cc_basename in
45538         xlc*)
45539          output_verbose_link_cmd='echo'
45540          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45541          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45542           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45543          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45544           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
45545           ;;
45546        *)
45547          ld_shlibs_F77=no
45548           ;;
45549       esac
45550     fi
45551       ;;
45552
45553     dgux*)
45554       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45555       hardcode_libdir_flag_spec_F77='-L$libdir'
45556       hardcode_shlibpath_var_F77=no
45557       ;;
45558
45559     freebsd1*)
45560       ld_shlibs_F77=no
45561       ;;
45562
45563     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45564     # support.  Future versions do this automatically, but an explicit c++rt0.o
45565     # does not break anything, and helps significantly (at the cost of a little
45566     # extra space).
45567     freebsd2.2*)
45568       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45569       hardcode_libdir_flag_spec_F77='-R$libdir'
45570       hardcode_direct_F77=yes
45571       hardcode_shlibpath_var_F77=no
45572       ;;
45573
45574     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45575     freebsd2*)
45576       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45577       hardcode_direct_F77=yes
45578       hardcode_minus_L_F77=yes
45579       hardcode_shlibpath_var_F77=no
45580       ;;
45581
45582     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45583     freebsd* | kfreebsd*-gnu | dragonfly*)
45584       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45585       hardcode_libdir_flag_spec_F77='-R$libdir'
45586       hardcode_direct_F77=yes
45587       hardcode_shlibpath_var_F77=no
45588       ;;
45589
45590     hpux9*)
45591       if test "$GCC" = yes; then
45592         archive_cmds_F77='$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'
45593       else
45594         archive_cmds_F77='$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'
45595       fi
45596       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45597       hardcode_libdir_separator_F77=:
45598       hardcode_direct_F77=yes
45599
45600       # hardcode_minus_L: Not really in the search PATH,
45601       # but as the default location of the library.
45602       hardcode_minus_L_F77=yes
45603       export_dynamic_flag_spec_F77='${wl}-E'
45604       ;;
45605
45606     hpux10* | hpux11*)
45607       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45608         case $host_cpu in
45609         hppa*64*|ia64*)
45610           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45611           ;;
45612         *)
45613           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45614           ;;
45615         esac
45616       else
45617         case $host_cpu in
45618         hppa*64*|ia64*)
45619           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45620           ;;
45621         *)
45622           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45623           ;;
45624         esac
45625       fi
45626       if test "$with_gnu_ld" = no; then
45627         case $host_cpu in
45628         hppa*64*)
45629           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45630           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
45631           hardcode_libdir_separator_F77=:
45632           hardcode_direct_F77=no
45633           hardcode_shlibpath_var_F77=no
45634           ;;
45635         ia64*)
45636           hardcode_libdir_flag_spec_F77='-L$libdir'
45637           hardcode_direct_F77=no
45638           hardcode_shlibpath_var_F77=no
45639
45640           # hardcode_minus_L: Not really in the search PATH,
45641           # but as the default location of the library.
45642           hardcode_minus_L_F77=yes
45643           ;;
45644         *)
45645           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45646           hardcode_libdir_separator_F77=:
45647           hardcode_direct_F77=yes
45648           export_dynamic_flag_spec_F77='${wl}-E'
45649
45650           # hardcode_minus_L: Not really in the search PATH,
45651           # but as the default location of the library.
45652           hardcode_minus_L_F77=yes
45653           ;;
45654         esac
45655       fi
45656       ;;
45657
45658     irix5* | irix6* | nonstopux*)
45659       if test "$GCC" = yes; then
45660         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45661       else
45662         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45663         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
45664       fi
45665       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45666       hardcode_libdir_separator_F77=:
45667       link_all_deplibs_F77=yes
45668       ;;
45669
45670     netbsd*)
45671       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45672         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
45673       else
45674         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
45675       fi
45676       hardcode_libdir_flag_spec_F77='-R$libdir'
45677       hardcode_direct_F77=yes
45678       hardcode_shlibpath_var_F77=no
45679       ;;
45680
45681     newsos6)
45682       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45683       hardcode_direct_F77=yes
45684       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45685       hardcode_libdir_separator_F77=:
45686       hardcode_shlibpath_var_F77=no
45687       ;;
45688
45689     openbsd*)
45690       hardcode_direct_F77=yes
45691       hardcode_shlibpath_var_F77=no
45692       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45693         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45694         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45695         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45696         export_dynamic_flag_spec_F77='${wl}-E'
45697       else
45698        case $host_os in
45699          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45700            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45701            hardcode_libdir_flag_spec_F77='-R$libdir'
45702            ;;
45703          *)
45704            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45705            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45706            ;;
45707        esac
45708       fi
45709       ;;
45710
45711     os2*)
45712       hardcode_libdir_flag_spec_F77='-L$libdir'
45713       hardcode_minus_L_F77=yes
45714       allow_undefined_flag_F77=unsupported
45715       archive_cmds_F77='$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'
45716       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45717       ;;
45718
45719     osf3*)
45720       if test "$GCC" = yes; then
45721         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45722         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45723       else
45724         allow_undefined_flag_F77=' -expect_unresolved \*'
45725         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45726       fi
45727       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45728       hardcode_libdir_separator_F77=:
45729       ;;
45730
45731     osf4* | osf5*)      # as osf3* with the addition of -msym flag
45732       if test "$GCC" = yes; then
45733         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45734         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
45735         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45736       else
45737         allow_undefined_flag_F77=' -expect_unresolved \*'
45738         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
45739         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
45740         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
45741
45742         # Both c and cxx compiler support -rpath directly
45743         hardcode_libdir_flag_spec_F77='-rpath $libdir'
45744       fi
45745       hardcode_libdir_separator_F77=:
45746       ;;
45747
45748     sco3.2v5*)
45749       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45750       hardcode_shlibpath_var_F77=no
45751       export_dynamic_flag_spec_F77='${wl}-Bexport'
45752       runpath_var=LD_RUN_PATH
45753       hardcode_runpath_var=yes
45754       ;;
45755
45756     solaris*)
45757       no_undefined_flag_F77=' -z text'
45758       if test "x$archive_cmds" = "x"; then
45759         if test "$GCC" = yes; then
45760           wlarc='${wl}'
45761           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
45762             archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45763             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45764             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45765           else
45766             archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45767             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45768             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45769           fi
45770         else
45771           wlarc=''
45772           lt_prog_compiler_static_F77='-static'
45773           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45774           archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45775           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45776           lt_prog_compiler_static_F77='-static'
45777         fi
45778       fi
45779       hardcode_libdir_flag_spec_F77='-R$libdir'
45780       hardcode_shlibpath_var_F77=no
45781       case $host_os in
45782       solaris2.[0-5] | solaris2.[0-5].*) ;;
45783       *)
45784         # The compiler driver will combine linker options so we
45785         # cannot just pass the convience library names through
45786         # without $wl, iff we do not link with $LD.
45787         # Luckily, gcc supports the same syntax we need for Sun Studio.
45788         # Supported since Solaris 2.6 (maybe 2.5.1?)
45789         case $wlarc in
45790         '')
45791           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
45792         *)
45793           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
45794         esac ;;
45795       esac
45796       link_all_deplibs_F77=yes
45797       ;;
45798
45799     sunos4*)
45800       if test "x$host_vendor" = xsequent; then
45801         # Use $CC to link under sequent, because it throws in some extra .o
45802         # files that make .init and .fini sections work.
45803         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45804       else
45805         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45806       fi
45807       hardcode_libdir_flag_spec_F77='-L$libdir'
45808       hardcode_direct_F77=yes
45809       hardcode_minus_L_F77=yes
45810       hardcode_shlibpath_var_F77=no
45811       ;;
45812
45813     sysv4)
45814       case $host_vendor in
45815         sni)
45816           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45817           hardcode_direct_F77=yes # is this really true???
45818         ;;
45819         siemens)
45820           ## LD is ld it makes a PLAMLIB
45821           ## CC just makes a GrossModule.
45822           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45823           reload_cmds_F77='$CC -r -o $output$reload_objs'
45824           hardcode_direct_F77=no
45825         ;;
45826         motorola)
45827           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45828           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
45829         ;;
45830       esac
45831       runpath_var='LD_RUN_PATH'
45832       hardcode_shlibpath_var_F77=no
45833       ;;
45834
45835     sysv4.3*)
45836       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45837       hardcode_shlibpath_var_F77=no
45838       export_dynamic_flag_spec_F77='-Bexport'
45839       ;;
45840
45841     sysv4*MP*)
45842       if test -d /usr/nec; then
45843         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45844         hardcode_shlibpath_var_F77=no
45845         runpath_var=LD_RUN_PATH
45846         hardcode_runpath_var=yes
45847         ld_shlibs_F77=yes
45848       fi
45849       ;;
45850
45851     sysv4.2uw2*)
45852       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45853       hardcode_direct_F77=yes
45854       hardcode_minus_L_F77=no
45855       hardcode_shlibpath_var_F77=no
45856       hardcode_runpath_var=yes
45857       runpath_var=LD_RUN_PATH
45858       ;;
45859
45860    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
45861       no_undefined_flag_F77='${wl}-z ${wl}text'
45862       if test "$GCC" = yes; then
45863         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45864       else
45865         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45866       fi
45867       runpath_var='LD_RUN_PATH'
45868       hardcode_shlibpath_var_F77=no
45869       ;;
45870
45871     sysv5*)
45872       no_undefined_flag_F77=' -z text'
45873       # $CC -shared without GNU ld will not create a library from C++
45874       # object files and a static libstdc++, better avoid it by now
45875       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45876       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45877                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45878       hardcode_libdir_flag_spec_F77=
45879       hardcode_shlibpath_var_F77=no
45880       runpath_var='LD_RUN_PATH'
45881       ;;
45882
45883     uts4*)
45884       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45885       hardcode_libdir_flag_spec_F77='-L$libdir'
45886       hardcode_shlibpath_var_F77=no
45887       ;;
45888
45889     *)
45890       ld_shlibs_F77=no
45891       ;;
45892     esac
45893   fi
45894
45895 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
45896 $as_echo "$ld_shlibs_F77" >&6; }
45897 test "$ld_shlibs_F77" = no && can_build_shared=no
45898
45899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45900 if test "$GCC" = yes; then
45901   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45902 fi
45903
45904 #
45905 # Do we need to explicitly link libc?
45906 #
45907 case "x$archive_cmds_need_lc_F77" in
45908 x|xyes)
45909   # Assume -lc should be added
45910   archive_cmds_need_lc_F77=yes
45911
45912   if test "$enable_shared" = yes && test "$GCC" = yes; then
45913     case $archive_cmds_F77 in
45914     *'~'*)
45915       # FIXME: we may have to deal with multi-command sequences.
45916       ;;
45917     '$CC '*)
45918       # Test whether the compiler implicitly links with -lc since on some
45919       # systems, -lgcc has to come before -lc. If gcc already passes -lc
45920       # to ld, don't add -lc before -lgcc.
45921       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
45922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
45923       $rm conftest*
45924       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45925
45926       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45927   (eval $ac_compile) 2>&5
45928   ac_status=$?
45929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930   (exit $ac_status); } 2>conftest.err; then
45931         soname=conftest
45932         lib=conftest
45933         libobjs=conftest.$ac_objext
45934         deplibs=
45935         wl=$lt_prog_compiler_wl_F77
45936         compiler_flags=-v
45937         linker_flags=-v
45938         verstring=
45939         output_objdir=.
45940         libname=conftest
45941         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
45942         allow_undefined_flag_F77=
45943         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
45944   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
45945   ac_status=$?
45946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45947   (exit $ac_status); }
45948         then
45949           archive_cmds_need_lc_F77=no
45950         else
45951           archive_cmds_need_lc_F77=yes
45952         fi
45953         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
45954       else
45955         cat conftest.err 1>&5
45956       fi
45957       $rm conftest*
45958       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
45959 $as_echo "$archive_cmds_need_lc_F77" >&6; }
45960       ;;
45961     esac
45962   fi
45963   ;;
45964 esac
45965
45966 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
45967 $as_echo_n "checking dynamic linker characteristics... " >&6; }
45968 library_names_spec=
45969 libname_spec='lib$name'
45970 soname_spec=
45971 shrext_cmds=".so"
45972 postinstall_cmds=
45973 postuninstall_cmds=
45974 finish_cmds=
45975 finish_eval=
45976 shlibpath_var=
45977 shlibpath_overrides_runpath=unknown
45978 version_type=none
45979 dynamic_linker="$host_os ld.so"
45980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
45981 if test "$GCC" = yes; then
45982   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
45983   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
45984     # if the path contains ";" then we assume it to be the separator
45985     # otherwise default to the standard path separator (i.e. ":") - it is
45986     # assumed that no part of a normal pathname contains ";" but that should
45987     # okay in the real world where ";" in dirpaths is itself problematic.
45988     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45989   else
45990     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
45991   fi
45992 else
45993   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
45994 fi
45995 need_lib_prefix=unknown
45996 hardcode_into_libs=no
45997
45998 # when you set need_version to no, make sure it does not cause -set_version
45999 # flags to be left without arguments
46000 need_version=unknown
46001
46002 case $host_os in
46003 aix3*)
46004   version_type=linux
46005   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46006   shlibpath_var=LIBPATH
46007
46008   # AIX 3 has no versioning support, so we append a major version to the name.
46009   soname_spec='${libname}${release}${shared_ext}$major'
46010   ;;
46011
46012 aix4* | aix5*)
46013   version_type=linux
46014   need_lib_prefix=no
46015   need_version=no
46016   hardcode_into_libs=yes
46017   if test "$host_cpu" = ia64; then
46018     # AIX 5 supports IA64
46019     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46020     shlibpath_var=LD_LIBRARY_PATH
46021   else
46022     # With GCC up to 2.95.x, collect2 would create an import file
46023     # for dependence libraries.  The import file would start with
46024     # the line `#! .'.  This would cause the generated library to
46025     # depend on `.', always an invalid library.  This was fixed in
46026     # development snapshots of GCC prior to 3.0.
46027     case $host_os in
46028       aix4 | aix4.[01] | aix4.[01].*)
46029       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46030            echo ' yes '
46031            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46032         :
46033       else
46034         can_build_shared=no
46035       fi
46036       ;;
46037     esac
46038     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46039     # soname into executable. Probably we can add versioning support to
46040     # collect2, so additional links can be useful in future.
46041     if test "$aix_use_runtimelinking" = yes; then
46042       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46043       # instead of lib<name>.a to let people know that these are not
46044       # typical AIX shared libraries.
46045       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46046     else
46047       # We preserve .a as extension for shared libraries through AIX4.2
46048       # and later when we are not doing run time linking.
46049       library_names_spec='${libname}${release}.a $libname.a'
46050       soname_spec='${libname}${release}${shared_ext}$major'
46051     fi
46052     shlibpath_var=LIBPATH
46053   fi
46054   ;;
46055
46056 amigaos*)
46057   library_names_spec='$libname.ixlibrary $libname.a'
46058   # Create ${libname}_ixlibrary.a entries in /sys/libs.
46059   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'
46060   ;;
46061
46062 beos*)
46063   library_names_spec='${libname}${shared_ext}'
46064   dynamic_linker="$host_os ld.so"
46065   shlibpath_var=LIBRARY_PATH
46066   ;;
46067
46068 bsdi[45]*)
46069   version_type=linux
46070   need_version=no
46071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46072   soname_spec='${libname}${release}${shared_ext}$major'
46073   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46074   shlibpath_var=LD_LIBRARY_PATH
46075   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46076   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46077   # the default ld.so.conf also contains /usr/contrib/lib and
46078   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46079   # libtool to hard-code these into programs
46080   ;;
46081
46082 cygwin* | mingw* | pw32*)
46083   version_type=windows
46084   shrext_cmds=".dll"
46085   need_version=no
46086   need_lib_prefix=no
46087
46088   case $GCC,$host_os in
46089   yes,cygwin* | yes,mingw* | yes,pw32*)
46090     library_names_spec='$libname.dll.a'
46091     # DLL is installed to $(libdir)/../bin by postinstall_cmds
46092     postinstall_cmds='base_file=`basename \${file}`~
46093       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46094       dldir=$destdir/`dirname \$dlpath`~
46095       test -d \$dldir || mkdir -p \$dldir~
46096       $install_prog $dir/$dlname \$dldir/$dlname~
46097       chmod a+x \$dldir/$dlname'
46098     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46099       dlpath=$dir/\$dldll~
46100        $rm \$dlpath'
46101     shlibpath_overrides_runpath=yes
46102
46103     case $host_os in
46104     cygwin*)
46105       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46106       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46107       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46108       ;;
46109     mingw*)
46110       # MinGW DLLs use traditional 'lib' prefix
46111       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46112       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46113       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46114         # It is most probably a Windows format PATH printed by
46115         # mingw gcc, but we are running on Cygwin. Gcc prints its search
46116         # path with ; separators, and with drive letters. We can handle the
46117         # drive letters (cygwin fileutils understands them), so leave them,
46118         # especially as we might pass files found there to a mingw objdump,
46119         # which wouldn't understand a cygwinified path. Ahh.
46120         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46121       else
46122         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46123       fi
46124       ;;
46125     pw32*)
46126       # pw32 DLLs use 'pw' prefix rather than 'lib'
46127       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46128       ;;
46129     esac
46130     ;;
46131
46132   *)
46133     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46134     ;;
46135   esac
46136   dynamic_linker='Win32 ld.exe'
46137   # FIXME: first we should search . and the directory the executable is in
46138   shlibpath_var=PATH
46139   ;;
46140
46141 darwin* | rhapsody*)
46142   dynamic_linker="$host_os dyld"
46143   version_type=darwin
46144   need_lib_prefix=no
46145   need_version=no
46146   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46147   soname_spec='${libname}${release}${major}$shared_ext'
46148   shlibpath_overrides_runpath=yes
46149   shlibpath_var=DYLD_LIBRARY_PATH
46150   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46151   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46152   if test "$GCC" = yes; then
46153     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
46154   else
46155     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46156   fi
46157   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46158   ;;
46159
46160 dgux*)
46161   version_type=linux
46162   need_lib_prefix=no
46163   need_version=no
46164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46165   soname_spec='${libname}${release}${shared_ext}$major'
46166   shlibpath_var=LD_LIBRARY_PATH
46167   ;;
46168
46169 freebsd1*)
46170   dynamic_linker=no
46171   ;;
46172
46173 kfreebsd*-gnu)
46174   version_type=linux
46175   need_lib_prefix=no
46176   need_version=no
46177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46178   soname_spec='${libname}${release}${shared_ext}$major'
46179   shlibpath_var=LD_LIBRARY_PATH
46180   shlibpath_overrides_runpath=no
46181   hardcode_into_libs=yes
46182   dynamic_linker='GNU ld.so'
46183   ;;
46184
46185 freebsd* | dragonfly*)
46186   # DragonFly does not have aout.  When/if they implement a new
46187   # versioning mechanism, adjust this.
46188   if test -x /usr/bin/objformat; then
46189     objformat=`/usr/bin/objformat`
46190   else
46191     case $host_os in
46192     freebsd[123]*) objformat=aout ;;
46193     *) objformat=elf ;;
46194     esac
46195   fi
46196   version_type=freebsd-$objformat
46197   case $version_type in
46198     freebsd-elf*)
46199       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46200       need_version=no
46201       need_lib_prefix=no
46202       ;;
46203     freebsd-*)
46204       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46205       need_version=yes
46206       ;;
46207   esac
46208   shlibpath_var=LD_LIBRARY_PATH
46209   case $host_os in
46210   freebsd2*)
46211     shlibpath_overrides_runpath=yes
46212     ;;
46213   freebsd3.[01]* | freebsdelf3.[01]*)
46214     shlibpath_overrides_runpath=yes
46215     hardcode_into_libs=yes
46216     ;;
46217   *) # from 3.2 on
46218     shlibpath_overrides_runpath=no
46219     hardcode_into_libs=yes
46220     ;;
46221   esac
46222   ;;
46223
46224 gnu*)
46225   version_type=linux
46226   need_lib_prefix=no
46227   need_version=no
46228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46229   soname_spec='${libname}${release}${shared_ext}$major'
46230   shlibpath_var=LD_LIBRARY_PATH
46231   hardcode_into_libs=yes
46232   ;;
46233
46234 hpux9* | hpux10* | hpux11*)
46235   # Give a soname corresponding to the major version so that dld.sl refuses to
46236   # link against other versions.
46237   version_type=sunos
46238   need_lib_prefix=no
46239   need_version=no
46240   case $host_cpu in
46241   ia64*)
46242     shrext_cmds='.so'
46243     hardcode_into_libs=yes
46244     dynamic_linker="$host_os dld.so"
46245     shlibpath_var=LD_LIBRARY_PATH
46246     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46248     soname_spec='${libname}${release}${shared_ext}$major'
46249     if test "X$HPUX_IA64_MODE" = X32; then
46250       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46251     else
46252       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46253     fi
46254     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46255     ;;
46256    hppa*64*)
46257      shrext_cmds='.sl'
46258      hardcode_into_libs=yes
46259      dynamic_linker="$host_os dld.sl"
46260      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46261      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46262      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46263      soname_spec='${libname}${release}${shared_ext}$major'
46264      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46265      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46266      ;;
46267    *)
46268     shrext_cmds='.sl'
46269     dynamic_linker="$host_os dld.sl"
46270     shlibpath_var=SHLIB_PATH
46271     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46273     soname_spec='${libname}${release}${shared_ext}$major'
46274     ;;
46275   esac
46276   # HP-UX runs *really* slowly unless shared libraries are mode 555.
46277   postinstall_cmds='chmod 555 $lib'
46278   ;;
46279
46280 irix5* | irix6* | nonstopux*)
46281   case $host_os in
46282     nonstopux*) version_type=nonstopux ;;
46283     *)
46284         if test "$lt_cv_prog_gnu_ld" = yes; then
46285                 version_type=linux
46286         else
46287                 version_type=irix
46288         fi ;;
46289   esac
46290   need_lib_prefix=no
46291   need_version=no
46292   soname_spec='${libname}${release}${shared_ext}$major'
46293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46294   case $host_os in
46295   irix5* | nonstopux*)
46296     libsuff= shlibsuff=
46297     ;;
46298   *)
46299     case $LD in # libtool.m4 will add one of these switches to LD
46300     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46301       libsuff= shlibsuff= libmagic=32-bit;;
46302     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46303       libsuff=32 shlibsuff=N32 libmagic=N32;;
46304     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46305       libsuff=64 shlibsuff=64 libmagic=64-bit;;
46306     *) libsuff= shlibsuff= libmagic=never-match;;
46307     esac
46308     ;;
46309   esac
46310   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46311   shlibpath_overrides_runpath=no
46312   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46313   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46314   hardcode_into_libs=yes
46315   ;;
46316
46317 # No shared lib support for Linux oldld, aout, or coff.
46318 linux*oldld* | linux*aout* | linux*coff*)
46319   dynamic_linker=no
46320   ;;
46321
46322 # This must be Linux ELF.
46323 linux*)
46324   version_type=linux
46325   need_lib_prefix=no
46326   need_version=no
46327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46328   soname_spec='${libname}${release}${shared_ext}$major'
46329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46330   shlibpath_var=LD_LIBRARY_PATH
46331   shlibpath_overrides_runpath=no
46332   # This implies no fast_install, which is unacceptable.
46333   # Some rework will be needed to allow for fast_install
46334   # before this can be enabled.
46335   hardcode_into_libs=yes
46336
46337   # Append ld.so.conf contents to the search path
46338   if test -f /etc/ld.so.conf; then
46339     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
46340     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46341   fi
46342
46343   # We used to test for /lib/ld.so.1 and disable shared libraries on
46344   # powerpc, because MkLinux only supported shared libraries with the
46345   # GNU dynamic linker.  Since this was broken with cross compilers,
46346   # most powerpc-linux boxes support dynamic linking these days and
46347   # people can always --disable-shared, the test was removed, and we
46348   # assume the GNU/Linux dynamic linker is in use.
46349   dynamic_linker='GNU/Linux ld.so'
46350   ;;
46351
46352 knetbsd*-gnu)
46353   version_type=linux
46354   need_lib_prefix=no
46355   need_version=no
46356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46357   soname_spec='${libname}${release}${shared_ext}$major'
46358   shlibpath_var=LD_LIBRARY_PATH
46359   shlibpath_overrides_runpath=no
46360   hardcode_into_libs=yes
46361   dynamic_linker='GNU ld.so'
46362   ;;
46363
46364 netbsd*)
46365   version_type=sunos
46366   need_lib_prefix=no
46367   need_version=no
46368   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46370     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46371     dynamic_linker='NetBSD (a.out) ld.so'
46372   else
46373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46374     soname_spec='${libname}${release}${shared_ext}$major'
46375     dynamic_linker='NetBSD ld.elf_so'
46376   fi
46377   shlibpath_var=LD_LIBRARY_PATH
46378   shlibpath_overrides_runpath=yes
46379   hardcode_into_libs=yes
46380   ;;
46381
46382 newsos6)
46383   version_type=linux
46384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46385   shlibpath_var=LD_LIBRARY_PATH
46386   shlibpath_overrides_runpath=yes
46387   ;;
46388
46389 nto-qnx*)
46390   version_type=linux
46391   need_lib_prefix=no
46392   need_version=no
46393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46394   soname_spec='${libname}${release}${shared_ext}$major'
46395   shlibpath_var=LD_LIBRARY_PATH
46396   shlibpath_overrides_runpath=yes
46397   ;;
46398
46399 openbsd*)
46400   version_type=sunos
46401   need_lib_prefix=no
46402   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46403   case $host_os in
46404     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46405     *)                         need_version=no  ;;
46406   esac
46407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46409   shlibpath_var=LD_LIBRARY_PATH
46410   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46411     case $host_os in
46412       openbsd2.[89] | openbsd2.[89].*)
46413         shlibpath_overrides_runpath=no
46414         ;;
46415       *)
46416         shlibpath_overrides_runpath=yes
46417         ;;
46418       esac
46419   else
46420     shlibpath_overrides_runpath=yes
46421   fi
46422   ;;
46423
46424 os2*)
46425   libname_spec='$name'
46426   shrext_cmds=".dll"
46427   need_lib_prefix=no
46428   library_names_spec='$libname${shared_ext} $libname.a'
46429   dynamic_linker='OS/2 ld.exe'
46430   shlibpath_var=LIBPATH
46431   ;;
46432
46433 osf3* | osf4* | osf5*)
46434   version_type=osf
46435   need_lib_prefix=no
46436   need_version=no
46437   soname_spec='${libname}${release}${shared_ext}$major'
46438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46439   shlibpath_var=LD_LIBRARY_PATH
46440   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46441   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46442   ;;
46443
46444 sco3.2v5*)
46445   version_type=osf
46446   soname_spec='${libname}${release}${shared_ext}$major'
46447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46448   shlibpath_var=LD_LIBRARY_PATH
46449   ;;
46450
46451 solaris*)
46452   version_type=linux
46453   need_lib_prefix=no
46454   need_version=no
46455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46456   soname_spec='${libname}${release}${shared_ext}$major'
46457   shlibpath_var=LD_LIBRARY_PATH
46458   shlibpath_overrides_runpath=yes
46459   hardcode_into_libs=yes
46460   # ldd complains unless libraries are executable
46461   postinstall_cmds='chmod +x $lib'
46462   ;;
46463
46464 sunos4*)
46465   version_type=sunos
46466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46467   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46468   shlibpath_var=LD_LIBRARY_PATH
46469   shlibpath_overrides_runpath=yes
46470   if test "$with_gnu_ld" = yes; then
46471     need_lib_prefix=no
46472   fi
46473   need_version=yes
46474   ;;
46475
46476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46477   version_type=linux
46478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46479   soname_spec='${libname}${release}${shared_ext}$major'
46480   shlibpath_var=LD_LIBRARY_PATH
46481   case $host_vendor in
46482     sni)
46483       shlibpath_overrides_runpath=no
46484       need_lib_prefix=no
46485       export_dynamic_flag_spec='${wl}-Blargedynsym'
46486       runpath_var=LD_RUN_PATH
46487       ;;
46488     siemens)
46489       need_lib_prefix=no
46490       ;;
46491     motorola)
46492       need_lib_prefix=no
46493       need_version=no
46494       shlibpath_overrides_runpath=no
46495       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46496       ;;
46497   esac
46498   ;;
46499
46500 sysv4*MP*)
46501   if test -d /usr/nec ;then
46502     version_type=linux
46503     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46504     soname_spec='$libname${shared_ext}.$major'
46505     shlibpath_var=LD_LIBRARY_PATH
46506   fi
46507   ;;
46508
46509 uts4*)
46510   version_type=linux
46511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46512   soname_spec='${libname}${release}${shared_ext}$major'
46513   shlibpath_var=LD_LIBRARY_PATH
46514   ;;
46515
46516 *)
46517   dynamic_linker=no
46518   ;;
46519 esac
46520 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46521 $as_echo "$dynamic_linker" >&6; }
46522 test "$dynamic_linker" = no && can_build_shared=no
46523
46524 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46525 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
46526 hardcode_action_F77=
46527 if test -n "$hardcode_libdir_flag_spec_F77" || \
46528    test -n "$runpath_var_F77" || \
46529    test "X$hardcode_automatic_F77" = "Xyes" ; then
46530
46531   # We can hardcode non-existant directories.
46532   if test "$hardcode_direct_F77" != no &&
46533      # If the only mechanism to avoid hardcoding is shlibpath_var, we
46534      # have to relink, otherwise we might link with an installed library
46535      # when we should be linking with a yet-to-be-installed one
46536      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
46537      test "$hardcode_minus_L_F77" != no; then
46538     # Linking always hardcodes the temporary library directory.
46539     hardcode_action_F77=relink
46540   else
46541     # We can link without hardcoding, and we can hardcode nonexisting dirs.
46542     hardcode_action_F77=immediate
46543   fi
46544 else
46545   # We cannot hardcode anything, or else we can only hardcode existing
46546   # directories.
46547   hardcode_action_F77=unsupported
46548 fi
46549 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
46550 $as_echo "$hardcode_action_F77" >&6; }
46551
46552 if test "$hardcode_action_F77" = relink; then
46553   # Fast installation is not supported
46554   enable_fast_install=no
46555 elif test "$shlibpath_overrides_runpath" = yes ||
46556      test "$enable_shared" = no; then
46557   # Fast installation is not necessary
46558   enable_fast_install=needless
46559 fi
46560
46561 striplib=
46562 old_striplib=
46563 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46564 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
46565 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46566   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46567   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46568   { $as_echo "$as_me:$LINENO: result: yes" >&5
46569 $as_echo "yes" >&6; }
46570 else
46571 # FIXME - insert some real tests, host_os isn't really good enough
46572   case $host_os in
46573    darwin*)
46574        if test -n "$STRIP" ; then
46575          striplib="$STRIP -x"
46576          { $as_echo "$as_me:$LINENO: result: yes" >&5
46577 $as_echo "yes" >&6; }
46578        else
46579   { $as_echo "$as_me:$LINENO: result: no" >&5
46580 $as_echo "no" >&6; }
46581 fi
46582        ;;
46583    *)
46584   { $as_echo "$as_me:$LINENO: result: no" >&5
46585 $as_echo "no" >&6; }
46586     ;;
46587   esac
46588 fi
46589
46590
46591
46592 # The else clause should only fire when bootstrapping the
46593 # libtool distribution, otherwise you forgot to ship ltmain.sh
46594 # with your package, and you will get complaints that there are
46595 # no rules to generate ltmain.sh.
46596 if test -f "$ltmain"; then
46597   # See if we are running on zsh, and set the options which allow our commands through
46598   # without removal of \ escapes.
46599   if test -n "${ZSH_VERSION+set}" ; then
46600     setopt NO_GLOB_SUBST
46601   fi
46602   # Now quote all the things that may contain metacharacters while being
46603   # careful not to overquote the AC_SUBSTed values.  We take copies of the
46604   # variables and quote the copies for generation of the libtool script.
46605   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
46606     SED SHELL STRIP \
46607     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
46608     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
46609     deplibs_check_method reload_flag reload_cmds need_locks \
46610     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
46611     lt_cv_sys_global_symbol_to_c_name_address \
46612     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
46613     old_postinstall_cmds old_postuninstall_cmds \
46614     compiler_F77 \
46615     CC_F77 \
46616     LD_F77 \
46617     lt_prog_compiler_wl_F77 \
46618     lt_prog_compiler_pic_F77 \
46619     lt_prog_compiler_static_F77 \
46620     lt_prog_compiler_no_builtin_flag_F77 \
46621     export_dynamic_flag_spec_F77 \
46622     thread_safe_flag_spec_F77 \
46623     whole_archive_flag_spec_F77 \
46624     enable_shared_with_static_runtimes_F77 \
46625     old_archive_cmds_F77 \
46626     old_archive_from_new_cmds_F77 \
46627     predep_objects_F77 \
46628     postdep_objects_F77 \
46629     predeps_F77 \
46630     postdeps_F77 \
46631     compiler_lib_search_path_F77 \
46632     archive_cmds_F77 \
46633     archive_expsym_cmds_F77 \
46634     postinstall_cmds_F77 \
46635     postuninstall_cmds_F77 \
46636     old_archive_from_expsyms_cmds_F77 \
46637     allow_undefined_flag_F77 \
46638     no_undefined_flag_F77 \
46639     export_symbols_cmds_F77 \
46640     hardcode_libdir_flag_spec_F77 \
46641     hardcode_libdir_flag_spec_ld_F77 \
46642     hardcode_libdir_separator_F77 \
46643     hardcode_automatic_F77 \
46644     module_cmds_F77 \
46645     module_expsym_cmds_F77 \
46646     lt_cv_prog_compiler_c_o_F77 \
46647     exclude_expsyms_F77 \
46648     include_expsyms_F77; do
46649
46650     case $var in
46651     old_archive_cmds_F77 | \
46652     old_archive_from_new_cmds_F77 | \
46653     archive_cmds_F77 | \
46654     archive_expsym_cmds_F77 | \
46655     module_cmds_F77 | \
46656     module_expsym_cmds_F77 | \
46657     old_archive_from_expsyms_cmds_F77 | \
46658     export_symbols_cmds_F77 | \
46659     extract_expsyms_cmds | reload_cmds | finish_cmds | \
46660     postinstall_cmds | postuninstall_cmds | \
46661     old_postinstall_cmds | old_postuninstall_cmds | \
46662     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
46663       # Double-quote double-evaled strings.
46664       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
46665       ;;
46666     *)
46667       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
46668       ;;
46669     esac
46670   done
46671
46672   case $lt_echo in
46673   *'\$0 --fallback-echo"')
46674     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
46675     ;;
46676   esac
46677
46678 cfgfile="$ofile"
46679
46680   cat <<__EOF__ >> "$cfgfile"
46681 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
46682
46683 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46684
46685 # Shell to use when invoking shell scripts.
46686 SHELL=$lt_SHELL
46687
46688 # Whether or not to build shared libraries.
46689 build_libtool_libs=$enable_shared
46690
46691 # Whether or not to build static libraries.
46692 build_old_libs=$enable_static
46693
46694 # Whether or not to add -lc for building shared libraries.
46695 build_libtool_need_lc=$archive_cmds_need_lc_F77
46696
46697 # Whether or not to disallow shared libs when runtime libs are static
46698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
46699
46700 # Whether or not to optimize for fast installation.
46701 fast_install=$enable_fast_install
46702
46703 # The host system.
46704 host_alias=$host_alias
46705 host=$host
46706 host_os=$host_os
46707
46708 # The build system.
46709 build_alias=$build_alias
46710 build=$build
46711 build_os=$build_os
46712
46713 # An echo program that does not interpret backslashes.
46714 echo=$lt_echo
46715
46716 # The archiver.
46717 AR=$lt_AR
46718 AR_FLAGS=$lt_AR_FLAGS
46719
46720 # A C compiler.
46721 LTCC=$lt_LTCC
46722
46723 # A language-specific compiler.
46724 CC=$lt_compiler_F77
46725
46726 # Is the compiler the GNU C compiler?
46727 with_gcc=$GCC_F77
46728
46729 # An ERE matcher.
46730 EGREP=$lt_EGREP
46731
46732 # The linker used to build libraries.
46733 LD=$lt_LD_F77
46734
46735 # Whether we need hard or soft links.
46736 LN_S=$lt_LN_S
46737
46738 # A BSD-compatible nm program.
46739 NM=$lt_NM
46740
46741 # A symbol stripping program
46742 STRIP=$lt_STRIP
46743
46744 # Used to examine libraries when file_magic_cmd begins "file"
46745 MAGIC_CMD=$MAGIC_CMD
46746
46747 # Used on cygwin: DLL creation program.
46748 DLLTOOL="$DLLTOOL"
46749
46750 # Used on cygwin: object dumper.
46751 OBJDUMP="$OBJDUMP"
46752
46753 # Used on cygwin: assembler.
46754 AS="$AS"
46755
46756 # The name of the directory that contains temporary libtool files.
46757 objdir=$objdir
46758
46759 # How to create reloadable object files.
46760 reload_flag=$lt_reload_flag
46761 reload_cmds=$lt_reload_cmds
46762
46763 # How to pass a linker flag through the compiler.
46764 wl=$lt_lt_prog_compiler_wl_F77
46765
46766 # Object file suffix (normally "o").
46767 objext="$ac_objext"
46768
46769 # Old archive suffix (normally "a").
46770 libext="$libext"
46771
46772 # Shared library suffix (normally ".so").
46773 shrext_cmds='$shrext_cmds'
46774
46775 # Executable file suffix (normally "").
46776 exeext="$exeext"
46777
46778 # Additional compiler flags for building library objects.
46779 pic_flag=$lt_lt_prog_compiler_pic_F77
46780 pic_mode=$pic_mode
46781
46782 # What is the maximum length of a command?
46783 max_cmd_len=$lt_cv_sys_max_cmd_len
46784
46785 # Does compiler simultaneously support -c and -o options?
46786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
46787
46788 # Must we lock files when doing compilation?
46789 need_locks=$lt_need_locks
46790
46791 # Do we need the lib prefix for modules?
46792 need_lib_prefix=$need_lib_prefix
46793
46794 # Do we need a version for libraries?
46795 need_version=$need_version
46796
46797 # Whether dlopen is supported.
46798 dlopen_support=$enable_dlopen
46799
46800 # Whether dlopen of programs is supported.
46801 dlopen_self=$enable_dlopen_self
46802
46803 # Whether dlopen of statically linked programs is supported.
46804 dlopen_self_static=$enable_dlopen_self_static
46805
46806 # Compiler flag to prevent dynamic linking.
46807 link_static_flag=$lt_lt_prog_compiler_static_F77
46808
46809 # Compiler flag to turn off builtin functions.
46810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
46811
46812 # Compiler flag to allow reflexive dlopens.
46813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
46814
46815 # Compiler flag to generate shared objects directly from archives.
46816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
46817
46818 # Compiler flag to generate thread-safe objects.
46819 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
46820
46821 # Library versioning type.
46822 version_type=$version_type
46823
46824 # Format of library name prefix.
46825 libname_spec=$lt_libname_spec
46826
46827 # List of archive names.  First name is the real one, the rest are links.
46828 # The last name is the one that the linker finds with -lNAME.
46829 library_names_spec=$lt_library_names_spec
46830
46831 # The coded name of the library, if different from the real name.
46832 soname_spec=$lt_soname_spec
46833
46834 # Commands used to build and install an old-style archive.
46835 RANLIB=$lt_RANLIB
46836 old_archive_cmds=$lt_old_archive_cmds_F77
46837 old_postinstall_cmds=$lt_old_postinstall_cmds
46838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46839
46840 # Create an old-style archive from a shared archive.
46841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
46842
46843 # Create a temporary old-style archive to link instead of a shared archive.
46844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
46845
46846 # Commands used to build and install a shared archive.
46847 archive_cmds=$lt_archive_cmds_F77
46848 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
46849 postinstall_cmds=$lt_postinstall_cmds
46850 postuninstall_cmds=$lt_postuninstall_cmds
46851
46852 # Commands used to build a loadable module (assumed same as above if empty)
46853 module_cmds=$lt_module_cmds_F77
46854 module_expsym_cmds=$lt_module_expsym_cmds_F77
46855
46856 # Commands to strip libraries.
46857 old_striplib=$lt_old_striplib
46858 striplib=$lt_striplib
46859
46860 # Dependencies to place before the objects being linked to create a
46861 # shared library.
46862 predep_objects=$lt_predep_objects_F77
46863
46864 # Dependencies to place after the objects being linked to create a
46865 # shared library.
46866 postdep_objects=$lt_postdep_objects_F77
46867
46868 # Dependencies to place before the objects being linked to create a
46869 # shared library.
46870 predeps=$lt_predeps_F77
46871
46872 # Dependencies to place after the objects being linked to create a
46873 # shared library.
46874 postdeps=$lt_postdeps_F77
46875
46876 # The library search path used internally by the compiler when linking
46877 # a shared library.
46878 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
46879
46880 # Method to check whether dependent libraries are shared objects.
46881 deplibs_check_method=$lt_deplibs_check_method
46882
46883 # Command to use when deplibs_check_method == file_magic.
46884 file_magic_cmd=$lt_file_magic_cmd
46885
46886 # Flag that allows shared libraries with undefined symbols to be built.
46887 allow_undefined_flag=$lt_allow_undefined_flag_F77
46888
46889 # Flag that forces no undefined symbols.
46890 no_undefined_flag=$lt_no_undefined_flag_F77
46891
46892 # Commands used to finish a libtool library installation in a directory.
46893 finish_cmds=$lt_finish_cmds
46894
46895 # Same as above, but a single script fragment to be evaled but not shown.
46896 finish_eval=$lt_finish_eval
46897
46898 # Take the output of nm and produce a listing of raw symbols and C names.
46899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46900
46901 # Transform the output of nm in a proper C declaration
46902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46903
46904 # Transform the output of nm in a C name address pair
46905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46906
46907 # This is the shared library runtime path variable.
46908 runpath_var=$runpath_var
46909
46910 # This is the shared library path variable.
46911 shlibpath_var=$shlibpath_var
46912
46913 # Is shlibpath searched before the hard-coded library search path?
46914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46915
46916 # How to hardcode a shared library path into an executable.
46917 hardcode_action=$hardcode_action_F77
46918
46919 # Whether we should hardcode library paths into libraries.
46920 hardcode_into_libs=$hardcode_into_libs
46921
46922 # Flag to hardcode \$libdir into a binary during linking.
46923 # This must work even if \$libdir does not exist.
46924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
46925
46926 # If ld is used when linking, flag to hardcode \$libdir into
46927 # a binary during linking. This must work even if \$libdir does
46928 # not exist.
46929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
46930
46931 # Whether we need a single -rpath flag with a separated argument.
46932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
46933
46934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
46935 # resulting binary.
46936 hardcode_direct=$hardcode_direct_F77
46937
46938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
46939 # resulting binary.
46940 hardcode_minus_L=$hardcode_minus_L_F77
46941
46942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
46943 # the resulting binary.
46944 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
46945
46946 # Set to yes if building a shared library automatically hardcodes DIR into the library
46947 # and all subsequent libraries and executables linked against it.
46948 hardcode_automatic=$hardcode_automatic_F77
46949
46950 # Variables whose values should be saved in libtool wrapper scripts and
46951 # restored at relink time.
46952 variables_saved_for_relink="$variables_saved_for_relink"
46953
46954 # Whether libtool must link a program against all its dependency libraries.
46955 link_all_deplibs=$link_all_deplibs_F77
46956
46957 # Compile-time system search path for libraries
46958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46959
46960 # Run-time system search path for libraries
46961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46962
46963 # Fix the shell variable \$srcfile for the compiler.
46964 fix_srcfile_path="$fix_srcfile_path_F77"
46965
46966 # Set to yes if exported symbols are required.
46967 always_export_symbols=$always_export_symbols_F77
46968
46969 # The commands to list exported symbols.
46970 export_symbols_cmds=$lt_export_symbols_cmds_F77
46971
46972 # The commands to extract the exported symbol list from a shared archive.
46973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46974
46975 # Symbols that should not be listed in the preloaded symbols.
46976 exclude_expsyms=$lt_exclude_expsyms_F77
46977
46978 # Symbols that must always be exported.
46979 include_expsyms=$lt_include_expsyms_F77
46980
46981 # ### END LIBTOOL TAG CONFIG: $tagname
46982
46983 __EOF__
46984
46985
46986 else
46987   # If there is no Makefile yet, we rely on a make rule to execute
46988   # `config.status --recheck' to rerun these tests and create the
46989   # libtool script then.
46990   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
46991   if test -f "$ltmain_in"; then
46992     test -f Makefile && make "$ltmain"
46993   fi
46994 fi
46995
46996
46997 ac_ext=c
46998 ac_cpp='$CPP $CPPFLAGS'
46999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47002
47003 CC="$lt_save_CC"
47004
47005         else
47006           tagname=""
47007         fi
47008         ;;
47009
47010       GCJ)
47011         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
47012
47013
47014 # Source file extension for Java test sources.
47015 ac_ext=java
47016
47017 # Object file extension for compiled Java test sources.
47018 objext=o
47019 objext_GCJ=$objext
47020
47021 # Code to be used in simple compile tests
47022 lt_simple_compile_test_code="class foo {}\n"
47023
47024 # Code to be used in simple link tests
47025 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
47026
47027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47028
47029 # If no C compiler was specified, use CC.
47030 LTCC=${LTCC-"$CC"}
47031
47032 # Allow CC to be a program name with arguments.
47033 compiler=$CC
47034
47035
47036 # save warnings/boilerplate of simple test code
47037 ac_outfile=conftest.$ac_objext
47038 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47039 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47040 _lt_compiler_boilerplate=`cat conftest.err`
47041 $rm conftest*
47042
47043 ac_outfile=conftest.$ac_objext
47044 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47045 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47046 _lt_linker_boilerplate=`cat conftest.err`
47047 $rm conftest*
47048
47049
47050 # Allow CC to be a program name with arguments.
47051 lt_save_CC="$CC"
47052 CC=${GCJ-"gcj"}
47053 compiler=$CC
47054 compiler_GCJ=$CC
47055 for cc_temp in $compiler""; do
47056   case $cc_temp in
47057     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47058     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47059     \-*) ;;
47060     *) break;;
47061   esac
47062 done
47063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47064
47065
47066 # GCJ did not exist at the time GCC didn't implicitly link libc in.
47067 archive_cmds_need_lc_GCJ=no
47068
47069 old_archive_cmds_GCJ=$old_archive_cmds
47070
47071 ## CAVEAT EMPTOR:
47072 ## There is no encapsulation within the following macros, do not change
47073 ## the running order or otherwise move them around unless you know exactly
47074 ## what you are doing...
47075
47076 lt_prog_compiler_no_builtin_flag_GCJ=
47077
47078 if test "$GCC" = yes; then
47079   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
47080
47081
47082 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47083 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
47084 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
47085   $as_echo_n "(cached) " >&6
47086 else
47087   lt_cv_prog_compiler_rtti_exceptions=no
47088   ac_outfile=conftest.$ac_objext
47089    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47090    lt_compiler_flag="-fno-rtti -fno-exceptions"
47091    # Insert the option either (1) after the last *FLAGS variable, or
47092    # (2) before a word containing "conftest.", or (3) at the end.
47093    # Note that $ac_compile itself does not contain backslashes and begins
47094    # with a dollar sign (not a hyphen), so the echo should work correctly.
47095    # The option is referenced via a variable to avoid confusing sed.
47096    lt_compile=`echo "$ac_compile" | $SED \
47097    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47099    -e 's:$: $lt_compiler_flag:'`
47100    (eval echo "\"\$as_me:47100: $lt_compile\"" >&5)
47101    (eval "$lt_compile" 2>conftest.err)
47102    ac_status=$?
47103    cat conftest.err >&5
47104    echo "$as_me:47104: \$? = $ac_status" >&5
47105    if (exit $ac_status) && test -s "$ac_outfile"; then
47106      # The compiler can only warn and ignore the option if not recognized
47107      # So say no if there are warnings other than the usual output.
47108      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47109      $SED '/^$/d' conftest.err >conftest.er2
47110      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47111        lt_cv_prog_compiler_rtti_exceptions=yes
47112      fi
47113    fi
47114    $rm conftest*
47115
47116 fi
47117 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47118 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
47119
47120 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
47121     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
47122 else
47123     :
47124 fi
47125
47126 fi
47127
47128 lt_prog_compiler_wl_GCJ=
47129 lt_prog_compiler_pic_GCJ=
47130 lt_prog_compiler_static_GCJ=
47131
47132 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
47133 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
47134
47135   if test "$GCC" = yes; then
47136     lt_prog_compiler_wl_GCJ='-Wl,'
47137     lt_prog_compiler_static_GCJ='-static'
47138
47139     case $host_os in
47140       aix*)
47141       # All AIX code is PIC.
47142       if test "$host_cpu" = ia64; then
47143         # AIX 5 now supports IA64 processor
47144         lt_prog_compiler_static_GCJ='-Bstatic'
47145       fi
47146       ;;
47147
47148     amigaos*)
47149       # FIXME: we need at least 68020 code to build shared libraries, but
47150       # adding the `-m68020' flag to GCC prevents building anything better,
47151       # like `-m68040'.
47152       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
47153       ;;
47154
47155     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47156       # PIC is the default for these OSes.
47157       ;;
47158
47159     mingw* | pw32* | os2*)
47160       # This hack is so that the source file can tell whether it is being
47161       # built for inclusion in a dll (and should export symbols for example).
47162       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47163       ;;
47164
47165     darwin* | rhapsody*)
47166       # PIC is the default on this platform
47167       # Common symbols not allowed in MH_DYLIB files
47168       lt_prog_compiler_pic_GCJ='-fno-common'
47169       ;;
47170
47171     msdosdjgpp*)
47172       # Just because we use GCC doesn't mean we suddenly get shared libraries
47173       # on systems that don't support them.
47174       lt_prog_compiler_can_build_shared_GCJ=no
47175       enable_shared=no
47176       ;;
47177
47178     sysv4*MP*)
47179       if test -d /usr/nec; then
47180         lt_prog_compiler_pic_GCJ=-Kconform_pic
47181       fi
47182       ;;
47183
47184     hpux*)
47185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47186       # not for PA HP-UX.
47187       case $host_cpu in
47188       hppa*64*|ia64*)
47189         # +Z the default
47190         ;;
47191       *)
47192         lt_prog_compiler_pic_GCJ='-fPIC'
47193         ;;
47194       esac
47195       ;;
47196
47197     *)
47198       lt_prog_compiler_pic_GCJ='-fPIC'
47199       ;;
47200     esac
47201   else
47202     # PORTME Check for flag to pass linker flags through the system compiler.
47203     case $host_os in
47204     aix*)
47205       lt_prog_compiler_wl_GCJ='-Wl,'
47206       if test "$host_cpu" = ia64; then
47207         # AIX 5 now supports IA64 processor
47208         lt_prog_compiler_static_GCJ='-Bstatic'
47209       else
47210         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
47211       fi
47212       ;;
47213       darwin*)
47214         # PIC is the default on this platform
47215         # Common symbols not allowed in MH_DYLIB files
47216        case $cc_basename in
47217          xlc*)
47218          lt_prog_compiler_pic_GCJ='-qnocommon'
47219          lt_prog_compiler_wl_GCJ='-Wl,'
47220          ;;
47221        esac
47222        ;;
47223
47224     mingw* | pw32* | os2*)
47225       # This hack is so that the source file can tell whether it is being
47226       # built for inclusion in a dll (and should export symbols for example).
47227       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47228       ;;
47229
47230     hpux9* | hpux10* | hpux11*)
47231       lt_prog_compiler_wl_GCJ='-Wl,'
47232       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47233       # not for PA HP-UX.
47234       case $host_cpu in
47235       hppa*64*|ia64*)
47236         # +Z the default
47237         ;;
47238       *)
47239         lt_prog_compiler_pic_GCJ='+Z'
47240         ;;
47241       esac
47242       # Is there a better lt_prog_compiler_static that works with the bundled CC?
47243       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
47244       ;;
47245
47246     irix5* | irix6* | nonstopux*)
47247       lt_prog_compiler_wl_GCJ='-Wl,'
47248       # PIC (with -KPIC) is the default.
47249       lt_prog_compiler_static_GCJ='-non_shared'
47250       ;;
47251
47252     newsos6)
47253       lt_prog_compiler_pic_GCJ='-KPIC'
47254       lt_prog_compiler_static_GCJ='-Bstatic'
47255       ;;
47256
47257     linux*)
47258       case $cc_basename in
47259       icc* | ecc*)
47260         lt_prog_compiler_wl_GCJ='-Wl,'
47261         lt_prog_compiler_pic_GCJ='-KPIC'
47262         lt_prog_compiler_static_GCJ='-static'
47263         ;;
47264       pgcc* | pgf77* | pgf90* | pgf95*)
47265         # Portland Group compilers (*not* the Pentium gcc compiler,
47266         # which looks to be a dead project)
47267         lt_prog_compiler_wl_GCJ='-Wl,'
47268         lt_prog_compiler_pic_GCJ='-fpic'
47269         lt_prog_compiler_static_GCJ='-Bstatic'
47270         ;;
47271       ccc*)
47272         lt_prog_compiler_wl_GCJ='-Wl,'
47273         # All Alpha code is PIC.
47274         lt_prog_compiler_static_GCJ='-non_shared'
47275         ;;
47276       esac
47277       ;;
47278
47279     osf3* | osf4* | osf5*)
47280       lt_prog_compiler_wl_GCJ='-Wl,'
47281       # All OSF/1 code is PIC.
47282       lt_prog_compiler_static_GCJ='-non_shared'
47283       ;;
47284
47285     sco3.2v5*)
47286       lt_prog_compiler_pic_GCJ='-Kpic'
47287       lt_prog_compiler_static_GCJ='-dn'
47288       ;;
47289
47290     solaris*)
47291       lt_prog_compiler_pic_GCJ='-KPIC'
47292       lt_prog_compiler_static_GCJ='-Bstatic'
47293       case $cc_basename in
47294       f77* | f90* | f95*)
47295         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
47296       *)
47297         lt_prog_compiler_wl_GCJ='-Wl,';;
47298       esac
47299       ;;
47300
47301     sunos4*)
47302       lt_prog_compiler_wl_GCJ='-Qoption ld '
47303       lt_prog_compiler_pic_GCJ='-PIC'
47304       lt_prog_compiler_static_GCJ='-Bstatic'
47305       ;;
47306
47307     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
47308       lt_prog_compiler_wl_GCJ='-Wl,'
47309       lt_prog_compiler_pic_GCJ='-KPIC'
47310       lt_prog_compiler_static_GCJ='-Bstatic'
47311       ;;
47312
47313     sysv4*MP*)
47314       if test -d /usr/nec ;then
47315         lt_prog_compiler_pic_GCJ='-Kconform_pic'
47316         lt_prog_compiler_static_GCJ='-Bstatic'
47317       fi
47318       ;;
47319
47320     unicos*)
47321       lt_prog_compiler_wl_GCJ='-Wl,'
47322       lt_prog_compiler_can_build_shared_GCJ=no
47323       ;;
47324
47325     uts4*)
47326       lt_prog_compiler_pic_GCJ='-pic'
47327       lt_prog_compiler_static_GCJ='-Bstatic'
47328       ;;
47329
47330     *)
47331       lt_prog_compiler_can_build_shared_GCJ=no
47332       ;;
47333     esac
47334   fi
47335
47336 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
47337 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
47338
47339 #
47340 # Check to make sure the PIC flag actually works.
47341 #
47342 if test -n "$lt_prog_compiler_pic_GCJ"; then
47343
47344 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
47345 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
47346 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
47347   $as_echo_n "(cached) " >&6
47348 else
47349   lt_prog_compiler_pic_works_GCJ=no
47350   ac_outfile=conftest.$ac_objext
47351    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47352    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
47353    # Insert the option either (1) after the last *FLAGS variable, or
47354    # (2) before a word containing "conftest.", or (3) at the end.
47355    # Note that $ac_compile itself does not contain backslashes and begins
47356    # with a dollar sign (not a hyphen), so the echo should work correctly.
47357    # The option is referenced via a variable to avoid confusing sed.
47358    lt_compile=`echo "$ac_compile" | $SED \
47359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47361    -e 's:$: $lt_compiler_flag:'`
47362    (eval echo "\"\$as_me:47362: $lt_compile\"" >&5)
47363    (eval "$lt_compile" 2>conftest.err)
47364    ac_status=$?
47365    cat conftest.err >&5
47366    echo "$as_me:47366: \$? = $ac_status" >&5
47367    if (exit $ac_status) && test -s "$ac_outfile"; then
47368      # The compiler can only warn and ignore the option if not recognized
47369      # So say no if there are warnings other than the usual output.
47370      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47371      $SED '/^$/d' conftest.err >conftest.er2
47372      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47373        lt_prog_compiler_pic_works_GCJ=yes
47374      fi
47375    fi
47376    $rm conftest*
47377
47378 fi
47379 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
47380 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
47381
47382 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
47383     case $lt_prog_compiler_pic_GCJ in
47384      "" | " "*) ;;
47385      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
47386      esac
47387 else
47388     lt_prog_compiler_pic_GCJ=
47389      lt_prog_compiler_can_build_shared_GCJ=no
47390 fi
47391
47392 fi
47393 case $host_os in
47394   # For platforms which do not support PIC, -DPIC is meaningless:
47395   *djgpp*)
47396     lt_prog_compiler_pic_GCJ=
47397     ;;
47398   *)
47399     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
47400     ;;
47401 esac
47402
47403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
47404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
47405 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
47406   $as_echo_n "(cached) " >&6
47407 else
47408   lt_cv_prog_compiler_c_o_GCJ=no
47409    $rm -r conftest 2>/dev/null
47410    mkdir conftest
47411    cd conftest
47412    mkdir out
47413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47414
47415    lt_compiler_flag="-o out/conftest2.$ac_objext"
47416    # Insert the option either (1) after the last *FLAGS variable, or
47417    # (2) before a word containing "conftest.", or (3) at the end.
47418    # Note that $ac_compile itself does not contain backslashes and begins
47419    # with a dollar sign (not a hyphen), so the echo should work correctly.
47420    lt_compile=`echo "$ac_compile" | $SED \
47421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47423    -e 's:$: $lt_compiler_flag:'`
47424    (eval echo "\"\$as_me:47424: $lt_compile\"" >&5)
47425    (eval "$lt_compile" 2>out/conftest.err)
47426    ac_status=$?
47427    cat out/conftest.err >&5
47428    echo "$as_me:47428: \$? = $ac_status" >&5
47429    if (exit $ac_status) && test -s out/conftest2.$ac_objext
47430    then
47431      # The compiler can only warn and ignore the option if not recognized
47432      # So say no if there are warnings
47433      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
47434      $SED '/^$/d' out/conftest.err >out/conftest.er2
47435      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
47436        lt_cv_prog_compiler_c_o_GCJ=yes
47437      fi
47438    fi
47439    chmod u+w . 2>&5
47440    $rm conftest*
47441    # SGI C++ compiler will create directory out/ii_files/ for
47442    # template instantiation
47443    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
47444    $rm out/* && rmdir out
47445    cd ..
47446    rmdir conftest
47447    $rm conftest*
47448
47449 fi
47450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
47451 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
47452
47453
47454 hard_links="nottested"
47455 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
47456   # do not overwrite the value of need_locks provided by the user
47457   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
47458 $as_echo_n "checking if we can lock with hard links... " >&6; }
47459   hard_links=yes
47460   $rm conftest*
47461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
47462   touch conftest.a
47463   ln conftest.a conftest.b 2>&5 || hard_links=no
47464   ln conftest.a conftest.b 2>/dev/null && hard_links=no
47465   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
47466 $as_echo "$hard_links" >&6; }
47467   if test "$hard_links" = no; then
47468
47469     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
47470 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
47471
47472
47473     cat <<AAW_EOF >>config.warnings
47474 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
47475 AAW_EOF
47476
47477
47478     need_locks=warn
47479   fi
47480 else
47481   need_locks=no
47482 fi
47483
47484 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
47485 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
47486
47487   runpath_var=
47488   allow_undefined_flag_GCJ=
47489   enable_shared_with_static_runtimes_GCJ=no
47490   archive_cmds_GCJ=
47491   archive_expsym_cmds_GCJ=
47492   old_archive_From_new_cmds_GCJ=
47493   old_archive_from_expsyms_cmds_GCJ=
47494   export_dynamic_flag_spec_GCJ=
47495   whole_archive_flag_spec_GCJ=
47496   thread_safe_flag_spec_GCJ=
47497   hardcode_libdir_flag_spec_GCJ=
47498   hardcode_libdir_flag_spec_ld_GCJ=
47499   hardcode_libdir_separator_GCJ=
47500   hardcode_direct_GCJ=no
47501   hardcode_minus_L_GCJ=no
47502   hardcode_shlibpath_var_GCJ=unsupported
47503   link_all_deplibs_GCJ=unknown
47504   hardcode_automatic_GCJ=no
47505   module_cmds_GCJ=
47506   module_expsym_cmds_GCJ=
47507   always_export_symbols_GCJ=no
47508   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
47509   # include_expsyms should be a list of space-separated symbols to be *always*
47510   # included in the symbol list
47511   include_expsyms_GCJ=
47512   # exclude_expsyms can be an extended regexp of symbols to exclude
47513   # it will be wrapped by ` (' and `)$', so one must not match beginning or
47514   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
47515   # as well as any symbol that contains `d'.
47516   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
47517   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
47518   # platforms (ab)use it in PIC code, but their linkers get confused if
47519   # the symbol is explicitly referenced.  Since portable code cannot
47520   # rely on this symbol name, it's probably fine to never include it in
47521   # preloaded symbol tables.
47522   extract_expsyms_cmds=
47523   # Just being paranoid about ensuring that cc_basename is set.
47524   for cc_temp in $compiler""; do
47525   case $cc_temp in
47526     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47527     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47528     \-*) ;;
47529     *) break;;
47530   esac
47531 done
47532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47533
47534   case $host_os in
47535   cygwin* | mingw* | pw32*)
47536     # FIXME: the MSVC++ port hasn't been tested in a loooong time
47537     # When not using gcc, we currently assume that we are using
47538     # Microsoft Visual C++.
47539     if test "$GCC" != yes; then
47540       with_gnu_ld=no
47541     fi
47542     ;;
47543   openbsd*)
47544     with_gnu_ld=no
47545     ;;
47546   esac
47547
47548   ld_shlibs_GCJ=yes
47549   if test "$with_gnu_ld" = yes; then
47550     # If archive_cmds runs LD, not CC, wlarc should be empty
47551     wlarc='${wl}'
47552
47553     # Set some defaults for GNU ld with shared library support. These
47554     # are reset later if shared libraries are not supported. Putting them
47555     # here allows them to be overridden if necessary.
47556     runpath_var=LD_RUN_PATH
47557     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
47558     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
47559     # ancient GNU ld didn't support --whole-archive et. al.
47560     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
47561         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
47562       else
47563         whole_archive_flag_spec_GCJ=
47564     fi
47565     supports_anon_versioning=no
47566     case `$LD -v 2>/dev/null` in
47567       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
47568       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47569       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
47570       *\ 2.11.*) ;; # other 2.11 versions
47571       *) supports_anon_versioning=yes ;;
47572     esac
47573
47574     # See if GNU ld supports shared libraries.
47575     case $host_os in
47576     aix3* | aix4* | aix5*)
47577       # On AIX/PPC, the GNU linker is very broken
47578       if test "$host_cpu" != ia64; then
47579         ld_shlibs_GCJ=no
47580         cat <<EOF 1>&2
47581
47582 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
47583 *** to be unable to reliably create shared libraries on AIX.
47584 *** Therefore, libtool is disabling shared libraries support.  If you
47585 *** really care for shared libraries, you may want to modify your PATH
47586 *** so that a non-GNU linker is found, and then restart.
47587
47588 EOF
47589       fi
47590       ;;
47591
47592     amigaos*)
47593       archive_cmds_GCJ='$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)'
47594       hardcode_libdir_flag_spec_GCJ='-L$libdir'
47595       hardcode_minus_L_GCJ=yes
47596
47597       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
47598       # that the semantics of dynamic libraries on AmigaOS, at least up
47599       # to version 4, is to share data among multiple programs linked
47600       # with the same dynamic library.  Since this doesn't match the
47601       # behavior of shared libraries on other platforms, we can't use
47602       # them.
47603       ld_shlibs_GCJ=no
47604       ;;
47605
47606     beos*)
47607       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47608         allow_undefined_flag_GCJ=unsupported
47609         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47610         # support --undefined.  This deserves some investigation.  FIXME
47611         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47612       else
47613         ld_shlibs_GCJ=no
47614       fi
47615       ;;
47616
47617     cygwin* | mingw* | pw32*)
47618       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
47619       # as there is no search path for DLLs.
47620       hardcode_libdir_flag_spec_GCJ='-L$libdir'
47621       allow_undefined_flag_GCJ=unsupported
47622       always_export_symbols_GCJ=no
47623       enable_shared_with_static_runtimes_GCJ=yes
47624       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
47625
47626       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
47627         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47628         # If the export-symbols file already is a .def file (1st line
47629         # is EXPORTS), use it as is; otherwise, prepend...
47630         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
47631           cp $export_symbols $output_objdir/$soname.def;
47632         else
47633           echo EXPORTS > $output_objdir/$soname.def;
47634           cat $export_symbols >> $output_objdir/$soname.def;
47635         fi~
47636         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
47637       else
47638         ld_shlibs_GCJ=no
47639       fi
47640       ;;
47641
47642     linux*)
47643       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47644         tmp_addflag=
47645         case $cc_basename,$host_cpu in
47646         pgcc*)                          # Portland Group C compiler
47647           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
47648           tmp_addflag=' $pic_flag'
47649           ;;
47650         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
47651           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
47652           tmp_addflag=' $pic_flag -Mnomain' ;;
47653         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
47654           tmp_addflag=' -i_dynamic' ;;
47655         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
47656           tmp_addflag=' -i_dynamic -nofor_main' ;;
47657         ifc* | ifort*)                  # Intel Fortran compiler
47658           tmp_addflag=' -nofor_main' ;;
47659         esac
47660         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47661
47662         if test $supports_anon_versioning = yes; then
47663           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
47664   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
47665   $echo "local: *; };" >> $output_objdir/$libname.ver~
47666           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
47667         fi
47668       else
47669         ld_shlibs_GCJ=no
47670       fi
47671       ;;
47672
47673     netbsd*)
47674       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
47675         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
47676         wlarc=
47677       else
47678         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47679         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47680       fi
47681       ;;
47682
47683     solaris* | sysv5*)
47684       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
47685         ld_shlibs_GCJ=no
47686         cat <<EOF 1>&2
47687
47688 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
47689 *** create shared libraries on Solaris systems.  Therefore, libtool
47690 *** is disabling shared libraries support.  We urge you to upgrade GNU
47691 *** binutils to release 2.9.1 or newer.  Another option is to modify
47692 *** your PATH or compiler configuration so that the native linker is
47693 *** used, and then restart.
47694
47695 EOF
47696       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47697         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47698         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47699       else
47700         ld_shlibs_GCJ=no
47701       fi
47702       ;;
47703
47704     sunos4*)
47705       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47706       wlarc=
47707       hardcode_direct_GCJ=yes
47708       hardcode_shlibpath_var_GCJ=no
47709       ;;
47710
47711     *)
47712       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47713         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47714         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47715       else
47716         ld_shlibs_GCJ=no
47717       fi
47718       ;;
47719     esac
47720
47721     if test "$ld_shlibs_GCJ" = no; then
47722       runpath_var=
47723       hardcode_libdir_flag_spec_GCJ=
47724       export_dynamic_flag_spec_GCJ=
47725       whole_archive_flag_spec_GCJ=
47726     fi
47727   else
47728     # PORTME fill in a description of your system's linker (not GNU ld)
47729     case $host_os in
47730     aix3*)
47731       allow_undefined_flag_GCJ=unsupported
47732       always_export_symbols_GCJ=yes
47733       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
47734       # Note: this linker hardcodes the directories in LIBPATH if there
47735       # are no directories specified by -L.
47736       hardcode_minus_L_GCJ=yes
47737       if test "$GCC" = yes && test -z "$link_static_flag"; then
47738         # Neither direct hardcoding nor static linking is supported with a
47739         # broken collect2.
47740         hardcode_direct_GCJ=unsupported
47741       fi
47742       ;;
47743
47744     aix4* | aix5*)
47745       if test "$host_cpu" = ia64; then
47746         # On IA64, the linker does run time linking by default, so we don't
47747         # have to do anything special.
47748         aix_use_runtimelinking=no
47749         exp_sym_flag='-Bexport'
47750         no_entry_flag=""
47751       else
47752         # If we're using GNU nm, then we don't want the "-C" option.
47753         # -C means demangle to AIX nm, but means don't demangle with GNU nm
47754         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
47755           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
47756         else
47757           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
47758         fi
47759         aix_use_runtimelinking=no
47760
47761         # Test if we are trying to use run time linking or normal
47762         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
47763         # need to do runtime linking.
47764         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
47765           for ld_flag in $LDFLAGS; do
47766           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
47767             aix_use_runtimelinking=yes
47768             break
47769           fi
47770           done
47771         esac
47772
47773         exp_sym_flag='-bexport'
47774         no_entry_flag='-bnoentry'
47775       fi
47776
47777       # When large executables or shared objects are built, AIX ld can
47778       # have problems creating the table of contents.  If linking a library
47779       # or program results in "error TOC overflow" add -mminimal-toc to
47780       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
47781       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
47782
47783       archive_cmds_GCJ=''
47784       hardcode_direct_GCJ=yes
47785       hardcode_libdir_separator_GCJ=':'
47786       link_all_deplibs_GCJ=yes
47787
47788       if test "$GCC" = yes; then
47789         case $host_os in aix4.[012]|aix4.[012].*)
47790         # We only want to do this on AIX 4.2 and lower, the check
47791         # below for broken collect2 doesn't work under 4.3+
47792           collect2name=`${CC} -print-prog-name=collect2`
47793           if test -f "$collect2name" && \
47794            strings "$collect2name" | grep resolve_lib_name >/dev/null
47795           then
47796           # We have reworked collect2
47797           hardcode_direct_GCJ=yes
47798           else
47799           # We have old collect2
47800           hardcode_direct_GCJ=unsupported
47801           # It fails to find uninstalled libraries when the uninstalled
47802           # path is not listed in the libpath.  Setting hardcode_minus_L
47803           # to unsupported forces relinking
47804           hardcode_minus_L_GCJ=yes
47805           hardcode_libdir_flag_spec_GCJ='-L$libdir'
47806           hardcode_libdir_separator_GCJ=
47807           fi
47808         esac
47809         shared_flag='-shared'
47810         if test "$aix_use_runtimelinking" = yes; then
47811           shared_flag="$shared_flag "'${wl}-G'
47812         fi
47813       else
47814         # not using gcc
47815         if test "$host_cpu" = ia64; then
47816         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
47817         # chokes on -Wl,-G. The following line is correct:
47818           shared_flag='-G'
47819         else
47820         if test "$aix_use_runtimelinking" = yes; then
47821             shared_flag='${wl}-G'
47822           else
47823             shared_flag='${wl}-bM:SRE'
47824         fi
47825         fi
47826       fi
47827
47828       # It seems that -bexpall does not export symbols beginning with
47829       # underscore (_), so it is better to generate a list of symbols to export.
47830       always_export_symbols_GCJ=yes
47831       if test "$aix_use_runtimelinking" = yes; then
47832         # Warning - without using the other runtime loading flags (-brtl),
47833         # -berok will link without error, but may produce a broken library.
47834         allow_undefined_flag_GCJ='-berok'
47835        # Determine the default libpath from the value encoded in an empty executable.
47836        cat >conftest.$ac_ext <<_ACEOF
47837 /* confdefs.h.  */
47838 _ACEOF
47839 cat confdefs.h >>conftest.$ac_ext
47840 cat >>conftest.$ac_ext <<_ACEOF
47841 /* end confdefs.h.  */
47842
47843 int
47844 main ()
47845 {
47846
47847   ;
47848   return 0;
47849 }
47850 _ACEOF
47851 rm -f conftest.$ac_objext conftest$ac_exeext
47852 if { (ac_try="$ac_link"
47853 case "(($ac_try" in
47854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47855   *) ac_try_echo=$ac_try;;
47856 esac
47857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47858 $as_echo "$ac_try_echo") >&5
47859   (eval "$ac_link") 2>conftest.er1
47860   ac_status=$?
47861   grep -v '^ *+' conftest.er1 >conftest.err
47862   rm -f conftest.er1
47863   cat conftest.err >&5
47864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47865   (exit $ac_status); } && {
47866          test -z "$ac_c_werror_flag" ||
47867          test ! -s conftest.err
47868        } && test -s conftest$ac_exeext && {
47869          test "$cross_compiling" = yes ||
47870          $as_test_x conftest$ac_exeext
47871        }; then
47872
47873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
47874 }'`
47875 # Check for a 64-bit object if we didn't find anything.
47876 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
47877 }'`; fi
47878 else
47879   $as_echo "$as_me: failed program was:" >&5
47880 sed 's/^/| /' conftest.$ac_ext >&5
47881
47882
47883 fi
47884
47885 rm -rf conftest.dSYM
47886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47887       conftest$ac_exeext conftest.$ac_ext
47888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47889
47890        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47891         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47892        else
47893         if test "$host_cpu" = ia64; then
47894           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
47895           allow_undefined_flag_GCJ="-z nodefs"
47896           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
47897         else
47898          # Determine the default libpath from the value encoded in an empty executable.
47899          cat >conftest.$ac_ext <<_ACEOF
47900 /* confdefs.h.  */
47901 _ACEOF
47902 cat confdefs.h >>conftest.$ac_ext
47903 cat >>conftest.$ac_ext <<_ACEOF
47904 /* end confdefs.h.  */
47905
47906 int
47907 main ()
47908 {
47909
47910   ;
47911   return 0;
47912 }
47913 _ACEOF
47914 rm -f conftest.$ac_objext conftest$ac_exeext
47915 if { (ac_try="$ac_link"
47916 case "(($ac_try" in
47917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47918   *) ac_try_echo=$ac_try;;
47919 esac
47920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47921 $as_echo "$ac_try_echo") >&5
47922   (eval "$ac_link") 2>conftest.er1
47923   ac_status=$?
47924   grep -v '^ *+' conftest.er1 >conftest.err
47925   rm -f conftest.er1
47926   cat conftest.err >&5
47927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928   (exit $ac_status); } && {
47929          test -z "$ac_c_werror_flag" ||
47930          test ! -s conftest.err
47931        } && test -s conftest$ac_exeext && {
47932          test "$cross_compiling" = yes ||
47933          $as_test_x conftest$ac_exeext
47934        }; then
47935
47936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
47937 }'`
47938 # Check for a 64-bit object if we didn't find anything.
47939 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
47940 }'`; fi
47941 else
47942   $as_echo "$as_me: failed program was:" >&5
47943 sed 's/^/| /' conftest.$ac_ext >&5
47944
47945
47946 fi
47947
47948 rm -rf conftest.dSYM
47949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47950       conftest$ac_exeext conftest.$ac_ext
47951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47952
47953          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47954           # Warning - without using the other run time loading flags,
47955           # -berok will link without error, but may produce a broken library.
47956           no_undefined_flag_GCJ=' ${wl}-bernotok'
47957           allow_undefined_flag_GCJ=' ${wl}-berok'
47958           # -bexpall does not export symbols beginning with underscore (_)
47959           always_export_symbols_GCJ=yes
47960           # Exported symbols can be pulled into shared objects from archives
47961           whole_archive_flag_spec_GCJ=' '
47962           archive_cmds_need_lc_GCJ=yes
47963           # This is similar to how AIX traditionally builds its shared libraries.
47964           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
47965         fi
47966       fi
47967       ;;
47968
47969     amigaos*)
47970       archive_cmds_GCJ='$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)'
47971       hardcode_libdir_flag_spec_GCJ='-L$libdir'
47972       hardcode_minus_L_GCJ=yes
47973       # see comment about different semantics on the GNU ld section
47974       ld_shlibs_GCJ=no
47975       ;;
47976
47977     bsdi[45]*)
47978       export_dynamic_flag_spec_GCJ=-rdynamic
47979       ;;
47980
47981     cygwin* | mingw* | pw32*)
47982       # When not using gcc, we currently assume that we are using
47983       # Microsoft Visual C++.
47984       # hardcode_libdir_flag_spec is actually meaningless, as there is
47985       # no search path for DLLs.
47986       hardcode_libdir_flag_spec_GCJ=' '
47987       allow_undefined_flag_GCJ=unsupported
47988       # Tell ltmain to make .lib files, not .a files.
47989       libext=lib
47990       # Tell ltmain to make .dll files, not .so files.
47991       shrext_cmds=".dll"
47992       # FIXME: Setting linknames here is a bad hack.
47993       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
47994       # The linker will automatically build a .lib file if we build a DLL.
47995       old_archive_From_new_cmds_GCJ='true'
47996       # FIXME: Should let the user specify the lib program.
47997       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
47998       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
47999       enable_shared_with_static_runtimes_GCJ=yes
48000       ;;
48001
48002     darwin* | rhapsody*)
48003       case $host_os in
48004         rhapsody* | darwin1.[012])
48005          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
48006          ;;
48007        *) # Darwin 1.3 on
48008          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
48009            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48010          else
48011            case ${MACOSX_DEPLOYMENT_TARGET} in
48012              10.[012])
48013                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48014                ;;
48015              10.*)
48016                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
48017                ;;
48018            esac
48019          fi
48020          ;;
48021       esac
48022       archive_cmds_need_lc_GCJ=no
48023       hardcode_direct_GCJ=no
48024       hardcode_automatic_GCJ=yes
48025       hardcode_shlibpath_var_GCJ=unsupported
48026       whole_archive_flag_spec_GCJ=''
48027       link_all_deplibs_GCJ=yes
48028     if test "$GCC" = yes ; then
48029         output_verbose_link_cmd='echo'
48030         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
48031       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48032       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48033       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48034       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48035     else
48036       case $cc_basename in
48037         xlc*)
48038          output_verbose_link_cmd='echo'
48039          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
48040          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48041           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48042          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48043           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
48044           ;;
48045        *)
48046          ld_shlibs_GCJ=no
48047           ;;
48048       esac
48049     fi
48050       ;;
48051
48052     dgux*)
48053       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48054       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48055       hardcode_shlibpath_var_GCJ=no
48056       ;;
48057
48058     freebsd1*)
48059       ld_shlibs_GCJ=no
48060       ;;
48061
48062     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
48063     # support.  Future versions do this automatically, but an explicit c++rt0.o
48064     # does not break anything, and helps significantly (at the cost of a little
48065     # extra space).
48066     freebsd2.2*)
48067       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
48068       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48069       hardcode_direct_GCJ=yes
48070       hardcode_shlibpath_var_GCJ=no
48071       ;;
48072
48073     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
48074     freebsd2*)
48075       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48076       hardcode_direct_GCJ=yes
48077       hardcode_minus_L_GCJ=yes
48078       hardcode_shlibpath_var_GCJ=no
48079       ;;
48080
48081     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48082     freebsd* | kfreebsd*-gnu | dragonfly*)
48083       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
48084       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48085       hardcode_direct_GCJ=yes
48086       hardcode_shlibpath_var_GCJ=no
48087       ;;
48088
48089     hpux9*)
48090       if test "$GCC" = yes; then
48091         archive_cmds_GCJ='$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'
48092       else
48093         archive_cmds_GCJ='$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'
48094       fi
48095       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48096       hardcode_libdir_separator_GCJ=:
48097       hardcode_direct_GCJ=yes
48098
48099       # hardcode_minus_L: Not really in the search PATH,
48100       # but as the default location of the library.
48101       hardcode_minus_L_GCJ=yes
48102       export_dynamic_flag_spec_GCJ='${wl}-E'
48103       ;;
48104
48105     hpux10* | hpux11*)
48106       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
48107         case $host_cpu in
48108         hppa*64*|ia64*)
48109           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48110           ;;
48111         *)
48112           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48113           ;;
48114         esac
48115       else
48116         case $host_cpu in
48117         hppa*64*|ia64*)
48118           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
48119           ;;
48120         *)
48121           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48122           ;;
48123         esac
48124       fi
48125       if test "$with_gnu_ld" = no; then
48126         case $host_cpu in
48127         hppa*64*)
48128           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48129           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
48130           hardcode_libdir_separator_GCJ=:
48131           hardcode_direct_GCJ=no
48132           hardcode_shlibpath_var_GCJ=no
48133           ;;
48134         ia64*)
48135           hardcode_libdir_flag_spec_GCJ='-L$libdir'
48136           hardcode_direct_GCJ=no
48137           hardcode_shlibpath_var_GCJ=no
48138
48139           # hardcode_minus_L: Not really in the search PATH,
48140           # but as the default location of the library.
48141           hardcode_minus_L_GCJ=yes
48142           ;;
48143         *)
48144           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48145           hardcode_libdir_separator_GCJ=:
48146           hardcode_direct_GCJ=yes
48147           export_dynamic_flag_spec_GCJ='${wl}-E'
48148
48149           # hardcode_minus_L: Not really in the search PATH,
48150           # but as the default location of the library.
48151           hardcode_minus_L_GCJ=yes
48152           ;;
48153         esac
48154       fi
48155       ;;
48156
48157     irix5* | irix6* | nonstopux*)
48158       if test "$GCC" = yes; then
48159         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48160       else
48161         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48162         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
48163       fi
48164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48165       hardcode_libdir_separator_GCJ=:
48166       link_all_deplibs_GCJ=yes
48167       ;;
48168
48169     netbsd*)
48170       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48171         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
48172       else
48173         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
48174       fi
48175       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48176       hardcode_direct_GCJ=yes
48177       hardcode_shlibpath_var_GCJ=no
48178       ;;
48179
48180     newsos6)
48181       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48182       hardcode_direct_GCJ=yes
48183       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48184       hardcode_libdir_separator_GCJ=:
48185       hardcode_shlibpath_var_GCJ=no
48186       ;;
48187
48188     openbsd*)
48189       hardcode_direct_GCJ=yes
48190       hardcode_shlibpath_var_GCJ=no
48191       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48192         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48193         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
48194         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48195         export_dynamic_flag_spec_GCJ='${wl}-E'
48196       else
48197        case $host_os in
48198          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
48199            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48200            hardcode_libdir_flag_spec_GCJ='-R$libdir'
48201            ;;
48202          *)
48203            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48204            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48205            ;;
48206        esac
48207       fi
48208       ;;
48209
48210     os2*)
48211       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48212       hardcode_minus_L_GCJ=yes
48213       allow_undefined_flag_GCJ=unsupported
48214       archive_cmds_GCJ='$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'
48215       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
48216       ;;
48217
48218     osf3*)
48219       if test "$GCC" = yes; then
48220         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48221         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48222       else
48223         allow_undefined_flag_GCJ=' -expect_unresolved \*'
48224         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48225       fi
48226       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48227       hardcode_libdir_separator_GCJ=:
48228       ;;
48229
48230     osf4* | osf5*)      # as osf3* with the addition of -msym flag
48231       if test "$GCC" = yes; then
48232         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48233         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48234         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48235       else
48236         allow_undefined_flag_GCJ=' -expect_unresolved \*'
48237         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
48238         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
48239         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
48240
48241         # Both c and cxx compiler support -rpath directly
48242         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
48243       fi
48244       hardcode_libdir_separator_GCJ=:
48245       ;;
48246
48247     sco3.2v5*)
48248       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48249       hardcode_shlibpath_var_GCJ=no
48250       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
48251       runpath_var=LD_RUN_PATH
48252       hardcode_runpath_var=yes
48253       ;;
48254
48255     solaris*)
48256       no_undefined_flag_GCJ=' -z text'
48257       if test "x$archive_cmds" = "x"; then
48258         if test "$GCC" = yes; then
48259           wlarc='${wl}'
48260           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
48261             archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48262             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48263             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48264           else
48265             archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48266             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48267             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48268           fi
48269         else
48270           wlarc=''
48271           lt_prog_compiler_static_GCJ='-static'
48272           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48273           archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48274           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48275           lt_prog_compiler_static_GCJ='-static'
48276         fi
48277       fi
48278       hardcode_libdir_flag_spec_GCJ='-R$libdir'
48279       hardcode_shlibpath_var_GCJ=no
48280       case $host_os in
48281       solaris2.[0-5] | solaris2.[0-5].*) ;;
48282       *)
48283         # The compiler driver will combine linker options so we
48284         # cannot just pass the convience library names through
48285         # without $wl, iff we do not link with $LD.
48286         # Luckily, gcc supports the same syntax we need for Sun Studio.
48287         # Supported since Solaris 2.6 (maybe 2.5.1?)
48288         case $wlarc in
48289         '')
48290           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
48291         *)
48292           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
48293         esac ;;
48294       esac
48295       link_all_deplibs_GCJ=yes
48296       ;;
48297
48298     sunos4*)
48299       if test "x$host_vendor" = xsequent; then
48300         # Use $CC to link under sequent, because it throws in some extra .o
48301         # files that make .init and .fini sections work.
48302         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
48303       else
48304         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
48305       fi
48306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48307       hardcode_direct_GCJ=yes
48308       hardcode_minus_L_GCJ=yes
48309       hardcode_shlibpath_var_GCJ=no
48310       ;;
48311
48312     sysv4)
48313       case $host_vendor in
48314         sni)
48315           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48316           hardcode_direct_GCJ=yes # is this really true???
48317         ;;
48318         siemens)
48319           ## LD is ld it makes a PLAMLIB
48320           ## CC just makes a GrossModule.
48321           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48322           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
48323           hardcode_direct_GCJ=no
48324         ;;
48325         motorola)
48326           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48327           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
48328         ;;
48329       esac
48330       runpath_var='LD_RUN_PATH'
48331       hardcode_shlibpath_var_GCJ=no
48332       ;;
48333
48334     sysv4.3*)
48335       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48336       hardcode_shlibpath_var_GCJ=no
48337       export_dynamic_flag_spec_GCJ='-Bexport'
48338       ;;
48339
48340     sysv4*MP*)
48341       if test -d /usr/nec; then
48342         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48343         hardcode_shlibpath_var_GCJ=no
48344         runpath_var=LD_RUN_PATH
48345         hardcode_runpath_var=yes
48346         ld_shlibs_GCJ=yes
48347       fi
48348       ;;
48349
48350     sysv4.2uw2*)
48351       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48352       hardcode_direct_GCJ=yes
48353       hardcode_minus_L_GCJ=no
48354       hardcode_shlibpath_var_GCJ=no
48355       hardcode_runpath_var=yes
48356       runpath_var=LD_RUN_PATH
48357       ;;
48358
48359    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
48360       no_undefined_flag_GCJ='${wl}-z ${wl}text'
48361       if test "$GCC" = yes; then
48362         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48363       else
48364         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48365       fi
48366       runpath_var='LD_RUN_PATH'
48367       hardcode_shlibpath_var_GCJ=no
48368       ;;
48369
48370     sysv5*)
48371       no_undefined_flag_GCJ=' -z text'
48372       # $CC -shared without GNU ld will not create a library from C++
48373       # object files and a static libstdc++, better avoid it by now
48374       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48375       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48376                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48377       hardcode_libdir_flag_spec_GCJ=
48378       hardcode_shlibpath_var_GCJ=no
48379       runpath_var='LD_RUN_PATH'
48380       ;;
48381
48382     uts4*)
48383       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48384       hardcode_libdir_flag_spec_GCJ='-L$libdir'
48385       hardcode_shlibpath_var_GCJ=no
48386       ;;
48387
48388     *)
48389       ld_shlibs_GCJ=no
48390       ;;
48391     esac
48392   fi
48393
48394 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
48395 $as_echo "$ld_shlibs_GCJ" >&6; }
48396 test "$ld_shlibs_GCJ" = no && can_build_shared=no
48397
48398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
48399 if test "$GCC" = yes; then
48400   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
48401 fi
48402
48403 #
48404 # Do we need to explicitly link libc?
48405 #
48406 case "x$archive_cmds_need_lc_GCJ" in
48407 x|xyes)
48408   # Assume -lc should be added
48409   archive_cmds_need_lc_GCJ=yes
48410
48411   if test "$enable_shared" = yes && test "$GCC" = yes; then
48412     case $archive_cmds_GCJ in
48413     *'~'*)
48414       # FIXME: we may have to deal with multi-command sequences.
48415       ;;
48416     '$CC '*)
48417       # Test whether the compiler implicitly links with -lc since on some
48418       # systems, -lgcc has to come before -lc. If gcc already passes -lc
48419       # to ld, don't add -lc before -lgcc.
48420       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
48421 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
48422       $rm conftest*
48423       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
48424
48425       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48426   (eval $ac_compile) 2>&5
48427   ac_status=$?
48428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429   (exit $ac_status); } 2>conftest.err; then
48430         soname=conftest
48431         lib=conftest
48432         libobjs=conftest.$ac_objext
48433         deplibs=
48434         wl=$lt_prog_compiler_wl_GCJ
48435         compiler_flags=-v
48436         linker_flags=-v
48437         verstring=
48438         output_objdir=.
48439         libname=conftest
48440         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
48441         allow_undefined_flag_GCJ=
48442         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
48443   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
48444   ac_status=$?
48445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48446   (exit $ac_status); }
48447         then
48448           archive_cmds_need_lc_GCJ=no
48449         else
48450           archive_cmds_need_lc_GCJ=yes
48451         fi
48452         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
48453       else
48454         cat conftest.err 1>&5
48455       fi
48456       $rm conftest*
48457       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
48458 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
48459       ;;
48460     esac
48461   fi
48462   ;;
48463 esac
48464
48465 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
48466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
48467 library_names_spec=
48468 libname_spec='lib$name'
48469 soname_spec=
48470 shrext_cmds=".so"
48471 postinstall_cmds=
48472 postuninstall_cmds=
48473 finish_cmds=
48474 finish_eval=
48475 shlibpath_var=
48476 shlibpath_overrides_runpath=unknown
48477 version_type=none
48478 dynamic_linker="$host_os ld.so"
48479 sys_lib_dlsearch_path_spec="/lib /usr/lib"
48480 if test "$GCC" = yes; then
48481   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48482   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
48483     # if the path contains ";" then we assume it to be the separator
48484     # otherwise default to the standard path separator (i.e. ":") - it is
48485     # assumed that no part of a normal pathname contains ";" but that should
48486     # okay in the real world where ";" in dirpaths is itself problematic.
48487     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48488   else
48489     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
48490   fi
48491 else
48492   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
48493 fi
48494 need_lib_prefix=unknown
48495 hardcode_into_libs=no
48496
48497 # when you set need_version to no, make sure it does not cause -set_version
48498 # flags to be left without arguments
48499 need_version=unknown
48500
48501 case $host_os in
48502 aix3*)
48503   version_type=linux
48504   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
48505   shlibpath_var=LIBPATH
48506
48507   # AIX 3 has no versioning support, so we append a major version to the name.
48508   soname_spec='${libname}${release}${shared_ext}$major'
48509   ;;
48510
48511 aix4* | aix5*)
48512   version_type=linux
48513   need_lib_prefix=no
48514   need_version=no
48515   hardcode_into_libs=yes
48516   if test "$host_cpu" = ia64; then
48517     # AIX 5 supports IA64
48518     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
48519     shlibpath_var=LD_LIBRARY_PATH
48520   else
48521     # With GCC up to 2.95.x, collect2 would create an import file
48522     # for dependence libraries.  The import file would start with
48523     # the line `#! .'.  This would cause the generated library to
48524     # depend on `.', always an invalid library.  This was fixed in
48525     # development snapshots of GCC prior to 3.0.
48526     case $host_os in
48527       aix4 | aix4.[01] | aix4.[01].*)
48528       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
48529            echo ' yes '
48530            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
48531         :
48532       else
48533         can_build_shared=no
48534       fi
48535       ;;
48536     esac
48537     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
48538     # soname into executable. Probably we can add versioning support to
48539     # collect2, so additional links can be useful in future.
48540     if test "$aix_use_runtimelinking" = yes; then
48541       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
48542       # instead of lib<name>.a to let people know that these are not
48543       # typical AIX shared libraries.
48544       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48545     else
48546       # We preserve .a as extension for shared libraries through AIX4.2
48547       # and later when we are not doing run time linking.
48548       library_names_spec='${libname}${release}.a $libname.a'
48549       soname_spec='${libname}${release}${shared_ext}$major'
48550     fi
48551     shlibpath_var=LIBPATH
48552   fi
48553   ;;
48554
48555 amigaos*)
48556   library_names_spec='$libname.ixlibrary $libname.a'
48557   # Create ${libname}_ixlibrary.a entries in /sys/libs.
48558   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'
48559   ;;
48560
48561 beos*)
48562   library_names_spec='${libname}${shared_ext}'
48563   dynamic_linker="$host_os ld.so"
48564   shlibpath_var=LIBRARY_PATH
48565   ;;
48566
48567 bsdi[45]*)
48568   version_type=linux
48569   need_version=no
48570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48571   soname_spec='${libname}${release}${shared_ext}$major'
48572   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
48573   shlibpath_var=LD_LIBRARY_PATH
48574   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
48575   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
48576   # the default ld.so.conf also contains /usr/contrib/lib and
48577   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
48578   # libtool to hard-code these into programs
48579   ;;
48580
48581 cygwin* | mingw* | pw32*)
48582   version_type=windows
48583   shrext_cmds=".dll"
48584   need_version=no
48585   need_lib_prefix=no
48586
48587   case $GCC,$host_os in
48588   yes,cygwin* | yes,mingw* | yes,pw32*)
48589     library_names_spec='$libname.dll.a'
48590     # DLL is installed to $(libdir)/../bin by postinstall_cmds
48591     postinstall_cmds='base_file=`basename \${file}`~
48592       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
48593       dldir=$destdir/`dirname \$dlpath`~
48594       test -d \$dldir || mkdir -p \$dldir~
48595       $install_prog $dir/$dlname \$dldir/$dlname~
48596       chmod a+x \$dldir/$dlname'
48597     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
48598       dlpath=$dir/\$dldll~
48599        $rm \$dlpath'
48600     shlibpath_overrides_runpath=yes
48601
48602     case $host_os in
48603     cygwin*)
48604       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
48605       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48606       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
48607       ;;
48608     mingw*)
48609       # MinGW DLLs use traditional 'lib' prefix
48610       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48611       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48612       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
48613         # It is most probably a Windows format PATH printed by
48614         # mingw gcc, but we are running on Cygwin. Gcc prints its search
48615         # path with ; separators, and with drive letters. We can handle the
48616         # drive letters (cygwin fileutils understands them), so leave them,
48617         # especially as we might pass files found there to a mingw objdump,
48618         # which wouldn't understand a cygwinified path. Ahh.
48619         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48620       else
48621         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
48622       fi
48623       ;;
48624     pw32*)
48625       # pw32 DLLs use 'pw' prefix rather than 'lib'
48626       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48627       ;;
48628     esac
48629     ;;
48630
48631   *)
48632     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
48633     ;;
48634   esac
48635   dynamic_linker='Win32 ld.exe'
48636   # FIXME: first we should search . and the directory the executable is in
48637   shlibpath_var=PATH
48638   ;;
48639
48640 darwin* | rhapsody*)
48641   dynamic_linker="$host_os dyld"
48642   version_type=darwin
48643   need_lib_prefix=no
48644   need_version=no
48645   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
48646   soname_spec='${libname}${release}${major}$shared_ext'
48647   shlibpath_overrides_runpath=yes
48648   shlibpath_var=DYLD_LIBRARY_PATH
48649   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
48650   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
48651   if test "$GCC" = yes; then
48652     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
48653   else
48654     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
48655   fi
48656   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
48657   ;;
48658
48659 dgux*)
48660   version_type=linux
48661   need_lib_prefix=no
48662   need_version=no
48663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
48664   soname_spec='${libname}${release}${shared_ext}$major'
48665   shlibpath_var=LD_LIBRARY_PATH
48666   ;;
48667
48668 freebsd1*)
48669   dynamic_linker=no
48670   ;;
48671
48672 kfreebsd*-gnu)
48673   version_type=linux
48674   need_lib_prefix=no
48675   need_version=no
48676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48677   soname_spec='${libname}${release}${shared_ext}$major'
48678   shlibpath_var=LD_LIBRARY_PATH
48679   shlibpath_overrides_runpath=no
48680   hardcode_into_libs=yes
48681   dynamic_linker='GNU ld.so'
48682   ;;
48683
48684 freebsd* | dragonfly*)
48685   # DragonFly does not have aout.  When/if they implement a new
48686   # versioning mechanism, adjust this.
48687   if test -x /usr/bin/objformat; then
48688     objformat=`/usr/bin/objformat`
48689   else
48690     case $host_os in
48691     freebsd[123]*) objformat=aout ;;
48692     *) objformat=elf ;;
48693     esac
48694   fi
48695   version_type=freebsd-$objformat
48696   case $version_type in
48697     freebsd-elf*)
48698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
48699       need_version=no
48700       need_lib_prefix=no
48701       ;;
48702     freebsd-*)
48703       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
48704       need_version=yes
48705       ;;
48706   esac
48707   shlibpath_var=LD_LIBRARY_PATH
48708   case $host_os in
48709   freebsd2*)
48710     shlibpath_overrides_runpath=yes
48711     ;;
48712   freebsd3.[01]* | freebsdelf3.[01]*)
48713     shlibpath_overrides_runpath=yes
48714     hardcode_into_libs=yes
48715     ;;
48716   *) # from 3.2 on
48717     shlibpath_overrides_runpath=no
48718     hardcode_into_libs=yes
48719     ;;
48720   esac
48721   ;;
48722
48723 gnu*)
48724   version_type=linux
48725   need_lib_prefix=no
48726   need_version=no
48727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
48728   soname_spec='${libname}${release}${shared_ext}$major'
48729   shlibpath_var=LD_LIBRARY_PATH
48730   hardcode_into_libs=yes
48731   ;;
48732
48733 hpux9* | hpux10* | hpux11*)
48734   # Give a soname corresponding to the major version so that dld.sl refuses to
48735   # link against other versions.
48736   version_type=sunos
48737   need_lib_prefix=no
48738   need_version=no
48739   case $host_cpu in
48740   ia64*)
48741     shrext_cmds='.so'
48742     hardcode_into_libs=yes
48743     dynamic_linker="$host_os dld.so"
48744     shlibpath_var=LD_LIBRARY_PATH
48745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48747     soname_spec='${libname}${release}${shared_ext}$major'
48748     if test "X$HPUX_IA64_MODE" = X32; then
48749       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
48750     else
48751       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
48752     fi
48753     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48754     ;;
48755    hppa*64*)
48756      shrext_cmds='.sl'
48757      hardcode_into_libs=yes
48758      dynamic_linker="$host_os dld.sl"
48759      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
48760      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48761      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48762      soname_spec='${libname}${release}${shared_ext}$major'
48763      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
48764      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48765      ;;
48766    *)
48767     shrext_cmds='.sl'
48768     dynamic_linker="$host_os dld.sl"
48769     shlibpath_var=SHLIB_PATH
48770     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
48771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48772     soname_spec='${libname}${release}${shared_ext}$major'
48773     ;;
48774   esac
48775   # HP-UX runs *really* slowly unless shared libraries are mode 555.
48776   postinstall_cmds='chmod 555 $lib'
48777   ;;
48778
48779 irix5* | irix6* | nonstopux*)
48780   case $host_os in
48781     nonstopux*) version_type=nonstopux ;;
48782     *)
48783         if test "$lt_cv_prog_gnu_ld" = yes; then
48784                 version_type=linux
48785         else
48786                 version_type=irix
48787         fi ;;
48788   esac
48789   need_lib_prefix=no
48790   need_version=no
48791   soname_spec='${libname}${release}${shared_ext}$major'
48792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
48793   case $host_os in
48794   irix5* | nonstopux*)
48795     libsuff= shlibsuff=
48796     ;;
48797   *)
48798     case $LD in # libtool.m4 will add one of these switches to LD
48799     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
48800       libsuff= shlibsuff= libmagic=32-bit;;
48801     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
48802       libsuff=32 shlibsuff=N32 libmagic=N32;;
48803     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
48804       libsuff=64 shlibsuff=64 libmagic=64-bit;;
48805     *) libsuff= shlibsuff= libmagic=never-match;;
48806     esac
48807     ;;
48808   esac
48809   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
48810   shlibpath_overrides_runpath=no
48811   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
48812   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
48813   hardcode_into_libs=yes
48814   ;;
48815
48816 # No shared lib support for Linux oldld, aout, or coff.
48817 linux*oldld* | linux*aout* | linux*coff*)
48818   dynamic_linker=no
48819   ;;
48820
48821 # This must be Linux ELF.
48822 linux*)
48823   version_type=linux
48824   need_lib_prefix=no
48825   need_version=no
48826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48827   soname_spec='${libname}${release}${shared_ext}$major'
48828   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
48829   shlibpath_var=LD_LIBRARY_PATH
48830   shlibpath_overrides_runpath=no
48831   # This implies no fast_install, which is unacceptable.
48832   # Some rework will be needed to allow for fast_install
48833   # before this can be enabled.
48834   hardcode_into_libs=yes
48835
48836   # Append ld.so.conf contents to the search path
48837   if test -f /etc/ld.so.conf; then
48838     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
48839     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
48840   fi
48841
48842   # We used to test for /lib/ld.so.1 and disable shared libraries on
48843   # powerpc, because MkLinux only supported shared libraries with the
48844   # GNU dynamic linker.  Since this was broken with cross compilers,
48845   # most powerpc-linux boxes support dynamic linking these days and
48846   # people can always --disable-shared, the test was removed, and we
48847   # assume the GNU/Linux dynamic linker is in use.
48848   dynamic_linker='GNU/Linux ld.so'
48849   ;;
48850
48851 knetbsd*-gnu)
48852   version_type=linux
48853   need_lib_prefix=no
48854   need_version=no
48855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48856   soname_spec='${libname}${release}${shared_ext}$major'
48857   shlibpath_var=LD_LIBRARY_PATH
48858   shlibpath_overrides_runpath=no
48859   hardcode_into_libs=yes
48860   dynamic_linker='GNU ld.so'
48861   ;;
48862
48863 netbsd*)
48864   version_type=sunos
48865   need_lib_prefix=no
48866   need_version=no
48867   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48869     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48870     dynamic_linker='NetBSD (a.out) ld.so'
48871   else
48872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48873     soname_spec='${libname}${release}${shared_ext}$major'
48874     dynamic_linker='NetBSD ld.elf_so'
48875   fi
48876   shlibpath_var=LD_LIBRARY_PATH
48877   shlibpath_overrides_runpath=yes
48878   hardcode_into_libs=yes
48879   ;;
48880
48881 newsos6)
48882   version_type=linux
48883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48884   shlibpath_var=LD_LIBRARY_PATH
48885   shlibpath_overrides_runpath=yes
48886   ;;
48887
48888 nto-qnx*)
48889   version_type=linux
48890   need_lib_prefix=no
48891   need_version=no
48892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48893   soname_spec='${libname}${release}${shared_ext}$major'
48894   shlibpath_var=LD_LIBRARY_PATH
48895   shlibpath_overrides_runpath=yes
48896   ;;
48897
48898 openbsd*)
48899   version_type=sunos
48900   need_lib_prefix=no
48901   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
48902   case $host_os in
48903     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
48904     *)                         need_version=no  ;;
48905   esac
48906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48908   shlibpath_var=LD_LIBRARY_PATH
48909   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48910     case $host_os in
48911       openbsd2.[89] | openbsd2.[89].*)
48912         shlibpath_overrides_runpath=no
48913         ;;
48914       *)
48915         shlibpath_overrides_runpath=yes
48916         ;;
48917       esac
48918   else
48919     shlibpath_overrides_runpath=yes
48920   fi
48921   ;;
48922
48923 os2*)
48924   libname_spec='$name'
48925   shrext_cmds=".dll"
48926   need_lib_prefix=no
48927   library_names_spec='$libname${shared_ext} $libname.a'
48928   dynamic_linker='OS/2 ld.exe'
48929   shlibpath_var=LIBPATH
48930   ;;
48931
48932 osf3* | osf4* | osf5*)
48933   version_type=osf
48934   need_lib_prefix=no
48935   need_version=no
48936   soname_spec='${libname}${release}${shared_ext}$major'
48937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48938   shlibpath_var=LD_LIBRARY_PATH
48939   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
48940   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
48941   ;;
48942
48943 sco3.2v5*)
48944   version_type=osf
48945   soname_spec='${libname}${release}${shared_ext}$major'
48946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48947   shlibpath_var=LD_LIBRARY_PATH
48948   ;;
48949
48950 solaris*)
48951   version_type=linux
48952   need_lib_prefix=no
48953   need_version=no
48954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48955   soname_spec='${libname}${release}${shared_ext}$major'
48956   shlibpath_var=LD_LIBRARY_PATH
48957   shlibpath_overrides_runpath=yes
48958   hardcode_into_libs=yes
48959   # ldd complains unless libraries are executable
48960   postinstall_cmds='chmod +x $lib'
48961   ;;
48962
48963 sunos4*)
48964   version_type=sunos
48965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48966   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
48967   shlibpath_var=LD_LIBRARY_PATH
48968   shlibpath_overrides_runpath=yes
48969   if test "$with_gnu_ld" = yes; then
48970     need_lib_prefix=no
48971   fi
48972   need_version=yes
48973   ;;
48974
48975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
48976   version_type=linux
48977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48978   soname_spec='${libname}${release}${shared_ext}$major'
48979   shlibpath_var=LD_LIBRARY_PATH
48980   case $host_vendor in
48981     sni)
48982       shlibpath_overrides_runpath=no
48983       need_lib_prefix=no
48984       export_dynamic_flag_spec='${wl}-Blargedynsym'
48985       runpath_var=LD_RUN_PATH
48986       ;;
48987     siemens)
48988       need_lib_prefix=no
48989       ;;
48990     motorola)
48991       need_lib_prefix=no
48992       need_version=no
48993       shlibpath_overrides_runpath=no
48994       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
48995       ;;
48996   esac
48997   ;;
48998
48999 sysv4*MP*)
49000   if test -d /usr/nec ;then
49001     version_type=linux
49002     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
49003     soname_spec='$libname${shared_ext}.$major'
49004     shlibpath_var=LD_LIBRARY_PATH
49005   fi
49006   ;;
49007
49008 uts4*)
49009   version_type=linux
49010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49011   soname_spec='${libname}${release}${shared_ext}$major'
49012   shlibpath_var=LD_LIBRARY_PATH
49013   ;;
49014
49015 *)
49016   dynamic_linker=no
49017   ;;
49018 esac
49019 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
49020 $as_echo "$dynamic_linker" >&6; }
49021 test "$dynamic_linker" = no && can_build_shared=no
49022
49023 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
49024 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
49025 hardcode_action_GCJ=
49026 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
49027    test -n "$runpath_var_GCJ" || \
49028    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
49029
49030   # We can hardcode non-existant directories.
49031   if test "$hardcode_direct_GCJ" != no &&
49032      # If the only mechanism to avoid hardcoding is shlibpath_var, we
49033      # have to relink, otherwise we might link with an installed library
49034      # when we should be linking with a yet-to-be-installed one
49035      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
49036      test "$hardcode_minus_L_GCJ" != no; then
49037     # Linking always hardcodes the temporary library directory.
49038     hardcode_action_GCJ=relink
49039   else
49040     # We can link without hardcoding, and we can hardcode nonexisting dirs.
49041     hardcode_action_GCJ=immediate
49042   fi
49043 else
49044   # We cannot hardcode anything, or else we can only hardcode existing
49045   # directories.
49046   hardcode_action_GCJ=unsupported
49047 fi
49048 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
49049 $as_echo "$hardcode_action_GCJ" >&6; }
49050
49051 if test "$hardcode_action_GCJ" = relink; then
49052   # Fast installation is not supported
49053   enable_fast_install=no
49054 elif test "$shlibpath_overrides_runpath" = yes ||
49055      test "$enable_shared" = no; then
49056   # Fast installation is not necessary
49057   enable_fast_install=needless
49058 fi
49059
49060 striplib=
49061 old_striplib=
49062 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
49063 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
49064 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
49065   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
49066   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
49067   { $as_echo "$as_me:$LINENO: result: yes" >&5
49068 $as_echo "yes" >&6; }
49069 else
49070 # FIXME - insert some real tests, host_os isn't really good enough
49071   case $host_os in
49072    darwin*)
49073        if test -n "$STRIP" ; then
49074          striplib="$STRIP -x"
49075          { $as_echo "$as_me:$LINENO: result: yes" >&5
49076 $as_echo "yes" >&6; }
49077        else
49078   { $as_echo "$as_me:$LINENO: result: no" >&5
49079 $as_echo "no" >&6; }
49080 fi
49081        ;;
49082    *)
49083   { $as_echo "$as_me:$LINENO: result: no" >&5
49084 $as_echo "no" >&6; }
49085     ;;
49086   esac
49087 fi
49088
49089 if test "x$enable_dlopen" != xyes; then
49090   enable_dlopen=unknown
49091   enable_dlopen_self=unknown
49092   enable_dlopen_self_static=unknown
49093 else
49094   lt_cv_dlopen=no
49095   lt_cv_dlopen_libs=
49096
49097   case $host_os in
49098   beos*)
49099     lt_cv_dlopen="load_add_on"
49100     lt_cv_dlopen_libs=
49101     lt_cv_dlopen_self=yes
49102     ;;
49103
49104   mingw* | pw32*)
49105     lt_cv_dlopen="LoadLibrary"
49106     lt_cv_dlopen_libs=
49107    ;;
49108
49109   cygwin*)
49110     lt_cv_dlopen="dlopen"
49111     lt_cv_dlopen_libs=
49112    ;;
49113
49114   darwin*)
49115   # if libdl is installed we need to link against it
49116     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49119   $as_echo_n "(cached) " >&6
49120 else
49121   ac_check_lib_save_LIBS=$LIBS
49122 LIBS="-ldl  $LIBS"
49123 cat >conftest.$ac_ext <<_ACEOF
49124 /* confdefs.h.  */
49125 _ACEOF
49126 cat confdefs.h >>conftest.$ac_ext
49127 cat >>conftest.$ac_ext <<_ACEOF
49128 /* end confdefs.h.  */
49129
49130 /* Override any GCC internal prototype to avoid an error.
49131    Use char because int might match the return type of a GCC
49132    builtin and then its argument prototype would still apply.  */
49133 #ifdef __cplusplus
49134 extern "C"
49135 #endif
49136 char dlopen ();
49137 int
49138 main ()
49139 {
49140 return dlopen ();
49141   ;
49142   return 0;
49143 }
49144 _ACEOF
49145 rm -f conftest.$ac_objext conftest$ac_exeext
49146 if { (ac_try="$ac_link"
49147 case "(($ac_try" in
49148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49149   *) ac_try_echo=$ac_try;;
49150 esac
49151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49152 $as_echo "$ac_try_echo") >&5
49153   (eval "$ac_link") 2>conftest.er1
49154   ac_status=$?
49155   grep -v '^ *+' conftest.er1 >conftest.err
49156   rm -f conftest.er1
49157   cat conftest.err >&5
49158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159   (exit $ac_status); } && {
49160          test -z "$ac_c_werror_flag" ||
49161          test ! -s conftest.err
49162        } && test -s conftest$ac_exeext && {
49163          test "$cross_compiling" = yes ||
49164          $as_test_x conftest$ac_exeext
49165        }; then
49166   ac_cv_lib_dl_dlopen=yes
49167 else
49168   $as_echo "$as_me: failed program was:" >&5
49169 sed 's/^/| /' conftest.$ac_ext >&5
49170
49171         ac_cv_lib_dl_dlopen=no
49172 fi
49173
49174 rm -rf conftest.dSYM
49175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49176       conftest$ac_exeext conftest.$ac_ext
49177 LIBS=$ac_check_lib_save_LIBS
49178 fi
49179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49182   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49183 else
49184
49185     lt_cv_dlopen="dyld"
49186     lt_cv_dlopen_libs=
49187     lt_cv_dlopen_self=yes
49188
49189 fi
49190
49191    ;;
49192
49193   *)
49194     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
49195 $as_echo_n "checking for shl_load... " >&6; }
49196 if test "${ac_cv_func_shl_load+set}" = set; then
49197   $as_echo_n "(cached) " >&6
49198 else
49199   cat >conftest.$ac_ext <<_ACEOF
49200 /* confdefs.h.  */
49201 _ACEOF
49202 cat confdefs.h >>conftest.$ac_ext
49203 cat >>conftest.$ac_ext <<_ACEOF
49204 /* end confdefs.h.  */
49205 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
49206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49207 #define shl_load innocuous_shl_load
49208
49209 /* System header to define __stub macros and hopefully few prototypes,
49210     which can conflict with char shl_load (); below.
49211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49212     <limits.h> exists even on freestanding compilers.  */
49213
49214 #ifdef __STDC__
49215 # include <limits.h>
49216 #else
49217 # include <assert.h>
49218 #endif
49219
49220 #undef shl_load
49221
49222 /* Override any GCC internal prototype to avoid an error.
49223    Use char because int might match the return type of a GCC
49224    builtin and then its argument prototype would still apply.  */
49225 #ifdef __cplusplus
49226 extern "C"
49227 #endif
49228 char shl_load ();
49229 /* The GNU C library defines this for functions which it implements
49230     to always fail with ENOSYS.  Some functions are actually named
49231     something starting with __ and the normal name is an alias.  */
49232 #if defined __stub_shl_load || defined __stub___shl_load
49233 choke me
49234 #endif
49235
49236 int
49237 main ()
49238 {
49239 return shl_load ();
49240   ;
49241   return 0;
49242 }
49243 _ACEOF
49244 rm -f conftest.$ac_objext conftest$ac_exeext
49245 if { (ac_try="$ac_link"
49246 case "(($ac_try" in
49247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49248   *) ac_try_echo=$ac_try;;
49249 esac
49250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49251 $as_echo "$ac_try_echo") >&5
49252   (eval "$ac_link") 2>conftest.er1
49253   ac_status=$?
49254   grep -v '^ *+' conftest.er1 >conftest.err
49255   rm -f conftest.er1
49256   cat conftest.err >&5
49257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49258   (exit $ac_status); } && {
49259          test -z "$ac_c_werror_flag" ||
49260          test ! -s conftest.err
49261        } && test -s conftest$ac_exeext && {
49262          test "$cross_compiling" = yes ||
49263          $as_test_x conftest$ac_exeext
49264        }; then
49265   ac_cv_func_shl_load=yes
49266 else
49267   $as_echo "$as_me: failed program was:" >&5
49268 sed 's/^/| /' conftest.$ac_ext >&5
49269
49270         ac_cv_func_shl_load=no
49271 fi
49272
49273 rm -rf conftest.dSYM
49274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49275       conftest$ac_exeext conftest.$ac_ext
49276 fi
49277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
49278 $as_echo "$ac_cv_func_shl_load" >&6; }
49279 if test "x$ac_cv_func_shl_load" = x""yes; then
49280   lt_cv_dlopen="shl_load"
49281 else
49282   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
49283 $as_echo_n "checking for shl_load in -ldld... " >&6; }
49284 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
49285   $as_echo_n "(cached) " >&6
49286 else
49287   ac_check_lib_save_LIBS=$LIBS
49288 LIBS="-ldld  $LIBS"
49289 cat >conftest.$ac_ext <<_ACEOF
49290 /* confdefs.h.  */
49291 _ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h.  */
49295
49296 /* Override any GCC internal prototype to avoid an error.
49297    Use char because int might match the return type of a GCC
49298    builtin and then its argument prototype would still apply.  */
49299 #ifdef __cplusplus
49300 extern "C"
49301 #endif
49302 char shl_load ();
49303 int
49304 main ()
49305 {
49306 return shl_load ();
49307   ;
49308   return 0;
49309 }
49310 _ACEOF
49311 rm -f conftest.$ac_objext conftest$ac_exeext
49312 if { (ac_try="$ac_link"
49313 case "(($ac_try" in
49314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49315   *) ac_try_echo=$ac_try;;
49316 esac
49317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49318 $as_echo "$ac_try_echo") >&5
49319   (eval "$ac_link") 2>conftest.er1
49320   ac_status=$?
49321   grep -v '^ *+' conftest.er1 >conftest.err
49322   rm -f conftest.er1
49323   cat conftest.err >&5
49324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49325   (exit $ac_status); } && {
49326          test -z "$ac_c_werror_flag" ||
49327          test ! -s conftest.err
49328        } && test -s conftest$ac_exeext && {
49329          test "$cross_compiling" = yes ||
49330          $as_test_x conftest$ac_exeext
49331        }; then
49332   ac_cv_lib_dld_shl_load=yes
49333 else
49334   $as_echo "$as_me: failed program was:" >&5
49335 sed 's/^/| /' conftest.$ac_ext >&5
49336
49337         ac_cv_lib_dld_shl_load=no
49338 fi
49339
49340 rm -rf conftest.dSYM
49341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49342       conftest$ac_exeext conftest.$ac_ext
49343 LIBS=$ac_check_lib_save_LIBS
49344 fi
49345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
49346 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
49347 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
49348   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
49349 else
49350   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
49351 $as_echo_n "checking for dlopen... " >&6; }
49352 if test "${ac_cv_func_dlopen+set}" = set; then
49353   $as_echo_n "(cached) " >&6
49354 else
49355   cat >conftest.$ac_ext <<_ACEOF
49356 /* confdefs.h.  */
49357 _ACEOF
49358 cat confdefs.h >>conftest.$ac_ext
49359 cat >>conftest.$ac_ext <<_ACEOF
49360 /* end confdefs.h.  */
49361 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
49362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49363 #define dlopen innocuous_dlopen
49364
49365 /* System header to define __stub macros and hopefully few prototypes,
49366     which can conflict with char dlopen (); below.
49367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49368     <limits.h> exists even on freestanding compilers.  */
49369
49370 #ifdef __STDC__
49371 # include <limits.h>
49372 #else
49373 # include <assert.h>
49374 #endif
49375
49376 #undef dlopen
49377
49378 /* Override any GCC internal prototype to avoid an error.
49379    Use char because int might match the return type of a GCC
49380    builtin and then its argument prototype would still apply.  */
49381 #ifdef __cplusplus
49382 extern "C"
49383 #endif
49384 char dlopen ();
49385 /* The GNU C library defines this for functions which it implements
49386     to always fail with ENOSYS.  Some functions are actually named
49387     something starting with __ and the normal name is an alias.  */
49388 #if defined __stub_dlopen || defined __stub___dlopen
49389 choke me
49390 #endif
49391
49392 int
49393 main ()
49394 {
49395 return dlopen ();
49396   ;
49397   return 0;
49398 }
49399 _ACEOF
49400 rm -f conftest.$ac_objext conftest$ac_exeext
49401 if { (ac_try="$ac_link"
49402 case "(($ac_try" in
49403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49404   *) ac_try_echo=$ac_try;;
49405 esac
49406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49407 $as_echo "$ac_try_echo") >&5
49408   (eval "$ac_link") 2>conftest.er1
49409   ac_status=$?
49410   grep -v '^ *+' conftest.er1 >conftest.err
49411   rm -f conftest.er1
49412   cat conftest.err >&5
49413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49414   (exit $ac_status); } && {
49415          test -z "$ac_c_werror_flag" ||
49416          test ! -s conftest.err
49417        } && test -s conftest$ac_exeext && {
49418          test "$cross_compiling" = yes ||
49419          $as_test_x conftest$ac_exeext
49420        }; then
49421   ac_cv_func_dlopen=yes
49422 else
49423   $as_echo "$as_me: failed program was:" >&5
49424 sed 's/^/| /' conftest.$ac_ext >&5
49425
49426         ac_cv_func_dlopen=no
49427 fi
49428
49429 rm -rf conftest.dSYM
49430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49431       conftest$ac_exeext conftest.$ac_ext
49432 fi
49433 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
49434 $as_echo "$ac_cv_func_dlopen" >&6; }
49435 if test "x$ac_cv_func_dlopen" = x""yes; then
49436   lt_cv_dlopen="dlopen"
49437 else
49438   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49441   $as_echo_n "(cached) " >&6
49442 else
49443   ac_check_lib_save_LIBS=$LIBS
49444 LIBS="-ldl  $LIBS"
49445 cat >conftest.$ac_ext <<_ACEOF
49446 /* confdefs.h.  */
49447 _ACEOF
49448 cat confdefs.h >>conftest.$ac_ext
49449 cat >>conftest.$ac_ext <<_ACEOF
49450 /* end confdefs.h.  */
49451
49452 /* Override any GCC internal prototype to avoid an error.
49453    Use char because int might match the return type of a GCC
49454    builtin and then its argument prototype would still apply.  */
49455 #ifdef __cplusplus
49456 extern "C"
49457 #endif
49458 char dlopen ();
49459 int
49460 main ()
49461 {
49462 return dlopen ();
49463   ;
49464   return 0;
49465 }
49466 _ACEOF
49467 rm -f conftest.$ac_objext conftest$ac_exeext
49468 if { (ac_try="$ac_link"
49469 case "(($ac_try" in
49470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49471   *) ac_try_echo=$ac_try;;
49472 esac
49473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49474 $as_echo "$ac_try_echo") >&5
49475   (eval "$ac_link") 2>conftest.er1
49476   ac_status=$?
49477   grep -v '^ *+' conftest.er1 >conftest.err
49478   rm -f conftest.er1
49479   cat conftest.err >&5
49480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49481   (exit $ac_status); } && {
49482          test -z "$ac_c_werror_flag" ||
49483          test ! -s conftest.err
49484        } && test -s conftest$ac_exeext && {
49485          test "$cross_compiling" = yes ||
49486          $as_test_x conftest$ac_exeext
49487        }; then
49488   ac_cv_lib_dl_dlopen=yes
49489 else
49490   $as_echo "$as_me: failed program was:" >&5
49491 sed 's/^/| /' conftest.$ac_ext >&5
49492
49493         ac_cv_lib_dl_dlopen=no
49494 fi
49495
49496 rm -rf conftest.dSYM
49497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49498       conftest$ac_exeext conftest.$ac_ext
49499 LIBS=$ac_check_lib_save_LIBS
49500 fi
49501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49502 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49503 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49504   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49505 else
49506   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
49507 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
49508 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
49509   $as_echo_n "(cached) " >&6
49510 else
49511   ac_check_lib_save_LIBS=$LIBS
49512 LIBS="-lsvld  $LIBS"
49513 cat >conftest.$ac_ext <<_ACEOF
49514 /* confdefs.h.  */
49515 _ACEOF
49516 cat confdefs.h >>conftest.$ac_ext
49517 cat >>conftest.$ac_ext <<_ACEOF
49518 /* end confdefs.h.  */
49519
49520 /* Override any GCC internal prototype to avoid an error.
49521    Use char because int might match the return type of a GCC
49522    builtin and then its argument prototype would still apply.  */
49523 #ifdef __cplusplus
49524 extern "C"
49525 #endif
49526 char dlopen ();
49527 int
49528 main ()
49529 {
49530 return dlopen ();
49531   ;
49532   return 0;
49533 }
49534 _ACEOF
49535 rm -f conftest.$ac_objext conftest$ac_exeext
49536 if { (ac_try="$ac_link"
49537 case "(($ac_try" in
49538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49539   *) ac_try_echo=$ac_try;;
49540 esac
49541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49542 $as_echo "$ac_try_echo") >&5
49543   (eval "$ac_link") 2>conftest.er1
49544   ac_status=$?
49545   grep -v '^ *+' conftest.er1 >conftest.err
49546   rm -f conftest.er1
49547   cat conftest.err >&5
49548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49549   (exit $ac_status); } && {
49550          test -z "$ac_c_werror_flag" ||
49551          test ! -s conftest.err
49552        } && test -s conftest$ac_exeext && {
49553          test "$cross_compiling" = yes ||
49554          $as_test_x conftest$ac_exeext
49555        }; then
49556   ac_cv_lib_svld_dlopen=yes
49557 else
49558   $as_echo "$as_me: failed program was:" >&5
49559 sed 's/^/| /' conftest.$ac_ext >&5
49560
49561         ac_cv_lib_svld_dlopen=no
49562 fi
49563
49564 rm -rf conftest.dSYM
49565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49566       conftest$ac_exeext conftest.$ac_ext
49567 LIBS=$ac_check_lib_save_LIBS
49568 fi
49569 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
49570 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
49571 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
49572   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
49573 else
49574   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
49575 $as_echo_n "checking for dld_link in -ldld... " >&6; }
49576 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
49577   $as_echo_n "(cached) " >&6
49578 else
49579   ac_check_lib_save_LIBS=$LIBS
49580 LIBS="-ldld  $LIBS"
49581 cat >conftest.$ac_ext <<_ACEOF
49582 /* confdefs.h.  */
49583 _ACEOF
49584 cat confdefs.h >>conftest.$ac_ext
49585 cat >>conftest.$ac_ext <<_ACEOF
49586 /* end confdefs.h.  */
49587
49588 /* Override any GCC internal prototype to avoid an error.
49589    Use char because int might match the return type of a GCC
49590    builtin and then its argument prototype would still apply.  */
49591 #ifdef __cplusplus
49592 extern "C"
49593 #endif
49594 char dld_link ();
49595 int
49596 main ()
49597 {
49598 return dld_link ();
49599   ;
49600   return 0;
49601 }
49602 _ACEOF
49603 rm -f conftest.$ac_objext conftest$ac_exeext
49604 if { (ac_try="$ac_link"
49605 case "(($ac_try" in
49606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49607   *) ac_try_echo=$ac_try;;
49608 esac
49609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49610 $as_echo "$ac_try_echo") >&5
49611   (eval "$ac_link") 2>conftest.er1
49612   ac_status=$?
49613   grep -v '^ *+' conftest.er1 >conftest.err
49614   rm -f conftest.er1
49615   cat conftest.err >&5
49616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49617   (exit $ac_status); } && {
49618          test -z "$ac_c_werror_flag" ||
49619          test ! -s conftest.err
49620        } && test -s conftest$ac_exeext && {
49621          test "$cross_compiling" = yes ||
49622          $as_test_x conftest$ac_exeext
49623        }; then
49624   ac_cv_lib_dld_dld_link=yes
49625 else
49626   $as_echo "$as_me: failed program was:" >&5
49627 sed 's/^/| /' conftest.$ac_ext >&5
49628
49629         ac_cv_lib_dld_dld_link=no
49630 fi
49631
49632 rm -rf conftest.dSYM
49633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49634       conftest$ac_exeext conftest.$ac_ext
49635 LIBS=$ac_check_lib_save_LIBS
49636 fi
49637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
49638 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
49639 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
49640   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
49641 fi
49642
49643
49644 fi
49645
49646
49647 fi
49648
49649
49650 fi
49651
49652
49653 fi
49654
49655
49656 fi
49657
49658     ;;
49659   esac
49660
49661   if test "x$lt_cv_dlopen" != xno; then
49662     enable_dlopen=yes
49663   else
49664     enable_dlopen=no
49665   fi
49666
49667   case $lt_cv_dlopen in
49668   dlopen)
49669     save_CPPFLAGS="$CPPFLAGS"
49670     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
49671
49672     save_LDFLAGS="$LDFLAGS"
49673     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
49674
49675     save_LIBS="$LIBS"
49676     LIBS="$lt_cv_dlopen_libs $LIBS"
49677
49678     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
49679 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
49680 if test "${lt_cv_dlopen_self+set}" = set; then
49681   $as_echo_n "(cached) " >&6
49682 else
49683           if test "$cross_compiling" = yes; then :
49684   lt_cv_dlopen_self=cross
49685 else
49686   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49687   lt_status=$lt_dlunknown
49688   cat > conftest.$ac_ext <<EOF
49689 #line 49689 "configure"
49690 #include "confdefs.h"
49691
49692 #if HAVE_DLFCN_H
49693 #include <dlfcn.h>
49694 #endif
49695
49696 #include <stdio.h>
49697
49698 #ifdef RTLD_GLOBAL
49699 #  define LT_DLGLOBAL           RTLD_GLOBAL
49700 #else
49701 #  ifdef DL_GLOBAL
49702 #    define LT_DLGLOBAL         DL_GLOBAL
49703 #  else
49704 #    define LT_DLGLOBAL         0
49705 #  endif
49706 #endif
49707
49708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49709    find out it does not work in some platform. */
49710 #ifndef LT_DLLAZY_OR_NOW
49711 #  ifdef RTLD_LAZY
49712 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
49713 #  else
49714 #    ifdef DL_LAZY
49715 #      define LT_DLLAZY_OR_NOW          DL_LAZY
49716 #    else
49717 #      ifdef RTLD_NOW
49718 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
49719 #      else
49720 #        ifdef DL_NOW
49721 #          define LT_DLLAZY_OR_NOW      DL_NOW
49722 #        else
49723 #          define LT_DLLAZY_OR_NOW      0
49724 #        endif
49725 #      endif
49726 #    endif
49727 #  endif
49728 #endif
49729
49730 #ifdef __cplusplus
49731 extern "C" void exit (int);
49732 #endif
49733
49734 void fnord() { int i=42;}
49735 int main ()
49736 {
49737   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49738   int status = $lt_dlunknown;
49739
49740   if (self)
49741     {
49742       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
49743       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49744       /* dlclose (self); */
49745     }
49746
49747     exit (status);
49748 }
49749 EOF
49750   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49751   (eval $ac_link) 2>&5
49752   ac_status=$?
49753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49755     (./conftest; exit; ) >&5 2>/dev/null
49756     lt_status=$?
49757     case x$lt_status in
49758       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
49759       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
49760       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
49761     esac
49762   else :
49763     # compilation failed
49764     lt_cv_dlopen_self=no
49765   fi
49766 fi
49767 rm -fr conftest*
49768
49769
49770 fi
49771 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
49772 $as_echo "$lt_cv_dlopen_self" >&6; }
49773
49774     if test "x$lt_cv_dlopen_self" = xyes; then
49775       LDFLAGS="$LDFLAGS $link_static_flag"
49776       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
49777 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
49778 if test "${lt_cv_dlopen_self_static+set}" = set; then
49779   $as_echo_n "(cached) " >&6
49780 else
49781           if test "$cross_compiling" = yes; then :
49782   lt_cv_dlopen_self_static=cross
49783 else
49784   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49785   lt_status=$lt_dlunknown
49786   cat > conftest.$ac_ext <<EOF
49787 #line 49787 "configure"
49788 #include "confdefs.h"
49789
49790 #if HAVE_DLFCN_H
49791 #include <dlfcn.h>
49792 #endif
49793
49794 #include <stdio.h>
49795
49796 #ifdef RTLD_GLOBAL
49797 #  define LT_DLGLOBAL           RTLD_GLOBAL
49798 #else
49799 #  ifdef DL_GLOBAL
49800 #    define LT_DLGLOBAL         DL_GLOBAL
49801 #  else
49802 #    define LT_DLGLOBAL         0
49803 #  endif
49804 #endif
49805
49806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49807    find out it does not work in some platform. */
49808 #ifndef LT_DLLAZY_OR_NOW
49809 #  ifdef RTLD_LAZY
49810 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
49811 #  else
49812 #    ifdef DL_LAZY
49813 #      define LT_DLLAZY_OR_NOW          DL_LAZY
49814 #    else
49815 #      ifdef RTLD_NOW
49816 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
49817 #      else
49818 #        ifdef DL_NOW
49819 #          define LT_DLLAZY_OR_NOW      DL_NOW
49820 #        else
49821 #          define LT_DLLAZY_OR_NOW      0
49822 #        endif
49823 #      endif
49824 #    endif
49825 #  endif
49826 #endif
49827
49828 #ifdef __cplusplus
49829 extern "C" void exit (int);
49830 #endif
49831
49832 void fnord() { int i=42;}
49833 int main ()
49834 {
49835   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49836   int status = $lt_dlunknown;
49837
49838   if (self)
49839     {
49840       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
49841       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49842       /* dlclose (self); */
49843     }
49844
49845     exit (status);
49846 }
49847 EOF
49848   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49849   (eval $ac_link) 2>&5
49850   ac_status=$?
49851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49852   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49853     (./conftest; exit; ) >&5 2>/dev/null
49854     lt_status=$?
49855     case x$lt_status in
49856       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
49857       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
49858       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
49859     esac
49860   else :
49861     # compilation failed
49862     lt_cv_dlopen_self_static=no
49863   fi
49864 fi
49865 rm -fr conftest*
49866
49867
49868 fi
49869 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
49870 $as_echo "$lt_cv_dlopen_self_static" >&6; }
49871     fi
49872
49873     CPPFLAGS="$save_CPPFLAGS"
49874     LDFLAGS="$save_LDFLAGS"
49875     LIBS="$save_LIBS"
49876     ;;
49877   esac
49878
49879   case $lt_cv_dlopen_self in
49880   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
49881   *) enable_dlopen_self=unknown ;;
49882   esac
49883
49884   case $lt_cv_dlopen_self_static in
49885   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
49886   *) enable_dlopen_self_static=unknown ;;
49887   esac
49888 fi
49889
49890
49891 # The else clause should only fire when bootstrapping the
49892 # libtool distribution, otherwise you forgot to ship ltmain.sh
49893 # with your package, and you will get complaints that there are
49894 # no rules to generate ltmain.sh.
49895 if test -f "$ltmain"; then
49896   # See if we are running on zsh, and set the options which allow our commands through
49897   # without removal of \ escapes.
49898   if test -n "${ZSH_VERSION+set}" ; then
49899     setopt NO_GLOB_SUBST
49900   fi
49901   # Now quote all the things that may contain metacharacters while being
49902   # careful not to overquote the AC_SUBSTed values.  We take copies of the
49903   # variables and quote the copies for generation of the libtool script.
49904   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
49905     SED SHELL STRIP \
49906     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
49907     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
49908     deplibs_check_method reload_flag reload_cmds need_locks \
49909     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
49910     lt_cv_sys_global_symbol_to_c_name_address \
49911     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
49912     old_postinstall_cmds old_postuninstall_cmds \
49913     compiler_GCJ \
49914     CC_GCJ \
49915     LD_GCJ \
49916     lt_prog_compiler_wl_GCJ \
49917     lt_prog_compiler_pic_GCJ \
49918     lt_prog_compiler_static_GCJ \
49919     lt_prog_compiler_no_builtin_flag_GCJ \
49920     export_dynamic_flag_spec_GCJ \
49921     thread_safe_flag_spec_GCJ \
49922     whole_archive_flag_spec_GCJ \
49923     enable_shared_with_static_runtimes_GCJ \
49924     old_archive_cmds_GCJ \
49925     old_archive_from_new_cmds_GCJ \
49926     predep_objects_GCJ \
49927     postdep_objects_GCJ \
49928     predeps_GCJ \
49929     postdeps_GCJ \
49930     compiler_lib_search_path_GCJ \
49931     archive_cmds_GCJ \
49932     archive_expsym_cmds_GCJ \
49933     postinstall_cmds_GCJ \
49934     postuninstall_cmds_GCJ \
49935     old_archive_from_expsyms_cmds_GCJ \
49936     allow_undefined_flag_GCJ \
49937     no_undefined_flag_GCJ \
49938     export_symbols_cmds_GCJ \
49939     hardcode_libdir_flag_spec_GCJ \
49940     hardcode_libdir_flag_spec_ld_GCJ \
49941     hardcode_libdir_separator_GCJ \
49942     hardcode_automatic_GCJ \
49943     module_cmds_GCJ \
49944     module_expsym_cmds_GCJ \
49945     lt_cv_prog_compiler_c_o_GCJ \
49946     exclude_expsyms_GCJ \
49947     include_expsyms_GCJ; do
49948
49949     case $var in
49950     old_archive_cmds_GCJ | \
49951     old_archive_from_new_cmds_GCJ | \
49952     archive_cmds_GCJ | \
49953     archive_expsym_cmds_GCJ | \
49954     module_cmds_GCJ | \
49955     module_expsym_cmds_GCJ | \
49956     old_archive_from_expsyms_cmds_GCJ | \
49957     export_symbols_cmds_GCJ | \
49958     extract_expsyms_cmds | reload_cmds | finish_cmds | \
49959     postinstall_cmds | postuninstall_cmds | \
49960     old_postinstall_cmds | old_postuninstall_cmds | \
49961     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
49962       # Double-quote double-evaled strings.
49963       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
49964       ;;
49965     *)
49966       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
49967       ;;
49968     esac
49969   done
49970
49971   case $lt_echo in
49972   *'\$0 --fallback-echo"')
49973     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
49974     ;;
49975   esac
49976
49977 cfgfile="$ofile"
49978
49979   cat <<__EOF__ >> "$cfgfile"
49980 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
49981
49982 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
49983
49984 # Shell to use when invoking shell scripts.
49985 SHELL=$lt_SHELL
49986
49987 # Whether or not to build shared libraries.
49988 build_libtool_libs=$enable_shared
49989
49990 # Whether or not to build static libraries.
49991 build_old_libs=$enable_static
49992
49993 # Whether or not to add -lc for building shared libraries.
49994 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
49995
49996 # Whether or not to disallow shared libs when runtime libs are static
49997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
49998
49999 # Whether or not to optimize for fast installation.
50000 fast_install=$enable_fast_install
50001
50002 # The host system.
50003 host_alias=$host_alias
50004 host=$host
50005 host_os=$host_os
50006
50007 # The build system.
50008 build_alias=$build_alias
50009 build=$build
50010 build_os=$build_os
50011
50012 # An echo program that does not interpret backslashes.
50013 echo=$lt_echo
50014
50015 # The archiver.
50016 AR=$lt_AR
50017 AR_FLAGS=$lt_AR_FLAGS
50018
50019 # A C compiler.
50020 LTCC=$lt_LTCC
50021
50022 # A language-specific compiler.
50023 CC=$lt_compiler_GCJ
50024
50025 # Is the compiler the GNU C compiler?
50026 with_gcc=$GCC_GCJ
50027
50028 # An ERE matcher.
50029 EGREP=$lt_EGREP
50030
50031 # The linker used to build libraries.
50032 LD=$lt_LD_GCJ
50033
50034 # Whether we need hard or soft links.
50035 LN_S=$lt_LN_S
50036
50037 # A BSD-compatible nm program.
50038 NM=$lt_NM
50039
50040 # A symbol stripping program
50041 STRIP=$lt_STRIP
50042
50043 # Used to examine libraries when file_magic_cmd begins "file"
50044 MAGIC_CMD=$MAGIC_CMD
50045
50046 # Used on cygwin: DLL creation program.
50047 DLLTOOL="$DLLTOOL"
50048
50049 # Used on cygwin: object dumper.
50050 OBJDUMP="$OBJDUMP"
50051
50052 # Used on cygwin: assembler.
50053 AS="$AS"
50054
50055 # The name of the directory that contains temporary libtool files.
50056 objdir=$objdir
50057
50058 # How to create reloadable object files.
50059 reload_flag=$lt_reload_flag
50060 reload_cmds=$lt_reload_cmds
50061
50062 # How to pass a linker flag through the compiler.
50063 wl=$lt_lt_prog_compiler_wl_GCJ
50064
50065 # Object file suffix (normally "o").
50066 objext="$ac_objext"
50067
50068 # Old archive suffix (normally "a").
50069 libext="$libext"
50070
50071 # Shared library suffix (normally ".so").
50072 shrext_cmds='$shrext_cmds'
50073
50074 # Executable file suffix (normally "").
50075 exeext="$exeext"
50076
50077 # Additional compiler flags for building library objects.
50078 pic_flag=$lt_lt_prog_compiler_pic_GCJ
50079 pic_mode=$pic_mode
50080
50081 # What is the maximum length of a command?
50082 max_cmd_len=$lt_cv_sys_max_cmd_len
50083
50084 # Does compiler simultaneously support -c and -o options?
50085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
50086
50087 # Must we lock files when doing compilation?
50088 need_locks=$lt_need_locks
50089
50090 # Do we need the lib prefix for modules?
50091 need_lib_prefix=$need_lib_prefix
50092
50093 # Do we need a version for libraries?
50094 need_version=$need_version
50095
50096 # Whether dlopen is supported.
50097 dlopen_support=$enable_dlopen
50098
50099 # Whether dlopen of programs is supported.
50100 dlopen_self=$enable_dlopen_self
50101
50102 # Whether dlopen of statically linked programs is supported.
50103 dlopen_self_static=$enable_dlopen_self_static
50104
50105 # Compiler flag to prevent dynamic linking.
50106 link_static_flag=$lt_lt_prog_compiler_static_GCJ
50107
50108 # Compiler flag to turn off builtin functions.
50109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
50110
50111 # Compiler flag to allow reflexive dlopens.
50112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
50113
50114 # Compiler flag to generate shared objects directly from archives.
50115 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
50116
50117 # Compiler flag to generate thread-safe objects.
50118 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
50119
50120 # Library versioning type.
50121 version_type=$version_type
50122
50123 # Format of library name prefix.
50124 libname_spec=$lt_libname_spec
50125
50126 # List of archive names.  First name is the real one, the rest are links.
50127 # The last name is the one that the linker finds with -lNAME.
50128 library_names_spec=$lt_library_names_spec
50129
50130 # The coded name of the library, if different from the real name.
50131 soname_spec=$lt_soname_spec
50132
50133 # Commands used to build and install an old-style archive.
50134 RANLIB=$lt_RANLIB
50135 old_archive_cmds=$lt_old_archive_cmds_GCJ
50136 old_postinstall_cmds=$lt_old_postinstall_cmds
50137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50138
50139 # Create an old-style archive from a shared archive.
50140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
50141
50142 # Create a temporary old-style archive to link instead of a shared archive.
50143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
50144
50145 # Commands used to build and install a shared archive.
50146 archive_cmds=$lt_archive_cmds_GCJ
50147 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
50148 postinstall_cmds=$lt_postinstall_cmds
50149 postuninstall_cmds=$lt_postuninstall_cmds
50150
50151 # Commands used to build a loadable module (assumed same as above if empty)
50152 module_cmds=$lt_module_cmds_GCJ
50153 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
50154
50155 # Commands to strip libraries.
50156 old_striplib=$lt_old_striplib
50157 striplib=$lt_striplib
50158
50159 # Dependencies to place before the objects being linked to create a
50160 # shared library.
50161 predep_objects=$lt_predep_objects_GCJ
50162
50163 # Dependencies to place after the objects being linked to create a
50164 # shared library.
50165 postdep_objects=$lt_postdep_objects_GCJ
50166
50167 # Dependencies to place before the objects being linked to create a
50168 # shared library.
50169 predeps=$lt_predeps_GCJ
50170
50171 # Dependencies to place after the objects being linked to create a
50172 # shared library.
50173 postdeps=$lt_postdeps_GCJ
50174
50175 # The library search path used internally by the compiler when linking
50176 # a shared library.
50177 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
50178
50179 # Method to check whether dependent libraries are shared objects.
50180 deplibs_check_method=$lt_deplibs_check_method
50181
50182 # Command to use when deplibs_check_method == file_magic.
50183 file_magic_cmd=$lt_file_magic_cmd
50184
50185 # Flag that allows shared libraries with undefined symbols to be built.
50186 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
50187
50188 # Flag that forces no undefined symbols.
50189 no_undefined_flag=$lt_no_undefined_flag_GCJ
50190
50191 # Commands used to finish a libtool library installation in a directory.
50192 finish_cmds=$lt_finish_cmds
50193
50194 # Same as above, but a single script fragment to be evaled but not shown.
50195 finish_eval=$lt_finish_eval
50196
50197 # Take the output of nm and produce a listing of raw symbols and C names.
50198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50199
50200 # Transform the output of nm in a proper C declaration
50201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50202
50203 # Transform the output of nm in a C name address pair
50204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50205
50206 # This is the shared library runtime path variable.
50207 runpath_var=$runpath_var
50208
50209 # This is the shared library path variable.
50210 shlibpath_var=$shlibpath_var
50211
50212 # Is shlibpath searched before the hard-coded library search path?
50213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50214
50215 # How to hardcode a shared library path into an executable.
50216 hardcode_action=$hardcode_action_GCJ
50217
50218 # Whether we should hardcode library paths into libraries.
50219 hardcode_into_libs=$hardcode_into_libs
50220
50221 # Flag to hardcode \$libdir into a binary during linking.
50222 # This must work even if \$libdir does not exist.
50223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
50224
50225 # If ld is used when linking, flag to hardcode \$libdir into
50226 # a binary during linking. This must work even if \$libdir does
50227 # not exist.
50228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
50229
50230 # Whether we need a single -rpath flag with a separated argument.
50231 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
50232
50233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50234 # resulting binary.
50235 hardcode_direct=$hardcode_direct_GCJ
50236
50237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50238 # resulting binary.
50239 hardcode_minus_L=$hardcode_minus_L_GCJ
50240
50241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50242 # the resulting binary.
50243 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
50244
50245 # Set to yes if building a shared library automatically hardcodes DIR into the library
50246 # and all subsequent libraries and executables linked against it.
50247 hardcode_automatic=$hardcode_automatic_GCJ
50248
50249 # Variables whose values should be saved in libtool wrapper scripts and
50250 # restored at relink time.
50251 variables_saved_for_relink="$variables_saved_for_relink"
50252
50253 # Whether libtool must link a program against all its dependency libraries.
50254 link_all_deplibs=$link_all_deplibs_GCJ
50255
50256 # Compile-time system search path for libraries
50257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50258
50259 # Run-time system search path for libraries
50260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50261
50262 # Fix the shell variable \$srcfile for the compiler.
50263 fix_srcfile_path="$fix_srcfile_path_GCJ"
50264
50265 # Set to yes if exported symbols are required.
50266 always_export_symbols=$always_export_symbols_GCJ
50267
50268 # The commands to list exported symbols.
50269 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
50270
50271 # The commands to extract the exported symbol list from a shared archive.
50272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50273
50274 # Symbols that should not be listed in the preloaded symbols.
50275 exclude_expsyms=$lt_exclude_expsyms_GCJ
50276
50277 # Symbols that must always be exported.
50278 include_expsyms=$lt_include_expsyms_GCJ
50279
50280 # ### END LIBTOOL TAG CONFIG: $tagname
50281
50282 __EOF__
50283
50284
50285 else
50286   # If there is no Makefile yet, we rely on a make rule to execute
50287   # `config.status --recheck' to rerun these tests and create the
50288   # libtool script then.
50289   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50290   if test -f "$ltmain_in"; then
50291     test -f Makefile && make "$ltmain"
50292   fi
50293 fi
50294
50295
50296 ac_ext=c
50297 ac_cpp='$CPP $CPPFLAGS'
50298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50301
50302 CC="$lt_save_CC"
50303
50304         else
50305           tagname=""
50306         fi
50307         ;;
50308
50309       RC)
50310
50311
50312 # Source file extension for RC test sources.
50313 ac_ext=rc
50314
50315 # Object file extension for compiled RC test sources.
50316 objext=o
50317 objext_RC=$objext
50318
50319 # Code to be used in simple compile tests
50320 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
50321
50322 # Code to be used in simple link tests
50323 lt_simple_link_test_code="$lt_simple_compile_test_code"
50324
50325 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
50326
50327 # If no C compiler was specified, use CC.
50328 LTCC=${LTCC-"$CC"}
50329
50330 # Allow CC to be a program name with arguments.
50331 compiler=$CC
50332
50333
50334 # save warnings/boilerplate of simple test code
50335 ac_outfile=conftest.$ac_objext
50336 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
50337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50338 _lt_compiler_boilerplate=`cat conftest.err`
50339 $rm conftest*
50340
50341 ac_outfile=conftest.$ac_objext
50342 printf "$lt_simple_link_test_code" >conftest.$ac_ext
50343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50344 _lt_linker_boilerplate=`cat conftest.err`
50345 $rm conftest*
50346
50347
50348 # Allow CC to be a program name with arguments.
50349 lt_save_CC="$CC"
50350 CC=${RC-"windres"}
50351 compiler=$CC
50352 compiler_RC=$CC
50353 for cc_temp in $compiler""; do
50354   case $cc_temp in
50355     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
50356     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
50357     \-*) ;;
50358     *) break;;
50359   esac
50360 done
50361 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
50362
50363 lt_cv_prog_compiler_c_o_RC=yes
50364
50365 # The else clause should only fire when bootstrapping the
50366 # libtool distribution, otherwise you forgot to ship ltmain.sh
50367 # with your package, and you will get complaints that there are
50368 # no rules to generate ltmain.sh.
50369 if test -f "$ltmain"; then
50370   # See if we are running on zsh, and set the options which allow our commands through
50371   # without removal of \ escapes.
50372   if test -n "${ZSH_VERSION+set}" ; then
50373     setopt NO_GLOB_SUBST
50374   fi
50375   # Now quote all the things that may contain metacharacters while being
50376   # careful not to overquote the AC_SUBSTed values.  We take copies of the
50377   # variables and quote the copies for generation of the libtool script.
50378   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
50379     SED SHELL STRIP \
50380     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
50381     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
50382     deplibs_check_method reload_flag reload_cmds need_locks \
50383     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
50384     lt_cv_sys_global_symbol_to_c_name_address \
50385     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
50386     old_postinstall_cmds old_postuninstall_cmds \
50387     compiler_RC \
50388     CC_RC \
50389     LD_RC \
50390     lt_prog_compiler_wl_RC \
50391     lt_prog_compiler_pic_RC \
50392     lt_prog_compiler_static_RC \
50393     lt_prog_compiler_no_builtin_flag_RC \
50394     export_dynamic_flag_spec_RC \
50395     thread_safe_flag_spec_RC \
50396     whole_archive_flag_spec_RC \
50397     enable_shared_with_static_runtimes_RC \
50398     old_archive_cmds_RC \
50399     old_archive_from_new_cmds_RC \
50400     predep_objects_RC \
50401     postdep_objects_RC \
50402     predeps_RC \
50403     postdeps_RC \
50404     compiler_lib_search_path_RC \
50405     archive_cmds_RC \
50406     archive_expsym_cmds_RC \
50407     postinstall_cmds_RC \
50408     postuninstall_cmds_RC \
50409     old_archive_from_expsyms_cmds_RC \
50410     allow_undefined_flag_RC \
50411     no_undefined_flag_RC \
50412     export_symbols_cmds_RC \
50413     hardcode_libdir_flag_spec_RC \
50414     hardcode_libdir_flag_spec_ld_RC \
50415     hardcode_libdir_separator_RC \
50416     hardcode_automatic_RC \
50417     module_cmds_RC \
50418     module_expsym_cmds_RC \
50419     lt_cv_prog_compiler_c_o_RC \
50420     exclude_expsyms_RC \
50421     include_expsyms_RC; do
50422
50423     case $var in
50424     old_archive_cmds_RC | \
50425     old_archive_from_new_cmds_RC | \
50426     archive_cmds_RC | \
50427     archive_expsym_cmds_RC | \
50428     module_cmds_RC | \
50429     module_expsym_cmds_RC | \
50430     old_archive_from_expsyms_cmds_RC | \
50431     export_symbols_cmds_RC | \
50432     extract_expsyms_cmds | reload_cmds | finish_cmds | \
50433     postinstall_cmds | postuninstall_cmds | \
50434     old_postinstall_cmds | old_postuninstall_cmds | \
50435     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
50436       # Double-quote double-evaled strings.
50437       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
50438       ;;
50439     *)
50440       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
50441       ;;
50442     esac
50443   done
50444
50445   case $lt_echo in
50446   *'\$0 --fallback-echo"')
50447     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
50448     ;;
50449   esac
50450
50451 cfgfile="$ofile"
50452
50453   cat <<__EOF__ >> "$cfgfile"
50454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
50455
50456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50457
50458 # Shell to use when invoking shell scripts.
50459 SHELL=$lt_SHELL
50460
50461 # Whether or not to build shared libraries.
50462 build_libtool_libs=$enable_shared
50463
50464 # Whether or not to build static libraries.
50465 build_old_libs=$enable_static
50466
50467 # Whether or not to add -lc for building shared libraries.
50468 build_libtool_need_lc=$archive_cmds_need_lc_RC
50469
50470 # Whether or not to disallow shared libs when runtime libs are static
50471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
50472
50473 # Whether or not to optimize for fast installation.
50474 fast_install=$enable_fast_install
50475
50476 # The host system.
50477 host_alias=$host_alias
50478 host=$host
50479 host_os=$host_os
50480
50481 # The build system.
50482 build_alias=$build_alias
50483 build=$build
50484 build_os=$build_os
50485
50486 # An echo program that does not interpret backslashes.
50487 echo=$lt_echo
50488
50489 # The archiver.
50490 AR=$lt_AR
50491 AR_FLAGS=$lt_AR_FLAGS
50492
50493 # A C compiler.
50494 LTCC=$lt_LTCC
50495
50496 # A language-specific compiler.
50497 CC=$lt_compiler_RC
50498
50499 # Is the compiler the GNU C compiler?
50500 with_gcc=$GCC_RC
50501
50502 # An ERE matcher.
50503 EGREP=$lt_EGREP
50504
50505 # The linker used to build libraries.
50506 LD=$lt_LD_RC
50507
50508 # Whether we need hard or soft links.
50509 LN_S=$lt_LN_S
50510
50511 # A BSD-compatible nm program.
50512 NM=$lt_NM
50513
50514 # A symbol stripping program
50515 STRIP=$lt_STRIP
50516
50517 # Used to examine libraries when file_magic_cmd begins "file"
50518 MAGIC_CMD=$MAGIC_CMD
50519
50520 # Used on cygwin: DLL creation program.
50521 DLLTOOL="$DLLTOOL"
50522
50523 # Used on cygwin: object dumper.
50524 OBJDUMP="$OBJDUMP"
50525
50526 # Used on cygwin: assembler.
50527 AS="$AS"
50528
50529 # The name of the directory that contains temporary libtool files.
50530 objdir=$objdir
50531
50532 # How to create reloadable object files.
50533 reload_flag=$lt_reload_flag
50534 reload_cmds=$lt_reload_cmds
50535
50536 # How to pass a linker flag through the compiler.
50537 wl=$lt_lt_prog_compiler_wl_RC
50538
50539 # Object file suffix (normally "o").
50540 objext="$ac_objext"
50541
50542 # Old archive suffix (normally "a").
50543 libext="$libext"
50544
50545 # Shared library suffix (normally ".so").
50546 shrext_cmds='$shrext_cmds'
50547
50548 # Executable file suffix (normally "").
50549 exeext="$exeext"
50550
50551 # Additional compiler flags for building library objects.
50552 pic_flag=$lt_lt_prog_compiler_pic_RC
50553 pic_mode=$pic_mode
50554
50555 # What is the maximum length of a command?
50556 max_cmd_len=$lt_cv_sys_max_cmd_len
50557
50558 # Does compiler simultaneously support -c and -o options?
50559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
50560
50561 # Must we lock files when doing compilation?
50562 need_locks=$lt_need_locks
50563
50564 # Do we need the lib prefix for modules?
50565 need_lib_prefix=$need_lib_prefix
50566
50567 # Do we need a version for libraries?
50568 need_version=$need_version
50569
50570 # Whether dlopen is supported.
50571 dlopen_support=$enable_dlopen
50572
50573 # Whether dlopen of programs is supported.
50574 dlopen_self=$enable_dlopen_self
50575
50576 # Whether dlopen of statically linked programs is supported.
50577 dlopen_self_static=$enable_dlopen_self_static
50578
50579 # Compiler flag to prevent dynamic linking.
50580 link_static_flag=$lt_lt_prog_compiler_static_RC
50581
50582 # Compiler flag to turn off builtin functions.
50583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
50584
50585 # Compiler flag to allow reflexive dlopens.
50586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
50587
50588 # Compiler flag to generate shared objects directly from archives.
50589 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
50590
50591 # Compiler flag to generate thread-safe objects.
50592 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
50593
50594 # Library versioning type.
50595 version_type=$version_type
50596
50597 # Format of library name prefix.
50598 libname_spec=$lt_libname_spec
50599
50600 # List of archive names.  First name is the real one, the rest are links.
50601 # The last name is the one that the linker finds with -lNAME.
50602 library_names_spec=$lt_library_names_spec
50603
50604 # The coded name of the library, if different from the real name.
50605 soname_spec=$lt_soname_spec
50606
50607 # Commands used to build and install an old-style archive.
50608 RANLIB=$lt_RANLIB
50609 old_archive_cmds=$lt_old_archive_cmds_RC
50610 old_postinstall_cmds=$lt_old_postinstall_cmds
50611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50612
50613 # Create an old-style archive from a shared archive.
50614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
50615
50616 # Create a temporary old-style archive to link instead of a shared archive.
50617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
50618
50619 # Commands used to build and install a shared archive.
50620 archive_cmds=$lt_archive_cmds_RC
50621 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
50622 postinstall_cmds=$lt_postinstall_cmds
50623 postuninstall_cmds=$lt_postuninstall_cmds
50624
50625 # Commands used to build a loadable module (assumed same as above if empty)
50626 module_cmds=$lt_module_cmds_RC
50627 module_expsym_cmds=$lt_module_expsym_cmds_RC
50628
50629 # Commands to strip libraries.
50630 old_striplib=$lt_old_striplib
50631 striplib=$lt_striplib
50632
50633 # Dependencies to place before the objects being linked to create a
50634 # shared library.
50635 predep_objects=$lt_predep_objects_RC
50636
50637 # Dependencies to place after the objects being linked to create a
50638 # shared library.
50639 postdep_objects=$lt_postdep_objects_RC
50640
50641 # Dependencies to place before the objects being linked to create a
50642 # shared library.
50643 predeps=$lt_predeps_RC
50644
50645 # Dependencies to place after the objects being linked to create a
50646 # shared library.
50647 postdeps=$lt_postdeps_RC
50648
50649 # The library search path used internally by the compiler when linking
50650 # a shared library.
50651 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
50652
50653 # Method to check whether dependent libraries are shared objects.
50654 deplibs_check_method=$lt_deplibs_check_method
50655
50656 # Command to use when deplibs_check_method == file_magic.
50657 file_magic_cmd=$lt_file_magic_cmd
50658
50659 # Flag that allows shared libraries with undefined symbols to be built.
50660 allow_undefined_flag=$lt_allow_undefined_flag_RC
50661
50662 # Flag that forces no undefined symbols.
50663 no_undefined_flag=$lt_no_undefined_flag_RC
50664
50665 # Commands used to finish a libtool library installation in a directory.
50666 finish_cmds=$lt_finish_cmds
50667
50668 # Same as above, but a single script fragment to be evaled but not shown.
50669 finish_eval=$lt_finish_eval
50670
50671 # Take the output of nm and produce a listing of raw symbols and C names.
50672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50673
50674 # Transform the output of nm in a proper C declaration
50675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50676
50677 # Transform the output of nm in a C name address pair
50678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50679
50680 # This is the shared library runtime path variable.
50681 runpath_var=$runpath_var
50682
50683 # This is the shared library path variable.
50684 shlibpath_var=$shlibpath_var
50685
50686 # Is shlibpath searched before the hard-coded library search path?
50687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50688
50689 # How to hardcode a shared library path into an executable.
50690 hardcode_action=$hardcode_action_RC
50691
50692 # Whether we should hardcode library paths into libraries.
50693 hardcode_into_libs=$hardcode_into_libs
50694
50695 # Flag to hardcode \$libdir into a binary during linking.
50696 # This must work even if \$libdir does not exist.
50697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
50698
50699 # If ld is used when linking, flag to hardcode \$libdir into
50700 # a binary during linking. This must work even if \$libdir does
50701 # not exist.
50702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
50703
50704 # Whether we need a single -rpath flag with a separated argument.
50705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
50706
50707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50708 # resulting binary.
50709 hardcode_direct=$hardcode_direct_RC
50710
50711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50712 # resulting binary.
50713 hardcode_minus_L=$hardcode_minus_L_RC
50714
50715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50716 # the resulting binary.
50717 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
50718
50719 # Set to yes if building a shared library automatically hardcodes DIR into the library
50720 # and all subsequent libraries and executables linked against it.
50721 hardcode_automatic=$hardcode_automatic_RC
50722
50723 # Variables whose values should be saved in libtool wrapper scripts and
50724 # restored at relink time.
50725 variables_saved_for_relink="$variables_saved_for_relink"
50726
50727 # Whether libtool must link a program against all its dependency libraries.
50728 link_all_deplibs=$link_all_deplibs_RC
50729
50730 # Compile-time system search path for libraries
50731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50732
50733 # Run-time system search path for libraries
50734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50735
50736 # Fix the shell variable \$srcfile for the compiler.
50737 fix_srcfile_path="$fix_srcfile_path_RC"
50738
50739 # Set to yes if exported symbols are required.
50740 always_export_symbols=$always_export_symbols_RC
50741
50742 # The commands to list exported symbols.
50743 export_symbols_cmds=$lt_export_symbols_cmds_RC
50744
50745 # The commands to extract the exported symbol list from a shared archive.
50746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50747
50748 # Symbols that should not be listed in the preloaded symbols.
50749 exclude_expsyms=$lt_exclude_expsyms_RC
50750
50751 # Symbols that must always be exported.
50752 include_expsyms=$lt_include_expsyms_RC
50753
50754 # ### END LIBTOOL TAG CONFIG: $tagname
50755
50756 __EOF__
50757
50758
50759 else
50760   # If there is no Makefile yet, we rely on a make rule to execute
50761   # `config.status --recheck' to rerun these tests and create the
50762   # libtool script then.
50763   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50764   if test -f "$ltmain_in"; then
50765     test -f Makefile && make "$ltmain"
50766   fi
50767 fi
50768
50769
50770 ac_ext=c
50771 ac_cpp='$CPP $CPPFLAGS'
50772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50775
50776 CC="$lt_save_CC"
50777
50778         ;;
50779
50780       *)
50781         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
50782 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
50783    { (exit 1); exit 1; }; }
50784         ;;
50785       esac
50786
50787       # Append the new tag name to the list of available tags.
50788       if test -n "$tagname" ; then
50789       available_tags="$available_tags $tagname"
50790     fi
50791     fi
50792   done
50793   IFS="$lt_save_ifs"
50794
50795   # Now substitute the updated list of available tags.
50796   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
50797     mv "${ofile}T" "$ofile"
50798     chmod +x "$ofile"
50799   else
50800     rm -f "${ofile}T"
50801     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
50802 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
50803    { (exit 1); exit 1; }; }
50804   fi
50805 fi
50806
50807
50808
50809 # This can be used to rebuild libtool when needed
50810 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
50811
50812 # Always use our own libtool.
50813 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
50814
50815 # Prevent multiple expansion
50816
50817
50818
50819
50820
50821
50822
50823
50824
50825
50826
50827
50828
50829
50830
50831
50832
50833
50834
50835
50836
50837
50838     # Check whether --enable-static-binary was given.
50839 if test "${enable_static_binary+set}" = set; then
50840   enableval=$enable_static_binary;
50841             case "$withval" in
50842             "" | y | ye | yes)
50843                 AMANDA_STATIC_LDFLAGS=-static
50844                 if test x"$enable_static" = x"no"; then
50845                         { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
50846 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
50847    { (exit 1); exit 1; }; }
50848                 fi
50849                 ;;
50850             *n | no)
50851                 AMANDA_STATIC_LDFLAGS=
50852                 ;;
50853             esac
50854
50855 fi
50856
50857
50858
50859
50860 #
50861 # headers
50862 #
50863
50864
50865
50866
50867
50868 ac_header_dirent=no
50869 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
50870   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
50871 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
50872 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
50873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50874   $as_echo_n "(cached) " >&6
50875 else
50876   cat >conftest.$ac_ext <<_ACEOF
50877 /* confdefs.h.  */
50878 _ACEOF
50879 cat confdefs.h >>conftest.$ac_ext
50880 cat >>conftest.$ac_ext <<_ACEOF
50881 /* end confdefs.h.  */
50882 #include <sys/types.h>
50883 #include <$ac_hdr>
50884
50885 int
50886 main ()
50887 {
50888 if ((DIR *) 0)
50889 return 0;
50890   ;
50891   return 0;
50892 }
50893 _ACEOF
50894 rm -f conftest.$ac_objext
50895 if { (ac_try="$ac_compile"
50896 case "(($ac_try" in
50897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50898   *) ac_try_echo=$ac_try;;
50899 esac
50900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50901 $as_echo "$ac_try_echo") >&5
50902   (eval "$ac_compile") 2>conftest.er1
50903   ac_status=$?
50904   grep -v '^ *+' conftest.er1 >conftest.err
50905   rm -f conftest.er1
50906   cat conftest.err >&5
50907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50908   (exit $ac_status); } && {
50909          test -z "$ac_c_werror_flag" ||
50910          test ! -s conftest.err
50911        } && test -s conftest.$ac_objext; then
50912   eval "$as_ac_Header=yes"
50913 else
50914   $as_echo "$as_me: failed program was:" >&5
50915 sed 's/^/| /' conftest.$ac_ext >&5
50916
50917         eval "$as_ac_Header=no"
50918 fi
50919
50920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50921 fi
50922 ac_res=`eval 'as_val=${'$as_ac_Header'}
50923                  $as_echo "$as_val"'`
50924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50925 $as_echo "$ac_res" >&6; }
50926 as_val=`eval 'as_val=${'$as_ac_Header'}
50927                  $as_echo "$as_val"'`
50928    if test "x$as_val" = x""yes; then
50929   cat >>confdefs.h <<_ACEOF
50930 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
50931 _ACEOF
50932
50933 ac_header_dirent=$ac_hdr; break
50934 fi
50935
50936 done
50937 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
50938 if test $ac_header_dirent = dirent.h; then
50939   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
50940 $as_echo_n "checking for library containing opendir... " >&6; }
50941 if test "${ac_cv_search_opendir+set}" = set; then
50942   $as_echo_n "(cached) " >&6
50943 else
50944   ac_func_search_save_LIBS=$LIBS
50945 cat >conftest.$ac_ext <<_ACEOF
50946 /* confdefs.h.  */
50947 _ACEOF
50948 cat confdefs.h >>conftest.$ac_ext
50949 cat >>conftest.$ac_ext <<_ACEOF
50950 /* end confdefs.h.  */
50951
50952 /* Override any GCC internal prototype to avoid an error.
50953    Use char because int might match the return type of a GCC
50954    builtin and then its argument prototype would still apply.  */
50955 #ifdef __cplusplus
50956 extern "C"
50957 #endif
50958 char opendir ();
50959 int
50960 main ()
50961 {
50962 return opendir ();
50963   ;
50964   return 0;
50965 }
50966 _ACEOF
50967 for ac_lib in '' dir; do
50968   if test -z "$ac_lib"; then
50969     ac_res="none required"
50970   else
50971     ac_res=-l$ac_lib
50972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
50973   fi
50974   rm -f conftest.$ac_objext conftest$ac_exeext
50975 if { (ac_try="$ac_link"
50976 case "(($ac_try" in
50977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50978   *) ac_try_echo=$ac_try;;
50979 esac
50980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50981 $as_echo "$ac_try_echo") >&5
50982   (eval "$ac_link") 2>conftest.er1
50983   ac_status=$?
50984   grep -v '^ *+' conftest.er1 >conftest.err
50985   rm -f conftest.er1
50986   cat conftest.err >&5
50987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50988   (exit $ac_status); } && {
50989          test -z "$ac_c_werror_flag" ||
50990          test ! -s conftest.err
50991        } && test -s conftest$ac_exeext && {
50992          test "$cross_compiling" = yes ||
50993          $as_test_x conftest$ac_exeext
50994        }; then
50995   ac_cv_search_opendir=$ac_res
50996 else
50997   $as_echo "$as_me: failed program was:" >&5
50998 sed 's/^/| /' conftest.$ac_ext >&5
50999
51000
51001 fi
51002
51003 rm -rf conftest.dSYM
51004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51005       conftest$ac_exeext
51006   if test "${ac_cv_search_opendir+set}" = set; then
51007   break
51008 fi
51009 done
51010 if test "${ac_cv_search_opendir+set}" = set; then
51011   :
51012 else
51013   ac_cv_search_opendir=no
51014 fi
51015 rm conftest.$ac_ext
51016 LIBS=$ac_func_search_save_LIBS
51017 fi
51018 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51019 $as_echo "$ac_cv_search_opendir" >&6; }
51020 ac_res=$ac_cv_search_opendir
51021 if test "$ac_res" != no; then
51022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51023
51024 fi
51025
51026 else
51027   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51028 $as_echo_n "checking for library containing opendir... " >&6; }
51029 if test "${ac_cv_search_opendir+set}" = set; then
51030   $as_echo_n "(cached) " >&6
51031 else
51032   ac_func_search_save_LIBS=$LIBS
51033 cat >conftest.$ac_ext <<_ACEOF
51034 /* confdefs.h.  */
51035 _ACEOF
51036 cat confdefs.h >>conftest.$ac_ext
51037 cat >>conftest.$ac_ext <<_ACEOF
51038 /* end confdefs.h.  */
51039
51040 /* Override any GCC internal prototype to avoid an error.
51041    Use char because int might match the return type of a GCC
51042    builtin and then its argument prototype would still apply.  */
51043 #ifdef __cplusplus
51044 extern "C"
51045 #endif
51046 char opendir ();
51047 int
51048 main ()
51049 {
51050 return opendir ();
51051   ;
51052   return 0;
51053 }
51054 _ACEOF
51055 for ac_lib in '' x; do
51056   if test -z "$ac_lib"; then
51057     ac_res="none required"
51058   else
51059     ac_res=-l$ac_lib
51060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51061   fi
51062   rm -f conftest.$ac_objext conftest$ac_exeext
51063 if { (ac_try="$ac_link"
51064 case "(($ac_try" in
51065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51066   *) ac_try_echo=$ac_try;;
51067 esac
51068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51069 $as_echo "$ac_try_echo") >&5
51070   (eval "$ac_link") 2>conftest.er1
51071   ac_status=$?
51072   grep -v '^ *+' conftest.er1 >conftest.err
51073   rm -f conftest.er1
51074   cat conftest.err >&5
51075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51076   (exit $ac_status); } && {
51077          test -z "$ac_c_werror_flag" ||
51078          test ! -s conftest.err
51079        } && test -s conftest$ac_exeext && {
51080          test "$cross_compiling" = yes ||
51081          $as_test_x conftest$ac_exeext
51082        }; then
51083   ac_cv_search_opendir=$ac_res
51084 else
51085   $as_echo "$as_me: failed program was:" >&5
51086 sed 's/^/| /' conftest.$ac_ext >&5
51087
51088
51089 fi
51090
51091 rm -rf conftest.dSYM
51092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51093       conftest$ac_exeext
51094   if test "${ac_cv_search_opendir+set}" = set; then
51095   break
51096 fi
51097 done
51098 if test "${ac_cv_search_opendir+set}" = set; then
51099   :
51100 else
51101   ac_cv_search_opendir=no
51102 fi
51103 rm conftest.$ac_ext
51104 LIBS=$ac_func_search_save_LIBS
51105 fi
51106 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51107 $as_echo "$ac_cv_search_opendir" >&6; }
51108 ac_res=$ac_cv_search_opendir
51109 if test "$ac_res" != no; then
51110   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51111
51112 fi
51113
51114 fi
51115
51116 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
51117 $as_echo_n "checking for ANSI C header files... " >&6; }
51118 if test "${ac_cv_header_stdc+set}" = set; then
51119   $as_echo_n "(cached) " >&6
51120 else
51121   cat >conftest.$ac_ext <<_ACEOF
51122 /* confdefs.h.  */
51123 _ACEOF
51124 cat confdefs.h >>conftest.$ac_ext
51125 cat >>conftest.$ac_ext <<_ACEOF
51126 /* end confdefs.h.  */
51127 #include <stdlib.h>
51128 #include <stdarg.h>
51129 #include <string.h>
51130 #include <float.h>
51131
51132 int
51133 main ()
51134 {
51135
51136   ;
51137   return 0;
51138 }
51139 _ACEOF
51140 rm -f conftest.$ac_objext
51141 if { (ac_try="$ac_compile"
51142 case "(($ac_try" in
51143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51144   *) ac_try_echo=$ac_try;;
51145 esac
51146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51147 $as_echo "$ac_try_echo") >&5
51148   (eval "$ac_compile") 2>conftest.er1
51149   ac_status=$?
51150   grep -v '^ *+' conftest.er1 >conftest.err
51151   rm -f conftest.er1
51152   cat conftest.err >&5
51153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51154   (exit $ac_status); } && {
51155          test -z "$ac_c_werror_flag" ||
51156          test ! -s conftest.err
51157        } && test -s conftest.$ac_objext; then
51158   ac_cv_header_stdc=yes
51159 else
51160   $as_echo "$as_me: failed program was:" >&5
51161 sed 's/^/| /' conftest.$ac_ext >&5
51162
51163         ac_cv_header_stdc=no
51164 fi
51165
51166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51167
51168 if test $ac_cv_header_stdc = yes; then
51169   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
51170   cat >conftest.$ac_ext <<_ACEOF
51171 /* confdefs.h.  */
51172 _ACEOF
51173 cat confdefs.h >>conftest.$ac_ext
51174 cat >>conftest.$ac_ext <<_ACEOF
51175 /* end confdefs.h.  */
51176 #include <string.h>
51177
51178 _ACEOF
51179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51180   $EGREP "memchr" >/dev/null 2>&1; then
51181   :
51182 else
51183   ac_cv_header_stdc=no
51184 fi
51185 rm -f conftest*
51186
51187 fi
51188
51189 if test $ac_cv_header_stdc = yes; then
51190   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
51191   cat >conftest.$ac_ext <<_ACEOF
51192 /* confdefs.h.  */
51193 _ACEOF
51194 cat confdefs.h >>conftest.$ac_ext
51195 cat >>conftest.$ac_ext <<_ACEOF
51196 /* end confdefs.h.  */
51197 #include <stdlib.h>
51198
51199 _ACEOF
51200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51201   $EGREP "free" >/dev/null 2>&1; then
51202   :
51203 else
51204   ac_cv_header_stdc=no
51205 fi
51206 rm -f conftest*
51207
51208 fi
51209
51210 if test $ac_cv_header_stdc = yes; then
51211   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
51212   if test "$cross_compiling" = yes; then
51213   :
51214 else
51215   cat >conftest.$ac_ext <<_ACEOF
51216 /* confdefs.h.  */
51217 _ACEOF
51218 cat confdefs.h >>conftest.$ac_ext
51219 cat >>conftest.$ac_ext <<_ACEOF
51220 /* end confdefs.h.  */
51221 #include <ctype.h>
51222 #include <stdlib.h>
51223 #if ((' ' & 0x0FF) == 0x020)
51224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
51225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
51226 #else
51227 # define ISLOWER(c) \
51228                    (('a' <= (c) && (c) <= 'i') \
51229                      || ('j' <= (c) && (c) <= 'r') \
51230                      || ('s' <= (c) && (c) <= 'z'))
51231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
51232 #endif
51233
51234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
51235 int
51236 main ()
51237 {
51238   int i;
51239   for (i = 0; i < 256; i++)
51240     if (XOR (islower (i), ISLOWER (i))
51241         || toupper (i) != TOUPPER (i))
51242       return 2;
51243   return 0;
51244 }
51245 _ACEOF
51246 rm -f conftest$ac_exeext
51247 if { (ac_try="$ac_link"
51248 case "(($ac_try" in
51249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51250   *) ac_try_echo=$ac_try;;
51251 esac
51252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51253 $as_echo "$ac_try_echo") >&5
51254   (eval "$ac_link") 2>&5
51255   ac_status=$?
51256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51258   { (case "(($ac_try" in
51259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51260   *) ac_try_echo=$ac_try;;
51261 esac
51262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51263 $as_echo "$ac_try_echo") >&5
51264   (eval "$ac_try") 2>&5
51265   ac_status=$?
51266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51267   (exit $ac_status); }; }; then
51268   :
51269 else
51270   $as_echo "$as_me: program exited with status $ac_status" >&5
51271 $as_echo "$as_me: failed program was:" >&5
51272 sed 's/^/| /' conftest.$ac_ext >&5
51273
51274 ( exit $ac_status )
51275 ac_cv_header_stdc=no
51276 fi
51277 rm -rf conftest.dSYM
51278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51279 fi
51280
51281
51282 fi
51283 fi
51284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
51285 $as_echo "$ac_cv_header_stdc" >&6; }
51286 if test $ac_cv_header_stdc = yes; then
51287
51288 cat >>confdefs.h <<\_ACEOF
51289 #define STDC_HEADERS 1
51290 _ACEOF
51291
51292 fi
51293
51294 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51295 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51296 if test "${ac_cv_header_time+set}" = set; then
51297   $as_echo_n "(cached) " >&6
51298 else
51299   cat >conftest.$ac_ext <<_ACEOF
51300 /* confdefs.h.  */
51301 _ACEOF
51302 cat confdefs.h >>conftest.$ac_ext
51303 cat >>conftest.$ac_ext <<_ACEOF
51304 /* end confdefs.h.  */
51305 #include <sys/types.h>
51306 #include <sys/time.h>
51307 #include <time.h>
51308
51309 int
51310 main ()
51311 {
51312 if ((struct tm *) 0)
51313 return 0;
51314   ;
51315   return 0;
51316 }
51317 _ACEOF
51318 rm -f conftest.$ac_objext
51319 if { (ac_try="$ac_compile"
51320 case "(($ac_try" in
51321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51322   *) ac_try_echo=$ac_try;;
51323 esac
51324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51325 $as_echo "$ac_try_echo") >&5
51326   (eval "$ac_compile") 2>conftest.er1
51327   ac_status=$?
51328   grep -v '^ *+' conftest.er1 >conftest.err
51329   rm -f conftest.er1
51330   cat conftest.err >&5
51331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51332   (exit $ac_status); } && {
51333          test -z "$ac_c_werror_flag" ||
51334          test ! -s conftest.err
51335        } && test -s conftest.$ac_objext; then
51336   ac_cv_header_time=yes
51337 else
51338   $as_echo "$as_me: failed program was:" >&5
51339 sed 's/^/| /' conftest.$ac_ext >&5
51340
51341         ac_cv_header_time=no
51342 fi
51343
51344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51345 fi
51346 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51347 $as_echo "$ac_cv_header_time" >&6; }
51348 if test $ac_cv_header_time = yes; then
51349
51350 cat >>confdefs.h <<\_ACEOF
51351 #define TIME_WITH_SYS_TIME 1
51352 _ACEOF
51353
51354 fi
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365
51366
51367
51368
51369
51370
51371
51372
51373
51374
51375
51376
51377
51378
51379
51380
51381
51382 for ac_header in arpa/inet.h \
51383         grp.h \
51384         libc.h \
51385         libgen.h \
51386         limits.h \
51387         math.h \
51388         netdb.h \
51389         netinet/in.h \
51390         regex.h \
51391         stdarg.h \
51392         stdlib.h \
51393         strings.h \
51394         sys/file.h \
51395         sys/ioctl.h \
51396         sys/ipc.h \
51397         sys/mntent.h \
51398         sys/param.h \
51399         sys/select.h \
51400         sys/stat.h \
51401         sys/shm.h \
51402         sys/time.h \
51403         sys/types.h \
51404         sys/uio.h \
51405         syslog.h \
51406         time.h \
51407         unistd.h \
51408
51409 do
51410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51412   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51413 $as_echo_n "checking for $ac_header... " >&6; }
51414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51415   $as_echo_n "(cached) " >&6
51416 fi
51417 ac_res=`eval 'as_val=${'$as_ac_Header'}
51418                  $as_echo "$as_val"'`
51419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51420 $as_echo "$ac_res" >&6; }
51421 else
51422   # Is the header compilable?
51423 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51424 $as_echo_n "checking $ac_header usability... " >&6; }
51425 cat >conftest.$ac_ext <<_ACEOF
51426 /* confdefs.h.  */
51427 _ACEOF
51428 cat confdefs.h >>conftest.$ac_ext
51429 cat >>conftest.$ac_ext <<_ACEOF
51430 /* end confdefs.h.  */
51431 $ac_includes_default
51432 #include <$ac_header>
51433 _ACEOF
51434 rm -f conftest.$ac_objext
51435 if { (ac_try="$ac_compile"
51436 case "(($ac_try" in
51437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51438   *) ac_try_echo=$ac_try;;
51439 esac
51440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51441 $as_echo "$ac_try_echo") >&5
51442   (eval "$ac_compile") 2>conftest.er1
51443   ac_status=$?
51444   grep -v '^ *+' conftest.er1 >conftest.err
51445   rm -f conftest.er1
51446   cat conftest.err >&5
51447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51448   (exit $ac_status); } && {
51449          test -z "$ac_c_werror_flag" ||
51450          test ! -s conftest.err
51451        } && test -s conftest.$ac_objext; then
51452   ac_header_compiler=yes
51453 else
51454   $as_echo "$as_me: failed program was:" >&5
51455 sed 's/^/| /' conftest.$ac_ext >&5
51456
51457         ac_header_compiler=no
51458 fi
51459
51460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51462 $as_echo "$ac_header_compiler" >&6; }
51463
51464 # Is the header present?
51465 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51466 $as_echo_n "checking $ac_header presence... " >&6; }
51467 cat >conftest.$ac_ext <<_ACEOF
51468 /* confdefs.h.  */
51469 _ACEOF
51470 cat confdefs.h >>conftest.$ac_ext
51471 cat >>conftest.$ac_ext <<_ACEOF
51472 /* end confdefs.h.  */
51473 #include <$ac_header>
51474 _ACEOF
51475 if { (ac_try="$ac_cpp conftest.$ac_ext"
51476 case "(($ac_try" in
51477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51478   *) ac_try_echo=$ac_try;;
51479 esac
51480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51481 $as_echo "$ac_try_echo") >&5
51482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51483   ac_status=$?
51484   grep -v '^ *+' conftest.er1 >conftest.err
51485   rm -f conftest.er1
51486   cat conftest.err >&5
51487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51488   (exit $ac_status); } >/dev/null && {
51489          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51490          test ! -s conftest.err
51491        }; then
51492   ac_header_preproc=yes
51493 else
51494   $as_echo "$as_me: failed program was:" >&5
51495 sed 's/^/| /' conftest.$ac_ext >&5
51496
51497   ac_header_preproc=no
51498 fi
51499
51500 rm -f conftest.err conftest.$ac_ext
51501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51502 $as_echo "$ac_header_preproc" >&6; }
51503
51504 # So?  What about this header?
51505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51506   yes:no: )
51507     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51508 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51509     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51511     ac_header_preproc=yes
51512     ;;
51513   no:yes:* )
51514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51515 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51516     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51517 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51518     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51519 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51521 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51522     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51524     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51525 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51526
51527     ;;
51528 esac
51529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51530 $as_echo_n "checking for $ac_header... " >&6; }
51531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51532   $as_echo_n "(cached) " >&6
51533 else
51534   eval "$as_ac_Header=\$ac_header_preproc"
51535 fi
51536 ac_res=`eval 'as_val=${'$as_ac_Header'}
51537                  $as_echo "$as_val"'`
51538                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51539 $as_echo "$ac_res" >&6; }
51540
51541 fi
51542 as_val=`eval 'as_val=${'$as_ac_Header'}
51543                  $as_echo "$as_val"'`
51544    if test "x$as_val" = x""yes; then
51545   cat >>confdefs.h <<_ACEOF
51546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51547 _ACEOF
51548
51549 fi
51550
51551 done
51552
51553
51554 cat >>confdefs.h <<\_ACEOF
51555 #define HAVE_AMANDA_H 1
51556 _ACEOF
51557
51558
51559 cat >>confdefs.h <<\_ACEOF
51560 #define HAVE_UTIL_H 1
51561 _ACEOF
51562
51563
51564
51565 cat >>confdefs.h <<\_ACEOF
51566 #define USE_GETTEXT 1
51567 _ACEOF
51568
51569
51570 #
51571 # Types
51572 #
51573 # The cast to long int works around a bug in the HP C Compiler
51574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51576 # This bug is HP SR number 8606223364.
51577 { $as_echo "$as_me:$LINENO: checking size of int" >&5
51578 $as_echo_n "checking size of int... " >&6; }
51579 if test "${ac_cv_sizeof_int+set}" = set; then
51580   $as_echo_n "(cached) " >&6
51581 else
51582   if test "$cross_compiling" = yes; then
51583   # Depending upon the size, compute the lo and hi bounds.
51584 cat >conftest.$ac_ext <<_ACEOF
51585 /* confdefs.h.  */
51586 _ACEOF
51587 cat confdefs.h >>conftest.$ac_ext
51588 cat >>conftest.$ac_ext <<_ACEOF
51589 /* end confdefs.h.  */
51590 $ac_includes_default
51591 int
51592 main ()
51593 {
51594 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
51595 test_array [0] = 0
51596
51597   ;
51598   return 0;
51599 }
51600 _ACEOF
51601 rm -f conftest.$ac_objext
51602 if { (ac_try="$ac_compile"
51603 case "(($ac_try" in
51604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51605   *) ac_try_echo=$ac_try;;
51606 esac
51607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51608 $as_echo "$ac_try_echo") >&5
51609   (eval "$ac_compile") 2>conftest.er1
51610   ac_status=$?
51611   grep -v '^ *+' conftest.er1 >conftest.err
51612   rm -f conftest.er1
51613   cat conftest.err >&5
51614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615   (exit $ac_status); } && {
51616          test -z "$ac_c_werror_flag" ||
51617          test ! -s conftest.err
51618        } && test -s conftest.$ac_objext; then
51619   ac_lo=0 ac_mid=0
51620   while :; do
51621     cat >conftest.$ac_ext <<_ACEOF
51622 /* confdefs.h.  */
51623 _ACEOF
51624 cat confdefs.h >>conftest.$ac_ext
51625 cat >>conftest.$ac_ext <<_ACEOF
51626 /* end confdefs.h.  */
51627 $ac_includes_default
51628 int
51629 main ()
51630 {
51631 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51632 test_array [0] = 0
51633
51634   ;
51635   return 0;
51636 }
51637 _ACEOF
51638 rm -f conftest.$ac_objext
51639 if { (ac_try="$ac_compile"
51640 case "(($ac_try" in
51641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51642   *) ac_try_echo=$ac_try;;
51643 esac
51644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51645 $as_echo "$ac_try_echo") >&5
51646   (eval "$ac_compile") 2>conftest.er1
51647   ac_status=$?
51648   grep -v '^ *+' conftest.er1 >conftest.err
51649   rm -f conftest.er1
51650   cat conftest.err >&5
51651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51652   (exit $ac_status); } && {
51653          test -z "$ac_c_werror_flag" ||
51654          test ! -s conftest.err
51655        } && test -s conftest.$ac_objext; then
51656   ac_hi=$ac_mid; break
51657 else
51658   $as_echo "$as_me: failed program was:" >&5
51659 sed 's/^/| /' conftest.$ac_ext >&5
51660
51661         ac_lo=`expr $ac_mid + 1`
51662                         if test $ac_lo -le $ac_mid; then
51663                           ac_lo= ac_hi=
51664                           break
51665                         fi
51666                         ac_mid=`expr 2 '*' $ac_mid + 1`
51667 fi
51668
51669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51670   done
51671 else
51672   $as_echo "$as_me: failed program was:" >&5
51673 sed 's/^/| /' conftest.$ac_ext >&5
51674
51675         cat >conftest.$ac_ext <<_ACEOF
51676 /* confdefs.h.  */
51677 _ACEOF
51678 cat confdefs.h >>conftest.$ac_ext
51679 cat >>conftest.$ac_ext <<_ACEOF
51680 /* end confdefs.h.  */
51681 $ac_includes_default
51682 int
51683 main ()
51684 {
51685 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
51686 test_array [0] = 0
51687
51688   ;
51689   return 0;
51690 }
51691 _ACEOF
51692 rm -f conftest.$ac_objext
51693 if { (ac_try="$ac_compile"
51694 case "(($ac_try" in
51695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51696   *) ac_try_echo=$ac_try;;
51697 esac
51698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51699 $as_echo "$ac_try_echo") >&5
51700   (eval "$ac_compile") 2>conftest.er1
51701   ac_status=$?
51702   grep -v '^ *+' conftest.er1 >conftest.err
51703   rm -f conftest.er1
51704   cat conftest.err >&5
51705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51706   (exit $ac_status); } && {
51707          test -z "$ac_c_werror_flag" ||
51708          test ! -s conftest.err
51709        } && test -s conftest.$ac_objext; then
51710   ac_hi=-1 ac_mid=-1
51711   while :; do
51712     cat >conftest.$ac_ext <<_ACEOF
51713 /* confdefs.h.  */
51714 _ACEOF
51715 cat confdefs.h >>conftest.$ac_ext
51716 cat >>conftest.$ac_ext <<_ACEOF
51717 /* end confdefs.h.  */
51718 $ac_includes_default
51719 int
51720 main ()
51721 {
51722 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
51723 test_array [0] = 0
51724
51725   ;
51726   return 0;
51727 }
51728 _ACEOF
51729 rm -f conftest.$ac_objext
51730 if { (ac_try="$ac_compile"
51731 case "(($ac_try" in
51732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51733   *) ac_try_echo=$ac_try;;
51734 esac
51735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51736 $as_echo "$ac_try_echo") >&5
51737   (eval "$ac_compile") 2>conftest.er1
51738   ac_status=$?
51739   grep -v '^ *+' conftest.er1 >conftest.err
51740   rm -f conftest.er1
51741   cat conftest.err >&5
51742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51743   (exit $ac_status); } && {
51744          test -z "$ac_c_werror_flag" ||
51745          test ! -s conftest.err
51746        } && test -s conftest.$ac_objext; then
51747   ac_lo=$ac_mid; break
51748 else
51749   $as_echo "$as_me: failed program was:" >&5
51750 sed 's/^/| /' conftest.$ac_ext >&5
51751
51752         ac_hi=`expr '(' $ac_mid ')' - 1`
51753                         if test $ac_mid -le $ac_hi; then
51754                           ac_lo= ac_hi=
51755                           break
51756                         fi
51757                         ac_mid=`expr 2 '*' $ac_mid`
51758 fi
51759
51760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51761   done
51762 else
51763   $as_echo "$as_me: failed program was:" >&5
51764 sed 's/^/| /' conftest.$ac_ext >&5
51765
51766         ac_lo= ac_hi=
51767 fi
51768
51769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51770 fi
51771
51772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51773 # Binary search between lo and hi bounds.
51774 while test "x$ac_lo" != "x$ac_hi"; do
51775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51776   cat >conftest.$ac_ext <<_ACEOF
51777 /* confdefs.h.  */
51778 _ACEOF
51779 cat confdefs.h >>conftest.$ac_ext
51780 cat >>conftest.$ac_ext <<_ACEOF
51781 /* end confdefs.h.  */
51782 $ac_includes_default
51783 int
51784 main ()
51785 {
51786 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51787 test_array [0] = 0
51788
51789   ;
51790   return 0;
51791 }
51792 _ACEOF
51793 rm -f conftest.$ac_objext
51794 if { (ac_try="$ac_compile"
51795 case "(($ac_try" in
51796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51797   *) ac_try_echo=$ac_try;;
51798 esac
51799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51800 $as_echo "$ac_try_echo") >&5
51801   (eval "$ac_compile") 2>conftest.er1
51802   ac_status=$?
51803   grep -v '^ *+' conftest.er1 >conftest.err
51804   rm -f conftest.er1
51805   cat conftest.err >&5
51806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51807   (exit $ac_status); } && {
51808          test -z "$ac_c_werror_flag" ||
51809          test ! -s conftest.err
51810        } && test -s conftest.$ac_objext; then
51811   ac_hi=$ac_mid
51812 else
51813   $as_echo "$as_me: failed program was:" >&5
51814 sed 's/^/| /' conftest.$ac_ext >&5
51815
51816         ac_lo=`expr '(' $ac_mid ')' + 1`
51817 fi
51818
51819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51820 done
51821 case $ac_lo in
51822 ?*) ac_cv_sizeof_int=$ac_lo;;
51823 '') if test "$ac_cv_type_int" = yes; then
51824      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51826 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51827 See \`config.log' for more details." >&5
51828 $as_echo "$as_me: error: cannot compute sizeof (int)
51829 See \`config.log' for more details." >&2;}
51830    { (exit 77); exit 77; }; }; }
51831    else
51832      ac_cv_sizeof_int=0
51833    fi ;;
51834 esac
51835 else
51836   cat >conftest.$ac_ext <<_ACEOF
51837 /* confdefs.h.  */
51838 _ACEOF
51839 cat confdefs.h >>conftest.$ac_ext
51840 cat >>conftest.$ac_ext <<_ACEOF
51841 /* end confdefs.h.  */
51842 $ac_includes_default
51843 static long int longval () { return (long int) (sizeof (int)); }
51844 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
51845 #include <stdio.h>
51846 #include <stdlib.h>
51847 int
51848 main ()
51849 {
51850
51851   FILE *f = fopen ("conftest.val", "w");
51852   if (! f)
51853     return 1;
51854   if (((long int) (sizeof (int))) < 0)
51855     {
51856       long int i = longval ();
51857       if (i != ((long int) (sizeof (int))))
51858         return 1;
51859       fprintf (f, "%ld", i);
51860     }
51861   else
51862     {
51863       unsigned long int i = ulongval ();
51864       if (i != ((long int) (sizeof (int))))
51865         return 1;
51866       fprintf (f, "%lu", i);
51867     }
51868   /* Do not output a trailing newline, as this causes \r\n confusion
51869      on some platforms.  */
51870   return ferror (f) || fclose (f) != 0;
51871
51872   ;
51873   return 0;
51874 }
51875 _ACEOF
51876 rm -f conftest$ac_exeext
51877 if { (ac_try="$ac_link"
51878 case "(($ac_try" in
51879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51880   *) ac_try_echo=$ac_try;;
51881 esac
51882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51883 $as_echo "$ac_try_echo") >&5
51884   (eval "$ac_link") 2>&5
51885   ac_status=$?
51886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51888   { (case "(($ac_try" in
51889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51890   *) ac_try_echo=$ac_try;;
51891 esac
51892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51893 $as_echo "$ac_try_echo") >&5
51894   (eval "$ac_try") 2>&5
51895   ac_status=$?
51896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51897   (exit $ac_status); }; }; then
51898   ac_cv_sizeof_int=`cat conftest.val`
51899 else
51900   $as_echo "$as_me: program exited with status $ac_status" >&5
51901 $as_echo "$as_me: failed program was:" >&5
51902 sed 's/^/| /' conftest.$ac_ext >&5
51903
51904 ( exit $ac_status )
51905 if test "$ac_cv_type_int" = yes; then
51906      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51908 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51909 See \`config.log' for more details." >&5
51910 $as_echo "$as_me: error: cannot compute sizeof (int)
51911 See \`config.log' for more details." >&2;}
51912    { (exit 77); exit 77; }; }; }
51913    else
51914      ac_cv_sizeof_int=0
51915    fi
51916 fi
51917 rm -rf conftest.dSYM
51918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51919 fi
51920 rm -f conftest.val
51921 fi
51922 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
51923 $as_echo "$ac_cv_sizeof_int" >&6; }
51924
51925
51926
51927 cat >>confdefs.h <<_ACEOF
51928 #define SIZEOF_INT $ac_cv_sizeof_int
51929 _ACEOF
51930
51931
51932 # The cast to long int works around a bug in the HP C Compiler
51933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51935 # This bug is HP SR number 8606223364.
51936 { $as_echo "$as_me:$LINENO: checking size of long" >&5
51937 $as_echo_n "checking size of long... " >&6; }
51938 if test "${ac_cv_sizeof_long+set}" = set; then
51939   $as_echo_n "(cached) " >&6
51940 else
51941   if test "$cross_compiling" = yes; then
51942   # Depending upon the size, compute the lo and hi bounds.
51943 cat >conftest.$ac_ext <<_ACEOF
51944 /* confdefs.h.  */
51945 _ACEOF
51946 cat confdefs.h >>conftest.$ac_ext
51947 cat >>conftest.$ac_ext <<_ACEOF
51948 /* end confdefs.h.  */
51949 $ac_includes_default
51950 int
51951 main ()
51952 {
51953 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
51954 test_array [0] = 0
51955
51956   ;
51957   return 0;
51958 }
51959 _ACEOF
51960 rm -f conftest.$ac_objext
51961 if { (ac_try="$ac_compile"
51962 case "(($ac_try" in
51963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51964   *) ac_try_echo=$ac_try;;
51965 esac
51966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51967 $as_echo "$ac_try_echo") >&5
51968   (eval "$ac_compile") 2>conftest.er1
51969   ac_status=$?
51970   grep -v '^ *+' conftest.er1 >conftest.err
51971   rm -f conftest.er1
51972   cat conftest.err >&5
51973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51974   (exit $ac_status); } && {
51975          test -z "$ac_c_werror_flag" ||
51976          test ! -s conftest.err
51977        } && test -s conftest.$ac_objext; then
51978   ac_lo=0 ac_mid=0
51979   while :; do
51980     cat >conftest.$ac_ext <<_ACEOF
51981 /* confdefs.h.  */
51982 _ACEOF
51983 cat confdefs.h >>conftest.$ac_ext
51984 cat >>conftest.$ac_ext <<_ACEOF
51985 /* end confdefs.h.  */
51986 $ac_includes_default
51987 int
51988 main ()
51989 {
51990 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
51991 test_array [0] = 0
51992
51993   ;
51994   return 0;
51995 }
51996 _ACEOF
51997 rm -f conftest.$ac_objext
51998 if { (ac_try="$ac_compile"
51999 case "(($ac_try" in
52000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52001   *) ac_try_echo=$ac_try;;
52002 esac
52003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52004 $as_echo "$ac_try_echo") >&5
52005   (eval "$ac_compile") 2>conftest.er1
52006   ac_status=$?
52007   grep -v '^ *+' conftest.er1 >conftest.err
52008   rm -f conftest.er1
52009   cat conftest.err >&5
52010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52011   (exit $ac_status); } && {
52012          test -z "$ac_c_werror_flag" ||
52013          test ! -s conftest.err
52014        } && test -s conftest.$ac_objext; then
52015   ac_hi=$ac_mid; break
52016 else
52017   $as_echo "$as_me: failed program was:" >&5
52018 sed 's/^/| /' conftest.$ac_ext >&5
52019
52020         ac_lo=`expr $ac_mid + 1`
52021                         if test $ac_lo -le $ac_mid; then
52022                           ac_lo= ac_hi=
52023                           break
52024                         fi
52025                         ac_mid=`expr 2 '*' $ac_mid + 1`
52026 fi
52027
52028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52029   done
52030 else
52031   $as_echo "$as_me: failed program was:" >&5
52032 sed 's/^/| /' conftest.$ac_ext >&5
52033
52034         cat >conftest.$ac_ext <<_ACEOF
52035 /* confdefs.h.  */
52036 _ACEOF
52037 cat confdefs.h >>conftest.$ac_ext
52038 cat >>conftest.$ac_ext <<_ACEOF
52039 /* end confdefs.h.  */
52040 $ac_includes_default
52041 int
52042 main ()
52043 {
52044 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
52045 test_array [0] = 0
52046
52047   ;
52048   return 0;
52049 }
52050 _ACEOF
52051 rm -f conftest.$ac_objext
52052 if { (ac_try="$ac_compile"
52053 case "(($ac_try" in
52054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52055   *) ac_try_echo=$ac_try;;
52056 esac
52057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52058 $as_echo "$ac_try_echo") >&5
52059   (eval "$ac_compile") 2>conftest.er1
52060   ac_status=$?
52061   grep -v '^ *+' conftest.er1 >conftest.err
52062   rm -f conftest.er1
52063   cat conftest.err >&5
52064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52065   (exit $ac_status); } && {
52066          test -z "$ac_c_werror_flag" ||
52067          test ! -s conftest.err
52068        } && test -s conftest.$ac_objext; then
52069   ac_hi=-1 ac_mid=-1
52070   while :; do
52071     cat >conftest.$ac_ext <<_ACEOF
52072 /* confdefs.h.  */
52073 _ACEOF
52074 cat confdefs.h >>conftest.$ac_ext
52075 cat >>conftest.$ac_ext <<_ACEOF
52076 /* end confdefs.h.  */
52077 $ac_includes_default
52078 int
52079 main ()
52080 {
52081 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
52082 test_array [0] = 0
52083
52084   ;
52085   return 0;
52086 }
52087 _ACEOF
52088 rm -f conftest.$ac_objext
52089 if { (ac_try="$ac_compile"
52090 case "(($ac_try" in
52091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52092   *) ac_try_echo=$ac_try;;
52093 esac
52094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52095 $as_echo "$ac_try_echo") >&5
52096   (eval "$ac_compile") 2>conftest.er1
52097   ac_status=$?
52098   grep -v '^ *+' conftest.er1 >conftest.err
52099   rm -f conftest.er1
52100   cat conftest.err >&5
52101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52102   (exit $ac_status); } && {
52103          test -z "$ac_c_werror_flag" ||
52104          test ! -s conftest.err
52105        } && test -s conftest.$ac_objext; then
52106   ac_lo=$ac_mid; break
52107 else
52108   $as_echo "$as_me: failed program was:" >&5
52109 sed 's/^/| /' conftest.$ac_ext >&5
52110
52111         ac_hi=`expr '(' $ac_mid ')' - 1`
52112                         if test $ac_mid -le $ac_hi; then
52113                           ac_lo= ac_hi=
52114                           break
52115                         fi
52116                         ac_mid=`expr 2 '*' $ac_mid`
52117 fi
52118
52119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52120   done
52121 else
52122   $as_echo "$as_me: failed program was:" >&5
52123 sed 's/^/| /' conftest.$ac_ext >&5
52124
52125         ac_lo= ac_hi=
52126 fi
52127
52128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52129 fi
52130
52131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52132 # Binary search between lo and hi bounds.
52133 while test "x$ac_lo" != "x$ac_hi"; do
52134   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52135   cat >conftest.$ac_ext <<_ACEOF
52136 /* confdefs.h.  */
52137 _ACEOF
52138 cat confdefs.h >>conftest.$ac_ext
52139 cat >>conftest.$ac_ext <<_ACEOF
52140 /* end confdefs.h.  */
52141 $ac_includes_default
52142 int
52143 main ()
52144 {
52145 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52146 test_array [0] = 0
52147
52148   ;
52149   return 0;
52150 }
52151 _ACEOF
52152 rm -f conftest.$ac_objext
52153 if { (ac_try="$ac_compile"
52154 case "(($ac_try" in
52155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52156   *) ac_try_echo=$ac_try;;
52157 esac
52158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52159 $as_echo "$ac_try_echo") >&5
52160   (eval "$ac_compile") 2>conftest.er1
52161   ac_status=$?
52162   grep -v '^ *+' conftest.er1 >conftest.err
52163   rm -f conftest.er1
52164   cat conftest.err >&5
52165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52166   (exit $ac_status); } && {
52167          test -z "$ac_c_werror_flag" ||
52168          test ! -s conftest.err
52169        } && test -s conftest.$ac_objext; then
52170   ac_hi=$ac_mid
52171 else
52172   $as_echo "$as_me: failed program was:" >&5
52173 sed 's/^/| /' conftest.$ac_ext >&5
52174
52175         ac_lo=`expr '(' $ac_mid ')' + 1`
52176 fi
52177
52178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52179 done
52180 case $ac_lo in
52181 ?*) ac_cv_sizeof_long=$ac_lo;;
52182 '') if test "$ac_cv_type_long" = yes; then
52183      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52185 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52186 See \`config.log' for more details." >&5
52187 $as_echo "$as_me: error: cannot compute sizeof (long)
52188 See \`config.log' for more details." >&2;}
52189    { (exit 77); exit 77; }; }; }
52190    else
52191      ac_cv_sizeof_long=0
52192    fi ;;
52193 esac
52194 else
52195   cat >conftest.$ac_ext <<_ACEOF
52196 /* confdefs.h.  */
52197 _ACEOF
52198 cat confdefs.h >>conftest.$ac_ext
52199 cat >>conftest.$ac_ext <<_ACEOF
52200 /* end confdefs.h.  */
52201 $ac_includes_default
52202 static long int longval () { return (long int) (sizeof (long)); }
52203 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
52204 #include <stdio.h>
52205 #include <stdlib.h>
52206 int
52207 main ()
52208 {
52209
52210   FILE *f = fopen ("conftest.val", "w");
52211   if (! f)
52212     return 1;
52213   if (((long int) (sizeof (long))) < 0)
52214     {
52215       long int i = longval ();
52216       if (i != ((long int) (sizeof (long))))
52217         return 1;
52218       fprintf (f, "%ld", i);
52219     }
52220   else
52221     {
52222       unsigned long int i = ulongval ();
52223       if (i != ((long int) (sizeof (long))))
52224         return 1;
52225       fprintf (f, "%lu", i);
52226     }
52227   /* Do not output a trailing newline, as this causes \r\n confusion
52228      on some platforms.  */
52229   return ferror (f) || fclose (f) != 0;
52230
52231   ;
52232   return 0;
52233 }
52234 _ACEOF
52235 rm -f conftest$ac_exeext
52236 if { (ac_try="$ac_link"
52237 case "(($ac_try" in
52238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52239   *) ac_try_echo=$ac_try;;
52240 esac
52241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52242 $as_echo "$ac_try_echo") >&5
52243   (eval "$ac_link") 2>&5
52244   ac_status=$?
52245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52247   { (case "(($ac_try" in
52248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52249   *) ac_try_echo=$ac_try;;
52250 esac
52251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52252 $as_echo "$ac_try_echo") >&5
52253   (eval "$ac_try") 2>&5
52254   ac_status=$?
52255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52256   (exit $ac_status); }; }; then
52257   ac_cv_sizeof_long=`cat conftest.val`
52258 else
52259   $as_echo "$as_me: program exited with status $ac_status" >&5
52260 $as_echo "$as_me: failed program was:" >&5
52261 sed 's/^/| /' conftest.$ac_ext >&5
52262
52263 ( exit $ac_status )
52264 if test "$ac_cv_type_long" = yes; then
52265      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52267 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52268 See \`config.log' for more details." >&5
52269 $as_echo "$as_me: error: cannot compute sizeof (long)
52270 See \`config.log' for more details." >&2;}
52271    { (exit 77); exit 77; }; }; }
52272    else
52273      ac_cv_sizeof_long=0
52274    fi
52275 fi
52276 rm -rf conftest.dSYM
52277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52278 fi
52279 rm -f conftest.val
52280 fi
52281 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
52282 $as_echo "$ac_cv_sizeof_long" >&6; }
52283
52284
52285
52286 cat >>confdefs.h <<_ACEOF
52287 #define SIZEOF_LONG $ac_cv_sizeof_long
52288 _ACEOF
52289
52290
52291 # The cast to long int works around a bug in the HP C Compiler
52292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52294 # This bug is HP SR number 8606223364.
52295 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
52296 $as_echo_n "checking size of long long... " >&6; }
52297 if test "${ac_cv_sizeof_long_long+set}" = set; then
52298   $as_echo_n "(cached) " >&6
52299 else
52300   if test "$cross_compiling" = yes; then
52301   # Depending upon the size, compute the lo and hi bounds.
52302 cat >conftest.$ac_ext <<_ACEOF
52303 /* confdefs.h.  */
52304 _ACEOF
52305 cat confdefs.h >>conftest.$ac_ext
52306 cat >>conftest.$ac_ext <<_ACEOF
52307 /* end confdefs.h.  */
52308 $ac_includes_default
52309 int
52310 main ()
52311 {
52312 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
52313 test_array [0] = 0
52314
52315   ;
52316   return 0;
52317 }
52318 _ACEOF
52319 rm -f conftest.$ac_objext
52320 if { (ac_try="$ac_compile"
52321 case "(($ac_try" in
52322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52323   *) ac_try_echo=$ac_try;;
52324 esac
52325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52326 $as_echo "$ac_try_echo") >&5
52327   (eval "$ac_compile") 2>conftest.er1
52328   ac_status=$?
52329   grep -v '^ *+' conftest.er1 >conftest.err
52330   rm -f conftest.er1
52331   cat conftest.err >&5
52332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52333   (exit $ac_status); } && {
52334          test -z "$ac_c_werror_flag" ||
52335          test ! -s conftest.err
52336        } && test -s conftest.$ac_objext; then
52337   ac_lo=0 ac_mid=0
52338   while :; do
52339     cat >conftest.$ac_ext <<_ACEOF
52340 /* confdefs.h.  */
52341 _ACEOF
52342 cat confdefs.h >>conftest.$ac_ext
52343 cat >>conftest.$ac_ext <<_ACEOF
52344 /* end confdefs.h.  */
52345 $ac_includes_default
52346 int
52347 main ()
52348 {
52349 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52350 test_array [0] = 0
52351
52352   ;
52353   return 0;
52354 }
52355 _ACEOF
52356 rm -f conftest.$ac_objext
52357 if { (ac_try="$ac_compile"
52358 case "(($ac_try" in
52359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52360   *) ac_try_echo=$ac_try;;
52361 esac
52362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52363 $as_echo "$ac_try_echo") >&5
52364   (eval "$ac_compile") 2>conftest.er1
52365   ac_status=$?
52366   grep -v '^ *+' conftest.er1 >conftest.err
52367   rm -f conftest.er1
52368   cat conftest.err >&5
52369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52370   (exit $ac_status); } && {
52371          test -z "$ac_c_werror_flag" ||
52372          test ! -s conftest.err
52373        } && test -s conftest.$ac_objext; then
52374   ac_hi=$ac_mid; break
52375 else
52376   $as_echo "$as_me: failed program was:" >&5
52377 sed 's/^/| /' conftest.$ac_ext >&5
52378
52379         ac_lo=`expr $ac_mid + 1`
52380                         if test $ac_lo -le $ac_mid; then
52381                           ac_lo= ac_hi=
52382                           break
52383                         fi
52384                         ac_mid=`expr 2 '*' $ac_mid + 1`
52385 fi
52386
52387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52388   done
52389 else
52390   $as_echo "$as_me: failed program was:" >&5
52391 sed 's/^/| /' conftest.$ac_ext >&5
52392
52393         cat >conftest.$ac_ext <<_ACEOF
52394 /* confdefs.h.  */
52395 _ACEOF
52396 cat confdefs.h >>conftest.$ac_ext
52397 cat >>conftest.$ac_ext <<_ACEOF
52398 /* end confdefs.h.  */
52399 $ac_includes_default
52400 int
52401 main ()
52402 {
52403 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
52404 test_array [0] = 0
52405
52406   ;
52407   return 0;
52408 }
52409 _ACEOF
52410 rm -f conftest.$ac_objext
52411 if { (ac_try="$ac_compile"
52412 case "(($ac_try" in
52413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52414   *) ac_try_echo=$ac_try;;
52415 esac
52416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52417 $as_echo "$ac_try_echo") >&5
52418   (eval "$ac_compile") 2>conftest.er1
52419   ac_status=$?
52420   grep -v '^ *+' conftest.er1 >conftest.err
52421   rm -f conftest.er1
52422   cat conftest.err >&5
52423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52424   (exit $ac_status); } && {
52425          test -z "$ac_c_werror_flag" ||
52426          test ! -s conftest.err
52427        } && test -s conftest.$ac_objext; then
52428   ac_hi=-1 ac_mid=-1
52429   while :; do
52430     cat >conftest.$ac_ext <<_ACEOF
52431 /* confdefs.h.  */
52432 _ACEOF
52433 cat confdefs.h >>conftest.$ac_ext
52434 cat >>conftest.$ac_ext <<_ACEOF
52435 /* end confdefs.h.  */
52436 $ac_includes_default
52437 int
52438 main ()
52439 {
52440 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
52441 test_array [0] = 0
52442
52443   ;
52444   return 0;
52445 }
52446 _ACEOF
52447 rm -f conftest.$ac_objext
52448 if { (ac_try="$ac_compile"
52449 case "(($ac_try" in
52450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52451   *) ac_try_echo=$ac_try;;
52452 esac
52453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52454 $as_echo "$ac_try_echo") >&5
52455   (eval "$ac_compile") 2>conftest.er1
52456   ac_status=$?
52457   grep -v '^ *+' conftest.er1 >conftest.err
52458   rm -f conftest.er1
52459   cat conftest.err >&5
52460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52461   (exit $ac_status); } && {
52462          test -z "$ac_c_werror_flag" ||
52463          test ! -s conftest.err
52464        } && test -s conftest.$ac_objext; then
52465   ac_lo=$ac_mid; break
52466 else
52467   $as_echo "$as_me: failed program was:" >&5
52468 sed 's/^/| /' conftest.$ac_ext >&5
52469
52470         ac_hi=`expr '(' $ac_mid ')' - 1`
52471                         if test $ac_mid -le $ac_hi; then
52472                           ac_lo= ac_hi=
52473                           break
52474                         fi
52475                         ac_mid=`expr 2 '*' $ac_mid`
52476 fi
52477
52478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52479   done
52480 else
52481   $as_echo "$as_me: failed program was:" >&5
52482 sed 's/^/| /' conftest.$ac_ext >&5
52483
52484         ac_lo= ac_hi=
52485 fi
52486
52487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52488 fi
52489
52490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52491 # Binary search between lo and hi bounds.
52492 while test "x$ac_lo" != "x$ac_hi"; do
52493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52494   cat >conftest.$ac_ext <<_ACEOF
52495 /* confdefs.h.  */
52496 _ACEOF
52497 cat confdefs.h >>conftest.$ac_ext
52498 cat >>conftest.$ac_ext <<_ACEOF
52499 /* end confdefs.h.  */
52500 $ac_includes_default
52501 int
52502 main ()
52503 {
52504 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52505 test_array [0] = 0
52506
52507   ;
52508   return 0;
52509 }
52510 _ACEOF
52511 rm -f conftest.$ac_objext
52512 if { (ac_try="$ac_compile"
52513 case "(($ac_try" in
52514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52515   *) ac_try_echo=$ac_try;;
52516 esac
52517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52518 $as_echo "$ac_try_echo") >&5
52519   (eval "$ac_compile") 2>conftest.er1
52520   ac_status=$?
52521   grep -v '^ *+' conftest.er1 >conftest.err
52522   rm -f conftest.er1
52523   cat conftest.err >&5
52524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52525   (exit $ac_status); } && {
52526          test -z "$ac_c_werror_flag" ||
52527          test ! -s conftest.err
52528        } && test -s conftest.$ac_objext; then
52529   ac_hi=$ac_mid
52530 else
52531   $as_echo "$as_me: failed program was:" >&5
52532 sed 's/^/| /' conftest.$ac_ext >&5
52533
52534         ac_lo=`expr '(' $ac_mid ')' + 1`
52535 fi
52536
52537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52538 done
52539 case $ac_lo in
52540 ?*) ac_cv_sizeof_long_long=$ac_lo;;
52541 '') if test "$ac_cv_type_long_long" = yes; then
52542      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52544 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52545 See \`config.log' for more details." >&5
52546 $as_echo "$as_me: error: cannot compute sizeof (long long)
52547 See \`config.log' for more details." >&2;}
52548    { (exit 77); exit 77; }; }; }
52549    else
52550      ac_cv_sizeof_long_long=0
52551    fi ;;
52552 esac
52553 else
52554   cat >conftest.$ac_ext <<_ACEOF
52555 /* confdefs.h.  */
52556 _ACEOF
52557 cat confdefs.h >>conftest.$ac_ext
52558 cat >>conftest.$ac_ext <<_ACEOF
52559 /* end confdefs.h.  */
52560 $ac_includes_default
52561 static long int longval () { return (long int) (sizeof (long long)); }
52562 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
52563 #include <stdio.h>
52564 #include <stdlib.h>
52565 int
52566 main ()
52567 {
52568
52569   FILE *f = fopen ("conftest.val", "w");
52570   if (! f)
52571     return 1;
52572   if (((long int) (sizeof (long long))) < 0)
52573     {
52574       long int i = longval ();
52575       if (i != ((long int) (sizeof (long long))))
52576         return 1;
52577       fprintf (f, "%ld", i);
52578     }
52579   else
52580     {
52581       unsigned long int i = ulongval ();
52582       if (i != ((long int) (sizeof (long long))))
52583         return 1;
52584       fprintf (f, "%lu", i);
52585     }
52586   /* Do not output a trailing newline, as this causes \r\n confusion
52587      on some platforms.  */
52588   return ferror (f) || fclose (f) != 0;
52589
52590   ;
52591   return 0;
52592 }
52593 _ACEOF
52594 rm -f conftest$ac_exeext
52595 if { (ac_try="$ac_link"
52596 case "(($ac_try" in
52597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52598   *) ac_try_echo=$ac_try;;
52599 esac
52600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52601 $as_echo "$ac_try_echo") >&5
52602   (eval "$ac_link") 2>&5
52603   ac_status=$?
52604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52606   { (case "(($ac_try" in
52607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52608   *) ac_try_echo=$ac_try;;
52609 esac
52610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52611 $as_echo "$ac_try_echo") >&5
52612   (eval "$ac_try") 2>&5
52613   ac_status=$?
52614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615   (exit $ac_status); }; }; then
52616   ac_cv_sizeof_long_long=`cat conftest.val`
52617 else
52618   $as_echo "$as_me: program exited with status $ac_status" >&5
52619 $as_echo "$as_me: failed program was:" >&5
52620 sed 's/^/| /' conftest.$ac_ext >&5
52621
52622 ( exit $ac_status )
52623 if test "$ac_cv_type_long_long" = yes; then
52624      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52626 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52627 See \`config.log' for more details." >&5
52628 $as_echo "$as_me: error: cannot compute sizeof (long long)
52629 See \`config.log' for more details." >&2;}
52630    { (exit 77); exit 77; }; }; }
52631    else
52632      ac_cv_sizeof_long_long=0
52633    fi
52634 fi
52635 rm -rf conftest.dSYM
52636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52637 fi
52638 rm -f conftest.val
52639 fi
52640 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
52641 $as_echo "$ac_cv_sizeof_long_long" >&6; }
52642
52643
52644
52645 cat >>confdefs.h <<_ACEOF
52646 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
52647 _ACEOF
52648
52649
52650 # The cast to long int works around a bug in the HP C Compiler
52651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52653 # This bug is HP SR number 8606223364.
52654 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
52655 $as_echo_n "checking size of intmax_t... " >&6; }
52656 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
52657   $as_echo_n "(cached) " >&6
52658 else
52659   if test "$cross_compiling" = yes; then
52660   # Depending upon the size, compute the lo and hi bounds.
52661 cat >conftest.$ac_ext <<_ACEOF
52662 /* confdefs.h.  */
52663 _ACEOF
52664 cat confdefs.h >>conftest.$ac_ext
52665 cat >>conftest.$ac_ext <<_ACEOF
52666 /* end confdefs.h.  */
52667 $ac_includes_default
52668 int
52669 main ()
52670 {
52671 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
52672 test_array [0] = 0
52673
52674   ;
52675   return 0;
52676 }
52677 _ACEOF
52678 rm -f conftest.$ac_objext
52679 if { (ac_try="$ac_compile"
52680 case "(($ac_try" in
52681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52682   *) ac_try_echo=$ac_try;;
52683 esac
52684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52685 $as_echo "$ac_try_echo") >&5
52686   (eval "$ac_compile") 2>conftest.er1
52687   ac_status=$?
52688   grep -v '^ *+' conftest.er1 >conftest.err
52689   rm -f conftest.er1
52690   cat conftest.err >&5
52691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52692   (exit $ac_status); } && {
52693          test -z "$ac_c_werror_flag" ||
52694          test ! -s conftest.err
52695        } && test -s conftest.$ac_objext; then
52696   ac_lo=0 ac_mid=0
52697   while :; do
52698     cat >conftest.$ac_ext <<_ACEOF
52699 /* confdefs.h.  */
52700 _ACEOF
52701 cat confdefs.h >>conftest.$ac_ext
52702 cat >>conftest.$ac_ext <<_ACEOF
52703 /* end confdefs.h.  */
52704 $ac_includes_default
52705 int
52706 main ()
52707 {
52708 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52709 test_array [0] = 0
52710
52711   ;
52712   return 0;
52713 }
52714 _ACEOF
52715 rm -f conftest.$ac_objext
52716 if { (ac_try="$ac_compile"
52717 case "(($ac_try" in
52718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52719   *) ac_try_echo=$ac_try;;
52720 esac
52721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52722 $as_echo "$ac_try_echo") >&5
52723   (eval "$ac_compile") 2>conftest.er1
52724   ac_status=$?
52725   grep -v '^ *+' conftest.er1 >conftest.err
52726   rm -f conftest.er1
52727   cat conftest.err >&5
52728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52729   (exit $ac_status); } && {
52730          test -z "$ac_c_werror_flag" ||
52731          test ! -s conftest.err
52732        } && test -s conftest.$ac_objext; then
52733   ac_hi=$ac_mid; break
52734 else
52735   $as_echo "$as_me: failed program was:" >&5
52736 sed 's/^/| /' conftest.$ac_ext >&5
52737
52738         ac_lo=`expr $ac_mid + 1`
52739                         if test $ac_lo -le $ac_mid; then
52740                           ac_lo= ac_hi=
52741                           break
52742                         fi
52743                         ac_mid=`expr 2 '*' $ac_mid + 1`
52744 fi
52745
52746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52747   done
52748 else
52749   $as_echo "$as_me: failed program was:" >&5
52750 sed 's/^/| /' conftest.$ac_ext >&5
52751
52752         cat >conftest.$ac_ext <<_ACEOF
52753 /* confdefs.h.  */
52754 _ACEOF
52755 cat confdefs.h >>conftest.$ac_ext
52756 cat >>conftest.$ac_ext <<_ACEOF
52757 /* end confdefs.h.  */
52758 $ac_includes_default
52759 int
52760 main ()
52761 {
52762 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
52763 test_array [0] = 0
52764
52765   ;
52766   return 0;
52767 }
52768 _ACEOF
52769 rm -f conftest.$ac_objext
52770 if { (ac_try="$ac_compile"
52771 case "(($ac_try" in
52772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52773   *) ac_try_echo=$ac_try;;
52774 esac
52775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52776 $as_echo "$ac_try_echo") >&5
52777   (eval "$ac_compile") 2>conftest.er1
52778   ac_status=$?
52779   grep -v '^ *+' conftest.er1 >conftest.err
52780   rm -f conftest.er1
52781   cat conftest.err >&5
52782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52783   (exit $ac_status); } && {
52784          test -z "$ac_c_werror_flag" ||
52785          test ! -s conftest.err
52786        } && test -s conftest.$ac_objext; then
52787   ac_hi=-1 ac_mid=-1
52788   while :; do
52789     cat >conftest.$ac_ext <<_ACEOF
52790 /* confdefs.h.  */
52791 _ACEOF
52792 cat confdefs.h >>conftest.$ac_ext
52793 cat >>conftest.$ac_ext <<_ACEOF
52794 /* end confdefs.h.  */
52795 $ac_includes_default
52796 int
52797 main ()
52798 {
52799 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
52800 test_array [0] = 0
52801
52802   ;
52803   return 0;
52804 }
52805 _ACEOF
52806 rm -f conftest.$ac_objext
52807 if { (ac_try="$ac_compile"
52808 case "(($ac_try" in
52809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52810   *) ac_try_echo=$ac_try;;
52811 esac
52812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52813 $as_echo "$ac_try_echo") >&5
52814   (eval "$ac_compile") 2>conftest.er1
52815   ac_status=$?
52816   grep -v '^ *+' conftest.er1 >conftest.err
52817   rm -f conftest.er1
52818   cat conftest.err >&5
52819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52820   (exit $ac_status); } && {
52821          test -z "$ac_c_werror_flag" ||
52822          test ! -s conftest.err
52823        } && test -s conftest.$ac_objext; then
52824   ac_lo=$ac_mid; break
52825 else
52826   $as_echo "$as_me: failed program was:" >&5
52827 sed 's/^/| /' conftest.$ac_ext >&5
52828
52829         ac_hi=`expr '(' $ac_mid ')' - 1`
52830                         if test $ac_mid -le $ac_hi; then
52831                           ac_lo= ac_hi=
52832                           break
52833                         fi
52834                         ac_mid=`expr 2 '*' $ac_mid`
52835 fi
52836
52837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52838   done
52839 else
52840   $as_echo "$as_me: failed program was:" >&5
52841 sed 's/^/| /' conftest.$ac_ext >&5
52842
52843         ac_lo= ac_hi=
52844 fi
52845
52846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52847 fi
52848
52849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52850 # Binary search between lo and hi bounds.
52851 while test "x$ac_lo" != "x$ac_hi"; do
52852   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52853   cat >conftest.$ac_ext <<_ACEOF
52854 /* confdefs.h.  */
52855 _ACEOF
52856 cat confdefs.h >>conftest.$ac_ext
52857 cat >>conftest.$ac_ext <<_ACEOF
52858 /* end confdefs.h.  */
52859 $ac_includes_default
52860 int
52861 main ()
52862 {
52863 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52864 test_array [0] = 0
52865
52866   ;
52867   return 0;
52868 }
52869 _ACEOF
52870 rm -f conftest.$ac_objext
52871 if { (ac_try="$ac_compile"
52872 case "(($ac_try" in
52873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52874   *) ac_try_echo=$ac_try;;
52875 esac
52876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52877 $as_echo "$ac_try_echo") >&5
52878   (eval "$ac_compile") 2>conftest.er1
52879   ac_status=$?
52880   grep -v '^ *+' conftest.er1 >conftest.err
52881   rm -f conftest.er1
52882   cat conftest.err >&5
52883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52884   (exit $ac_status); } && {
52885          test -z "$ac_c_werror_flag" ||
52886          test ! -s conftest.err
52887        } && test -s conftest.$ac_objext; then
52888   ac_hi=$ac_mid
52889 else
52890   $as_echo "$as_me: failed program was:" >&5
52891 sed 's/^/| /' conftest.$ac_ext >&5
52892
52893         ac_lo=`expr '(' $ac_mid ')' + 1`
52894 fi
52895
52896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52897 done
52898 case $ac_lo in
52899 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
52900 '') if test "$ac_cv_type_intmax_t" = yes; then
52901      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52903 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52904 See \`config.log' for more details." >&5
52905 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
52906 See \`config.log' for more details." >&2;}
52907    { (exit 77); exit 77; }; }; }
52908    else
52909      ac_cv_sizeof_intmax_t=0
52910    fi ;;
52911 esac
52912 else
52913   cat >conftest.$ac_ext <<_ACEOF
52914 /* confdefs.h.  */
52915 _ACEOF
52916 cat confdefs.h >>conftest.$ac_ext
52917 cat >>conftest.$ac_ext <<_ACEOF
52918 /* end confdefs.h.  */
52919 $ac_includes_default
52920 static long int longval () { return (long int) (sizeof (intmax_t)); }
52921 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
52922 #include <stdio.h>
52923 #include <stdlib.h>
52924 int
52925 main ()
52926 {
52927
52928   FILE *f = fopen ("conftest.val", "w");
52929   if (! f)
52930     return 1;
52931   if (((long int) (sizeof (intmax_t))) < 0)
52932     {
52933       long int i = longval ();
52934       if (i != ((long int) (sizeof (intmax_t))))
52935         return 1;
52936       fprintf (f, "%ld", i);
52937     }
52938   else
52939     {
52940       unsigned long int i = ulongval ();
52941       if (i != ((long int) (sizeof (intmax_t))))
52942         return 1;
52943       fprintf (f, "%lu", i);
52944     }
52945   /* Do not output a trailing newline, as this causes \r\n confusion
52946      on some platforms.  */
52947   return ferror (f) || fclose (f) != 0;
52948
52949   ;
52950   return 0;
52951 }
52952 _ACEOF
52953 rm -f conftest$ac_exeext
52954 if { (ac_try="$ac_link"
52955 case "(($ac_try" in
52956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52957   *) ac_try_echo=$ac_try;;
52958 esac
52959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52960 $as_echo "$ac_try_echo") >&5
52961   (eval "$ac_link") 2>&5
52962   ac_status=$?
52963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52965   { (case "(($ac_try" in
52966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52967   *) ac_try_echo=$ac_try;;
52968 esac
52969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52970 $as_echo "$ac_try_echo") >&5
52971   (eval "$ac_try") 2>&5
52972   ac_status=$?
52973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52974   (exit $ac_status); }; }; then
52975   ac_cv_sizeof_intmax_t=`cat conftest.val`
52976 else
52977   $as_echo "$as_me: program exited with status $ac_status" >&5
52978 $as_echo "$as_me: failed program was:" >&5
52979 sed 's/^/| /' conftest.$ac_ext >&5
52980
52981 ( exit $ac_status )
52982 if test "$ac_cv_type_intmax_t" = yes; then
52983      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52985 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52986 See \`config.log' for more details." >&5
52987 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
52988 See \`config.log' for more details." >&2;}
52989    { (exit 77); exit 77; }; }; }
52990    else
52991      ac_cv_sizeof_intmax_t=0
52992    fi
52993 fi
52994 rm -rf conftest.dSYM
52995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52996 fi
52997 rm -f conftest.val
52998 fi
52999 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
53000 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
53001
53002
53003
53004 cat >>confdefs.h <<_ACEOF
53005 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
53006 _ACEOF
53007
53008
53009 # The cast to long int works around a bug in the HP C Compiler
53010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53012 # This bug is HP SR number 8606223364.
53013 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
53014 $as_echo_n "checking size of off_t... " >&6; }
53015 if test "${ac_cv_sizeof_off_t+set}" = set; then
53016   $as_echo_n "(cached) " >&6
53017 else
53018   if test "$cross_compiling" = yes; then
53019   # Depending upon the size, compute the lo and hi bounds.
53020 cat >conftest.$ac_ext <<_ACEOF
53021 /* confdefs.h.  */
53022 _ACEOF
53023 cat confdefs.h >>conftest.$ac_ext
53024 cat >>conftest.$ac_ext <<_ACEOF
53025 /* end confdefs.h.  */
53026 $ac_includes_default
53027 int
53028 main ()
53029 {
53030 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
53031 test_array [0] = 0
53032
53033   ;
53034   return 0;
53035 }
53036 _ACEOF
53037 rm -f conftest.$ac_objext
53038 if { (ac_try="$ac_compile"
53039 case "(($ac_try" in
53040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53041   *) ac_try_echo=$ac_try;;
53042 esac
53043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53044 $as_echo "$ac_try_echo") >&5
53045   (eval "$ac_compile") 2>conftest.er1
53046   ac_status=$?
53047   grep -v '^ *+' conftest.er1 >conftest.err
53048   rm -f conftest.er1
53049   cat conftest.err >&5
53050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53051   (exit $ac_status); } && {
53052          test -z "$ac_c_werror_flag" ||
53053          test ! -s conftest.err
53054        } && test -s conftest.$ac_objext; then
53055   ac_lo=0 ac_mid=0
53056   while :; do
53057     cat >conftest.$ac_ext <<_ACEOF
53058 /* confdefs.h.  */
53059 _ACEOF
53060 cat confdefs.h >>conftest.$ac_ext
53061 cat >>conftest.$ac_ext <<_ACEOF
53062 /* end confdefs.h.  */
53063 $ac_includes_default
53064 int
53065 main ()
53066 {
53067 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53068 test_array [0] = 0
53069
53070   ;
53071   return 0;
53072 }
53073 _ACEOF
53074 rm -f conftest.$ac_objext
53075 if { (ac_try="$ac_compile"
53076 case "(($ac_try" in
53077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53078   *) ac_try_echo=$ac_try;;
53079 esac
53080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53081 $as_echo "$ac_try_echo") >&5
53082   (eval "$ac_compile") 2>conftest.er1
53083   ac_status=$?
53084   grep -v '^ *+' conftest.er1 >conftest.err
53085   rm -f conftest.er1
53086   cat conftest.err >&5
53087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53088   (exit $ac_status); } && {
53089          test -z "$ac_c_werror_flag" ||
53090          test ! -s conftest.err
53091        } && test -s conftest.$ac_objext; then
53092   ac_hi=$ac_mid; break
53093 else
53094   $as_echo "$as_me: failed program was:" >&5
53095 sed 's/^/| /' conftest.$ac_ext >&5
53096
53097         ac_lo=`expr $ac_mid + 1`
53098                         if test $ac_lo -le $ac_mid; then
53099                           ac_lo= ac_hi=
53100                           break
53101                         fi
53102                         ac_mid=`expr 2 '*' $ac_mid + 1`
53103 fi
53104
53105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53106   done
53107 else
53108   $as_echo "$as_me: failed program was:" >&5
53109 sed 's/^/| /' conftest.$ac_ext >&5
53110
53111         cat >conftest.$ac_ext <<_ACEOF
53112 /* confdefs.h.  */
53113 _ACEOF
53114 cat confdefs.h >>conftest.$ac_ext
53115 cat >>conftest.$ac_ext <<_ACEOF
53116 /* end confdefs.h.  */
53117 $ac_includes_default
53118 int
53119 main ()
53120 {
53121 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
53122 test_array [0] = 0
53123
53124   ;
53125   return 0;
53126 }
53127 _ACEOF
53128 rm -f conftest.$ac_objext
53129 if { (ac_try="$ac_compile"
53130 case "(($ac_try" in
53131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53132   *) ac_try_echo=$ac_try;;
53133 esac
53134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53135 $as_echo "$ac_try_echo") >&5
53136   (eval "$ac_compile") 2>conftest.er1
53137   ac_status=$?
53138   grep -v '^ *+' conftest.er1 >conftest.err
53139   rm -f conftest.er1
53140   cat conftest.err >&5
53141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53142   (exit $ac_status); } && {
53143          test -z "$ac_c_werror_flag" ||
53144          test ! -s conftest.err
53145        } && test -s conftest.$ac_objext; then
53146   ac_hi=-1 ac_mid=-1
53147   while :; do
53148     cat >conftest.$ac_ext <<_ACEOF
53149 /* confdefs.h.  */
53150 _ACEOF
53151 cat confdefs.h >>conftest.$ac_ext
53152 cat >>conftest.$ac_ext <<_ACEOF
53153 /* end confdefs.h.  */
53154 $ac_includes_default
53155 int
53156 main ()
53157 {
53158 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
53159 test_array [0] = 0
53160
53161   ;
53162   return 0;
53163 }
53164 _ACEOF
53165 rm -f conftest.$ac_objext
53166 if { (ac_try="$ac_compile"
53167 case "(($ac_try" in
53168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53169   *) ac_try_echo=$ac_try;;
53170 esac
53171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53172 $as_echo "$ac_try_echo") >&5
53173   (eval "$ac_compile") 2>conftest.er1
53174   ac_status=$?
53175   grep -v '^ *+' conftest.er1 >conftest.err
53176   rm -f conftest.er1
53177   cat conftest.err >&5
53178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53179   (exit $ac_status); } && {
53180          test -z "$ac_c_werror_flag" ||
53181          test ! -s conftest.err
53182        } && test -s conftest.$ac_objext; then
53183   ac_lo=$ac_mid; break
53184 else
53185   $as_echo "$as_me: failed program was:" >&5
53186 sed 's/^/| /' conftest.$ac_ext >&5
53187
53188         ac_hi=`expr '(' $ac_mid ')' - 1`
53189                         if test $ac_mid -le $ac_hi; then
53190                           ac_lo= ac_hi=
53191                           break
53192                         fi
53193                         ac_mid=`expr 2 '*' $ac_mid`
53194 fi
53195
53196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53197   done
53198 else
53199   $as_echo "$as_me: failed program was:" >&5
53200 sed 's/^/| /' conftest.$ac_ext >&5
53201
53202         ac_lo= ac_hi=
53203 fi
53204
53205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53206 fi
53207
53208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53209 # Binary search between lo and hi bounds.
53210 while test "x$ac_lo" != "x$ac_hi"; do
53211   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53212   cat >conftest.$ac_ext <<_ACEOF
53213 /* confdefs.h.  */
53214 _ACEOF
53215 cat confdefs.h >>conftest.$ac_ext
53216 cat >>conftest.$ac_ext <<_ACEOF
53217 /* end confdefs.h.  */
53218 $ac_includes_default
53219 int
53220 main ()
53221 {
53222 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53223 test_array [0] = 0
53224
53225   ;
53226   return 0;
53227 }
53228 _ACEOF
53229 rm -f conftest.$ac_objext
53230 if { (ac_try="$ac_compile"
53231 case "(($ac_try" in
53232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53233   *) ac_try_echo=$ac_try;;
53234 esac
53235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53236 $as_echo "$ac_try_echo") >&5
53237   (eval "$ac_compile") 2>conftest.er1
53238   ac_status=$?
53239   grep -v '^ *+' conftest.er1 >conftest.err
53240   rm -f conftest.er1
53241   cat conftest.err >&5
53242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53243   (exit $ac_status); } && {
53244          test -z "$ac_c_werror_flag" ||
53245          test ! -s conftest.err
53246        } && test -s conftest.$ac_objext; then
53247   ac_hi=$ac_mid
53248 else
53249   $as_echo "$as_me: failed program was:" >&5
53250 sed 's/^/| /' conftest.$ac_ext >&5
53251
53252         ac_lo=`expr '(' $ac_mid ')' + 1`
53253 fi
53254
53255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53256 done
53257 case $ac_lo in
53258 ?*) ac_cv_sizeof_off_t=$ac_lo;;
53259 '') if test "$ac_cv_type_off_t" = yes; then
53260      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53262 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53263 See \`config.log' for more details." >&5
53264 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53265 See \`config.log' for more details." >&2;}
53266    { (exit 77); exit 77; }; }; }
53267    else
53268      ac_cv_sizeof_off_t=0
53269    fi ;;
53270 esac
53271 else
53272   cat >conftest.$ac_ext <<_ACEOF
53273 /* confdefs.h.  */
53274 _ACEOF
53275 cat confdefs.h >>conftest.$ac_ext
53276 cat >>conftest.$ac_ext <<_ACEOF
53277 /* end confdefs.h.  */
53278 $ac_includes_default
53279 static long int longval () { return (long int) (sizeof (off_t)); }
53280 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
53281 #include <stdio.h>
53282 #include <stdlib.h>
53283 int
53284 main ()
53285 {
53286
53287   FILE *f = fopen ("conftest.val", "w");
53288   if (! f)
53289     return 1;
53290   if (((long int) (sizeof (off_t))) < 0)
53291     {
53292       long int i = longval ();
53293       if (i != ((long int) (sizeof (off_t))))
53294         return 1;
53295       fprintf (f, "%ld", i);
53296     }
53297   else
53298     {
53299       unsigned long int i = ulongval ();
53300       if (i != ((long int) (sizeof (off_t))))
53301         return 1;
53302       fprintf (f, "%lu", i);
53303     }
53304   /* Do not output a trailing newline, as this causes \r\n confusion
53305      on some platforms.  */
53306   return ferror (f) || fclose (f) != 0;
53307
53308   ;
53309   return 0;
53310 }
53311 _ACEOF
53312 rm -f conftest$ac_exeext
53313 if { (ac_try="$ac_link"
53314 case "(($ac_try" in
53315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53316   *) ac_try_echo=$ac_try;;
53317 esac
53318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53319 $as_echo "$ac_try_echo") >&5
53320   (eval "$ac_link") 2>&5
53321   ac_status=$?
53322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53324   { (case "(($ac_try" in
53325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53326   *) ac_try_echo=$ac_try;;
53327 esac
53328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53329 $as_echo "$ac_try_echo") >&5
53330   (eval "$ac_try") 2>&5
53331   ac_status=$?
53332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53333   (exit $ac_status); }; }; then
53334   ac_cv_sizeof_off_t=`cat conftest.val`
53335 else
53336   $as_echo "$as_me: program exited with status $ac_status" >&5
53337 $as_echo "$as_me: failed program was:" >&5
53338 sed 's/^/| /' conftest.$ac_ext >&5
53339
53340 ( exit $ac_status )
53341 if test "$ac_cv_type_off_t" = yes; then
53342      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53344 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53345 See \`config.log' for more details." >&5
53346 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53347 See \`config.log' for more details." >&2;}
53348    { (exit 77); exit 77; }; }; }
53349    else
53350      ac_cv_sizeof_off_t=0
53351    fi
53352 fi
53353 rm -rf conftest.dSYM
53354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53355 fi
53356 rm -f conftest.val
53357 fi
53358 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
53359 $as_echo "$ac_cv_sizeof_off_t" >&6; }
53360
53361
53362
53363 cat >>confdefs.h <<_ACEOF
53364 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
53365 _ACEOF
53366
53367
53368 # The cast to long int works around a bug in the HP C Compiler
53369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53371 # This bug is HP SR number 8606223364.
53372 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
53373 $as_echo_n "checking size of size_t... " >&6; }
53374 if test "${ac_cv_sizeof_size_t+set}" = set; then
53375   $as_echo_n "(cached) " >&6
53376 else
53377   if test "$cross_compiling" = yes; then
53378   # Depending upon the size, compute the lo and hi bounds.
53379 cat >conftest.$ac_ext <<_ACEOF
53380 /* confdefs.h.  */
53381 _ACEOF
53382 cat confdefs.h >>conftest.$ac_ext
53383 cat >>conftest.$ac_ext <<_ACEOF
53384 /* end confdefs.h.  */
53385 $ac_includes_default
53386 int
53387 main ()
53388 {
53389 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
53390 test_array [0] = 0
53391
53392   ;
53393   return 0;
53394 }
53395 _ACEOF
53396 rm -f conftest.$ac_objext
53397 if { (ac_try="$ac_compile"
53398 case "(($ac_try" in
53399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53400   *) ac_try_echo=$ac_try;;
53401 esac
53402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53403 $as_echo "$ac_try_echo") >&5
53404   (eval "$ac_compile") 2>conftest.er1
53405   ac_status=$?
53406   grep -v '^ *+' conftest.er1 >conftest.err
53407   rm -f conftest.er1
53408   cat conftest.err >&5
53409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53410   (exit $ac_status); } && {
53411          test -z "$ac_c_werror_flag" ||
53412          test ! -s conftest.err
53413        } && test -s conftest.$ac_objext; then
53414   ac_lo=0 ac_mid=0
53415   while :; do
53416     cat >conftest.$ac_ext <<_ACEOF
53417 /* confdefs.h.  */
53418 _ACEOF
53419 cat confdefs.h >>conftest.$ac_ext
53420 cat >>conftest.$ac_ext <<_ACEOF
53421 /* end confdefs.h.  */
53422 $ac_includes_default
53423 int
53424 main ()
53425 {
53426 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53427 test_array [0] = 0
53428
53429   ;
53430   return 0;
53431 }
53432 _ACEOF
53433 rm -f conftest.$ac_objext
53434 if { (ac_try="$ac_compile"
53435 case "(($ac_try" in
53436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53437   *) ac_try_echo=$ac_try;;
53438 esac
53439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53440 $as_echo "$ac_try_echo") >&5
53441   (eval "$ac_compile") 2>conftest.er1
53442   ac_status=$?
53443   grep -v '^ *+' conftest.er1 >conftest.err
53444   rm -f conftest.er1
53445   cat conftest.err >&5
53446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53447   (exit $ac_status); } && {
53448          test -z "$ac_c_werror_flag" ||
53449          test ! -s conftest.err
53450        } && test -s conftest.$ac_objext; then
53451   ac_hi=$ac_mid; break
53452 else
53453   $as_echo "$as_me: failed program was:" >&5
53454 sed 's/^/| /' conftest.$ac_ext >&5
53455
53456         ac_lo=`expr $ac_mid + 1`
53457                         if test $ac_lo -le $ac_mid; then
53458                           ac_lo= ac_hi=
53459                           break
53460                         fi
53461                         ac_mid=`expr 2 '*' $ac_mid + 1`
53462 fi
53463
53464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53465   done
53466 else
53467   $as_echo "$as_me: failed program was:" >&5
53468 sed 's/^/| /' conftest.$ac_ext >&5
53469
53470         cat >conftest.$ac_ext <<_ACEOF
53471 /* confdefs.h.  */
53472 _ACEOF
53473 cat confdefs.h >>conftest.$ac_ext
53474 cat >>conftest.$ac_ext <<_ACEOF
53475 /* end confdefs.h.  */
53476 $ac_includes_default
53477 int
53478 main ()
53479 {
53480 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
53481 test_array [0] = 0
53482
53483   ;
53484   return 0;
53485 }
53486 _ACEOF
53487 rm -f conftest.$ac_objext
53488 if { (ac_try="$ac_compile"
53489 case "(($ac_try" in
53490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53491   *) ac_try_echo=$ac_try;;
53492 esac
53493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53494 $as_echo "$ac_try_echo") >&5
53495   (eval "$ac_compile") 2>conftest.er1
53496   ac_status=$?
53497   grep -v '^ *+' conftest.er1 >conftest.err
53498   rm -f conftest.er1
53499   cat conftest.err >&5
53500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53501   (exit $ac_status); } && {
53502          test -z "$ac_c_werror_flag" ||
53503          test ! -s conftest.err
53504        } && test -s conftest.$ac_objext; then
53505   ac_hi=-1 ac_mid=-1
53506   while :; do
53507     cat >conftest.$ac_ext <<_ACEOF
53508 /* confdefs.h.  */
53509 _ACEOF
53510 cat confdefs.h >>conftest.$ac_ext
53511 cat >>conftest.$ac_ext <<_ACEOF
53512 /* end confdefs.h.  */
53513 $ac_includes_default
53514 int
53515 main ()
53516 {
53517 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
53518 test_array [0] = 0
53519
53520   ;
53521   return 0;
53522 }
53523 _ACEOF
53524 rm -f conftest.$ac_objext
53525 if { (ac_try="$ac_compile"
53526 case "(($ac_try" in
53527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53528   *) ac_try_echo=$ac_try;;
53529 esac
53530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53531 $as_echo "$ac_try_echo") >&5
53532   (eval "$ac_compile") 2>conftest.er1
53533   ac_status=$?
53534   grep -v '^ *+' conftest.er1 >conftest.err
53535   rm -f conftest.er1
53536   cat conftest.err >&5
53537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53538   (exit $ac_status); } && {
53539          test -z "$ac_c_werror_flag" ||
53540          test ! -s conftest.err
53541        } && test -s conftest.$ac_objext; then
53542   ac_lo=$ac_mid; break
53543 else
53544   $as_echo "$as_me: failed program was:" >&5
53545 sed 's/^/| /' conftest.$ac_ext >&5
53546
53547         ac_hi=`expr '(' $ac_mid ')' - 1`
53548                         if test $ac_mid -le $ac_hi; then
53549                           ac_lo= ac_hi=
53550                           break
53551                         fi
53552                         ac_mid=`expr 2 '*' $ac_mid`
53553 fi
53554
53555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53556   done
53557 else
53558   $as_echo "$as_me: failed program was:" >&5
53559 sed 's/^/| /' conftest.$ac_ext >&5
53560
53561         ac_lo= ac_hi=
53562 fi
53563
53564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53565 fi
53566
53567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53568 # Binary search between lo and hi bounds.
53569 while test "x$ac_lo" != "x$ac_hi"; do
53570   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53571   cat >conftest.$ac_ext <<_ACEOF
53572 /* confdefs.h.  */
53573 _ACEOF
53574 cat confdefs.h >>conftest.$ac_ext
53575 cat >>conftest.$ac_ext <<_ACEOF
53576 /* end confdefs.h.  */
53577 $ac_includes_default
53578 int
53579 main ()
53580 {
53581 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53582 test_array [0] = 0
53583
53584   ;
53585   return 0;
53586 }
53587 _ACEOF
53588 rm -f conftest.$ac_objext
53589 if { (ac_try="$ac_compile"
53590 case "(($ac_try" in
53591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53592   *) ac_try_echo=$ac_try;;
53593 esac
53594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53595 $as_echo "$ac_try_echo") >&5
53596   (eval "$ac_compile") 2>conftest.er1
53597   ac_status=$?
53598   grep -v '^ *+' conftest.er1 >conftest.err
53599   rm -f conftest.er1
53600   cat conftest.err >&5
53601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53602   (exit $ac_status); } && {
53603          test -z "$ac_c_werror_flag" ||
53604          test ! -s conftest.err
53605        } && test -s conftest.$ac_objext; then
53606   ac_hi=$ac_mid
53607 else
53608   $as_echo "$as_me: failed program was:" >&5
53609 sed 's/^/| /' conftest.$ac_ext >&5
53610
53611         ac_lo=`expr '(' $ac_mid ')' + 1`
53612 fi
53613
53614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53615 done
53616 case $ac_lo in
53617 ?*) ac_cv_sizeof_size_t=$ac_lo;;
53618 '') if test "$ac_cv_type_size_t" = yes; then
53619      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53621 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53622 See \`config.log' for more details." >&5
53623 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53624 See \`config.log' for more details." >&2;}
53625    { (exit 77); exit 77; }; }; }
53626    else
53627      ac_cv_sizeof_size_t=0
53628    fi ;;
53629 esac
53630 else
53631   cat >conftest.$ac_ext <<_ACEOF
53632 /* confdefs.h.  */
53633 _ACEOF
53634 cat confdefs.h >>conftest.$ac_ext
53635 cat >>conftest.$ac_ext <<_ACEOF
53636 /* end confdefs.h.  */
53637 $ac_includes_default
53638 static long int longval () { return (long int) (sizeof (size_t)); }
53639 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
53640 #include <stdio.h>
53641 #include <stdlib.h>
53642 int
53643 main ()
53644 {
53645
53646   FILE *f = fopen ("conftest.val", "w");
53647   if (! f)
53648     return 1;
53649   if (((long int) (sizeof (size_t))) < 0)
53650     {
53651       long int i = longval ();
53652       if (i != ((long int) (sizeof (size_t))))
53653         return 1;
53654       fprintf (f, "%ld", i);
53655     }
53656   else
53657     {
53658       unsigned long int i = ulongval ();
53659       if (i != ((long int) (sizeof (size_t))))
53660         return 1;
53661       fprintf (f, "%lu", i);
53662     }
53663   /* Do not output a trailing newline, as this causes \r\n confusion
53664      on some platforms.  */
53665   return ferror (f) || fclose (f) != 0;
53666
53667   ;
53668   return 0;
53669 }
53670 _ACEOF
53671 rm -f conftest$ac_exeext
53672 if { (ac_try="$ac_link"
53673 case "(($ac_try" in
53674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53675   *) ac_try_echo=$ac_try;;
53676 esac
53677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53678 $as_echo "$ac_try_echo") >&5
53679   (eval "$ac_link") 2>&5
53680   ac_status=$?
53681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53683   { (case "(($ac_try" in
53684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53685   *) ac_try_echo=$ac_try;;
53686 esac
53687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53688 $as_echo "$ac_try_echo") >&5
53689   (eval "$ac_try") 2>&5
53690   ac_status=$?
53691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53692   (exit $ac_status); }; }; then
53693   ac_cv_sizeof_size_t=`cat conftest.val`
53694 else
53695   $as_echo "$as_me: program exited with status $ac_status" >&5
53696 $as_echo "$as_me: failed program was:" >&5
53697 sed 's/^/| /' conftest.$ac_ext >&5
53698
53699 ( exit $ac_status )
53700 if test "$ac_cv_type_size_t" = yes; then
53701      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53703 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53704 See \`config.log' for more details." >&5
53705 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53706 See \`config.log' for more details." >&2;}
53707    { (exit 77); exit 77; }; }; }
53708    else
53709      ac_cv_sizeof_size_t=0
53710    fi
53711 fi
53712 rm -rf conftest.dSYM
53713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53714 fi
53715 rm -f conftest.val
53716 fi
53717 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
53718 $as_echo "$ac_cv_sizeof_size_t" >&6; }
53719
53720
53721
53722 cat >>confdefs.h <<_ACEOF
53723 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
53724 _ACEOF
53725
53726
53727 # The cast to long int works around a bug in the HP C Compiler
53728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53730 # This bug is HP SR number 8606223364.
53731 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
53732 $as_echo_n "checking size of ssize_t... " >&6; }
53733 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
53734   $as_echo_n "(cached) " >&6
53735 else
53736   if test "$cross_compiling" = yes; then
53737   # Depending upon the size, compute the lo and hi bounds.
53738 cat >conftest.$ac_ext <<_ACEOF
53739 /* confdefs.h.  */
53740 _ACEOF
53741 cat confdefs.h >>conftest.$ac_ext
53742 cat >>conftest.$ac_ext <<_ACEOF
53743 /* end confdefs.h.  */
53744 $ac_includes_default
53745 int
53746 main ()
53747 {
53748 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
53749 test_array [0] = 0
53750
53751   ;
53752   return 0;
53753 }
53754 _ACEOF
53755 rm -f conftest.$ac_objext
53756 if { (ac_try="$ac_compile"
53757 case "(($ac_try" in
53758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53759   *) ac_try_echo=$ac_try;;
53760 esac
53761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53762 $as_echo "$ac_try_echo") >&5
53763   (eval "$ac_compile") 2>conftest.er1
53764   ac_status=$?
53765   grep -v '^ *+' conftest.er1 >conftest.err
53766   rm -f conftest.er1
53767   cat conftest.err >&5
53768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53769   (exit $ac_status); } && {
53770          test -z "$ac_c_werror_flag" ||
53771          test ! -s conftest.err
53772        } && test -s conftest.$ac_objext; then
53773   ac_lo=0 ac_mid=0
53774   while :; do
53775     cat >conftest.$ac_ext <<_ACEOF
53776 /* confdefs.h.  */
53777 _ACEOF
53778 cat confdefs.h >>conftest.$ac_ext
53779 cat >>conftest.$ac_ext <<_ACEOF
53780 /* end confdefs.h.  */
53781 $ac_includes_default
53782 int
53783 main ()
53784 {
53785 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
53786 test_array [0] = 0
53787
53788   ;
53789   return 0;
53790 }
53791 _ACEOF
53792 rm -f conftest.$ac_objext
53793 if { (ac_try="$ac_compile"
53794 case "(($ac_try" in
53795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53796   *) ac_try_echo=$ac_try;;
53797 esac
53798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53799 $as_echo "$ac_try_echo") >&5
53800   (eval "$ac_compile") 2>conftest.er1
53801   ac_status=$?
53802   grep -v '^ *+' conftest.er1 >conftest.err
53803   rm -f conftest.er1
53804   cat conftest.err >&5
53805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53806   (exit $ac_status); } && {
53807          test -z "$ac_c_werror_flag" ||
53808          test ! -s conftest.err
53809        } && test -s conftest.$ac_objext; then
53810   ac_hi=$ac_mid; break
53811 else
53812   $as_echo "$as_me: failed program was:" >&5
53813 sed 's/^/| /' conftest.$ac_ext >&5
53814
53815         ac_lo=`expr $ac_mid + 1`
53816                         if test $ac_lo -le $ac_mid; then
53817                           ac_lo= ac_hi=
53818                           break
53819                         fi
53820                         ac_mid=`expr 2 '*' $ac_mid + 1`
53821 fi
53822
53823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53824   done
53825 else
53826   $as_echo "$as_me: failed program was:" >&5
53827 sed 's/^/| /' conftest.$ac_ext >&5
53828
53829         cat >conftest.$ac_ext <<_ACEOF
53830 /* confdefs.h.  */
53831 _ACEOF
53832 cat confdefs.h >>conftest.$ac_ext
53833 cat >>conftest.$ac_ext <<_ACEOF
53834 /* end confdefs.h.  */
53835 $ac_includes_default
53836 int
53837 main ()
53838 {
53839 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
53840 test_array [0] = 0
53841
53842   ;
53843   return 0;
53844 }
53845 _ACEOF
53846 rm -f conftest.$ac_objext
53847 if { (ac_try="$ac_compile"
53848 case "(($ac_try" in
53849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53850   *) ac_try_echo=$ac_try;;
53851 esac
53852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53853 $as_echo "$ac_try_echo") >&5
53854   (eval "$ac_compile") 2>conftest.er1
53855   ac_status=$?
53856   grep -v '^ *+' conftest.er1 >conftest.err
53857   rm -f conftest.er1
53858   cat conftest.err >&5
53859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53860   (exit $ac_status); } && {
53861          test -z "$ac_c_werror_flag" ||
53862          test ! -s conftest.err
53863        } && test -s conftest.$ac_objext; then
53864   ac_hi=-1 ac_mid=-1
53865   while :; do
53866     cat >conftest.$ac_ext <<_ACEOF
53867 /* confdefs.h.  */
53868 _ACEOF
53869 cat confdefs.h >>conftest.$ac_ext
53870 cat >>conftest.$ac_ext <<_ACEOF
53871 /* end confdefs.h.  */
53872 $ac_includes_default
53873 int
53874 main ()
53875 {
53876 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
53877 test_array [0] = 0
53878
53879   ;
53880   return 0;
53881 }
53882 _ACEOF
53883 rm -f conftest.$ac_objext
53884 if { (ac_try="$ac_compile"
53885 case "(($ac_try" in
53886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53887   *) ac_try_echo=$ac_try;;
53888 esac
53889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53890 $as_echo "$ac_try_echo") >&5
53891   (eval "$ac_compile") 2>conftest.er1
53892   ac_status=$?
53893   grep -v '^ *+' conftest.er1 >conftest.err
53894   rm -f conftest.er1
53895   cat conftest.err >&5
53896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53897   (exit $ac_status); } && {
53898          test -z "$ac_c_werror_flag" ||
53899          test ! -s conftest.err
53900        } && test -s conftest.$ac_objext; then
53901   ac_lo=$ac_mid; break
53902 else
53903   $as_echo "$as_me: failed program was:" >&5
53904 sed 's/^/| /' conftest.$ac_ext >&5
53905
53906         ac_hi=`expr '(' $ac_mid ')' - 1`
53907                         if test $ac_mid -le $ac_hi; then
53908                           ac_lo= ac_hi=
53909                           break
53910                         fi
53911                         ac_mid=`expr 2 '*' $ac_mid`
53912 fi
53913
53914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53915   done
53916 else
53917   $as_echo "$as_me: failed program was:" >&5
53918 sed 's/^/| /' conftest.$ac_ext >&5
53919
53920         ac_lo= ac_hi=
53921 fi
53922
53923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53924 fi
53925
53926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53927 # Binary search between lo and hi bounds.
53928 while test "x$ac_lo" != "x$ac_hi"; do
53929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53930   cat >conftest.$ac_ext <<_ACEOF
53931 /* confdefs.h.  */
53932 _ACEOF
53933 cat confdefs.h >>conftest.$ac_ext
53934 cat >>conftest.$ac_ext <<_ACEOF
53935 /* end confdefs.h.  */
53936 $ac_includes_default
53937 int
53938 main ()
53939 {
53940 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
53941 test_array [0] = 0
53942
53943   ;
53944   return 0;
53945 }
53946 _ACEOF
53947 rm -f conftest.$ac_objext
53948 if { (ac_try="$ac_compile"
53949 case "(($ac_try" in
53950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53951   *) ac_try_echo=$ac_try;;
53952 esac
53953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53954 $as_echo "$ac_try_echo") >&5
53955   (eval "$ac_compile") 2>conftest.er1
53956   ac_status=$?
53957   grep -v '^ *+' conftest.er1 >conftest.err
53958   rm -f conftest.er1
53959   cat conftest.err >&5
53960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53961   (exit $ac_status); } && {
53962          test -z "$ac_c_werror_flag" ||
53963          test ! -s conftest.err
53964        } && test -s conftest.$ac_objext; then
53965   ac_hi=$ac_mid
53966 else
53967   $as_echo "$as_me: failed program was:" >&5
53968 sed 's/^/| /' conftest.$ac_ext >&5
53969
53970         ac_lo=`expr '(' $ac_mid ')' + 1`
53971 fi
53972
53973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53974 done
53975 case $ac_lo in
53976 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
53977 '') if test "$ac_cv_type_ssize_t" = yes; then
53978      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53980 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
53981 See \`config.log' for more details." >&5
53982 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
53983 See \`config.log' for more details." >&2;}
53984    { (exit 77); exit 77; }; }; }
53985    else
53986      ac_cv_sizeof_ssize_t=0
53987    fi ;;
53988 esac
53989 else
53990   cat >conftest.$ac_ext <<_ACEOF
53991 /* confdefs.h.  */
53992 _ACEOF
53993 cat confdefs.h >>conftest.$ac_ext
53994 cat >>conftest.$ac_ext <<_ACEOF
53995 /* end confdefs.h.  */
53996 $ac_includes_default
53997 static long int longval () { return (long int) (sizeof (ssize_t)); }
53998 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
53999 #include <stdio.h>
54000 #include <stdlib.h>
54001 int
54002 main ()
54003 {
54004
54005   FILE *f = fopen ("conftest.val", "w");
54006   if (! f)
54007     return 1;
54008   if (((long int) (sizeof (ssize_t))) < 0)
54009     {
54010       long int i = longval ();
54011       if (i != ((long int) (sizeof (ssize_t))))
54012         return 1;
54013       fprintf (f, "%ld", i);
54014     }
54015   else
54016     {
54017       unsigned long int i = ulongval ();
54018       if (i != ((long int) (sizeof (ssize_t))))
54019         return 1;
54020       fprintf (f, "%lu", i);
54021     }
54022   /* Do not output a trailing newline, as this causes \r\n confusion
54023      on some platforms.  */
54024   return ferror (f) || fclose (f) != 0;
54025
54026   ;
54027   return 0;
54028 }
54029 _ACEOF
54030 rm -f conftest$ac_exeext
54031 if { (ac_try="$ac_link"
54032 case "(($ac_try" in
54033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54034   *) ac_try_echo=$ac_try;;
54035 esac
54036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54037 $as_echo "$ac_try_echo") >&5
54038   (eval "$ac_link") 2>&5
54039   ac_status=$?
54040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54042   { (case "(($ac_try" in
54043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54044   *) ac_try_echo=$ac_try;;
54045 esac
54046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54047 $as_echo "$ac_try_echo") >&5
54048   (eval "$ac_try") 2>&5
54049   ac_status=$?
54050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54051   (exit $ac_status); }; }; then
54052   ac_cv_sizeof_ssize_t=`cat conftest.val`
54053 else
54054   $as_echo "$as_me: program exited with status $ac_status" >&5
54055 $as_echo "$as_me: failed program was:" >&5
54056 sed 's/^/| /' conftest.$ac_ext >&5
54057
54058 ( exit $ac_status )
54059 if test "$ac_cv_type_ssize_t" = yes; then
54060      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54062 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54063 See \`config.log' for more details." >&5
54064 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54065 See \`config.log' for more details." >&2;}
54066    { (exit 77); exit 77; }; }; }
54067    else
54068      ac_cv_sizeof_ssize_t=0
54069    fi
54070 fi
54071 rm -rf conftest.dSYM
54072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54073 fi
54074 rm -f conftest.val
54075 fi
54076 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
54077 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
54078
54079
54080
54081 cat >>confdefs.h <<_ACEOF
54082 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
54083 _ACEOF
54084
54085
54086 # The cast to long int works around a bug in the HP C Compiler
54087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54089 # This bug is HP SR number 8606223364.
54090 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
54091 $as_echo_n "checking size of time_t... " >&6; }
54092 if test "${ac_cv_sizeof_time_t+set}" = set; then
54093   $as_echo_n "(cached) " >&6
54094 else
54095   if test "$cross_compiling" = yes; then
54096   # Depending upon the size, compute the lo and hi bounds.
54097 cat >conftest.$ac_ext <<_ACEOF
54098 /* confdefs.h.  */
54099 _ACEOF
54100 cat confdefs.h >>conftest.$ac_ext
54101 cat >>conftest.$ac_ext <<_ACEOF
54102 /* end confdefs.h.  */
54103 $ac_includes_default
54104 int
54105 main ()
54106 {
54107 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
54108 test_array [0] = 0
54109
54110   ;
54111   return 0;
54112 }
54113 _ACEOF
54114 rm -f conftest.$ac_objext
54115 if { (ac_try="$ac_compile"
54116 case "(($ac_try" in
54117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54118   *) ac_try_echo=$ac_try;;
54119 esac
54120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54121 $as_echo "$ac_try_echo") >&5
54122   (eval "$ac_compile") 2>conftest.er1
54123   ac_status=$?
54124   grep -v '^ *+' conftest.er1 >conftest.err
54125   rm -f conftest.er1
54126   cat conftest.err >&5
54127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54128   (exit $ac_status); } && {
54129          test -z "$ac_c_werror_flag" ||
54130          test ! -s conftest.err
54131        } && test -s conftest.$ac_objext; then
54132   ac_lo=0 ac_mid=0
54133   while :; do
54134     cat >conftest.$ac_ext <<_ACEOF
54135 /* confdefs.h.  */
54136 _ACEOF
54137 cat confdefs.h >>conftest.$ac_ext
54138 cat >>conftest.$ac_ext <<_ACEOF
54139 /* end confdefs.h.  */
54140 $ac_includes_default
54141 int
54142 main ()
54143 {
54144 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54145 test_array [0] = 0
54146
54147   ;
54148   return 0;
54149 }
54150 _ACEOF
54151 rm -f conftest.$ac_objext
54152 if { (ac_try="$ac_compile"
54153 case "(($ac_try" in
54154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54155   *) ac_try_echo=$ac_try;;
54156 esac
54157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54158 $as_echo "$ac_try_echo") >&5
54159   (eval "$ac_compile") 2>conftest.er1
54160   ac_status=$?
54161   grep -v '^ *+' conftest.er1 >conftest.err
54162   rm -f conftest.er1
54163   cat conftest.err >&5
54164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54165   (exit $ac_status); } && {
54166          test -z "$ac_c_werror_flag" ||
54167          test ! -s conftest.err
54168        } && test -s conftest.$ac_objext; then
54169   ac_hi=$ac_mid; break
54170 else
54171   $as_echo "$as_me: failed program was:" >&5
54172 sed 's/^/| /' conftest.$ac_ext >&5
54173
54174         ac_lo=`expr $ac_mid + 1`
54175                         if test $ac_lo -le $ac_mid; then
54176                           ac_lo= ac_hi=
54177                           break
54178                         fi
54179                         ac_mid=`expr 2 '*' $ac_mid + 1`
54180 fi
54181
54182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54183   done
54184 else
54185   $as_echo "$as_me: failed program was:" >&5
54186 sed 's/^/| /' conftest.$ac_ext >&5
54187
54188         cat >conftest.$ac_ext <<_ACEOF
54189 /* confdefs.h.  */
54190 _ACEOF
54191 cat confdefs.h >>conftest.$ac_ext
54192 cat >>conftest.$ac_ext <<_ACEOF
54193 /* end confdefs.h.  */
54194 $ac_includes_default
54195 int
54196 main ()
54197 {
54198 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
54199 test_array [0] = 0
54200
54201   ;
54202   return 0;
54203 }
54204 _ACEOF
54205 rm -f conftest.$ac_objext
54206 if { (ac_try="$ac_compile"
54207 case "(($ac_try" in
54208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54209   *) ac_try_echo=$ac_try;;
54210 esac
54211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54212 $as_echo "$ac_try_echo") >&5
54213   (eval "$ac_compile") 2>conftest.er1
54214   ac_status=$?
54215   grep -v '^ *+' conftest.er1 >conftest.err
54216   rm -f conftest.er1
54217   cat conftest.err >&5
54218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54219   (exit $ac_status); } && {
54220          test -z "$ac_c_werror_flag" ||
54221          test ! -s conftest.err
54222        } && test -s conftest.$ac_objext; then
54223   ac_hi=-1 ac_mid=-1
54224   while :; do
54225     cat >conftest.$ac_ext <<_ACEOF
54226 /* confdefs.h.  */
54227 _ACEOF
54228 cat confdefs.h >>conftest.$ac_ext
54229 cat >>conftest.$ac_ext <<_ACEOF
54230 /* end confdefs.h.  */
54231 $ac_includes_default
54232 int
54233 main ()
54234 {
54235 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
54236 test_array [0] = 0
54237
54238   ;
54239   return 0;
54240 }
54241 _ACEOF
54242 rm -f conftest.$ac_objext
54243 if { (ac_try="$ac_compile"
54244 case "(($ac_try" in
54245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54246   *) ac_try_echo=$ac_try;;
54247 esac
54248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54249 $as_echo "$ac_try_echo") >&5
54250   (eval "$ac_compile") 2>conftest.er1
54251   ac_status=$?
54252   grep -v '^ *+' conftest.er1 >conftest.err
54253   rm -f conftest.er1
54254   cat conftest.err >&5
54255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54256   (exit $ac_status); } && {
54257          test -z "$ac_c_werror_flag" ||
54258          test ! -s conftest.err
54259        } && test -s conftest.$ac_objext; then
54260   ac_lo=$ac_mid; break
54261 else
54262   $as_echo "$as_me: failed program was:" >&5
54263 sed 's/^/| /' conftest.$ac_ext >&5
54264
54265         ac_hi=`expr '(' $ac_mid ')' - 1`
54266                         if test $ac_mid -le $ac_hi; then
54267                           ac_lo= ac_hi=
54268                           break
54269                         fi
54270                         ac_mid=`expr 2 '*' $ac_mid`
54271 fi
54272
54273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54274   done
54275 else
54276   $as_echo "$as_me: failed program was:" >&5
54277 sed 's/^/| /' conftest.$ac_ext >&5
54278
54279         ac_lo= ac_hi=
54280 fi
54281
54282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54283 fi
54284
54285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54286 # Binary search between lo and hi bounds.
54287 while test "x$ac_lo" != "x$ac_hi"; do
54288   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54289   cat >conftest.$ac_ext <<_ACEOF
54290 /* confdefs.h.  */
54291 _ACEOF
54292 cat confdefs.h >>conftest.$ac_ext
54293 cat >>conftest.$ac_ext <<_ACEOF
54294 /* end confdefs.h.  */
54295 $ac_includes_default
54296 int
54297 main ()
54298 {
54299 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54300 test_array [0] = 0
54301
54302   ;
54303   return 0;
54304 }
54305 _ACEOF
54306 rm -f conftest.$ac_objext
54307 if { (ac_try="$ac_compile"
54308 case "(($ac_try" in
54309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54310   *) ac_try_echo=$ac_try;;
54311 esac
54312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54313 $as_echo "$ac_try_echo") >&5
54314   (eval "$ac_compile") 2>conftest.er1
54315   ac_status=$?
54316   grep -v '^ *+' conftest.er1 >conftest.err
54317   rm -f conftest.er1
54318   cat conftest.err >&5
54319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54320   (exit $ac_status); } && {
54321          test -z "$ac_c_werror_flag" ||
54322          test ! -s conftest.err
54323        } && test -s conftest.$ac_objext; then
54324   ac_hi=$ac_mid
54325 else
54326   $as_echo "$as_me: failed program was:" >&5
54327 sed 's/^/| /' conftest.$ac_ext >&5
54328
54329         ac_lo=`expr '(' $ac_mid ')' + 1`
54330 fi
54331
54332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54333 done
54334 case $ac_lo in
54335 ?*) ac_cv_sizeof_time_t=$ac_lo;;
54336 '') if test "$ac_cv_type_time_t" = yes; then
54337      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54339 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54340 See \`config.log' for more details." >&5
54341 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54342 See \`config.log' for more details." >&2;}
54343    { (exit 77); exit 77; }; }; }
54344    else
54345      ac_cv_sizeof_time_t=0
54346    fi ;;
54347 esac
54348 else
54349   cat >conftest.$ac_ext <<_ACEOF
54350 /* confdefs.h.  */
54351 _ACEOF
54352 cat confdefs.h >>conftest.$ac_ext
54353 cat >>conftest.$ac_ext <<_ACEOF
54354 /* end confdefs.h.  */
54355 $ac_includes_default
54356 static long int longval () { return (long int) (sizeof (time_t)); }
54357 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
54358 #include <stdio.h>
54359 #include <stdlib.h>
54360 int
54361 main ()
54362 {
54363
54364   FILE *f = fopen ("conftest.val", "w");
54365   if (! f)
54366     return 1;
54367   if (((long int) (sizeof (time_t))) < 0)
54368     {
54369       long int i = longval ();
54370       if (i != ((long int) (sizeof (time_t))))
54371         return 1;
54372       fprintf (f, "%ld", i);
54373     }
54374   else
54375     {
54376       unsigned long int i = ulongval ();
54377       if (i != ((long int) (sizeof (time_t))))
54378         return 1;
54379       fprintf (f, "%lu", i);
54380     }
54381   /* Do not output a trailing newline, as this causes \r\n confusion
54382      on some platforms.  */
54383   return ferror (f) || fclose (f) != 0;
54384
54385   ;
54386   return 0;
54387 }
54388 _ACEOF
54389 rm -f conftest$ac_exeext
54390 if { (ac_try="$ac_link"
54391 case "(($ac_try" in
54392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54393   *) ac_try_echo=$ac_try;;
54394 esac
54395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54396 $as_echo "$ac_try_echo") >&5
54397   (eval "$ac_link") 2>&5
54398   ac_status=$?
54399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54401   { (case "(($ac_try" in
54402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54403   *) ac_try_echo=$ac_try;;
54404 esac
54405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54406 $as_echo "$ac_try_echo") >&5
54407   (eval "$ac_try") 2>&5
54408   ac_status=$?
54409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54410   (exit $ac_status); }; }; then
54411   ac_cv_sizeof_time_t=`cat conftest.val`
54412 else
54413   $as_echo "$as_me: program exited with status $ac_status" >&5
54414 $as_echo "$as_me: failed program was:" >&5
54415 sed 's/^/| /' conftest.$ac_ext >&5
54416
54417 ( exit $ac_status )
54418 if test "$ac_cv_type_time_t" = yes; then
54419      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54421 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54422 See \`config.log' for more details." >&5
54423 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54424 See \`config.log' for more details." >&2;}
54425    { (exit 77); exit 77; }; }; }
54426    else
54427      ac_cv_sizeof_time_t=0
54428    fi
54429 fi
54430 rm -rf conftest.dSYM
54431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54432 fi
54433 rm -f conftest.val
54434 fi
54435 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
54436 $as_echo "$ac_cv_sizeof_time_t" >&6; }
54437
54438
54439
54440 cat >>confdefs.h <<_ACEOF
54441 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
54442 _ACEOF
54443
54444
54445 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
54446 $as_echo_n "checking for off_t... " >&6; }
54447 if test "${ac_cv_type_off_t+set}" = set; then
54448   $as_echo_n "(cached) " >&6
54449 else
54450   ac_cv_type_off_t=no
54451 cat >conftest.$ac_ext <<_ACEOF
54452 /* confdefs.h.  */
54453 _ACEOF
54454 cat confdefs.h >>conftest.$ac_ext
54455 cat >>conftest.$ac_ext <<_ACEOF
54456 /* end confdefs.h.  */
54457 $ac_includes_default
54458 int
54459 main ()
54460 {
54461 if (sizeof (off_t))
54462        return 0;
54463   ;
54464   return 0;
54465 }
54466 _ACEOF
54467 rm -f conftest.$ac_objext
54468 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
54476   ac_status=$?
54477   grep -v '^ *+' conftest.er1 >conftest.err
54478   rm -f conftest.er1
54479   cat conftest.err >&5
54480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54481   (exit $ac_status); } && {
54482          test -z "$ac_c_werror_flag" ||
54483          test ! -s conftest.err
54484        } && test -s conftest.$ac_objext; then
54485   cat >conftest.$ac_ext <<_ACEOF
54486 /* confdefs.h.  */
54487 _ACEOF
54488 cat confdefs.h >>conftest.$ac_ext
54489 cat >>conftest.$ac_ext <<_ACEOF
54490 /* end confdefs.h.  */
54491 $ac_includes_default
54492 int
54493 main ()
54494 {
54495 if (sizeof ((off_t)))
54496           return 0;
54497   ;
54498   return 0;
54499 }
54500 _ACEOF
54501 rm -f conftest.$ac_objext
54502 if { (ac_try="$ac_compile"
54503 case "(($ac_try" in
54504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54505   *) ac_try_echo=$ac_try;;
54506 esac
54507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54508 $as_echo "$ac_try_echo") >&5
54509   (eval "$ac_compile") 2>conftest.er1
54510   ac_status=$?
54511   grep -v '^ *+' conftest.er1 >conftest.err
54512   rm -f conftest.er1
54513   cat conftest.err >&5
54514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54515   (exit $ac_status); } && {
54516          test -z "$ac_c_werror_flag" ||
54517          test ! -s conftest.err
54518        } && test -s conftest.$ac_objext; then
54519   :
54520 else
54521   $as_echo "$as_me: failed program was:" >&5
54522 sed 's/^/| /' conftest.$ac_ext >&5
54523
54524         ac_cv_type_off_t=yes
54525 fi
54526
54527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54528 else
54529   $as_echo "$as_me: failed program was:" >&5
54530 sed 's/^/| /' conftest.$ac_ext >&5
54531
54532
54533 fi
54534
54535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54536 fi
54537 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
54538 $as_echo "$ac_cv_type_off_t" >&6; }
54539 if test "x$ac_cv_type_off_t" = x""yes; then
54540   :
54541 else
54542
54543 cat >>confdefs.h <<_ACEOF
54544 #define off_t long int
54545 _ACEOF
54546
54547 fi
54548
54549 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
54550 $as_echo_n "checking for pid_t... " >&6; }
54551 if test "${ac_cv_type_pid_t+set}" = set; then
54552   $as_echo_n "(cached) " >&6
54553 else
54554   ac_cv_type_pid_t=no
54555 cat >conftest.$ac_ext <<_ACEOF
54556 /* confdefs.h.  */
54557 _ACEOF
54558 cat confdefs.h >>conftest.$ac_ext
54559 cat >>conftest.$ac_ext <<_ACEOF
54560 /* end confdefs.h.  */
54561 $ac_includes_default
54562 int
54563 main ()
54564 {
54565 if (sizeof (pid_t))
54566        return 0;
54567   ;
54568   return 0;
54569 }
54570 _ACEOF
54571 rm -f conftest.$ac_objext
54572 if { (ac_try="$ac_compile"
54573 case "(($ac_try" in
54574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54575   *) ac_try_echo=$ac_try;;
54576 esac
54577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54578 $as_echo "$ac_try_echo") >&5
54579   (eval "$ac_compile") 2>conftest.er1
54580   ac_status=$?
54581   grep -v '^ *+' conftest.er1 >conftest.err
54582   rm -f conftest.er1
54583   cat conftest.err >&5
54584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54585   (exit $ac_status); } && {
54586          test -z "$ac_c_werror_flag" ||
54587          test ! -s conftest.err
54588        } && test -s conftest.$ac_objext; then
54589   cat >conftest.$ac_ext <<_ACEOF
54590 /* confdefs.h.  */
54591 _ACEOF
54592 cat confdefs.h >>conftest.$ac_ext
54593 cat >>conftest.$ac_ext <<_ACEOF
54594 /* end confdefs.h.  */
54595 $ac_includes_default
54596 int
54597 main ()
54598 {
54599 if (sizeof ((pid_t)))
54600           return 0;
54601   ;
54602   return 0;
54603 }
54604 _ACEOF
54605 rm -f conftest.$ac_objext
54606 if { (ac_try="$ac_compile"
54607 case "(($ac_try" in
54608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54609   *) ac_try_echo=$ac_try;;
54610 esac
54611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54612 $as_echo "$ac_try_echo") >&5
54613   (eval "$ac_compile") 2>conftest.er1
54614   ac_status=$?
54615   grep -v '^ *+' conftest.er1 >conftest.err
54616   rm -f conftest.er1
54617   cat conftest.err >&5
54618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54619   (exit $ac_status); } && {
54620          test -z "$ac_c_werror_flag" ||
54621          test ! -s conftest.err
54622        } && test -s conftest.$ac_objext; then
54623   :
54624 else
54625   $as_echo "$as_me: failed program was:" >&5
54626 sed 's/^/| /' conftest.$ac_ext >&5
54627
54628         ac_cv_type_pid_t=yes
54629 fi
54630
54631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54632 else
54633   $as_echo "$as_me: failed program was:" >&5
54634 sed 's/^/| /' conftest.$ac_ext >&5
54635
54636
54637 fi
54638
54639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54640 fi
54641 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
54642 $as_echo "$ac_cv_type_pid_t" >&6; }
54643 if test "x$ac_cv_type_pid_t" = x""yes; then
54644   :
54645 else
54646
54647 cat >>confdefs.h <<_ACEOF
54648 #define pid_t int
54649 _ACEOF
54650
54651 fi
54652
54653 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
54654 $as_echo_n "checking for size_t... " >&6; }
54655 if test "${ac_cv_type_size_t+set}" = set; then
54656   $as_echo_n "(cached) " >&6
54657 else
54658   ac_cv_type_size_t=no
54659 cat >conftest.$ac_ext <<_ACEOF
54660 /* confdefs.h.  */
54661 _ACEOF
54662 cat confdefs.h >>conftest.$ac_ext
54663 cat >>conftest.$ac_ext <<_ACEOF
54664 /* end confdefs.h.  */
54665 $ac_includes_default
54666 int
54667 main ()
54668 {
54669 if (sizeof (size_t))
54670        return 0;
54671   ;
54672   return 0;
54673 }
54674 _ACEOF
54675 rm -f conftest.$ac_objext
54676 if { (ac_try="$ac_compile"
54677 case "(($ac_try" in
54678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54679   *) ac_try_echo=$ac_try;;
54680 esac
54681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54682 $as_echo "$ac_try_echo") >&5
54683   (eval "$ac_compile") 2>conftest.er1
54684   ac_status=$?
54685   grep -v '^ *+' conftest.er1 >conftest.err
54686   rm -f conftest.er1
54687   cat conftest.err >&5
54688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54689   (exit $ac_status); } && {
54690          test -z "$ac_c_werror_flag" ||
54691          test ! -s conftest.err
54692        } && test -s conftest.$ac_objext; then
54693   cat >conftest.$ac_ext <<_ACEOF
54694 /* confdefs.h.  */
54695 _ACEOF
54696 cat confdefs.h >>conftest.$ac_ext
54697 cat >>conftest.$ac_ext <<_ACEOF
54698 /* end confdefs.h.  */
54699 $ac_includes_default
54700 int
54701 main ()
54702 {
54703 if (sizeof ((size_t)))
54704           return 0;
54705   ;
54706   return 0;
54707 }
54708 _ACEOF
54709 rm -f conftest.$ac_objext
54710 if { (ac_try="$ac_compile"
54711 case "(($ac_try" in
54712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54713   *) ac_try_echo=$ac_try;;
54714 esac
54715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54716 $as_echo "$ac_try_echo") >&5
54717   (eval "$ac_compile") 2>conftest.er1
54718   ac_status=$?
54719   grep -v '^ *+' conftest.er1 >conftest.err
54720   rm -f conftest.er1
54721   cat conftest.err >&5
54722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54723   (exit $ac_status); } && {
54724          test -z "$ac_c_werror_flag" ||
54725          test ! -s conftest.err
54726        } && test -s conftest.$ac_objext; then
54727   :
54728 else
54729   $as_echo "$as_me: failed program was:" >&5
54730 sed 's/^/| /' conftest.$ac_ext >&5
54731
54732         ac_cv_type_size_t=yes
54733 fi
54734
54735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54736 else
54737   $as_echo "$as_me: failed program was:" >&5
54738 sed 's/^/| /' conftest.$ac_ext >&5
54739
54740
54741 fi
54742
54743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54744 fi
54745 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
54746 $as_echo "$ac_cv_type_size_t" >&6; }
54747 if test "x$ac_cv_type_size_t" = x""yes; then
54748   :
54749 else
54750
54751 cat >>confdefs.h <<_ACEOF
54752 #define size_t unsigned int
54753 _ACEOF
54754
54755 fi
54756
54757 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
54758 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
54759 if test "${ac_cv_type_uid_t+set}" = set; then
54760   $as_echo_n "(cached) " >&6
54761 else
54762   cat >conftest.$ac_ext <<_ACEOF
54763 /* confdefs.h.  */
54764 _ACEOF
54765 cat confdefs.h >>conftest.$ac_ext
54766 cat >>conftest.$ac_ext <<_ACEOF
54767 /* end confdefs.h.  */
54768 #include <sys/types.h>
54769
54770 _ACEOF
54771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54772   $EGREP "uid_t" >/dev/null 2>&1; then
54773   ac_cv_type_uid_t=yes
54774 else
54775   ac_cv_type_uid_t=no
54776 fi
54777 rm -f conftest*
54778
54779 fi
54780 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
54781 $as_echo "$ac_cv_type_uid_t" >&6; }
54782 if test $ac_cv_type_uid_t = no; then
54783
54784 cat >>confdefs.h <<\_ACEOF
54785 #define uid_t int
54786 _ACEOF
54787
54788
54789 cat >>confdefs.h <<\_ACEOF
54790 #define gid_t int
54791 _ACEOF
54792
54793 fi
54794
54795 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
54796 $as_echo_n "checking return type of signal handlers... " >&6; }
54797 if test "${ac_cv_type_signal+set}" = set; then
54798   $as_echo_n "(cached) " >&6
54799 else
54800   cat >conftest.$ac_ext <<_ACEOF
54801 /* confdefs.h.  */
54802 _ACEOF
54803 cat confdefs.h >>conftest.$ac_ext
54804 cat >>conftest.$ac_ext <<_ACEOF
54805 /* end confdefs.h.  */
54806 #include <sys/types.h>
54807 #include <signal.h>
54808
54809 int
54810 main ()
54811 {
54812 return *(signal (0, 0)) (0) == 1;
54813   ;
54814   return 0;
54815 }
54816 _ACEOF
54817 rm -f conftest.$ac_objext
54818 if { (ac_try="$ac_compile"
54819 case "(($ac_try" in
54820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54821   *) ac_try_echo=$ac_try;;
54822 esac
54823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54824 $as_echo "$ac_try_echo") >&5
54825   (eval "$ac_compile") 2>conftest.er1
54826   ac_status=$?
54827   grep -v '^ *+' conftest.er1 >conftest.err
54828   rm -f conftest.er1
54829   cat conftest.err >&5
54830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54831   (exit $ac_status); } && {
54832          test -z "$ac_c_werror_flag" ||
54833          test ! -s conftest.err
54834        } && test -s conftest.$ac_objext; then
54835   ac_cv_type_signal=int
54836 else
54837   $as_echo "$as_me: failed program was:" >&5
54838 sed 's/^/| /' conftest.$ac_ext >&5
54839
54840         ac_cv_type_signal=void
54841 fi
54842
54843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54844 fi
54845 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
54846 $as_echo "$ac_cv_type_signal" >&6; }
54847
54848 cat >>confdefs.h <<_ACEOF
54849 #define RETSIGTYPE $ac_cv_type_signal
54850 _ACEOF
54851
54852
54853 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
54854 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
54855 if test "${ac_cv_struct_tm+set}" = set; then
54856   $as_echo_n "(cached) " >&6
54857 else
54858   cat >conftest.$ac_ext <<_ACEOF
54859 /* confdefs.h.  */
54860 _ACEOF
54861 cat confdefs.h >>conftest.$ac_ext
54862 cat >>conftest.$ac_ext <<_ACEOF
54863 /* end confdefs.h.  */
54864 #include <sys/types.h>
54865 #include <time.h>
54866
54867 int
54868 main ()
54869 {
54870 struct tm tm;
54871                                      int *p = &tm.tm_sec;
54872                                      return !p;
54873   ;
54874   return 0;
54875 }
54876 _ACEOF
54877 rm -f conftest.$ac_objext
54878 if { (ac_try="$ac_compile"
54879 case "(($ac_try" in
54880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54881   *) ac_try_echo=$ac_try;;
54882 esac
54883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54884 $as_echo "$ac_try_echo") >&5
54885   (eval "$ac_compile") 2>conftest.er1
54886   ac_status=$?
54887   grep -v '^ *+' conftest.er1 >conftest.err
54888   rm -f conftest.er1
54889   cat conftest.err >&5
54890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54891   (exit $ac_status); } && {
54892          test -z "$ac_c_werror_flag" ||
54893          test ! -s conftest.err
54894        } && test -s conftest.$ac_objext; then
54895   ac_cv_struct_tm=time.h
54896 else
54897   $as_echo "$as_me: failed program was:" >&5
54898 sed 's/^/| /' conftest.$ac_ext >&5
54899
54900         ac_cv_struct_tm=sys/time.h
54901 fi
54902
54903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54904 fi
54905 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
54906 $as_echo "$ac_cv_struct_tm" >&6; }
54907 if test $ac_cv_struct_tm = sys/time.h; then
54908
54909 cat >>confdefs.h <<\_ACEOF
54910 #define TM_IN_SYS_TIME 1
54911 _ACEOF
54912
54913 fi
54914
54915
54916       ## lifted from config/gnulib/socklen.m4
54917             { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
54918 $as_echo_n "checking for socklen_t equivalent... " >&6; }
54919       if test "${gl_cv_socklen_t_equiv+set}" = set; then
54920   $as_echo_n "(cached) " >&6
54921 else
54922   # Systems have either "struct sockaddr *" or
54923          # "void *" as the second argument to getpeername
54924          gl_cv_socklen_t_equiv=
54925          for arg2 in "struct sockaddr" void; do
54926            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
54927              cat >conftest.$ac_ext <<_ACEOF
54928 /* confdefs.h.  */
54929 _ACEOF
54930 cat confdefs.h >>conftest.$ac_ext
54931 cat >>conftest.$ac_ext <<_ACEOF
54932 /* end confdefs.h.  */
54933 #include <sys/types.h>
54934                 #include <sys/socket.h>
54935
54936                 int getpeername (int, $arg2 *, $t *);
54937 int
54938 main ()
54939 {
54940 $t len;
54941                 getpeername (0, 0, &len);
54942   ;
54943   return 0;
54944 }
54945 _ACEOF
54946 rm -f conftest.$ac_objext
54947 if { (ac_try="$ac_compile"
54948 case "(($ac_try" in
54949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54950   *) ac_try_echo=$ac_try;;
54951 esac
54952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54953 $as_echo "$ac_try_echo") >&5
54954   (eval "$ac_compile") 2>conftest.er1
54955   ac_status=$?
54956   grep -v '^ *+' conftest.er1 >conftest.err
54957   rm -f conftest.er1
54958   cat conftest.err >&5
54959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54960   (exit $ac_status); } && {
54961          test -z "$ac_c_werror_flag" ||
54962          test ! -s conftest.err
54963        } && test -s conftest.$ac_objext; then
54964   gl_cv_socklen_t_equiv="$t"
54965 else
54966   $as_echo "$as_me: failed program was:" >&5
54967 sed 's/^/| /' conftest.$ac_ext >&5
54968
54969
54970 fi
54971
54972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54973              test "$gl_cv_socklen_t_equiv" != "" && break
54974            done
54975            test "$gl_cv_socklen_t_equiv" != "" && break
54976          done
54977
54978 fi
54979
54980       ## end lifting from config/gnulib/socklen.m4
54981       # fallback if the check fails
54982       if test "$gl_cv_socklen_t_equiv" = ""; then
54983         gl_cv_socklen_t_equiv=socklen_t
54984       fi
54985       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
54986 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
54987
54988
54989 cat >>confdefs.h <<_ACEOF
54990 #define socklen_t_equiv $gl_cv_socklen_t_equiv
54991 _ACEOF
54992
54993
54994
54995
54996     { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
54997 $as_echo_n "checking for sa_family_t... " >&6; }
54998 if test "${ac_cv_type_sa_family_t+set}" = set; then
54999   $as_echo_n "(cached) " >&6
55000 else
55001   ac_cv_type_sa_family_t=no
55002 cat >conftest.$ac_ext <<_ACEOF
55003 /* confdefs.h.  */
55004 _ACEOF
55005 cat confdefs.h >>conftest.$ac_ext
55006 cat >>conftest.$ac_ext <<_ACEOF
55007 /* end confdefs.h.  */
55008
55009 #ifdef HAVE_SYS_TYPES_H
55010 #include <sys/types.h>
55011 #endif
55012 #ifdef STDC_HEADERS
55013 #include <stdlib.h>
55014 #include <stddef.h>
55015 #endif
55016 #include <sys/socket.h>
55017
55018
55019
55020 int
55021 main ()
55022 {
55023 if (sizeof (sa_family_t))
55024        return 0;
55025   ;
55026   return 0;
55027 }
55028 _ACEOF
55029 rm -f conftest.$ac_objext
55030 if { (ac_try="$ac_compile"
55031 case "(($ac_try" in
55032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55033   *) ac_try_echo=$ac_try;;
55034 esac
55035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55036 $as_echo "$ac_try_echo") >&5
55037   (eval "$ac_compile") 2>conftest.er1
55038   ac_status=$?
55039   grep -v '^ *+' conftest.er1 >conftest.err
55040   rm -f conftest.er1
55041   cat conftest.err >&5
55042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55043   (exit $ac_status); } && {
55044          test -z "$ac_c_werror_flag" ||
55045          test ! -s conftest.err
55046        } && test -s conftest.$ac_objext; then
55047   cat >conftest.$ac_ext <<_ACEOF
55048 /* confdefs.h.  */
55049 _ACEOF
55050 cat confdefs.h >>conftest.$ac_ext
55051 cat >>conftest.$ac_ext <<_ACEOF
55052 /* end confdefs.h.  */
55053
55054 #ifdef HAVE_SYS_TYPES_H
55055 #include <sys/types.h>
55056 #endif
55057 #ifdef STDC_HEADERS
55058 #include <stdlib.h>
55059 #include <stddef.h>
55060 #endif
55061 #include <sys/socket.h>
55062
55063
55064
55065 int
55066 main ()
55067 {
55068 if (sizeof ((sa_family_t)))
55069           return 0;
55070   ;
55071   return 0;
55072 }
55073 _ACEOF
55074 rm -f conftest.$ac_objext
55075 if { (ac_try="$ac_compile"
55076 case "(($ac_try" in
55077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55078   *) ac_try_echo=$ac_try;;
55079 esac
55080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55081 $as_echo "$ac_try_echo") >&5
55082   (eval "$ac_compile") 2>conftest.er1
55083   ac_status=$?
55084   grep -v '^ *+' conftest.er1 >conftest.err
55085   rm -f conftest.er1
55086   cat conftest.err >&5
55087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55088   (exit $ac_status); } && {
55089          test -z "$ac_c_werror_flag" ||
55090          test ! -s conftest.err
55091        } && test -s conftest.$ac_objext; then
55092   :
55093 else
55094   $as_echo "$as_me: failed program was:" >&5
55095 sed 's/^/| /' conftest.$ac_ext >&5
55096
55097         ac_cv_type_sa_family_t=yes
55098 fi
55099
55100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55101 else
55102   $as_echo "$as_me: failed program was:" >&5
55103 sed 's/^/| /' conftest.$ac_ext >&5
55104
55105
55106 fi
55107
55108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55109 fi
55110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
55111 $as_echo "$ac_cv_type_sa_family_t" >&6; }
55112 if test "x$ac_cv_type_sa_family_t" = x""yes; then
55113   :
55114 else
55115
55116
55117 cat >>confdefs.h <<\_ACEOF
55118 #define sa_family_t unsigned short
55119 _ACEOF
55120
55121
55122 fi
55123
55124
55125
55126
55127     { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
55128 $as_echo_n "checking for in_port_t... " >&6; }
55129 if test "${ac_cv_type_in_port_t+set}" = set; then
55130   $as_echo_n "(cached) " >&6
55131 else
55132   ac_cv_type_in_port_t=no
55133 cat >conftest.$ac_ext <<_ACEOF
55134 /* confdefs.h.  */
55135 _ACEOF
55136 cat confdefs.h >>conftest.$ac_ext
55137 cat >>conftest.$ac_ext <<_ACEOF
55138 /* end confdefs.h.  */
55139
55140 #ifdef HAVE_SYS_TYPES_H
55141 #include <sys/types.h>
55142 #endif
55143 #ifdef STDC_HEADERS
55144 #include <stdlib.h>
55145 #include <stddef.h>
55146 #endif
55147 #include <netinet/in.h>
55148
55149
55150
55151 int
55152 main ()
55153 {
55154 if (sizeof (in_port_t))
55155        return 0;
55156   ;
55157   return 0;
55158 }
55159 _ACEOF
55160 rm -f conftest.$ac_objext
55161 if { (ac_try="$ac_compile"
55162 case "(($ac_try" in
55163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55164   *) ac_try_echo=$ac_try;;
55165 esac
55166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55167 $as_echo "$ac_try_echo") >&5
55168   (eval "$ac_compile") 2>conftest.er1
55169   ac_status=$?
55170   grep -v '^ *+' conftest.er1 >conftest.err
55171   rm -f conftest.er1
55172   cat conftest.err >&5
55173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55174   (exit $ac_status); } && {
55175          test -z "$ac_c_werror_flag" ||
55176          test ! -s conftest.err
55177        } && test -s conftest.$ac_objext; then
55178   cat >conftest.$ac_ext <<_ACEOF
55179 /* confdefs.h.  */
55180 _ACEOF
55181 cat confdefs.h >>conftest.$ac_ext
55182 cat >>conftest.$ac_ext <<_ACEOF
55183 /* end confdefs.h.  */
55184
55185 #ifdef HAVE_SYS_TYPES_H
55186 #include <sys/types.h>
55187 #endif
55188 #ifdef STDC_HEADERS
55189 #include <stdlib.h>
55190 #include <stddef.h>
55191 #endif
55192 #include <netinet/in.h>
55193
55194
55195
55196 int
55197 main ()
55198 {
55199 if (sizeof ((in_port_t)))
55200           return 0;
55201   ;
55202   return 0;
55203 }
55204 _ACEOF
55205 rm -f conftest.$ac_objext
55206 if { (ac_try="$ac_compile"
55207 case "(($ac_try" in
55208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55209   *) ac_try_echo=$ac_try;;
55210 esac
55211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55212 $as_echo "$ac_try_echo") >&5
55213   (eval "$ac_compile") 2>conftest.er1
55214   ac_status=$?
55215   grep -v '^ *+' conftest.er1 >conftest.err
55216   rm -f conftest.er1
55217   cat conftest.err >&5
55218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55219   (exit $ac_status); } && {
55220          test -z "$ac_c_werror_flag" ||
55221          test ! -s conftest.err
55222        } && test -s conftest.$ac_objext; then
55223   :
55224 else
55225   $as_echo "$as_me: failed program was:" >&5
55226 sed 's/^/| /' conftest.$ac_ext >&5
55227
55228         ac_cv_type_in_port_t=yes
55229 fi
55230
55231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55232 else
55233   $as_echo "$as_me: failed program was:" >&5
55234 sed 's/^/| /' conftest.$ac_ext >&5
55235
55236
55237 fi
55238
55239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55240 fi
55241 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
55242 $as_echo "$ac_cv_type_in_port_t" >&6; }
55243 if test "x$ac_cv_type_in_port_t" = x""yes; then
55244   :
55245 else
55246
55247
55248 cat >>confdefs.h <<\_ACEOF
55249 #define in_port_t unsigned short
55250 _ACEOF
55251
55252
55253 fi
55254
55255
55256
55257
55258
55259
55260 for ac_header in sys/wait.h wait.h
55261 do
55262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55264   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55265 $as_echo_n "checking for $ac_header... " >&6; }
55266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55267   $as_echo_n "(cached) " >&6
55268 fi
55269 ac_res=`eval 'as_val=${'$as_ac_Header'}
55270                  $as_echo "$as_val"'`
55271                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55272 $as_echo "$ac_res" >&6; }
55273 else
55274   # Is the header compilable?
55275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55276 $as_echo_n "checking $ac_header usability... " >&6; }
55277 cat >conftest.$ac_ext <<_ACEOF
55278 /* confdefs.h.  */
55279 _ACEOF
55280 cat confdefs.h >>conftest.$ac_ext
55281 cat >>conftest.$ac_ext <<_ACEOF
55282 /* end confdefs.h.  */
55283 $ac_includes_default
55284 #include <$ac_header>
55285 _ACEOF
55286 rm -f conftest.$ac_objext
55287 if { (ac_try="$ac_compile"
55288 case "(($ac_try" in
55289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55290   *) ac_try_echo=$ac_try;;
55291 esac
55292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55293 $as_echo "$ac_try_echo") >&5
55294   (eval "$ac_compile") 2>conftest.er1
55295   ac_status=$?
55296   grep -v '^ *+' conftest.er1 >conftest.err
55297   rm -f conftest.er1
55298   cat conftest.err >&5
55299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55300   (exit $ac_status); } && {
55301          test -z "$ac_c_werror_flag" ||
55302          test ! -s conftest.err
55303        } && test -s conftest.$ac_objext; then
55304   ac_header_compiler=yes
55305 else
55306   $as_echo "$as_me: failed program was:" >&5
55307 sed 's/^/| /' conftest.$ac_ext >&5
55308
55309         ac_header_compiler=no
55310 fi
55311
55312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55314 $as_echo "$ac_header_compiler" >&6; }
55315
55316 # Is the header present?
55317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55318 $as_echo_n "checking $ac_header presence... " >&6; }
55319 cat >conftest.$ac_ext <<_ACEOF
55320 /* confdefs.h.  */
55321 _ACEOF
55322 cat confdefs.h >>conftest.$ac_ext
55323 cat >>conftest.$ac_ext <<_ACEOF
55324 /* end confdefs.h.  */
55325 #include <$ac_header>
55326 _ACEOF
55327 if { (ac_try="$ac_cpp conftest.$ac_ext"
55328 case "(($ac_try" in
55329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55330   *) ac_try_echo=$ac_try;;
55331 esac
55332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55333 $as_echo "$ac_try_echo") >&5
55334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55335   ac_status=$?
55336   grep -v '^ *+' conftest.er1 >conftest.err
55337   rm -f conftest.er1
55338   cat conftest.err >&5
55339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55340   (exit $ac_status); } >/dev/null && {
55341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55342          test ! -s conftest.err
55343        }; then
55344   ac_header_preproc=yes
55345 else
55346   $as_echo "$as_me: failed program was:" >&5
55347 sed 's/^/| /' conftest.$ac_ext >&5
55348
55349   ac_header_preproc=no
55350 fi
55351
55352 rm -f conftest.err conftest.$ac_ext
55353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55354 $as_echo "$ac_header_preproc" >&6; }
55355
55356 # So?  What about this header?
55357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55358   yes:no: )
55359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55363     ac_header_preproc=yes
55364     ;;
55365   no:yes:* )
55366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55369 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55373 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55378
55379     ;;
55380 esac
55381 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55382 $as_echo_n "checking for $ac_header... " >&6; }
55383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55384   $as_echo_n "(cached) " >&6
55385 else
55386   eval "$as_ac_Header=\$ac_header_preproc"
55387 fi
55388 ac_res=`eval 'as_val=${'$as_ac_Header'}
55389                  $as_echo "$as_val"'`
55390                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55391 $as_echo "$ac_res" >&6; }
55392
55393 fi
55394 as_val=`eval 'as_val=${'$as_ac_Header'}
55395                  $as_echo "$as_val"'`
55396    if test "x$as_val" = x""yes; then
55397   cat >>confdefs.h <<_ACEOF
55398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55399 _ACEOF
55400
55401 fi
55402
55403 done
55404
55405     { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
55406 $as_echo_n "checking whether wait uses union wait... " >&6; }
55407 if test "${cf_cv_arg_union_wait+set}" = set; then
55408   $as_echo_n "(cached) " >&6
55409 else
55410
55411         cat >conftest.$ac_ext <<_ACEOF
55412 /* confdefs.h.  */
55413 _ACEOF
55414 cat confdefs.h >>conftest.$ac_ext
55415 cat >>conftest.$ac_ext <<_ACEOF
55416 /* end confdefs.h.  */
55417
55418 #include <sys/types.h>
55419
55420 #if HAVE_SYS_WAIT_H
55421 # include <sys/wait.h>
55422 #else
55423 # if HAVE_WAIT_H
55424 #  include <wait.h>
55425 # endif
55426 #endif
55427
55428 #ifdef __STDC__
55429 pid_t wait(union wait *);
55430 #endif
55431
55432 int
55433 main ()
55434 {
55435
55436   union wait x; int i;
55437   wait(&x); i = WIFEXITED(x)
55438
55439   ;
55440   return 0;
55441 }
55442 _ACEOF
55443 rm -f conftest.$ac_objext
55444 if { (ac_try="$ac_compile"
55445 case "(($ac_try" in
55446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55447   *) ac_try_echo=$ac_try;;
55448 esac
55449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55450 $as_echo "$ac_try_echo") >&5
55451   (eval "$ac_compile") 2>conftest.er1
55452   ac_status=$?
55453   grep -v '^ *+' conftest.er1 >conftest.err
55454   rm -f conftest.er1
55455   cat conftest.err >&5
55456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55457   (exit $ac_status); } && {
55458          test -z "$ac_c_werror_flag" ||
55459          test ! -s conftest.err
55460        } && test -s conftest.$ac_objext; then
55461   cf_cv_arg_union_wait=yes
55462 else
55463   $as_echo "$as_me: failed program was:" >&5
55464 sed 's/^/| /' conftest.$ac_ext >&5
55465
55466         cf_cv_arg_union_wait=no
55467 fi
55468
55469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55470 fi
55471 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
55472 $as_echo "$cf_cv_arg_union_wait" >&6; }
55473     if test $cf_cv_arg_union_wait = yes; then
55474
55475 cat >>confdefs.h <<\_ACEOF
55476 #define WAIT_USES_UNION 1
55477 _ACEOF
55478
55479     fi
55480
55481
55482
55483
55484
55485 for ac_header in sys/wait.h wait.h
55486 do
55487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55489   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55490 $as_echo_n "checking for $ac_header... " >&6; }
55491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55492   $as_echo_n "(cached) " >&6
55493 fi
55494 ac_res=`eval 'as_val=${'$as_ac_Header'}
55495                  $as_echo "$as_val"'`
55496                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55497 $as_echo "$ac_res" >&6; }
55498 else
55499   # Is the header compilable?
55500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55501 $as_echo_n "checking $ac_header usability... " >&6; }
55502 cat >conftest.$ac_ext <<_ACEOF
55503 /* confdefs.h.  */
55504 _ACEOF
55505 cat confdefs.h >>conftest.$ac_ext
55506 cat >>conftest.$ac_ext <<_ACEOF
55507 /* end confdefs.h.  */
55508 $ac_includes_default
55509 #include <$ac_header>
55510 _ACEOF
55511 rm -f conftest.$ac_objext
55512 if { (ac_try="$ac_compile"
55513 case "(($ac_try" in
55514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55515   *) ac_try_echo=$ac_try;;
55516 esac
55517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55518 $as_echo "$ac_try_echo") >&5
55519   (eval "$ac_compile") 2>conftest.er1
55520   ac_status=$?
55521   grep -v '^ *+' conftest.er1 >conftest.err
55522   rm -f conftest.er1
55523   cat conftest.err >&5
55524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55525   (exit $ac_status); } && {
55526          test -z "$ac_c_werror_flag" ||
55527          test ! -s conftest.err
55528        } && test -s conftest.$ac_objext; then
55529   ac_header_compiler=yes
55530 else
55531   $as_echo "$as_me: failed program was:" >&5
55532 sed 's/^/| /' conftest.$ac_ext >&5
55533
55534         ac_header_compiler=no
55535 fi
55536
55537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55539 $as_echo "$ac_header_compiler" >&6; }
55540
55541 # Is the header present?
55542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55543 $as_echo_n "checking $ac_header presence... " >&6; }
55544 cat >conftest.$ac_ext <<_ACEOF
55545 /* confdefs.h.  */
55546 _ACEOF
55547 cat confdefs.h >>conftest.$ac_ext
55548 cat >>conftest.$ac_ext <<_ACEOF
55549 /* end confdefs.h.  */
55550 #include <$ac_header>
55551 _ACEOF
55552 if { (ac_try="$ac_cpp conftest.$ac_ext"
55553 case "(($ac_try" in
55554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55555   *) ac_try_echo=$ac_try;;
55556 esac
55557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55558 $as_echo "$ac_try_echo") >&5
55559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55560   ac_status=$?
55561   grep -v '^ *+' conftest.er1 >conftest.err
55562   rm -f conftest.er1
55563   cat conftest.err >&5
55564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55565   (exit $ac_status); } >/dev/null && {
55566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55567          test ! -s conftest.err
55568        }; then
55569   ac_header_preproc=yes
55570 else
55571   $as_echo "$as_me: failed program was:" >&5
55572 sed 's/^/| /' conftest.$ac_ext >&5
55573
55574   ac_header_preproc=no
55575 fi
55576
55577 rm -f conftest.err conftest.$ac_ext
55578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55579 $as_echo "$ac_header_preproc" >&6; }
55580
55581 # So?  What about this header?
55582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55583   yes:no: )
55584     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55586     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55588     ac_header_preproc=yes
55589     ;;
55590   no:yes:* )
55591     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55594 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55598 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55603
55604     ;;
55605 esac
55606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55607 $as_echo_n "checking for $ac_header... " >&6; }
55608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55609   $as_echo_n "(cached) " >&6
55610 else
55611   eval "$as_ac_Header=\$ac_header_preproc"
55612 fi
55613 ac_res=`eval 'as_val=${'$as_ac_Header'}
55614                  $as_echo "$as_val"'`
55615                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55616 $as_echo "$ac_res" >&6; }
55617
55618 fi
55619 as_val=`eval 'as_val=${'$as_ac_Header'}
55620                  $as_echo "$as_val"'`
55621    if test "x$as_val" = x""yes; then
55622   cat >>confdefs.h <<_ACEOF
55623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55624 _ACEOF
55625
55626 fi
55627
55628 done
55629
55630     { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
55631 $as_echo_n "checking whether wait uses int... " >&6; }
55632 if test "${cf_cv_arg_int+set}" = set; then
55633   $as_echo_n "(cached) " >&6
55634 else
55635
55636         cat >conftest.$ac_ext <<_ACEOF
55637 /* confdefs.h.  */
55638 _ACEOF
55639 cat confdefs.h >>conftest.$ac_ext
55640 cat >>conftest.$ac_ext <<_ACEOF
55641 /* end confdefs.h.  */
55642
55643 #include <sys/types.h>
55644
55645 #if HAVE_SYS_WAIT_H
55646 # include <sys/wait.h>
55647 #else
55648 # if HAVE_WAIT_H
55649 #  include <wait.h>
55650 # endif
55651 #endif
55652
55653 #ifdef __STDC__
55654 pid_t wait(int *);
55655 #endif
55656
55657 int
55658 main ()
55659 {
55660
55661   int x; int i;
55662   wait(&x); i = WIFEXITED(x)
55663
55664   ;
55665   return 0;
55666 }
55667 _ACEOF
55668 rm -f conftest.$ac_objext
55669 if { (ac_try="$ac_compile"
55670 case "(($ac_try" in
55671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55672   *) ac_try_echo=$ac_try;;
55673 esac
55674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55675 $as_echo "$ac_try_echo") >&5
55676   (eval "$ac_compile") 2>conftest.er1
55677   ac_status=$?
55678   grep -v '^ *+' conftest.er1 >conftest.err
55679   rm -f conftest.er1
55680   cat conftest.err >&5
55681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55682   (exit $ac_status); } && {
55683          test -z "$ac_c_werror_flag" ||
55684          test ! -s conftest.err
55685        } && test -s conftest.$ac_objext; then
55686   cf_cv_arg_int=yes
55687 else
55688   $as_echo "$as_me: failed program was:" >&5
55689 sed 's/^/| /' conftest.$ac_ext >&5
55690
55691         cf_cv_arg_int=no
55692 fi
55693
55694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55695 fi
55696 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
55697 $as_echo "$cf_cv_arg_int" >&6; }
55698 if test $cf_cv_arg_int = yes; then
55699
55700 cat >>confdefs.h <<\_ACEOF
55701 #define WAIT_USES_INT 1
55702 _ACEOF
55703
55704 fi
55705
55706
55707 #
55708 # Libraries
55709 #
55710 # cur_colr is on some HP's
55711
55712 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
55713 $as_echo_n "checking for main in -lcur_colr... " >&6; }
55714 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
55715   $as_echo_n "(cached) " >&6
55716 else
55717   ac_check_lib_save_LIBS=$LIBS
55718 LIBS="-lcur_colr  $LIBS"
55719 cat >conftest.$ac_ext <<_ACEOF
55720 /* confdefs.h.  */
55721 _ACEOF
55722 cat confdefs.h >>conftest.$ac_ext
55723 cat >>conftest.$ac_ext <<_ACEOF
55724 /* end confdefs.h.  */
55725
55726
55727 int
55728 main ()
55729 {
55730 return main ();
55731   ;
55732   return 0;
55733 }
55734 _ACEOF
55735 rm -f conftest.$ac_objext conftest$ac_exeext
55736 if { (ac_try="$ac_link"
55737 case "(($ac_try" in
55738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55739   *) ac_try_echo=$ac_try;;
55740 esac
55741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55742 $as_echo "$ac_try_echo") >&5
55743   (eval "$ac_link") 2>conftest.er1
55744   ac_status=$?
55745   grep -v '^ *+' conftest.er1 >conftest.err
55746   rm -f conftest.er1
55747   cat conftest.err >&5
55748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55749   (exit $ac_status); } && {
55750          test -z "$ac_c_werror_flag" ||
55751          test ! -s conftest.err
55752        } && test -s conftest$ac_exeext && {
55753          test "$cross_compiling" = yes ||
55754          $as_test_x conftest$ac_exeext
55755        }; then
55756   ac_cv_lib_cur_colr_main=yes
55757 else
55758   $as_echo "$as_me: failed program was:" >&5
55759 sed 's/^/| /' conftest.$ac_ext >&5
55760
55761         ac_cv_lib_cur_colr_main=no
55762 fi
55763
55764 rm -rf conftest.dSYM
55765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55766       conftest$ac_exeext conftest.$ac_ext
55767 LIBS=$ac_check_lib_save_LIBS
55768 fi
55769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
55770 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
55771 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
55772   cat >>confdefs.h <<_ACEOF
55773 #define HAVE_LIBCUR_COLR 1
55774 _ACEOF
55775
55776   LIBS="-lcur_colr $LIBS"
55777
55778 fi
55779
55780
55781 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
55782 $as_echo_n "checking for main in -lintl... " >&6; }
55783 if test "${ac_cv_lib_intl_main+set}" = set; then
55784   $as_echo_n "(cached) " >&6
55785 else
55786   ac_check_lib_save_LIBS=$LIBS
55787 LIBS="-lintl  $LIBS"
55788 cat >conftest.$ac_ext <<_ACEOF
55789 /* confdefs.h.  */
55790 _ACEOF
55791 cat confdefs.h >>conftest.$ac_ext
55792 cat >>conftest.$ac_ext <<_ACEOF
55793 /* end confdefs.h.  */
55794
55795
55796 int
55797 main ()
55798 {
55799 return main ();
55800   ;
55801   return 0;
55802 }
55803 _ACEOF
55804 rm -f conftest.$ac_objext conftest$ac_exeext
55805 if { (ac_try="$ac_link"
55806 case "(($ac_try" in
55807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55808   *) ac_try_echo=$ac_try;;
55809 esac
55810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55811 $as_echo "$ac_try_echo") >&5
55812   (eval "$ac_link") 2>conftest.er1
55813   ac_status=$?
55814   grep -v '^ *+' conftest.er1 >conftest.err
55815   rm -f conftest.er1
55816   cat conftest.err >&5
55817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55818   (exit $ac_status); } && {
55819          test -z "$ac_c_werror_flag" ||
55820          test ! -s conftest.err
55821        } && test -s conftest$ac_exeext && {
55822          test "$cross_compiling" = yes ||
55823          $as_test_x conftest$ac_exeext
55824        }; then
55825   ac_cv_lib_intl_main=yes
55826 else
55827   $as_echo "$as_me: failed program was:" >&5
55828 sed 's/^/| /' conftest.$ac_ext >&5
55829
55830         ac_cv_lib_intl_main=no
55831 fi
55832
55833 rm -rf conftest.dSYM
55834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55835       conftest$ac_exeext conftest.$ac_ext
55836 LIBS=$ac_check_lib_save_LIBS
55837 fi
55838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
55839 $as_echo "$ac_cv_lib_intl_main" >&6; }
55840 if test "x$ac_cv_lib_intl_main" = x""yes; then
55841   cat >>confdefs.h <<_ACEOF
55842 #define HAVE_LIBINTL 1
55843 _ACEOF
55844
55845   LIBS="-lintl $LIBS"
55846
55847 fi
55848
55849
55850     # Make sure we don't use -lnsl and -lsun on Irix systems.
55851     case "$target" in
55852         *sgi-irix*)
55853
55854 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
55855 $as_echo_n "checking for main in -lsocket... " >&6; }
55856 if test "${ac_cv_lib_socket_main+set}" = set; then
55857   $as_echo_n "(cached) " >&6
55858 else
55859   ac_check_lib_save_LIBS=$LIBS
55860 LIBS="-lsocket  $LIBS"
55861 cat >conftest.$ac_ext <<_ACEOF
55862 /* confdefs.h.  */
55863 _ACEOF
55864 cat confdefs.h >>conftest.$ac_ext
55865 cat >>conftest.$ac_ext <<_ACEOF
55866 /* end confdefs.h.  */
55867
55868
55869 int
55870 main ()
55871 {
55872 return main ();
55873   ;
55874   return 0;
55875 }
55876 _ACEOF
55877 rm -f conftest.$ac_objext conftest$ac_exeext
55878 if { (ac_try="$ac_link"
55879 case "(($ac_try" in
55880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55881   *) ac_try_echo=$ac_try;;
55882 esac
55883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55884 $as_echo "$ac_try_echo") >&5
55885   (eval "$ac_link") 2>conftest.er1
55886   ac_status=$?
55887   grep -v '^ *+' conftest.er1 >conftest.err
55888   rm -f conftest.er1
55889   cat conftest.err >&5
55890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55891   (exit $ac_status); } && {
55892          test -z "$ac_c_werror_flag" ||
55893          test ! -s conftest.err
55894        } && test -s conftest$ac_exeext && {
55895          test "$cross_compiling" = yes ||
55896          $as_test_x conftest$ac_exeext
55897        }; then
55898   ac_cv_lib_socket_main=yes
55899 else
55900   $as_echo "$as_me: failed program was:" >&5
55901 sed 's/^/| /' conftest.$ac_ext >&5
55902
55903         ac_cv_lib_socket_main=no
55904 fi
55905
55906 rm -rf conftest.dSYM
55907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55908       conftest$ac_exeext conftest.$ac_ext
55909 LIBS=$ac_check_lib_save_LIBS
55910 fi
55911 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
55912 $as_echo "$ac_cv_lib_socket_main" >&6; }
55913 if test "x$ac_cv_lib_socket_main" = x""yes; then
55914   cat >>confdefs.h <<_ACEOF
55915 #define HAVE_LIBSOCKET 1
55916 _ACEOF
55917
55918   LIBS="-lsocket $LIBS"
55919
55920 fi
55921
55922                             ;;
55923         *)
55924
55925 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
55926 $as_echo_n "checking for main in -lresolv... " >&6; }
55927 if test "${ac_cv_lib_resolv_main+set}" = set; then
55928   $as_echo_n "(cached) " >&6
55929 else
55930   ac_check_lib_save_LIBS=$LIBS
55931 LIBS="-lresolv  $LIBS"
55932 cat >conftest.$ac_ext <<_ACEOF
55933 /* confdefs.h.  */
55934 _ACEOF
55935 cat confdefs.h >>conftest.$ac_ext
55936 cat >>conftest.$ac_ext <<_ACEOF
55937 /* end confdefs.h.  */
55938
55939
55940 int
55941 main ()
55942 {
55943 return main ();
55944   ;
55945   return 0;
55946 }
55947 _ACEOF
55948 rm -f conftest.$ac_objext conftest$ac_exeext
55949 if { (ac_try="$ac_link"
55950 case "(($ac_try" in
55951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55952   *) ac_try_echo=$ac_try;;
55953 esac
55954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55955 $as_echo "$ac_try_echo") >&5
55956   (eval "$ac_link") 2>conftest.er1
55957   ac_status=$?
55958   grep -v '^ *+' conftest.er1 >conftest.err
55959   rm -f conftest.er1
55960   cat conftest.err >&5
55961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55962   (exit $ac_status); } && {
55963          test -z "$ac_c_werror_flag" ||
55964          test ! -s conftest.err
55965        } && test -s conftest$ac_exeext && {
55966          test "$cross_compiling" = yes ||
55967          $as_test_x conftest$ac_exeext
55968        }; then
55969   ac_cv_lib_resolv_main=yes
55970 else
55971   $as_echo "$as_me: failed program was:" >&5
55972 sed 's/^/| /' conftest.$ac_ext >&5
55973
55974         ac_cv_lib_resolv_main=no
55975 fi
55976
55977 rm -rf conftest.dSYM
55978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55979       conftest$ac_exeext conftest.$ac_ext
55980 LIBS=$ac_check_lib_save_LIBS
55981 fi
55982 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
55983 $as_echo "$ac_cv_lib_resolv_main" >&6; }
55984 if test "x$ac_cv_lib_resolv_main" = x""yes; then
55985   cat >>confdefs.h <<_ACEOF
55986 #define HAVE_LIBRESOLV 1
55987 _ACEOF
55988
55989   LIBS="-lresolv $LIBS"
55990
55991 fi
55992
55993
55994 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
55995 $as_echo_n "checking for main in -lnsl... " >&6; }
55996 if test "${ac_cv_lib_nsl_main+set}" = set; then
55997   $as_echo_n "(cached) " >&6
55998 else
55999   ac_check_lib_save_LIBS=$LIBS
56000 LIBS="-lnsl  $LIBS"
56001 cat >conftest.$ac_ext <<_ACEOF
56002 /* confdefs.h.  */
56003 _ACEOF
56004 cat confdefs.h >>conftest.$ac_ext
56005 cat >>conftest.$ac_ext <<_ACEOF
56006 /* end confdefs.h.  */
56007
56008
56009 int
56010 main ()
56011 {
56012 return main ();
56013   ;
56014   return 0;
56015 }
56016 _ACEOF
56017 rm -f conftest.$ac_objext conftest$ac_exeext
56018 if { (ac_try="$ac_link"
56019 case "(($ac_try" in
56020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56021   *) ac_try_echo=$ac_try;;
56022 esac
56023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56024 $as_echo "$ac_try_echo") >&5
56025   (eval "$ac_link") 2>conftest.er1
56026   ac_status=$?
56027   grep -v '^ *+' conftest.er1 >conftest.err
56028   rm -f conftest.er1
56029   cat conftest.err >&5
56030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56031   (exit $ac_status); } && {
56032          test -z "$ac_c_werror_flag" ||
56033          test ! -s conftest.err
56034        } && test -s conftest$ac_exeext && {
56035          test "$cross_compiling" = yes ||
56036          $as_test_x conftest$ac_exeext
56037        }; then
56038   ac_cv_lib_nsl_main=yes
56039 else
56040   $as_echo "$as_me: failed program was:" >&5
56041 sed 's/^/| /' conftest.$ac_ext >&5
56042
56043         ac_cv_lib_nsl_main=no
56044 fi
56045
56046 rm -rf conftest.dSYM
56047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56048       conftest$ac_exeext conftest.$ac_ext
56049 LIBS=$ac_check_lib_save_LIBS
56050 fi
56051 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
56052 $as_echo "$ac_cv_lib_nsl_main" >&6; }
56053 if test "x$ac_cv_lib_nsl_main" = x""yes; then
56054   cat >>confdefs.h <<_ACEOF
56055 #define HAVE_LIBNSL 1
56056 _ACEOF
56057
56058   LIBS="-lnsl $LIBS"
56059
56060 fi
56061
56062
56063 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
56064 $as_echo_n "checking for main in -lsocket... " >&6; }
56065 if test "${ac_cv_lib_socket_main+set}" = set; then
56066   $as_echo_n "(cached) " >&6
56067 else
56068   ac_check_lib_save_LIBS=$LIBS
56069 LIBS="-lsocket  $LIBS"
56070 cat >conftest.$ac_ext <<_ACEOF
56071 /* confdefs.h.  */
56072 _ACEOF
56073 cat confdefs.h >>conftest.$ac_ext
56074 cat >>conftest.$ac_ext <<_ACEOF
56075 /* end confdefs.h.  */
56076
56077
56078 int
56079 main ()
56080 {
56081 return main ();
56082   ;
56083   return 0;
56084 }
56085 _ACEOF
56086 rm -f conftest.$ac_objext conftest$ac_exeext
56087 if { (ac_try="$ac_link"
56088 case "(($ac_try" in
56089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56090   *) ac_try_echo=$ac_try;;
56091 esac
56092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56093 $as_echo "$ac_try_echo") >&5
56094   (eval "$ac_link") 2>conftest.er1
56095   ac_status=$?
56096   grep -v '^ *+' conftest.er1 >conftest.err
56097   rm -f conftest.er1
56098   cat conftest.err >&5
56099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56100   (exit $ac_status); } && {
56101          test -z "$ac_c_werror_flag" ||
56102          test ! -s conftest.err
56103        } && test -s conftest$ac_exeext && {
56104          test "$cross_compiling" = yes ||
56105          $as_test_x conftest$ac_exeext
56106        }; then
56107   ac_cv_lib_socket_main=yes
56108 else
56109   $as_echo "$as_me: failed program was:" >&5
56110 sed 's/^/| /' conftest.$ac_ext >&5
56111
56112         ac_cv_lib_socket_main=no
56113 fi
56114
56115 rm -rf conftest.dSYM
56116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56117       conftest$ac_exeext conftest.$ac_ext
56118 LIBS=$ac_check_lib_save_LIBS
56119 fi
56120 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56121 $as_echo "$ac_cv_lib_socket_main" >&6; }
56122 if test "x$ac_cv_lib_socket_main" = x""yes; then
56123   cat >>confdefs.h <<_ACEOF
56124 #define HAVE_LIBSOCKET 1
56125 _ACEOF
56126
56127   LIBS="-lsocket $LIBS"
56128
56129 fi
56130
56131
56132 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
56133 $as_echo_n "checking for main in -lsun... " >&6; }
56134 if test "${ac_cv_lib_sun_main+set}" = set; then
56135   $as_echo_n "(cached) " >&6
56136 else
56137   ac_check_lib_save_LIBS=$LIBS
56138 LIBS="-lsun  $LIBS"
56139 cat >conftest.$ac_ext <<_ACEOF
56140 /* confdefs.h.  */
56141 _ACEOF
56142 cat confdefs.h >>conftest.$ac_ext
56143 cat >>conftest.$ac_ext <<_ACEOF
56144 /* end confdefs.h.  */
56145
56146
56147 int
56148 main ()
56149 {
56150 return main ();
56151   ;
56152   return 0;
56153 }
56154 _ACEOF
56155 rm -f conftest.$ac_objext conftest$ac_exeext
56156 if { (ac_try="$ac_link"
56157 case "(($ac_try" in
56158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56159   *) ac_try_echo=$ac_try;;
56160 esac
56161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56162 $as_echo "$ac_try_echo") >&5
56163   (eval "$ac_link") 2>conftest.er1
56164   ac_status=$?
56165   grep -v '^ *+' conftest.er1 >conftest.err
56166   rm -f conftest.er1
56167   cat conftest.err >&5
56168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56169   (exit $ac_status); } && {
56170          test -z "$ac_c_werror_flag" ||
56171          test ! -s conftest.err
56172        } && test -s conftest$ac_exeext && {
56173          test "$cross_compiling" = yes ||
56174          $as_test_x conftest$ac_exeext
56175        }; then
56176   ac_cv_lib_sun_main=yes
56177 else
56178   $as_echo "$as_me: failed program was:" >&5
56179 sed 's/^/| /' conftest.$ac_ext >&5
56180
56181         ac_cv_lib_sun_main=no
56182 fi
56183
56184 rm -rf conftest.dSYM
56185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56186       conftest$ac_exeext conftest.$ac_ext
56187 LIBS=$ac_check_lib_save_LIBS
56188 fi
56189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
56190 $as_echo "$ac_cv_lib_sun_main" >&6; }
56191 if test "x$ac_cv_lib_sun_main" = x""yes; then
56192   cat >>confdefs.h <<_ACEOF
56193 #define HAVE_LIBSUN 1
56194 _ACEOF
56195
56196   LIBS="-lsun $LIBS"
56197
56198 fi
56199
56200                             ;;
56201     esac
56202
56203
56204     # search for pkg-config, which the glib configuration uses, adding a few
56205     # system-specific search paths.
56206     # Extract the first word of "pkg-config", so it can be a program name with args.
56207 set dummy pkg-config; ac_word=$2
56208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56209 $as_echo_n "checking for $ac_word... " >&6; }
56210 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56211   $as_echo_n "(cached) " >&6
56212 else
56213   case $PKG_CONFIG in
56214   [\\/]* | ?:[\\/]*)
56215   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56216   ;;
56217   *)
56218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56219 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
56220 for as_dir in $as_dummy
56221 do
56222   IFS=$as_save_IFS
56223   test -z "$as_dir" && as_dir=.
56224   for ac_exec_ext in '' $ac_executable_extensions; do
56225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56226     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56227     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56228     break 2
56229   fi
56230 done
56231 done
56232 IFS=$as_save_IFS
56233
56234   ;;
56235 esac
56236 fi
56237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56238 if test -n "$PKG_CONFIG"; then
56239   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56240 $as_echo "$PKG_CONFIG" >&6; }
56241 else
56242   { $as_echo "$as_me:$LINENO: result: no" >&5
56243 $as_echo "no" >&6; }
56244 fi
56245
56246
56247
56248     case "$target" in
56249         sparc-sun-solaris2.8) # Solaris 8
56250             # give the linker a runtime search path; pkg-config doesn't supply this.
56251             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
56252             # and make.  Adding this support here makes straight './configure; make'
56253             # "just work" on Solaris 8
56254             if test -n "$PKG_CONFIG"; then
56255                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
56256                 LDFLAGS="$LDFLAGS $glib_R_flag"
56257             fi
56258             ;;
56259     esac
56260
56261     # Check whether --enable-glibtest was given.
56262 if test "${enable_glibtest+set}" = set; then
56263   enableval=$enable_glibtest;
56264 else
56265   enable_glibtest=yes
56266 fi
56267
56268
56269   pkg_config_args=glib-2.0
56270   for module in . gmodule gobject gthread
56271   do
56272       case "$module" in
56273          gmodule)
56274              pkg_config_args="$pkg_config_args gmodule-2.0"
56275          ;;
56276          gmodule-no-export)
56277              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
56278          ;;
56279          gobject)
56280              pkg_config_args="$pkg_config_args gobject-2.0"
56281          ;;
56282          gthread)
56283              pkg_config_args="$pkg_config_args gthread-2.0"
56284          ;;
56285          gio*)
56286              pkg_config_args="$pkg_config_args $module-2.0"
56287          ;;
56288       esac
56289   done
56290
56291
56292
56293 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56294         if test -n "$ac_tool_prefix"; then
56295   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
56296 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
56297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56298 $as_echo_n "checking for $ac_word... " >&6; }
56299 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56300   $as_echo_n "(cached) " >&6
56301 else
56302   case $PKG_CONFIG in
56303   [\\/]* | ?:[\\/]*)
56304   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56305   ;;
56306   *)
56307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56308 for as_dir in $PATH
56309 do
56310   IFS=$as_save_IFS
56311   test -z "$as_dir" && as_dir=.
56312   for ac_exec_ext in '' $ac_executable_extensions; do
56313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56314     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56316     break 2
56317   fi
56318 done
56319 done
56320 IFS=$as_save_IFS
56321
56322   ;;
56323 esac
56324 fi
56325 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56326 if test -n "$PKG_CONFIG"; then
56327   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56328 $as_echo "$PKG_CONFIG" >&6; }
56329 else
56330   { $as_echo "$as_me:$LINENO: result: no" >&5
56331 $as_echo "no" >&6; }
56332 fi
56333
56334
56335 fi
56336 if test -z "$ac_cv_path_PKG_CONFIG"; then
56337   ac_pt_PKG_CONFIG=$PKG_CONFIG
56338   # Extract the first word of "pkg-config", so it can be a program name with args.
56339 set dummy pkg-config; ac_word=$2
56340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56341 $as_echo_n "checking for $ac_word... " >&6; }
56342 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
56343   $as_echo_n "(cached) " >&6
56344 else
56345   case $ac_pt_PKG_CONFIG in
56346   [\\/]* | ?:[\\/]*)
56347   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
56348   ;;
56349   *)
56350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56351 for as_dir in $PATH
56352 do
56353   IFS=$as_save_IFS
56354   test -z "$as_dir" && as_dir=.
56355   for ac_exec_ext in '' $ac_executable_extensions; do
56356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56357     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56359     break 2
56360   fi
56361 done
56362 done
56363 IFS=$as_save_IFS
56364
56365   ;;
56366 esac
56367 fi
56368 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
56369 if test -n "$ac_pt_PKG_CONFIG"; then
56370   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
56371 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
56372 else
56373   { $as_echo "$as_me:$LINENO: result: no" >&5
56374 $as_echo "no" >&6; }
56375 fi
56376
56377   if test "x$ac_pt_PKG_CONFIG" = x; then
56378     PKG_CONFIG=""
56379   else
56380     case $cross_compiling:$ac_tool_warned in
56381 yes:)
56382 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
56383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56384 ac_tool_warned=yes ;;
56385 esac
56386     PKG_CONFIG=$ac_pt_PKG_CONFIG
56387   fi
56388 else
56389   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
56390 fi
56391
56392 fi
56393 if test -n "$PKG_CONFIG"; then
56394         _pkg_min_version=0.7
56395         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
56396 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
56397         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
56398                 { $as_echo "$as_me:$LINENO: result: yes" >&5
56399 $as_echo "yes" >&6; }
56400         else
56401                 { $as_echo "$as_me:$LINENO: result: no" >&5
56402 $as_echo "no" >&6; }
56403                 PKG_CONFIG=""
56404         fi
56405
56406 fi
56407
56408   no_glib=""
56409
56410   if test "x$PKG_CONFIG" = x ; then
56411     no_glib=yes
56412     PKG_CONFIG=no
56413   fi
56414
56415   min_glib_version=2.2.0
56416   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
56417 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
56418
56419   if test x$PKG_CONFIG != xno ; then
56420     ## don't try to run the test against uninstalled libtool libs
56421     if $PKG_CONFIG --uninstalled $pkg_config_args; then
56422           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
56423           enable_glibtest=no
56424     fi
56425
56426     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
56427           :
56428     else
56429           no_glib=yes
56430     fi
56431   fi
56432
56433   if test x"$no_glib" = x ; then
56434     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
56435     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
56436     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
56437
56438     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
56439     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
56440     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
56441            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
56442     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
56443            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
56444     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
56445            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
56446     if test "x$enable_glibtest" = "xyes" ; then
56447       ac_save_CFLAGS="$CFLAGS"
56448       ac_save_LIBS="$LIBS"
56449       CFLAGS="$CFLAGS $GLIB_CFLAGS"
56450       LIBS="$GLIB_LIBS $LIBS"
56451       rm -f conf.glibtest
56452       if test "$cross_compiling" = yes; then
56453   echo $ac_n "cross compiling; assumed OK... $ac_c"
56454 else
56455   cat >conftest.$ac_ext <<_ACEOF
56456 /* confdefs.h.  */
56457 _ACEOF
56458 cat confdefs.h >>conftest.$ac_ext
56459 cat >>conftest.$ac_ext <<_ACEOF
56460 /* end confdefs.h.  */
56461
56462 #include <glib.h>
56463 #include <stdio.h>
56464 #include <stdlib.h>
56465
56466 int
56467 main ()
56468 {
56469   int major, minor, micro;
56470   char *tmp_version;
56471
56472   system ("touch conf.glibtest");
56473
56474   /* HP/UX 9 (%@#!) writes to sscanf strings */
56475   tmp_version = g_strdup("$min_glib_version");
56476   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
56477      printf("%s, bad version string\n", "$min_glib_version");
56478      exit(1);
56479    }
56480
56481   if ((glib_major_version != $glib_config_major_version) ||
56482       (glib_minor_version != $glib_config_minor_version) ||
56483       (glib_micro_version != $glib_config_micro_version))
56484     {
56485       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
56486              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
56487              glib_major_version, glib_minor_version, glib_micro_version);
56488       printf ("*** was found! If pkg-config was correct, then it is best\n");
56489       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
56490       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
56491       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
56492       printf("*** required on your system.\n");
56493       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
56494       printf("*** to point to the correct configuration files\n");
56495     }
56496   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
56497            (glib_minor_version != GLIB_MINOR_VERSION) ||
56498            (glib_micro_version != GLIB_MICRO_VERSION))
56499     {
56500       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
56501              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
56502       printf("*** library (version %d.%d.%d)\n",
56503              glib_major_version, glib_minor_version, glib_micro_version);
56504     }
56505   else
56506     {
56507       if ((glib_major_version > major) ||
56508         ((glib_major_version == major) && (glib_minor_version > minor)) ||
56509         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
56510       {
56511         return 0;
56512        }
56513      else
56514       {
56515         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
56516                glib_major_version, glib_minor_version, glib_micro_version);
56517         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
56518                major, minor, micro);
56519         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
56520         printf("***\n");
56521         printf("*** If you have already installed a sufficiently new version, this error\n");
56522         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
56523         printf("*** being found. The easiest way to fix this is to remove the old version\n");
56524         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
56525         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
56526         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
56527         printf("*** so that the correct libraries are found at run-time))\n");
56528       }
56529     }
56530   return 1;
56531 }
56532
56533 _ACEOF
56534 rm -f conftest$ac_exeext
56535 if { (ac_try="$ac_link"
56536 case "(($ac_try" in
56537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56538   *) ac_try_echo=$ac_try;;
56539 esac
56540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56541 $as_echo "$ac_try_echo") >&5
56542   (eval "$ac_link") 2>&5
56543   ac_status=$?
56544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56546   { (case "(($ac_try" in
56547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56548   *) ac_try_echo=$ac_try;;
56549 esac
56550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56551 $as_echo "$ac_try_echo") >&5
56552   (eval "$ac_try") 2>&5
56553   ac_status=$?
56554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56555   (exit $ac_status); }; }; then
56556   :
56557 else
56558   $as_echo "$as_me: program exited with status $ac_status" >&5
56559 $as_echo "$as_me: failed program was:" >&5
56560 sed 's/^/| /' conftest.$ac_ext >&5
56561
56562 ( exit $ac_status )
56563 no_glib=yes
56564 fi
56565 rm -rf conftest.dSYM
56566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56567 fi
56568
56569
56570        CFLAGS="$ac_save_CFLAGS"
56571        LIBS="$ac_save_LIBS"
56572      fi
56573   fi
56574   if test "x$no_glib" = x ; then
56575      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
56576 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
56577      :
56578   else
56579      { $as_echo "$as_me:$LINENO: result: no" >&5
56580 $as_echo "no" >&6; }
56581      if test "$PKG_CONFIG" = "no" ; then
56582        echo "*** A new enough version of pkg-config was not found."
56583        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
56584      else
56585        if test -f conf.glibtest ; then
56586         :
56587        else
56588           echo "*** Could not run GLIB test program, checking why..."
56589           ac_save_CFLAGS="$CFLAGS"
56590           ac_save_LIBS="$LIBS"
56591           CFLAGS="$CFLAGS $GLIB_CFLAGS"
56592           LIBS="$LIBS $GLIB_LIBS"
56593           cat >conftest.$ac_ext <<_ACEOF
56594 /* confdefs.h.  */
56595 _ACEOF
56596 cat confdefs.h >>conftest.$ac_ext
56597 cat >>conftest.$ac_ext <<_ACEOF
56598 /* end confdefs.h.  */
56599
56600 #include <glib.h>
56601 #include <stdio.h>
56602
56603 int
56604 main ()
56605 {
56606  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
56607   ;
56608   return 0;
56609 }
56610 _ACEOF
56611 rm -f conftest.$ac_objext conftest$ac_exeext
56612 if { (ac_try="$ac_link"
56613 case "(($ac_try" in
56614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56615   *) ac_try_echo=$ac_try;;
56616 esac
56617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56618 $as_echo "$ac_try_echo") >&5
56619   (eval "$ac_link") 2>conftest.er1
56620   ac_status=$?
56621   grep -v '^ *+' conftest.er1 >conftest.err
56622   rm -f conftest.er1
56623   cat conftest.err >&5
56624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56625   (exit $ac_status); } && {
56626          test -z "$ac_c_werror_flag" ||
56627          test ! -s conftest.err
56628        } && test -s conftest$ac_exeext && {
56629          test "$cross_compiling" = yes ||
56630          $as_test_x conftest$ac_exeext
56631        }; then
56632    echo "*** The test program compiled, but did not run. This usually means"
56633           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
56634           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
56635           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
56636           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
56637           echo "*** is required on your system"
56638           echo "***"
56639           echo "*** If you have an old version installed, it is best to remove it, although"
56640           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
56641 else
56642   $as_echo "$as_me: failed program was:" >&5
56643 sed 's/^/| /' conftest.$ac_ext >&5
56644
56645          echo "*** The test program failed to compile or link. See the file config.log for the"
56646           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
56647 fi
56648
56649 rm -rf conftest.dSYM
56650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56651       conftest$ac_exeext conftest.$ac_ext
56652           CFLAGS="$ac_save_CFLAGS"
56653           LIBS="$ac_save_LIBS"
56654        fi
56655      fi
56656      GLIB_CFLAGS=""
56657      GLIB_LIBS=""
56658      GLIB_GENMARSHAL=""
56659      GOBJECT_QUERY=""
56660      GLIB_MKENUMS=""
56661
56662         { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
56663 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
56664    { (exit 1); exit 1; }; }
56665
56666   fi
56667
56668
56669
56670
56671
56672   rm -f conf.glibtest
56673
56674     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
56675     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
56676
56677     LIBS="$GLIB_LIBS $LIBS"
56678
56679
56680
56681
56682 # Check whether --with-readline was given.
56683 if test "${with_readline+set}" = set; then
56684   withval=$with_readline;
56685             case "$withval" in
56686                 y | ye | yes | n | no) : ;;
56687                 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
56688 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
56689    { (exit 1); exit 1; }; }
56690             esac
56691             want_readline="$withval"
56692
56693 else
56694
56695             want_readline="maybe" # meaning "only if we can find it"
56696
56697 fi
56698
56699
56700     # unless the user said "no", look for readline.
56701     if test x"$want_readline" != x"no"; then
56702         # we need a tgetent() somewhere..
56703         proceed="false"
56704         { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
56705 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
56706 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
56707   $as_echo_n "(cached) " >&6
56708 else
56709   ac_check_lib_save_LIBS=$LIBS
56710 LIBS="-ltermcap  $LIBS"
56711 cat >conftest.$ac_ext <<_ACEOF
56712 /* confdefs.h.  */
56713 _ACEOF
56714 cat confdefs.h >>conftest.$ac_ext
56715 cat >>conftest.$ac_ext <<_ACEOF
56716 /* end confdefs.h.  */
56717
56718 /* Override any GCC internal prototype to avoid an error.
56719    Use char because int might match the return type of a GCC
56720    builtin and then its argument prototype would still apply.  */
56721 #ifdef __cplusplus
56722 extern "C"
56723 #endif
56724 char tgetent ();
56725 int
56726 main ()
56727 {
56728 return tgetent ();
56729   ;
56730   return 0;
56731 }
56732 _ACEOF
56733 rm -f conftest.$ac_objext conftest$ac_exeext
56734 if { (ac_try="$ac_link"
56735 case "(($ac_try" in
56736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56737   *) ac_try_echo=$ac_try;;
56738 esac
56739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56740 $as_echo "$ac_try_echo") >&5
56741   (eval "$ac_link") 2>conftest.er1
56742   ac_status=$?
56743   grep -v '^ *+' conftest.er1 >conftest.err
56744   rm -f conftest.er1
56745   cat conftest.err >&5
56746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56747   (exit $ac_status); } && {
56748          test -z "$ac_c_werror_flag" ||
56749          test ! -s conftest.err
56750        } && test -s conftest$ac_exeext && {
56751          test "$cross_compiling" = yes ||
56752          $as_test_x conftest$ac_exeext
56753        }; then
56754   ac_cv_lib_termcap_tgetent=yes
56755 else
56756   $as_echo "$as_me: failed program was:" >&5
56757 sed 's/^/| /' conftest.$ac_ext >&5
56758
56759         ac_cv_lib_termcap_tgetent=no
56760 fi
56761
56762 rm -rf conftest.dSYM
56763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56764       conftest$ac_exeext conftest.$ac_ext
56765 LIBS=$ac_check_lib_save_LIBS
56766 fi
56767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
56768 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
56769 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
56770
56771             READLINE_LIBS="-ltermcap"
56772             proceed="true"
56773
56774 else
56775
56776             { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
56777 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
56778 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
56779   $as_echo_n "(cached) " >&6
56780 else
56781   ac_check_lib_save_LIBS=$LIBS
56782 LIBS="-lcurses  $LIBS"
56783 cat >conftest.$ac_ext <<_ACEOF
56784 /* confdefs.h.  */
56785 _ACEOF
56786 cat confdefs.h >>conftest.$ac_ext
56787 cat >>conftest.$ac_ext <<_ACEOF
56788 /* end confdefs.h.  */
56789
56790 /* Override any GCC internal prototype to avoid an error.
56791    Use char because int might match the return type of a GCC
56792    builtin and then its argument prototype would still apply.  */
56793 #ifdef __cplusplus
56794 extern "C"
56795 #endif
56796 char tgetent ();
56797 int
56798 main ()
56799 {
56800 return tgetent ();
56801   ;
56802   return 0;
56803 }
56804 _ACEOF
56805 rm -f conftest.$ac_objext conftest$ac_exeext
56806 if { (ac_try="$ac_link"
56807 case "(($ac_try" in
56808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56809   *) ac_try_echo=$ac_try;;
56810 esac
56811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56812 $as_echo "$ac_try_echo") >&5
56813   (eval "$ac_link") 2>conftest.er1
56814   ac_status=$?
56815   grep -v '^ *+' conftest.er1 >conftest.err
56816   rm -f conftest.er1
56817   cat conftest.err >&5
56818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56819   (exit $ac_status); } && {
56820          test -z "$ac_c_werror_flag" ||
56821          test ! -s conftest.err
56822        } && test -s conftest$ac_exeext && {
56823          test "$cross_compiling" = yes ||
56824          $as_test_x conftest$ac_exeext
56825        }; then
56826   ac_cv_lib_curses_tgetent=yes
56827 else
56828   $as_echo "$as_me: failed program was:" >&5
56829 sed 's/^/| /' conftest.$ac_ext >&5
56830
56831         ac_cv_lib_curses_tgetent=no
56832 fi
56833
56834 rm -rf conftest.dSYM
56835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56836       conftest$ac_exeext conftest.$ac_ext
56837 LIBS=$ac_check_lib_save_LIBS
56838 fi
56839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
56840 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
56841 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
56842
56843                 READLINE_LIBS="-lcurses"
56844                 proceed="true"
56845
56846 else
56847
56848                 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
56849 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
56850 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
56851   $as_echo_n "(cached) " >&6
56852 else
56853   ac_check_lib_save_LIBS=$LIBS
56854 LIBS="-lncurses  $LIBS"
56855 cat >conftest.$ac_ext <<_ACEOF
56856 /* confdefs.h.  */
56857 _ACEOF
56858 cat confdefs.h >>conftest.$ac_ext
56859 cat >>conftest.$ac_ext <<_ACEOF
56860 /* end confdefs.h.  */
56861
56862 /* Override any GCC internal prototype to avoid an error.
56863    Use char because int might match the return type of a GCC
56864    builtin and then its argument prototype would still apply.  */
56865 #ifdef __cplusplus
56866 extern "C"
56867 #endif
56868 char tgetent ();
56869 int
56870 main ()
56871 {
56872 return tgetent ();
56873   ;
56874   return 0;
56875 }
56876 _ACEOF
56877 rm -f conftest.$ac_objext conftest$ac_exeext
56878 if { (ac_try="$ac_link"
56879 case "(($ac_try" in
56880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56881   *) ac_try_echo=$ac_try;;
56882 esac
56883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56884 $as_echo "$ac_try_echo") >&5
56885   (eval "$ac_link") 2>conftest.er1
56886   ac_status=$?
56887   grep -v '^ *+' conftest.er1 >conftest.err
56888   rm -f conftest.er1
56889   cat conftest.err >&5
56890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56891   (exit $ac_status); } && {
56892          test -z "$ac_c_werror_flag" ||
56893          test ! -s conftest.err
56894        } && test -s conftest$ac_exeext && {
56895          test "$cross_compiling" = yes ||
56896          $as_test_x conftest$ac_exeext
56897        }; then
56898   ac_cv_lib_ncurses_tgetent=yes
56899 else
56900   $as_echo "$as_me: failed program was:" >&5
56901 sed 's/^/| /' conftest.$ac_ext >&5
56902
56903         ac_cv_lib_ncurses_tgetent=no
56904 fi
56905
56906 rm -rf conftest.dSYM
56907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56908       conftest$ac_exeext conftest.$ac_ext
56909 LIBS=$ac_check_lib_save_LIBS
56910 fi
56911 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
56912 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
56913 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
56914
56915                     READLINE_LIBS="-lncurses"
56916                     proceed="true"
56917
56918 fi
56919
56920
56921 fi
56922
56923
56924 fi
56925
56926
56927         if $proceed; then
56928             proceed="false"
56929
56930
56931
56932
56933 for ac_header in history.h readline.h readline/history.h readline/readline.h
56934 do
56935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
56936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56937   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
56938 $as_echo_n "checking for $ac_header... " >&6; }
56939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56940   $as_echo_n "(cached) " >&6
56941 fi
56942 ac_res=`eval 'as_val=${'$as_ac_Header'}
56943                  $as_echo "$as_val"'`
56944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56945 $as_echo "$ac_res" >&6; }
56946 else
56947   # Is the header compilable?
56948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
56949 $as_echo_n "checking $ac_header usability... " >&6; }
56950 cat >conftest.$ac_ext <<_ACEOF
56951 /* confdefs.h.  */
56952 _ACEOF
56953 cat confdefs.h >>conftest.$ac_ext
56954 cat >>conftest.$ac_ext <<_ACEOF
56955 /* end confdefs.h.  */
56956 $ac_includes_default
56957 #include <$ac_header>
56958 _ACEOF
56959 rm -f conftest.$ac_objext
56960 if { (ac_try="$ac_compile"
56961 case "(($ac_try" in
56962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56963   *) ac_try_echo=$ac_try;;
56964 esac
56965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56966 $as_echo "$ac_try_echo") >&5
56967   (eval "$ac_compile") 2>conftest.er1
56968   ac_status=$?
56969   grep -v '^ *+' conftest.er1 >conftest.err
56970   rm -f conftest.er1
56971   cat conftest.err >&5
56972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56973   (exit $ac_status); } && {
56974          test -z "$ac_c_werror_flag" ||
56975          test ! -s conftest.err
56976        } && test -s conftest.$ac_objext; then
56977   ac_header_compiler=yes
56978 else
56979   $as_echo "$as_me: failed program was:" >&5
56980 sed 's/^/| /' conftest.$ac_ext >&5
56981
56982         ac_header_compiler=no
56983 fi
56984
56985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56987 $as_echo "$ac_header_compiler" >&6; }
56988
56989 # Is the header present?
56990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
56991 $as_echo_n "checking $ac_header presence... " >&6; }
56992 cat >conftest.$ac_ext <<_ACEOF
56993 /* confdefs.h.  */
56994 _ACEOF
56995 cat confdefs.h >>conftest.$ac_ext
56996 cat >>conftest.$ac_ext <<_ACEOF
56997 /* end confdefs.h.  */
56998 #include <$ac_header>
56999 _ACEOF
57000 if { (ac_try="$ac_cpp conftest.$ac_ext"
57001 case "(($ac_try" in
57002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57003   *) ac_try_echo=$ac_try;;
57004 esac
57005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57006 $as_echo "$ac_try_echo") >&5
57007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57008   ac_status=$?
57009   grep -v '^ *+' conftest.er1 >conftest.err
57010   rm -f conftest.er1
57011   cat conftest.err >&5
57012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57013   (exit $ac_status); } >/dev/null && {
57014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57015          test ! -s conftest.err
57016        }; then
57017   ac_header_preproc=yes
57018 else
57019   $as_echo "$as_me: failed program was:" >&5
57020 sed 's/^/| /' conftest.$ac_ext >&5
57021
57022   ac_header_preproc=no
57023 fi
57024
57025 rm -f conftest.err conftest.$ac_ext
57026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57027 $as_echo "$ac_header_preproc" >&6; }
57028
57029 # So?  What about this header?
57030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57031   yes:no: )
57032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57036     ac_header_preproc=yes
57037     ;;
57038   no:yes:* )
57039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57042 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57046 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57051
57052     ;;
57053 esac
57054 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57055 $as_echo_n "checking for $ac_header... " >&6; }
57056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57057   $as_echo_n "(cached) " >&6
57058 else
57059   eval "$as_ac_Header=\$ac_header_preproc"
57060 fi
57061 ac_res=`eval 'as_val=${'$as_ac_Header'}
57062                  $as_echo "$as_val"'`
57063                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57064 $as_echo "$ac_res" >&6; }
57065
57066 fi
57067 as_val=`eval 'as_val=${'$as_ac_Header'}
57068                  $as_echo "$as_val"'`
57069    if test "x$as_val" = x""yes; then
57070   cat >>confdefs.h <<_ACEOF
57071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57072 _ACEOF
57073
57074                 # found at least one of the headers, so we can proceed.
57075                 proceed="true"
57076
57077 fi
57078
57079 done
57080
57081         fi
57082
57083         if $proceed; then
57084             proceed="false"
57085             { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
57086 $as_echo_n "checking for readline in -lreadline... " >&6; }
57087 if test "${ac_cv_lib_readline_readline+set}" = set; then
57088   $as_echo_n "(cached) " >&6
57089 else
57090   ac_check_lib_save_LIBS=$LIBS
57091 LIBS="-lreadline $READLINE_LIBS $LIBS"
57092 cat >conftest.$ac_ext <<_ACEOF
57093 /* confdefs.h.  */
57094 _ACEOF
57095 cat confdefs.h >>conftest.$ac_ext
57096 cat >>conftest.$ac_ext <<_ACEOF
57097 /* end confdefs.h.  */
57098
57099 /* Override any GCC internal prototype to avoid an error.
57100    Use char because int might match the return type of a GCC
57101    builtin and then its argument prototype would still apply.  */
57102 #ifdef __cplusplus
57103 extern "C"
57104 #endif
57105 char readline ();
57106 int
57107 main ()
57108 {
57109 return readline ();
57110   ;
57111   return 0;
57112 }
57113 _ACEOF
57114 rm -f conftest.$ac_objext conftest$ac_exeext
57115 if { (ac_try="$ac_link"
57116 case "(($ac_try" in
57117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57118   *) ac_try_echo=$ac_try;;
57119 esac
57120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57121 $as_echo "$ac_try_echo") >&5
57122   (eval "$ac_link") 2>conftest.er1
57123   ac_status=$?
57124   grep -v '^ *+' conftest.er1 >conftest.err
57125   rm -f conftest.er1
57126   cat conftest.err >&5
57127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57128   (exit $ac_status); } && {
57129          test -z "$ac_c_werror_flag" ||
57130          test ! -s conftest.err
57131        } && test -s conftest$ac_exeext && {
57132          test "$cross_compiling" = yes ||
57133          $as_test_x conftest$ac_exeext
57134        }; then
57135   ac_cv_lib_readline_readline=yes
57136 else
57137   $as_echo "$as_me: failed program was:" >&5
57138 sed 's/^/| /' conftest.$ac_ext >&5
57139
57140         ac_cv_lib_readline_readline=no
57141 fi
57142
57143 rm -rf conftest.dSYM
57144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57145       conftest$ac_exeext conftest.$ac_ext
57146 LIBS=$ac_check_lib_save_LIBS
57147 fi
57148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
57149 $as_echo "$ac_cv_lib_readline_readline" >&6; }
57150 if test "x$ac_cv_lib_readline_readline" = x""yes; then
57151
57152                 READLINE_LIBS="-lreadline $READLINE_LIBS"
57153                 proceed="true"
57154
57155 fi
57156
57157         fi
57158
57159         if $proceed; then
57160             # we have readline!
57161
57162 cat >>confdefs.h <<\_ACEOF
57163 #define HAVE_READLINE 1
57164 _ACEOF
57165
57166         else
57167             # no readline.  if the user *really* wanted it, bail out.
57168             if test x"$want_readline" = x"yes"; then
57169                 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
57170 $as_echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
57171    { (exit 1); exit 1; }; }
57172             fi
57173             READLINE_LIBS=""
57174         fi
57175     fi
57176
57177
57178
57179 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
57180 $as_echo_n "checking for modf in -lm... " >&6; }
57181 if test "${ac_cv_lib_m_modf+set}" = set; then
57182   $as_echo_n "(cached) " >&6
57183 else
57184   ac_check_lib_save_LIBS=$LIBS
57185 LIBS="-lm  $LIBS"
57186 cat >conftest.$ac_ext <<_ACEOF
57187 /* confdefs.h.  */
57188 _ACEOF
57189 cat confdefs.h >>conftest.$ac_ext
57190 cat >>conftest.$ac_ext <<_ACEOF
57191 /* end confdefs.h.  */
57192
57193 /* Override any GCC internal prototype to avoid an error.
57194    Use char because int might match the return type of a GCC
57195    builtin and then its argument prototype would still apply.  */
57196 #ifdef __cplusplus
57197 extern "C"
57198 #endif
57199 char modf ();
57200 int
57201 main ()
57202 {
57203 return modf ();
57204   ;
57205   return 0;
57206 }
57207 _ACEOF
57208 rm -f conftest.$ac_objext conftest$ac_exeext
57209 if { (ac_try="$ac_link"
57210 case "(($ac_try" in
57211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57212   *) ac_try_echo=$ac_try;;
57213 esac
57214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57215 $as_echo "$ac_try_echo") >&5
57216   (eval "$ac_link") 2>conftest.er1
57217   ac_status=$?
57218   grep -v '^ *+' conftest.er1 >conftest.err
57219   rm -f conftest.er1
57220   cat conftest.err >&5
57221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57222   (exit $ac_status); } && {
57223          test -z "$ac_c_werror_flag" ||
57224          test ! -s conftest.err
57225        } && test -s conftest$ac_exeext && {
57226          test "$cross_compiling" = yes ||
57227          $as_test_x conftest$ac_exeext
57228        }; then
57229   ac_cv_lib_m_modf=yes
57230 else
57231   $as_echo "$as_me: failed program was:" >&5
57232 sed 's/^/| /' conftest.$ac_ext >&5
57233
57234         ac_cv_lib_m_modf=no
57235 fi
57236
57237 rm -rf conftest.dSYM
57238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57239       conftest$ac_exeext conftest.$ac_ext
57240 LIBS=$ac_check_lib_save_LIBS
57241 fi
57242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
57243 $as_echo "$ac_cv_lib_m_modf" >&6; }
57244 if test "x$ac_cv_lib_m_modf" = x""yes; then
57245   cat >>confdefs.h <<_ACEOF
57246 #define HAVE_LIBM 1
57247 _ACEOF
57248
57249   LIBS="-lm $LIBS"
57250
57251 fi
57252
57253
57254     if test "${ac_cv_header_execinfo_h+set}" = set; then
57255   { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57256 $as_echo_n "checking for execinfo.h... " >&6; }
57257 if test "${ac_cv_header_execinfo_h+set}" = set; then
57258   $as_echo_n "(cached) " >&6
57259 fi
57260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57261 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57262 else
57263   # Is the header compilable?
57264 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
57265 $as_echo_n "checking execinfo.h usability... " >&6; }
57266 cat >conftest.$ac_ext <<_ACEOF
57267 /* confdefs.h.  */
57268 _ACEOF
57269 cat confdefs.h >>conftest.$ac_ext
57270 cat >>conftest.$ac_ext <<_ACEOF
57271 /* end confdefs.h.  */
57272 $ac_includes_default
57273 #include <execinfo.h>
57274 _ACEOF
57275 rm -f conftest.$ac_objext
57276 if { (ac_try="$ac_compile"
57277 case "(($ac_try" in
57278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57279   *) ac_try_echo=$ac_try;;
57280 esac
57281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57282 $as_echo "$ac_try_echo") >&5
57283   (eval "$ac_compile") 2>conftest.er1
57284   ac_status=$?
57285   grep -v '^ *+' conftest.er1 >conftest.err
57286   rm -f conftest.er1
57287   cat conftest.err >&5
57288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57289   (exit $ac_status); } && {
57290          test -z "$ac_c_werror_flag" ||
57291          test ! -s conftest.err
57292        } && test -s conftest.$ac_objext; then
57293   ac_header_compiler=yes
57294 else
57295   $as_echo "$as_me: failed program was:" >&5
57296 sed 's/^/| /' conftest.$ac_ext >&5
57297
57298         ac_header_compiler=no
57299 fi
57300
57301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57303 $as_echo "$ac_header_compiler" >&6; }
57304
57305 # Is the header present?
57306 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
57307 $as_echo_n "checking execinfo.h presence... " >&6; }
57308 cat >conftest.$ac_ext <<_ACEOF
57309 /* confdefs.h.  */
57310 _ACEOF
57311 cat confdefs.h >>conftest.$ac_ext
57312 cat >>conftest.$ac_ext <<_ACEOF
57313 /* end confdefs.h.  */
57314 #include <execinfo.h>
57315 _ACEOF
57316 if { (ac_try="$ac_cpp conftest.$ac_ext"
57317 case "(($ac_try" in
57318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57319   *) ac_try_echo=$ac_try;;
57320 esac
57321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57322 $as_echo "$ac_try_echo") >&5
57323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57324   ac_status=$?
57325   grep -v '^ *+' conftest.er1 >conftest.err
57326   rm -f conftest.er1
57327   cat conftest.err >&5
57328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57329   (exit $ac_status); } >/dev/null && {
57330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57331          test ! -s conftest.err
57332        }; then
57333   ac_header_preproc=yes
57334 else
57335   $as_echo "$as_me: failed program was:" >&5
57336 sed 's/^/| /' conftest.$ac_ext >&5
57337
57338   ac_header_preproc=no
57339 fi
57340
57341 rm -f conftest.err conftest.$ac_ext
57342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57343 $as_echo "$ac_header_preproc" >&6; }
57344
57345 # So?  What about this header?
57346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57347   yes:no: )
57348     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57349 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57350     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
57351 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
57352     ac_header_preproc=yes
57353     ;;
57354   no:yes:* )
57355     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
57356 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
57357     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
57358 $as_echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
57359     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
57360 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
57361     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
57362 $as_echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57363     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
57364 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
57365     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
57366 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
57367
57368     ;;
57369 esac
57370 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57371 $as_echo_n "checking for execinfo.h... " >&6; }
57372 if test "${ac_cv_header_execinfo_h+set}" = set; then
57373   $as_echo_n "(cached) " >&6
57374 else
57375   ac_cv_header_execinfo_h=$ac_header_preproc
57376 fi
57377 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57378 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57379
57380 fi
57381 if test "x$ac_cv_header_execinfo_h" = x""yes; then
57382
57383         { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
57384 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
57385 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
57386   $as_echo_n "(cached) " >&6
57387 else
57388   cat >conftest.$ac_ext <<_ACEOF
57389 /* confdefs.h.  */
57390 _ACEOF
57391 cat confdefs.h >>conftest.$ac_ext
57392 cat >>conftest.$ac_ext <<_ACEOF
57393 /* end confdefs.h.  */
57394 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
57395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57396 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
57397
57398 /* System header to define __stub macros and hopefully few prototypes,
57399     which can conflict with char backtrace_symbols_fd (); below.
57400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57401     <limits.h> exists even on freestanding compilers.  */
57402
57403 #ifdef __STDC__
57404 # include <limits.h>
57405 #else
57406 # include <assert.h>
57407 #endif
57408
57409 #undef backtrace_symbols_fd
57410
57411 /* Override any GCC internal prototype to avoid an error.
57412    Use char because int might match the return type of a GCC
57413    builtin and then its argument prototype would still apply.  */
57414 #ifdef __cplusplus
57415 extern "C"
57416 #endif
57417 char backtrace_symbols_fd ();
57418 /* The GNU C library defines this for functions which it implements
57419     to always fail with ENOSYS.  Some functions are actually named
57420     something starting with __ and the normal name is an alias.  */
57421 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
57422 choke me
57423 #endif
57424
57425 int
57426 main ()
57427 {
57428 return backtrace_symbols_fd ();
57429   ;
57430   return 0;
57431 }
57432 _ACEOF
57433 rm -f conftest.$ac_objext conftest$ac_exeext
57434 if { (ac_try="$ac_link"
57435 case "(($ac_try" in
57436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57437   *) ac_try_echo=$ac_try;;
57438 esac
57439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57440 $as_echo "$ac_try_echo") >&5
57441   (eval "$ac_link") 2>conftest.er1
57442   ac_status=$?
57443   grep -v '^ *+' conftest.er1 >conftest.err
57444   rm -f conftest.er1
57445   cat conftest.err >&5
57446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57447   (exit $ac_status); } && {
57448          test -z "$ac_c_werror_flag" ||
57449          test ! -s conftest.err
57450        } && test -s conftest$ac_exeext && {
57451          test "$cross_compiling" = yes ||
57452          $as_test_x conftest$ac_exeext
57453        }; then
57454   ac_cv_func_backtrace_symbols_fd=yes
57455 else
57456   $as_echo "$as_me: failed program was:" >&5
57457 sed 's/^/| /' conftest.$ac_ext >&5
57458
57459         ac_cv_func_backtrace_symbols_fd=no
57460 fi
57461
57462 rm -rf conftest.dSYM
57463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57464       conftest$ac_exeext conftest.$ac_ext
57465 fi
57466 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
57467 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
57468 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
57469
57470
57471 cat >>confdefs.h <<\_ACEOF
57472 #define HAVE_GLIBC_BACKTRACE 1
57473 _ACEOF
57474
57475
57476 fi
57477
57478
57479 fi
57480
57481
57482
57483
57484 #
57485 # Declarations
57486 #
57487 # Checks for library functions and if the function is declared in
57488 # an appropriate header file.  Functions which exist, but for which
57489 # no declaration is available, are declared in common-src/amanda.h.
57490 # It's not clear that any existing system implements but does not
57491 # declare common functions such as these.
57492 #
57493
57494 ice_have_accept=no
57495
57496 for ac_func in accept
57497 do
57498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57499 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57500 $as_echo_n "checking for $ac_func... " >&6; }
57501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57502   $as_echo_n "(cached) " >&6
57503 else
57504   cat >conftest.$ac_ext <<_ACEOF
57505 /* confdefs.h.  */
57506 _ACEOF
57507 cat confdefs.h >>conftest.$ac_ext
57508 cat >>conftest.$ac_ext <<_ACEOF
57509 /* end confdefs.h.  */
57510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57512 #define $ac_func innocuous_$ac_func
57513
57514 /* System header to define __stub macros and hopefully few prototypes,
57515     which can conflict with char $ac_func (); below.
57516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57517     <limits.h> exists even on freestanding compilers.  */
57518
57519 #ifdef __STDC__
57520 # include <limits.h>
57521 #else
57522 # include <assert.h>
57523 #endif
57524
57525 #undef $ac_func
57526
57527 /* Override any GCC internal prototype to avoid an error.
57528    Use char because int might match the return type of a GCC
57529    builtin and then its argument prototype would still apply.  */
57530 #ifdef __cplusplus
57531 extern "C"
57532 #endif
57533 char $ac_func ();
57534 /* The GNU C library defines this for functions which it implements
57535     to always fail with ENOSYS.  Some functions are actually named
57536     something starting with __ and the normal name is an alias.  */
57537 #if defined __stub_$ac_func || defined __stub___$ac_func
57538 choke me
57539 #endif
57540
57541 int
57542 main ()
57543 {
57544 return $ac_func ();
57545   ;
57546   return 0;
57547 }
57548 _ACEOF
57549 rm -f conftest.$ac_objext conftest$ac_exeext
57550 if { (ac_try="$ac_link"
57551 case "(($ac_try" in
57552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57553   *) ac_try_echo=$ac_try;;
57554 esac
57555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57556 $as_echo "$ac_try_echo") >&5
57557   (eval "$ac_link") 2>conftest.er1
57558   ac_status=$?
57559   grep -v '^ *+' conftest.er1 >conftest.err
57560   rm -f conftest.er1
57561   cat conftest.err >&5
57562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57563   (exit $ac_status); } && {
57564          test -z "$ac_c_werror_flag" ||
57565          test ! -s conftest.err
57566        } && test -s conftest$ac_exeext && {
57567          test "$cross_compiling" = yes ||
57568          $as_test_x conftest$ac_exeext
57569        }; then
57570   eval "$as_ac_var=yes"
57571 else
57572   $as_echo "$as_me: failed program was:" >&5
57573 sed 's/^/| /' conftest.$ac_ext >&5
57574
57575         eval "$as_ac_var=no"
57576 fi
57577
57578 rm -rf conftest.dSYM
57579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57580       conftest$ac_exeext conftest.$ac_ext
57581 fi
57582 ac_res=`eval 'as_val=${'$as_ac_var'}
57583                  $as_echo "$as_val"'`
57584                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57585 $as_echo "$ac_res" >&6; }
57586 as_val=`eval 'as_val=${'$as_ac_var'}
57587                  $as_echo "$as_val"'`
57588    if test "x$as_val" = x""yes; then
57589   cat >>confdefs.h <<_ACEOF
57590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57591 _ACEOF
57592  ice_have_accept=yes
57593 fi
57594 done
57595
57596 if test "${ice_have_accept}" = yes; then
57597 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
57598 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
57599 if test "${ice_cv_have_accept_decl+set}" = set; then
57600   $as_echo_n "(cached) " >&6
57601 else
57602
57603 ice_cv_have_accept_decl=no
57604 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57605 ice_re_word='(^|[^a-zA-Z0-9_])'
57606 for header in sys/types.h sys/socket.h; do
57607 # Check for ordinary declaration
57608 cat >conftest.$ac_ext <<_ACEOF
57609 /* confdefs.h.  */
57610 _ACEOF
57611 cat confdefs.h >>conftest.$ac_ext
57612 cat >>conftest.$ac_ext <<_ACEOF
57613 /* end confdefs.h.  */
57614 #include <$header>
57615
57616 _ACEOF
57617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57618   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
57619   ice_cv_have_accept_decl=yes
57620 fi
57621 rm -f conftest*
57622
57623 if test "$ice_cv_have_accept_decl" = yes; then
57624         break
57625 fi
57626 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57627 cat >conftest.$ac_ext <<_ACEOF
57628 /* confdefs.h.  */
57629 _ACEOF
57630 cat confdefs.h >>conftest.$ac_ext
57631 cat >>conftest.$ac_ext <<_ACEOF
57632 /* end confdefs.h.  */
57633 #include <$header>
57634
57635 _ACEOF
57636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57637   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57638   ice_cv_have_accept_decl=yes
57639 fi
57640 rm -f conftest*
57641
57642 if test "$ice_cv_have_accept_decl" = yes; then
57643         break
57644 fi
57645 done
57646
57647 fi
57648
57649 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
57650 $as_echo "$ice_cv_have_accept_decl" >&6; }
57651 if test "$ice_cv_have_accept_decl" = yes; then
57652
57653 cat >>confdefs.h <<_ACEOF
57654 #define HAVE_ACCEPT_DECL 1
57655 _ACEOF
57656
57657 fi
57658 fi
57659
57660 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
57661 # for constant arguments.  Useless!
57662 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
57663 $as_echo_n "checking for working alloca.h... " >&6; }
57664 if test "${ac_cv_working_alloca_h+set}" = set; then
57665   $as_echo_n "(cached) " >&6
57666 else
57667   cat >conftest.$ac_ext <<_ACEOF
57668 /* confdefs.h.  */
57669 _ACEOF
57670 cat confdefs.h >>conftest.$ac_ext
57671 cat >>conftest.$ac_ext <<_ACEOF
57672 /* end confdefs.h.  */
57673 #include <alloca.h>
57674 int
57675 main ()
57676 {
57677 char *p = (char *) alloca (2 * sizeof (int));
57678                           if (p) return 0;
57679   ;
57680   return 0;
57681 }
57682 _ACEOF
57683 rm -f conftest.$ac_objext conftest$ac_exeext
57684 if { (ac_try="$ac_link"
57685 case "(($ac_try" in
57686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57687   *) ac_try_echo=$ac_try;;
57688 esac
57689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57690 $as_echo "$ac_try_echo") >&5
57691   (eval "$ac_link") 2>conftest.er1
57692   ac_status=$?
57693   grep -v '^ *+' conftest.er1 >conftest.err
57694   rm -f conftest.er1
57695   cat conftest.err >&5
57696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57697   (exit $ac_status); } && {
57698          test -z "$ac_c_werror_flag" ||
57699          test ! -s conftest.err
57700        } && test -s conftest$ac_exeext && {
57701          test "$cross_compiling" = yes ||
57702          $as_test_x conftest$ac_exeext
57703        }; then
57704   ac_cv_working_alloca_h=yes
57705 else
57706   $as_echo "$as_me: failed program was:" >&5
57707 sed 's/^/| /' conftest.$ac_ext >&5
57708
57709         ac_cv_working_alloca_h=no
57710 fi
57711
57712 rm -rf conftest.dSYM
57713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57714       conftest$ac_exeext conftest.$ac_ext
57715 fi
57716 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
57717 $as_echo "$ac_cv_working_alloca_h" >&6; }
57718 if test $ac_cv_working_alloca_h = yes; then
57719
57720 cat >>confdefs.h <<\_ACEOF
57721 #define HAVE_ALLOCA_H 1
57722 _ACEOF
57723
57724 fi
57725
57726 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
57727 $as_echo_n "checking for alloca... " >&6; }
57728 if test "${ac_cv_func_alloca_works+set}" = set; then
57729   $as_echo_n "(cached) " >&6
57730 else
57731   cat >conftest.$ac_ext <<_ACEOF
57732 /* confdefs.h.  */
57733 _ACEOF
57734 cat confdefs.h >>conftest.$ac_ext
57735 cat >>conftest.$ac_ext <<_ACEOF
57736 /* end confdefs.h.  */
57737 #ifdef __GNUC__
57738 # define alloca __builtin_alloca
57739 #else
57740 # ifdef _MSC_VER
57741 #  include <malloc.h>
57742 #  define alloca _alloca
57743 # else
57744 #  ifdef HAVE_ALLOCA_H
57745 #   include <alloca.h>
57746 #  else
57747 #   ifdef _AIX
57748  #pragma alloca
57749 #   else
57750 #    ifndef alloca /* predefined by HP cc +Olibcalls */
57751 char *alloca ();
57752 #    endif
57753 #   endif
57754 #  endif
57755 # endif
57756 #endif
57757
57758 int
57759 main ()
57760 {
57761 char *p = (char *) alloca (1);
57762                                     if (p) return 0;
57763   ;
57764   return 0;
57765 }
57766 _ACEOF
57767 rm -f conftest.$ac_objext conftest$ac_exeext
57768 if { (ac_try="$ac_link"
57769 case "(($ac_try" in
57770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57771   *) ac_try_echo=$ac_try;;
57772 esac
57773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57774 $as_echo "$ac_try_echo") >&5
57775   (eval "$ac_link") 2>conftest.er1
57776   ac_status=$?
57777   grep -v '^ *+' conftest.er1 >conftest.err
57778   rm -f conftest.er1
57779   cat conftest.err >&5
57780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57781   (exit $ac_status); } && {
57782          test -z "$ac_c_werror_flag" ||
57783          test ! -s conftest.err
57784        } && test -s conftest$ac_exeext && {
57785          test "$cross_compiling" = yes ||
57786          $as_test_x conftest$ac_exeext
57787        }; then
57788   ac_cv_func_alloca_works=yes
57789 else
57790   $as_echo "$as_me: failed program was:" >&5
57791 sed 's/^/| /' conftest.$ac_ext >&5
57792
57793         ac_cv_func_alloca_works=no
57794 fi
57795
57796 rm -rf conftest.dSYM
57797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57798       conftest$ac_exeext conftest.$ac_ext
57799 fi
57800 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
57801 $as_echo "$ac_cv_func_alloca_works" >&6; }
57802
57803 if test $ac_cv_func_alloca_works = yes; then
57804
57805 cat >>confdefs.h <<\_ACEOF
57806 #define HAVE_ALLOCA 1
57807 _ACEOF
57808
57809 else
57810   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
57811 # that cause trouble.  Some versions do not even contain alloca or
57812 # contain a buggy version.  If you still want to use their alloca,
57813 # use ar to extract alloca.o from them instead of compiling alloca.c.
57814
57815 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57816
57817 cat >>confdefs.h <<\_ACEOF
57818 #define C_ALLOCA 1
57819 _ACEOF
57820
57821
57822 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
57823 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
57824 if test "${ac_cv_os_cray+set}" = set; then
57825   $as_echo_n "(cached) " >&6
57826 else
57827   cat >conftest.$ac_ext <<_ACEOF
57828 /* confdefs.h.  */
57829 _ACEOF
57830 cat confdefs.h >>conftest.$ac_ext
57831 cat >>conftest.$ac_ext <<_ACEOF
57832 /* end confdefs.h.  */
57833 #if defined CRAY && ! defined CRAY2
57834 webecray
57835 #else
57836 wenotbecray
57837 #endif
57838
57839 _ACEOF
57840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57841   $EGREP "webecray" >/dev/null 2>&1; then
57842   ac_cv_os_cray=yes
57843 else
57844   ac_cv_os_cray=no
57845 fi
57846 rm -f conftest*
57847
57848 fi
57849 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
57850 $as_echo "$ac_cv_os_cray" >&6; }
57851 if test $ac_cv_os_cray = yes; then
57852   for ac_func in _getb67 GETB67 getb67; do
57853     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57854 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57855 $as_echo_n "checking for $ac_func... " >&6; }
57856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57857   $as_echo_n "(cached) " >&6
57858 else
57859   cat >conftest.$ac_ext <<_ACEOF
57860 /* confdefs.h.  */
57861 _ACEOF
57862 cat confdefs.h >>conftest.$ac_ext
57863 cat >>conftest.$ac_ext <<_ACEOF
57864 /* end confdefs.h.  */
57865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57867 #define $ac_func innocuous_$ac_func
57868
57869 /* System header to define __stub macros and hopefully few prototypes,
57870     which can conflict with char $ac_func (); below.
57871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57872     <limits.h> exists even on freestanding compilers.  */
57873
57874 #ifdef __STDC__
57875 # include <limits.h>
57876 #else
57877 # include <assert.h>
57878 #endif
57879
57880 #undef $ac_func
57881
57882 /* Override any GCC internal prototype to avoid an error.
57883    Use char because int might match the return type of a GCC
57884    builtin and then its argument prototype would still apply.  */
57885 #ifdef __cplusplus
57886 extern "C"
57887 #endif
57888 char $ac_func ();
57889 /* The GNU C library defines this for functions which it implements
57890     to always fail with ENOSYS.  Some functions are actually named
57891     something starting with __ and the normal name is an alias.  */
57892 #if defined __stub_$ac_func || defined __stub___$ac_func
57893 choke me
57894 #endif
57895
57896 int
57897 main ()
57898 {
57899 return $ac_func ();
57900   ;
57901   return 0;
57902 }
57903 _ACEOF
57904 rm -f conftest.$ac_objext conftest$ac_exeext
57905 if { (ac_try="$ac_link"
57906 case "(($ac_try" in
57907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57908   *) ac_try_echo=$ac_try;;
57909 esac
57910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57911 $as_echo "$ac_try_echo") >&5
57912   (eval "$ac_link") 2>conftest.er1
57913   ac_status=$?
57914   grep -v '^ *+' conftest.er1 >conftest.err
57915   rm -f conftest.er1
57916   cat conftest.err >&5
57917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57918   (exit $ac_status); } && {
57919          test -z "$ac_c_werror_flag" ||
57920          test ! -s conftest.err
57921        } && test -s conftest$ac_exeext && {
57922          test "$cross_compiling" = yes ||
57923          $as_test_x conftest$ac_exeext
57924        }; then
57925   eval "$as_ac_var=yes"
57926 else
57927   $as_echo "$as_me: failed program was:" >&5
57928 sed 's/^/| /' conftest.$ac_ext >&5
57929
57930         eval "$as_ac_var=no"
57931 fi
57932
57933 rm -rf conftest.dSYM
57934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57935       conftest$ac_exeext conftest.$ac_ext
57936 fi
57937 ac_res=`eval 'as_val=${'$as_ac_var'}
57938                  $as_echo "$as_val"'`
57939                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57940 $as_echo "$ac_res" >&6; }
57941 as_val=`eval 'as_val=${'$as_ac_var'}
57942                  $as_echo "$as_val"'`
57943    if test "x$as_val" = x""yes; then
57944
57945 cat >>confdefs.h <<_ACEOF
57946 #define CRAY_STACKSEG_END $ac_func
57947 _ACEOF
57948
57949     break
57950 fi
57951
57952   done
57953 fi
57954
57955 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
57956 $as_echo_n "checking stack direction for C alloca... " >&6; }
57957 if test "${ac_cv_c_stack_direction+set}" = set; then
57958   $as_echo_n "(cached) " >&6
57959 else
57960   if test "$cross_compiling" = yes; then
57961   ac_cv_c_stack_direction=0
57962 else
57963   cat >conftest.$ac_ext <<_ACEOF
57964 /* confdefs.h.  */
57965 _ACEOF
57966 cat confdefs.h >>conftest.$ac_ext
57967 cat >>conftest.$ac_ext <<_ACEOF
57968 /* end confdefs.h.  */
57969 $ac_includes_default
57970 int
57971 find_stack_direction ()
57972 {
57973   static char *addr = 0;
57974   auto char dummy;
57975   if (addr == 0)
57976     {
57977       addr = &dummy;
57978       return find_stack_direction ();
57979     }
57980   else
57981     return (&dummy > addr) ? 1 : -1;
57982 }
57983
57984 int
57985 main ()
57986 {
57987   return find_stack_direction () < 0;
57988 }
57989 _ACEOF
57990 rm -f conftest$ac_exeext
57991 if { (ac_try="$ac_link"
57992 case "(($ac_try" in
57993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57994   *) ac_try_echo=$ac_try;;
57995 esac
57996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57997 $as_echo "$ac_try_echo") >&5
57998   (eval "$ac_link") 2>&5
57999   ac_status=$?
58000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58002   { (case "(($ac_try" in
58003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58004   *) ac_try_echo=$ac_try;;
58005 esac
58006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58007 $as_echo "$ac_try_echo") >&5
58008   (eval "$ac_try") 2>&5
58009   ac_status=$?
58010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58011   (exit $ac_status); }; }; then
58012   ac_cv_c_stack_direction=1
58013 else
58014   $as_echo "$as_me: program exited with status $ac_status" >&5
58015 $as_echo "$as_me: failed program was:" >&5
58016 sed 's/^/| /' conftest.$ac_ext >&5
58017
58018 ( exit $ac_status )
58019 ac_cv_c_stack_direction=-1
58020 fi
58021 rm -rf conftest.dSYM
58022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58023 fi
58024
58025
58026 fi
58027 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
58028 $as_echo "$ac_cv_c_stack_direction" >&6; }
58029
58030 cat >>confdefs.h <<_ACEOF
58031 #define STACK_DIRECTION $ac_cv_c_stack_direction
58032 _ACEOF
58033
58034
58035 fi
58036
58037
58038 for ac_func in atexit
58039 do
58040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58042 $as_echo_n "checking for $ac_func... " >&6; }
58043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58044   $as_echo_n "(cached) " >&6
58045 else
58046   cat >conftest.$ac_ext <<_ACEOF
58047 /* confdefs.h.  */
58048 _ACEOF
58049 cat confdefs.h >>conftest.$ac_ext
58050 cat >>conftest.$ac_ext <<_ACEOF
58051 /* end confdefs.h.  */
58052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58054 #define $ac_func innocuous_$ac_func
58055
58056 /* System header to define __stub macros and hopefully few prototypes,
58057     which can conflict with char $ac_func (); below.
58058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58059     <limits.h> exists even on freestanding compilers.  */
58060
58061 #ifdef __STDC__
58062 # include <limits.h>
58063 #else
58064 # include <assert.h>
58065 #endif
58066
58067 #undef $ac_func
58068
58069 /* Override any GCC internal prototype to avoid an error.
58070    Use char because int might match the return type of a GCC
58071    builtin and then its argument prototype would still apply.  */
58072 #ifdef __cplusplus
58073 extern "C"
58074 #endif
58075 char $ac_func ();
58076 /* The GNU C library defines this for functions which it implements
58077     to always fail with ENOSYS.  Some functions are actually named
58078     something starting with __ and the normal name is an alias.  */
58079 #if defined __stub_$ac_func || defined __stub___$ac_func
58080 choke me
58081 #endif
58082
58083 int
58084 main ()
58085 {
58086 return $ac_func ();
58087   ;
58088   return 0;
58089 }
58090 _ACEOF
58091 rm -f conftest.$ac_objext conftest$ac_exeext
58092 if { (ac_try="$ac_link"
58093 case "(($ac_try" in
58094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58095   *) ac_try_echo=$ac_try;;
58096 esac
58097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58098 $as_echo "$ac_try_echo") >&5
58099   (eval "$ac_link") 2>conftest.er1
58100   ac_status=$?
58101   grep -v '^ *+' conftest.er1 >conftest.err
58102   rm -f conftest.er1
58103   cat conftest.err >&5
58104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58105   (exit $ac_status); } && {
58106          test -z "$ac_c_werror_flag" ||
58107          test ! -s conftest.err
58108        } && test -s conftest$ac_exeext && {
58109          test "$cross_compiling" = yes ||
58110          $as_test_x conftest$ac_exeext
58111        }; then
58112   eval "$as_ac_var=yes"
58113 else
58114   $as_echo "$as_me: failed program was:" >&5
58115 sed 's/^/| /' conftest.$ac_ext >&5
58116
58117         eval "$as_ac_var=no"
58118 fi
58119
58120 rm -rf conftest.dSYM
58121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58122       conftest$ac_exeext conftest.$ac_ext
58123 fi
58124 ac_res=`eval 'as_val=${'$as_ac_var'}
58125                  $as_echo "$as_val"'`
58126                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58127 $as_echo "$ac_res" >&6; }
58128 as_val=`eval 'as_val=${'$as_ac_var'}
58129                  $as_echo "$as_val"'`
58130    if test "x$as_val" = x""yes; then
58131   cat >>confdefs.h <<_ACEOF
58132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58133 _ACEOF
58134
58135 fi
58136 done
58137
58138
58139 ice_have_atof=no
58140
58141 for ac_func in atof
58142 do
58143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58144 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58145 $as_echo_n "checking for $ac_func... " >&6; }
58146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58147   $as_echo_n "(cached) " >&6
58148 else
58149   cat >conftest.$ac_ext <<_ACEOF
58150 /* confdefs.h.  */
58151 _ACEOF
58152 cat confdefs.h >>conftest.$ac_ext
58153 cat >>conftest.$ac_ext <<_ACEOF
58154 /* end confdefs.h.  */
58155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58157 #define $ac_func innocuous_$ac_func
58158
58159 /* System header to define __stub macros and hopefully few prototypes,
58160     which can conflict with char $ac_func (); below.
58161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58162     <limits.h> exists even on freestanding compilers.  */
58163
58164 #ifdef __STDC__
58165 # include <limits.h>
58166 #else
58167 # include <assert.h>
58168 #endif
58169
58170 #undef $ac_func
58171
58172 /* Override any GCC internal prototype to avoid an error.
58173    Use char because int might match the return type of a GCC
58174    builtin and then its argument prototype would still apply.  */
58175 #ifdef __cplusplus
58176 extern "C"
58177 #endif
58178 char $ac_func ();
58179 /* The GNU C library defines this for functions which it implements
58180     to always fail with ENOSYS.  Some functions are actually named
58181     something starting with __ and the normal name is an alias.  */
58182 #if defined __stub_$ac_func || defined __stub___$ac_func
58183 choke me
58184 #endif
58185
58186 int
58187 main ()
58188 {
58189 return $ac_func ();
58190   ;
58191   return 0;
58192 }
58193 _ACEOF
58194 rm -f conftest.$ac_objext conftest$ac_exeext
58195 if { (ac_try="$ac_link"
58196 case "(($ac_try" in
58197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58198   *) ac_try_echo=$ac_try;;
58199 esac
58200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58201 $as_echo "$ac_try_echo") >&5
58202   (eval "$ac_link") 2>conftest.er1
58203   ac_status=$?
58204   grep -v '^ *+' conftest.er1 >conftest.err
58205   rm -f conftest.er1
58206   cat conftest.err >&5
58207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58208   (exit $ac_status); } && {
58209          test -z "$ac_c_werror_flag" ||
58210          test ! -s conftest.err
58211        } && test -s conftest$ac_exeext && {
58212          test "$cross_compiling" = yes ||
58213          $as_test_x conftest$ac_exeext
58214        }; then
58215   eval "$as_ac_var=yes"
58216 else
58217   $as_echo "$as_me: failed program was:" >&5
58218 sed 's/^/| /' conftest.$ac_ext >&5
58219
58220         eval "$as_ac_var=no"
58221 fi
58222
58223 rm -rf conftest.dSYM
58224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58225       conftest$ac_exeext conftest.$ac_ext
58226 fi
58227 ac_res=`eval 'as_val=${'$as_ac_var'}
58228                  $as_echo "$as_val"'`
58229                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58230 $as_echo "$ac_res" >&6; }
58231 as_val=`eval 'as_val=${'$as_ac_var'}
58232                  $as_echo "$as_val"'`
58233    if test "x$as_val" = x""yes; then
58234   cat >>confdefs.h <<_ACEOF
58235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58236 _ACEOF
58237  ice_have_atof=yes
58238 fi
58239 done
58240
58241 if test "${ice_have_atof}" = yes; then
58242 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
58243 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
58244 if test "${ice_cv_have_atof_decl+set}" = set; then
58245   $as_echo_n "(cached) " >&6
58246 else
58247
58248 ice_cv_have_atof_decl=no
58249 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58250 ice_re_word='(^|[^a-zA-Z0-9_])'
58251 for header in stdlib.h; do
58252 # Check for ordinary declaration
58253 cat >conftest.$ac_ext <<_ACEOF
58254 /* confdefs.h.  */
58255 _ACEOF
58256 cat confdefs.h >>conftest.$ac_ext
58257 cat >>conftest.$ac_ext <<_ACEOF
58258 /* end confdefs.h.  */
58259 #include <$header>
58260
58261 _ACEOF
58262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58263   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
58264   ice_cv_have_atof_decl=yes
58265 fi
58266 rm -f conftest*
58267
58268 if test "$ice_cv_have_atof_decl" = yes; then
58269         break
58270 fi
58271 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58272 cat >conftest.$ac_ext <<_ACEOF
58273 /* confdefs.h.  */
58274 _ACEOF
58275 cat confdefs.h >>conftest.$ac_ext
58276 cat >>conftest.$ac_ext <<_ACEOF
58277 /* end confdefs.h.  */
58278 #include <$header>
58279
58280 _ACEOF
58281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58282   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58283   ice_cv_have_atof_decl=yes
58284 fi
58285 rm -f conftest*
58286
58287 if test "$ice_cv_have_atof_decl" = yes; then
58288         break
58289 fi
58290 done
58291
58292 fi
58293
58294 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
58295 $as_echo "$ice_cv_have_atof_decl" >&6; }
58296 if test "$ice_cv_have_atof_decl" = yes; then
58297
58298 cat >>confdefs.h <<_ACEOF
58299 #define HAVE_ATOF_DECL 1
58300 _ACEOF
58301
58302 fi
58303 fi
58304
58305
58306 ice_have_atol=no
58307
58308 for ac_func in atol
58309 do
58310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58312 $as_echo_n "checking for $ac_func... " >&6; }
58313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58314   $as_echo_n "(cached) " >&6
58315 else
58316   cat >conftest.$ac_ext <<_ACEOF
58317 /* confdefs.h.  */
58318 _ACEOF
58319 cat confdefs.h >>conftest.$ac_ext
58320 cat >>conftest.$ac_ext <<_ACEOF
58321 /* end confdefs.h.  */
58322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58324 #define $ac_func innocuous_$ac_func
58325
58326 /* System header to define __stub macros and hopefully few prototypes,
58327     which can conflict with char $ac_func (); below.
58328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58329     <limits.h> exists even on freestanding compilers.  */
58330
58331 #ifdef __STDC__
58332 # include <limits.h>
58333 #else
58334 # include <assert.h>
58335 #endif
58336
58337 #undef $ac_func
58338
58339 /* Override any GCC internal prototype to avoid an error.
58340    Use char because int might match the return type of a GCC
58341    builtin and then its argument prototype would still apply.  */
58342 #ifdef __cplusplus
58343 extern "C"
58344 #endif
58345 char $ac_func ();
58346 /* The GNU C library defines this for functions which it implements
58347     to always fail with ENOSYS.  Some functions are actually named
58348     something starting with __ and the normal name is an alias.  */
58349 #if defined __stub_$ac_func || defined __stub___$ac_func
58350 choke me
58351 #endif
58352
58353 int
58354 main ()
58355 {
58356 return $ac_func ();
58357   ;
58358   return 0;
58359 }
58360 _ACEOF
58361 rm -f conftest.$ac_objext conftest$ac_exeext
58362 if { (ac_try="$ac_link"
58363 case "(($ac_try" in
58364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58365   *) ac_try_echo=$ac_try;;
58366 esac
58367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58368 $as_echo "$ac_try_echo") >&5
58369   (eval "$ac_link") 2>conftest.er1
58370   ac_status=$?
58371   grep -v '^ *+' conftest.er1 >conftest.err
58372   rm -f conftest.er1
58373   cat conftest.err >&5
58374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58375   (exit $ac_status); } && {
58376          test -z "$ac_c_werror_flag" ||
58377          test ! -s conftest.err
58378        } && test -s conftest$ac_exeext && {
58379          test "$cross_compiling" = yes ||
58380          $as_test_x conftest$ac_exeext
58381        }; then
58382   eval "$as_ac_var=yes"
58383 else
58384   $as_echo "$as_me: failed program was:" >&5
58385 sed 's/^/| /' conftest.$ac_ext >&5
58386
58387         eval "$as_ac_var=no"
58388 fi
58389
58390 rm -rf conftest.dSYM
58391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58392       conftest$ac_exeext conftest.$ac_ext
58393 fi
58394 ac_res=`eval 'as_val=${'$as_ac_var'}
58395                  $as_echo "$as_val"'`
58396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58397 $as_echo "$ac_res" >&6; }
58398 as_val=`eval 'as_val=${'$as_ac_var'}
58399                  $as_echo "$as_val"'`
58400    if test "x$as_val" = x""yes; then
58401   cat >>confdefs.h <<_ACEOF
58402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58403 _ACEOF
58404  ice_have_atol=yes
58405 fi
58406 done
58407
58408 if test "${ice_have_atol}" = yes; then
58409 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
58410 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
58411 if test "${ice_cv_have_atol_decl+set}" = set; then
58412   $as_echo_n "(cached) " >&6
58413 else
58414
58415 ice_cv_have_atol_decl=no
58416 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58417 ice_re_word='(^|[^a-zA-Z0-9_])'
58418 for header in stdlib.h; do
58419 # Check for ordinary declaration
58420 cat >conftest.$ac_ext <<_ACEOF
58421 /* confdefs.h.  */
58422 _ACEOF
58423 cat confdefs.h >>conftest.$ac_ext
58424 cat >>conftest.$ac_ext <<_ACEOF
58425 /* end confdefs.h.  */
58426 #include <$header>
58427
58428 _ACEOF
58429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58430   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
58431   ice_cv_have_atol_decl=yes
58432 fi
58433 rm -f conftest*
58434
58435 if test "$ice_cv_have_atol_decl" = yes; then
58436         break
58437 fi
58438 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58439 cat >conftest.$ac_ext <<_ACEOF
58440 /* confdefs.h.  */
58441 _ACEOF
58442 cat confdefs.h >>conftest.$ac_ext
58443 cat >>conftest.$ac_ext <<_ACEOF
58444 /* end confdefs.h.  */
58445 #include <$header>
58446
58447 _ACEOF
58448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58449   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58450   ice_cv_have_atol_decl=yes
58451 fi
58452 rm -f conftest*
58453
58454 if test "$ice_cv_have_atol_decl" = yes; then
58455         break
58456 fi
58457 done
58458
58459 fi
58460
58461 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
58462 $as_echo "$ice_cv_have_atol_decl" >&6; }
58463 if test "$ice_cv_have_atol_decl" = yes; then
58464
58465 cat >>confdefs.h <<_ACEOF
58466 #define HAVE_ATOL_DECL 1
58467 _ACEOF
58468
58469 fi
58470 fi
58471
58472
58473 ice_have_atoll=no
58474
58475 for ac_func in atoll
58476 do
58477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58478 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58479 $as_echo_n "checking for $ac_func... " >&6; }
58480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58481   $as_echo_n "(cached) " >&6
58482 else
58483   cat >conftest.$ac_ext <<_ACEOF
58484 /* confdefs.h.  */
58485 _ACEOF
58486 cat confdefs.h >>conftest.$ac_ext
58487 cat >>conftest.$ac_ext <<_ACEOF
58488 /* end confdefs.h.  */
58489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58491 #define $ac_func innocuous_$ac_func
58492
58493 /* System header to define __stub macros and hopefully few prototypes,
58494     which can conflict with char $ac_func (); below.
58495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58496     <limits.h> exists even on freestanding compilers.  */
58497
58498 #ifdef __STDC__
58499 # include <limits.h>
58500 #else
58501 # include <assert.h>
58502 #endif
58503
58504 #undef $ac_func
58505
58506 /* Override any GCC internal prototype to avoid an error.
58507    Use char because int might match the return type of a GCC
58508    builtin and then its argument prototype would still apply.  */
58509 #ifdef __cplusplus
58510 extern "C"
58511 #endif
58512 char $ac_func ();
58513 /* The GNU C library defines this for functions which it implements
58514     to always fail with ENOSYS.  Some functions are actually named
58515     something starting with __ and the normal name is an alias.  */
58516 #if defined __stub_$ac_func || defined __stub___$ac_func
58517 choke me
58518 #endif
58519
58520 int
58521 main ()
58522 {
58523 return $ac_func ();
58524   ;
58525   return 0;
58526 }
58527 _ACEOF
58528 rm -f conftest.$ac_objext conftest$ac_exeext
58529 if { (ac_try="$ac_link"
58530 case "(($ac_try" in
58531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58532   *) ac_try_echo=$ac_try;;
58533 esac
58534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58535 $as_echo "$ac_try_echo") >&5
58536   (eval "$ac_link") 2>conftest.er1
58537   ac_status=$?
58538   grep -v '^ *+' conftest.er1 >conftest.err
58539   rm -f conftest.er1
58540   cat conftest.err >&5
58541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58542   (exit $ac_status); } && {
58543          test -z "$ac_c_werror_flag" ||
58544          test ! -s conftest.err
58545        } && test -s conftest$ac_exeext && {
58546          test "$cross_compiling" = yes ||
58547          $as_test_x conftest$ac_exeext
58548        }; then
58549   eval "$as_ac_var=yes"
58550 else
58551   $as_echo "$as_me: failed program was:" >&5
58552 sed 's/^/| /' conftest.$ac_ext >&5
58553
58554         eval "$as_ac_var=no"
58555 fi
58556
58557 rm -rf conftest.dSYM
58558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58559       conftest$ac_exeext conftest.$ac_ext
58560 fi
58561 ac_res=`eval 'as_val=${'$as_ac_var'}
58562                  $as_echo "$as_val"'`
58563                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58564 $as_echo "$ac_res" >&6; }
58565 as_val=`eval 'as_val=${'$as_ac_var'}
58566                  $as_echo "$as_val"'`
58567    if test "x$as_val" = x""yes; then
58568   cat >>confdefs.h <<_ACEOF
58569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58570 _ACEOF
58571  ice_have_atoll=yes
58572 fi
58573 done
58574
58575 if test "${ice_have_atoll}" = yes; then
58576 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
58577 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
58578 if test "${ice_cv_have_atoll_decl+set}" = set; then
58579   $as_echo_n "(cached) " >&6
58580 else
58581
58582 ice_cv_have_atoll_decl=no
58583 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58584 ice_re_word='(^|[^a-zA-Z0-9_])'
58585 for header in stdlib.h; do
58586 # Check for ordinary declaration
58587 cat >conftest.$ac_ext <<_ACEOF
58588 /* confdefs.h.  */
58589 _ACEOF
58590 cat confdefs.h >>conftest.$ac_ext
58591 cat >>conftest.$ac_ext <<_ACEOF
58592 /* end confdefs.h.  */
58593 #include <$header>
58594
58595 _ACEOF
58596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58597   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
58598   ice_cv_have_atoll_decl=yes
58599 fi
58600 rm -f conftest*
58601
58602 if test "$ice_cv_have_atoll_decl" = yes; then
58603         break
58604 fi
58605 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58606 cat >conftest.$ac_ext <<_ACEOF
58607 /* confdefs.h.  */
58608 _ACEOF
58609 cat confdefs.h >>conftest.$ac_ext
58610 cat >>conftest.$ac_ext <<_ACEOF
58611 /* end confdefs.h.  */
58612 #include <$header>
58613
58614 _ACEOF
58615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58616   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58617   ice_cv_have_atoll_decl=yes
58618 fi
58619 rm -f conftest*
58620
58621 if test "$ice_cv_have_atoll_decl" = yes; then
58622         break
58623 fi
58624 done
58625
58626 fi
58627
58628 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
58629 $as_echo "$ice_cv_have_atoll_decl" >&6; }
58630 if test "$ice_cv_have_atoll_decl" = yes; then
58631
58632 cat >>confdefs.h <<_ACEOF
58633 #define HAVE_ATOLL_DECL 1
58634 _ACEOF
58635
58636 fi
58637 fi
58638
58639
58640 ice_have_strtol=no
58641
58642 for ac_func in strtol
58643 do
58644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58645 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58646 $as_echo_n "checking for $ac_func... " >&6; }
58647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58648   $as_echo_n "(cached) " >&6
58649 else
58650   cat >conftest.$ac_ext <<_ACEOF
58651 /* confdefs.h.  */
58652 _ACEOF
58653 cat confdefs.h >>conftest.$ac_ext
58654 cat >>conftest.$ac_ext <<_ACEOF
58655 /* end confdefs.h.  */
58656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58658 #define $ac_func innocuous_$ac_func
58659
58660 /* System header to define __stub macros and hopefully few prototypes,
58661     which can conflict with char $ac_func (); below.
58662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58663     <limits.h> exists even on freestanding compilers.  */
58664
58665 #ifdef __STDC__
58666 # include <limits.h>
58667 #else
58668 # include <assert.h>
58669 #endif
58670
58671 #undef $ac_func
58672
58673 /* Override any GCC internal prototype to avoid an error.
58674    Use char because int might match the return type of a GCC
58675    builtin and then its argument prototype would still apply.  */
58676 #ifdef __cplusplus
58677 extern "C"
58678 #endif
58679 char $ac_func ();
58680 /* The GNU C library defines this for functions which it implements
58681     to always fail with ENOSYS.  Some functions are actually named
58682     something starting with __ and the normal name is an alias.  */
58683 #if defined __stub_$ac_func || defined __stub___$ac_func
58684 choke me
58685 #endif
58686
58687 int
58688 main ()
58689 {
58690 return $ac_func ();
58691   ;
58692   return 0;
58693 }
58694 _ACEOF
58695 rm -f conftest.$ac_objext conftest$ac_exeext
58696 if { (ac_try="$ac_link"
58697 case "(($ac_try" in
58698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58699   *) ac_try_echo=$ac_try;;
58700 esac
58701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58702 $as_echo "$ac_try_echo") >&5
58703   (eval "$ac_link") 2>conftest.er1
58704   ac_status=$?
58705   grep -v '^ *+' conftest.er1 >conftest.err
58706   rm -f conftest.er1
58707   cat conftest.err >&5
58708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58709   (exit $ac_status); } && {
58710          test -z "$ac_c_werror_flag" ||
58711          test ! -s conftest.err
58712        } && test -s conftest$ac_exeext && {
58713          test "$cross_compiling" = yes ||
58714          $as_test_x conftest$ac_exeext
58715        }; then
58716   eval "$as_ac_var=yes"
58717 else
58718   $as_echo "$as_me: failed program was:" >&5
58719 sed 's/^/| /' conftest.$ac_ext >&5
58720
58721         eval "$as_ac_var=no"
58722 fi
58723
58724 rm -rf conftest.dSYM
58725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58726       conftest$ac_exeext conftest.$ac_ext
58727 fi
58728 ac_res=`eval 'as_val=${'$as_ac_var'}
58729                  $as_echo "$as_val"'`
58730                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58731 $as_echo "$ac_res" >&6; }
58732 as_val=`eval 'as_val=${'$as_ac_var'}
58733                  $as_echo "$as_val"'`
58734    if test "x$as_val" = x""yes; then
58735   cat >>confdefs.h <<_ACEOF
58736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58737 _ACEOF
58738  ice_have_strtol=yes
58739 fi
58740 done
58741
58742 if test "${ice_have_strtol}" = yes; then
58743 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
58744 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
58745 if test "${ice_cv_have_strtol_decl+set}" = set; then
58746   $as_echo_n "(cached) " >&6
58747 else
58748
58749 ice_cv_have_strtol_decl=no
58750 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58751 ice_re_word='(^|[^a-zA-Z0-9_])'
58752 for header in stdlib.h; do
58753 # Check for ordinary declaration
58754 cat >conftest.$ac_ext <<_ACEOF
58755 /* confdefs.h.  */
58756 _ACEOF
58757 cat confdefs.h >>conftest.$ac_ext
58758 cat >>conftest.$ac_ext <<_ACEOF
58759 /* end confdefs.h.  */
58760 #include <$header>
58761
58762 _ACEOF
58763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58764   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
58765   ice_cv_have_strtol_decl=yes
58766 fi
58767 rm -f conftest*
58768
58769 if test "$ice_cv_have_strtol_decl" = yes; then
58770         break
58771 fi
58772 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58773 cat >conftest.$ac_ext <<_ACEOF
58774 /* confdefs.h.  */
58775 _ACEOF
58776 cat confdefs.h >>conftest.$ac_ext
58777 cat >>conftest.$ac_ext <<_ACEOF
58778 /* end confdefs.h.  */
58779 #include <$header>
58780
58781 _ACEOF
58782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58783   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58784   ice_cv_have_strtol_decl=yes
58785 fi
58786 rm -f conftest*
58787
58788 if test "$ice_cv_have_strtol_decl" = yes; then
58789         break
58790 fi
58791 done
58792
58793 fi
58794
58795 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
58796 $as_echo "$ice_cv_have_strtol_decl" >&6; }
58797 if test "$ice_cv_have_strtol_decl" = yes; then
58798
58799 cat >>confdefs.h <<_ACEOF
58800 #define HAVE_STRTOL_DECL 1
58801 _ACEOF
58802
58803 fi
58804 fi
58805
58806
58807 ice_have_strtoll=no
58808
58809 for ac_func in strtoll
58810 do
58811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58813 $as_echo_n "checking for $ac_func... " >&6; }
58814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58815   $as_echo_n "(cached) " >&6
58816 else
58817   cat >conftest.$ac_ext <<_ACEOF
58818 /* confdefs.h.  */
58819 _ACEOF
58820 cat confdefs.h >>conftest.$ac_ext
58821 cat >>conftest.$ac_ext <<_ACEOF
58822 /* end confdefs.h.  */
58823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58825 #define $ac_func innocuous_$ac_func
58826
58827 /* System header to define __stub macros and hopefully few prototypes,
58828     which can conflict with char $ac_func (); below.
58829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58830     <limits.h> exists even on freestanding compilers.  */
58831
58832 #ifdef __STDC__
58833 # include <limits.h>
58834 #else
58835 # include <assert.h>
58836 #endif
58837
58838 #undef $ac_func
58839
58840 /* Override any GCC internal prototype to avoid an error.
58841    Use char because int might match the return type of a GCC
58842    builtin and then its argument prototype would still apply.  */
58843 #ifdef __cplusplus
58844 extern "C"
58845 #endif
58846 char $ac_func ();
58847 /* The GNU C library defines this for functions which it implements
58848     to always fail with ENOSYS.  Some functions are actually named
58849     something starting with __ and the normal name is an alias.  */
58850 #if defined __stub_$ac_func || defined __stub___$ac_func
58851 choke me
58852 #endif
58853
58854 int
58855 main ()
58856 {
58857 return $ac_func ();
58858   ;
58859   return 0;
58860 }
58861 _ACEOF
58862 rm -f conftest.$ac_objext conftest$ac_exeext
58863 if { (ac_try="$ac_link"
58864 case "(($ac_try" in
58865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58866   *) ac_try_echo=$ac_try;;
58867 esac
58868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58869 $as_echo "$ac_try_echo") >&5
58870   (eval "$ac_link") 2>conftest.er1
58871   ac_status=$?
58872   grep -v '^ *+' conftest.er1 >conftest.err
58873   rm -f conftest.er1
58874   cat conftest.err >&5
58875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58876   (exit $ac_status); } && {
58877          test -z "$ac_c_werror_flag" ||
58878          test ! -s conftest.err
58879        } && test -s conftest$ac_exeext && {
58880          test "$cross_compiling" = yes ||
58881          $as_test_x conftest$ac_exeext
58882        }; then
58883   eval "$as_ac_var=yes"
58884 else
58885   $as_echo "$as_me: failed program was:" >&5
58886 sed 's/^/| /' conftest.$ac_ext >&5
58887
58888         eval "$as_ac_var=no"
58889 fi
58890
58891 rm -rf conftest.dSYM
58892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58893       conftest$ac_exeext conftest.$ac_ext
58894 fi
58895 ac_res=`eval 'as_val=${'$as_ac_var'}
58896                  $as_echo "$as_val"'`
58897                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58898 $as_echo "$ac_res" >&6; }
58899 as_val=`eval 'as_val=${'$as_ac_var'}
58900                  $as_echo "$as_val"'`
58901    if test "x$as_val" = x""yes; then
58902   cat >>confdefs.h <<_ACEOF
58903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58904 _ACEOF
58905  ice_have_strtoll=yes
58906 fi
58907 done
58908
58909 if test "${ice_have_strtoll}" = yes; then
58910 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
58911 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
58912 if test "${ice_cv_have_strtoll_decl+set}" = set; then
58913   $as_echo_n "(cached) " >&6
58914 else
58915
58916 ice_cv_have_strtoll_decl=no
58917 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58918 ice_re_word='(^|[^a-zA-Z0-9_])'
58919 for header in stdlib.h; do
58920 # Check for ordinary declaration
58921 cat >conftest.$ac_ext <<_ACEOF
58922 /* confdefs.h.  */
58923 _ACEOF
58924 cat confdefs.h >>conftest.$ac_ext
58925 cat >>conftest.$ac_ext <<_ACEOF
58926 /* end confdefs.h.  */
58927 #include <$header>
58928
58929 _ACEOF
58930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58931   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
58932   ice_cv_have_strtoll_decl=yes
58933 fi
58934 rm -f conftest*
58935
58936 if test "$ice_cv_have_strtoll_decl" = yes; then
58937         break
58938 fi
58939 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58940 cat >conftest.$ac_ext <<_ACEOF
58941 /* confdefs.h.  */
58942 _ACEOF
58943 cat confdefs.h >>conftest.$ac_ext
58944 cat >>conftest.$ac_ext <<_ACEOF
58945 /* end confdefs.h.  */
58946 #include <$header>
58947
58948 _ACEOF
58949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58950   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58951   ice_cv_have_strtoll_decl=yes
58952 fi
58953 rm -f conftest*
58954
58955 if test "$ice_cv_have_strtoll_decl" = yes; then
58956         break
58957 fi
58958 done
58959
58960 fi
58961
58962 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
58963 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
58964 if test "$ice_cv_have_strtoll_decl" = yes; then
58965
58966 cat >>confdefs.h <<_ACEOF
58967 #define HAVE_STRTOLL_DECL 1
58968 _ACEOF
58969
58970 fi
58971 fi
58972
58973
58974 for ac_func in basename
58975 do
58976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58977 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58978 $as_echo_n "checking for $ac_func... " >&6; }
58979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58980   $as_echo_n "(cached) " >&6
58981 else
58982   cat >conftest.$ac_ext <<_ACEOF
58983 /* confdefs.h.  */
58984 _ACEOF
58985 cat confdefs.h >>conftest.$ac_ext
58986 cat >>conftest.$ac_ext <<_ACEOF
58987 /* end confdefs.h.  */
58988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58990 #define $ac_func innocuous_$ac_func
58991
58992 /* System header to define __stub macros and hopefully few prototypes,
58993     which can conflict with char $ac_func (); below.
58994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58995     <limits.h> exists even on freestanding compilers.  */
58996
58997 #ifdef __STDC__
58998 # include <limits.h>
58999 #else
59000 # include <assert.h>
59001 #endif
59002
59003 #undef $ac_func
59004
59005 /* Override any GCC internal prototype to avoid an error.
59006    Use char because int might match the return type of a GCC
59007    builtin and then its argument prototype would still apply.  */
59008 #ifdef __cplusplus
59009 extern "C"
59010 #endif
59011 char $ac_func ();
59012 /* The GNU C library defines this for functions which it implements
59013     to always fail with ENOSYS.  Some functions are actually named
59014     something starting with __ and the normal name is an alias.  */
59015 #if defined __stub_$ac_func || defined __stub___$ac_func
59016 choke me
59017 #endif
59018
59019 int
59020 main ()
59021 {
59022 return $ac_func ();
59023   ;
59024   return 0;
59025 }
59026 _ACEOF
59027 rm -f conftest.$ac_objext conftest$ac_exeext
59028 if { (ac_try="$ac_link"
59029 case "(($ac_try" in
59030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59031   *) ac_try_echo=$ac_try;;
59032 esac
59033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59034 $as_echo "$ac_try_echo") >&5
59035   (eval "$ac_link") 2>conftest.er1
59036   ac_status=$?
59037   grep -v '^ *+' conftest.er1 >conftest.err
59038   rm -f conftest.er1
59039   cat conftest.err >&5
59040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59041   (exit $ac_status); } && {
59042          test -z "$ac_c_werror_flag" ||
59043          test ! -s conftest.err
59044        } && test -s conftest$ac_exeext && {
59045          test "$cross_compiling" = yes ||
59046          $as_test_x conftest$ac_exeext
59047        }; then
59048   eval "$as_ac_var=yes"
59049 else
59050   $as_echo "$as_me: failed program was:" >&5
59051 sed 's/^/| /' conftest.$ac_ext >&5
59052
59053         eval "$as_ac_var=no"
59054 fi
59055
59056 rm -rf conftest.dSYM
59057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59058       conftest$ac_exeext conftest.$ac_ext
59059 fi
59060 ac_res=`eval 'as_val=${'$as_ac_var'}
59061                  $as_echo "$as_val"'`
59062                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59063 $as_echo "$ac_res" >&6; }
59064 as_val=`eval 'as_val=${'$as_ac_var'}
59065                  $as_echo "$as_val"'`
59066    if test "x$as_val" = x""yes; then
59067   cat >>confdefs.h <<_ACEOF
59068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59069 _ACEOF
59070
59071 fi
59072 done
59073
59074
59075 ice_have_bind=no
59076
59077 for ac_func in bind
59078 do
59079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59081 $as_echo_n "checking for $ac_func... " >&6; }
59082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59083   $as_echo_n "(cached) " >&6
59084 else
59085   cat >conftest.$ac_ext <<_ACEOF
59086 /* confdefs.h.  */
59087 _ACEOF
59088 cat confdefs.h >>conftest.$ac_ext
59089 cat >>conftest.$ac_ext <<_ACEOF
59090 /* end confdefs.h.  */
59091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59093 #define $ac_func innocuous_$ac_func
59094
59095 /* System header to define __stub macros and hopefully few prototypes,
59096     which can conflict with char $ac_func (); below.
59097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59098     <limits.h> exists even on freestanding compilers.  */
59099
59100 #ifdef __STDC__
59101 # include <limits.h>
59102 #else
59103 # include <assert.h>
59104 #endif
59105
59106 #undef $ac_func
59107
59108 /* Override any GCC internal prototype to avoid an error.
59109    Use char because int might match the return type of a GCC
59110    builtin and then its argument prototype would still apply.  */
59111 #ifdef __cplusplus
59112 extern "C"
59113 #endif
59114 char $ac_func ();
59115 /* The GNU C library defines this for functions which it implements
59116     to always fail with ENOSYS.  Some functions are actually named
59117     something starting with __ and the normal name is an alias.  */
59118 #if defined __stub_$ac_func || defined __stub___$ac_func
59119 choke me
59120 #endif
59121
59122 int
59123 main ()
59124 {
59125 return $ac_func ();
59126   ;
59127   return 0;
59128 }
59129 _ACEOF
59130 rm -f conftest.$ac_objext conftest$ac_exeext
59131 if { (ac_try="$ac_link"
59132 case "(($ac_try" in
59133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59134   *) ac_try_echo=$ac_try;;
59135 esac
59136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59137 $as_echo "$ac_try_echo") >&5
59138   (eval "$ac_link") 2>conftest.er1
59139   ac_status=$?
59140   grep -v '^ *+' conftest.er1 >conftest.err
59141   rm -f conftest.er1
59142   cat conftest.err >&5
59143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59144   (exit $ac_status); } && {
59145          test -z "$ac_c_werror_flag" ||
59146          test ! -s conftest.err
59147        } && test -s conftest$ac_exeext && {
59148          test "$cross_compiling" = yes ||
59149          $as_test_x conftest$ac_exeext
59150        }; then
59151   eval "$as_ac_var=yes"
59152 else
59153   $as_echo "$as_me: failed program was:" >&5
59154 sed 's/^/| /' conftest.$ac_ext >&5
59155
59156         eval "$as_ac_var=no"
59157 fi
59158
59159 rm -rf conftest.dSYM
59160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59161       conftest$ac_exeext conftest.$ac_ext
59162 fi
59163 ac_res=`eval 'as_val=${'$as_ac_var'}
59164                  $as_echo "$as_val"'`
59165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59166 $as_echo "$ac_res" >&6; }
59167 as_val=`eval 'as_val=${'$as_ac_var'}
59168                  $as_echo "$as_val"'`
59169    if test "x$as_val" = x""yes; then
59170   cat >>confdefs.h <<_ACEOF
59171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59172 _ACEOF
59173  ice_have_bind=yes
59174 fi
59175 done
59176
59177 if test "${ice_have_bind}" = yes; then
59178 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
59179 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
59180 if test "${ice_cv_have_bind_decl+set}" = set; then
59181   $as_echo_n "(cached) " >&6
59182 else
59183
59184 ice_cv_have_bind_decl=no
59185 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59186 ice_re_word='(^|[^a-zA-Z0-9_])'
59187 for header in sys/types.h sys/socket.h; do
59188 # Check for ordinary declaration
59189 cat >conftest.$ac_ext <<_ACEOF
59190 /* confdefs.h.  */
59191 _ACEOF
59192 cat confdefs.h >>conftest.$ac_ext
59193 cat >>conftest.$ac_ext <<_ACEOF
59194 /* end confdefs.h.  */
59195 #include <$header>
59196
59197 _ACEOF
59198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59199   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
59200   ice_cv_have_bind_decl=yes
59201 fi
59202 rm -f conftest*
59203
59204 if test "$ice_cv_have_bind_decl" = yes; then
59205         break
59206 fi
59207 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59208 cat >conftest.$ac_ext <<_ACEOF
59209 /* confdefs.h.  */
59210 _ACEOF
59211 cat confdefs.h >>conftest.$ac_ext
59212 cat >>conftest.$ac_ext <<_ACEOF
59213 /* end confdefs.h.  */
59214 #include <$header>
59215
59216 _ACEOF
59217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59218   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59219   ice_cv_have_bind_decl=yes
59220 fi
59221 rm -f conftest*
59222
59223 if test "$ice_cv_have_bind_decl" = yes; then
59224         break
59225 fi
59226 done
59227
59228 fi
59229
59230 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
59231 $as_echo "$ice_cv_have_bind_decl" >&6; }
59232 if test "$ice_cv_have_bind_decl" = yes; then
59233
59234 cat >>confdefs.h <<_ACEOF
59235 #define HAVE_BIND_DECL 1
59236 _ACEOF
59237
59238 fi
59239 fi
59240
59241
59242 ice_have_bcopy=no
59243
59244 for ac_func in bcopy
59245 do
59246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59247 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59248 $as_echo_n "checking for $ac_func... " >&6; }
59249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59250   $as_echo_n "(cached) " >&6
59251 else
59252   cat >conftest.$ac_ext <<_ACEOF
59253 /* confdefs.h.  */
59254 _ACEOF
59255 cat confdefs.h >>conftest.$ac_ext
59256 cat >>conftest.$ac_ext <<_ACEOF
59257 /* end confdefs.h.  */
59258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59260 #define $ac_func innocuous_$ac_func
59261
59262 /* System header to define __stub macros and hopefully few prototypes,
59263     which can conflict with char $ac_func (); below.
59264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59265     <limits.h> exists even on freestanding compilers.  */
59266
59267 #ifdef __STDC__
59268 # include <limits.h>
59269 #else
59270 # include <assert.h>
59271 #endif
59272
59273 #undef $ac_func
59274
59275 /* Override any GCC internal prototype to avoid an error.
59276    Use char because int might match the return type of a GCC
59277    builtin and then its argument prototype would still apply.  */
59278 #ifdef __cplusplus
59279 extern "C"
59280 #endif
59281 char $ac_func ();
59282 /* The GNU C library defines this for functions which it implements
59283     to always fail with ENOSYS.  Some functions are actually named
59284     something starting with __ and the normal name is an alias.  */
59285 #if defined __stub_$ac_func || defined __stub___$ac_func
59286 choke me
59287 #endif
59288
59289 int
59290 main ()
59291 {
59292 return $ac_func ();
59293   ;
59294   return 0;
59295 }
59296 _ACEOF
59297 rm -f conftest.$ac_objext conftest$ac_exeext
59298 if { (ac_try="$ac_link"
59299 case "(($ac_try" in
59300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59301   *) ac_try_echo=$ac_try;;
59302 esac
59303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59304 $as_echo "$ac_try_echo") >&5
59305   (eval "$ac_link") 2>conftest.er1
59306   ac_status=$?
59307   grep -v '^ *+' conftest.er1 >conftest.err
59308   rm -f conftest.er1
59309   cat conftest.err >&5
59310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59311   (exit $ac_status); } && {
59312          test -z "$ac_c_werror_flag" ||
59313          test ! -s conftest.err
59314        } && test -s conftest$ac_exeext && {
59315          test "$cross_compiling" = yes ||
59316          $as_test_x conftest$ac_exeext
59317        }; then
59318   eval "$as_ac_var=yes"
59319 else
59320   $as_echo "$as_me: failed program was:" >&5
59321 sed 's/^/| /' conftest.$ac_ext >&5
59322
59323         eval "$as_ac_var=no"
59324 fi
59325
59326 rm -rf conftest.dSYM
59327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59328       conftest$ac_exeext conftest.$ac_ext
59329 fi
59330 ac_res=`eval 'as_val=${'$as_ac_var'}
59331                  $as_echo "$as_val"'`
59332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59333 $as_echo "$ac_res" >&6; }
59334 as_val=`eval 'as_val=${'$as_ac_var'}
59335                  $as_echo "$as_val"'`
59336    if test "x$as_val" = x""yes; then
59337   cat >>confdefs.h <<_ACEOF
59338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59339 _ACEOF
59340  ice_have_bcopy=yes
59341 fi
59342 done
59343
59344 if test "${ice_have_bcopy}" = yes; then
59345 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
59346 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
59347 if test "${ice_cv_have_bcopy_decl+set}" = set; then
59348   $as_echo_n "(cached) " >&6
59349 else
59350
59351 ice_cv_have_bcopy_decl=no
59352 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59353 ice_re_word='(^|[^a-zA-Z0-9_])'
59354 for header in string.h strings.h stdlib.h; do
59355 # Check for ordinary declaration
59356 cat >conftest.$ac_ext <<_ACEOF
59357 /* confdefs.h.  */
59358 _ACEOF
59359 cat confdefs.h >>conftest.$ac_ext
59360 cat >>conftest.$ac_ext <<_ACEOF
59361 /* end confdefs.h.  */
59362 #include <$header>
59363
59364 _ACEOF
59365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59366   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
59367   ice_cv_have_bcopy_decl=yes
59368 fi
59369 rm -f conftest*
59370
59371 if test "$ice_cv_have_bcopy_decl" = yes; then
59372         break
59373 fi
59374 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59375 cat >conftest.$ac_ext <<_ACEOF
59376 /* confdefs.h.  */
59377 _ACEOF
59378 cat confdefs.h >>conftest.$ac_ext
59379 cat >>conftest.$ac_ext <<_ACEOF
59380 /* end confdefs.h.  */
59381 #include <$header>
59382
59383 _ACEOF
59384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59385   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59386   ice_cv_have_bcopy_decl=yes
59387 fi
59388 rm -f conftest*
59389
59390 if test "$ice_cv_have_bcopy_decl" = yes; then
59391         break
59392 fi
59393 done
59394
59395 fi
59396
59397 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
59398 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
59399 if test "$ice_cv_have_bcopy_decl" = yes; then
59400
59401 cat >>confdefs.h <<_ACEOF
59402 #define HAVE_BCOPY_DECL 1
59403 _ACEOF
59404
59405 fi
59406 fi
59407
59408
59409 ice_have_bzero=no
59410
59411 for ac_func in bzero
59412 do
59413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59415 $as_echo_n "checking for $ac_func... " >&6; }
59416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59417   $as_echo_n "(cached) " >&6
59418 else
59419   cat >conftest.$ac_ext <<_ACEOF
59420 /* confdefs.h.  */
59421 _ACEOF
59422 cat confdefs.h >>conftest.$ac_ext
59423 cat >>conftest.$ac_ext <<_ACEOF
59424 /* end confdefs.h.  */
59425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59427 #define $ac_func innocuous_$ac_func
59428
59429 /* System header to define __stub macros and hopefully few prototypes,
59430     which can conflict with char $ac_func (); below.
59431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59432     <limits.h> exists even on freestanding compilers.  */
59433
59434 #ifdef __STDC__
59435 # include <limits.h>
59436 #else
59437 # include <assert.h>
59438 #endif
59439
59440 #undef $ac_func
59441
59442 /* Override any GCC internal prototype to avoid an error.
59443    Use char because int might match the return type of a GCC
59444    builtin and then its argument prototype would still apply.  */
59445 #ifdef __cplusplus
59446 extern "C"
59447 #endif
59448 char $ac_func ();
59449 /* The GNU C library defines this for functions which it implements
59450     to always fail with ENOSYS.  Some functions are actually named
59451     something starting with __ and the normal name is an alias.  */
59452 #if defined __stub_$ac_func || defined __stub___$ac_func
59453 choke me
59454 #endif
59455
59456 int
59457 main ()
59458 {
59459 return $ac_func ();
59460   ;
59461   return 0;
59462 }
59463 _ACEOF
59464 rm -f conftest.$ac_objext conftest$ac_exeext
59465 if { (ac_try="$ac_link"
59466 case "(($ac_try" in
59467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59468   *) ac_try_echo=$ac_try;;
59469 esac
59470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59471 $as_echo "$ac_try_echo") >&5
59472   (eval "$ac_link") 2>conftest.er1
59473   ac_status=$?
59474   grep -v '^ *+' conftest.er1 >conftest.err
59475   rm -f conftest.er1
59476   cat conftest.err >&5
59477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59478   (exit $ac_status); } && {
59479          test -z "$ac_c_werror_flag" ||
59480          test ! -s conftest.err
59481        } && test -s conftest$ac_exeext && {
59482          test "$cross_compiling" = yes ||
59483          $as_test_x conftest$ac_exeext
59484        }; then
59485   eval "$as_ac_var=yes"
59486 else
59487   $as_echo "$as_me: failed program was:" >&5
59488 sed 's/^/| /' conftest.$ac_ext >&5
59489
59490         eval "$as_ac_var=no"
59491 fi
59492
59493 rm -rf conftest.dSYM
59494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59495       conftest$ac_exeext conftest.$ac_ext
59496 fi
59497 ac_res=`eval 'as_val=${'$as_ac_var'}
59498                  $as_echo "$as_val"'`
59499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59500 $as_echo "$ac_res" >&6; }
59501 as_val=`eval 'as_val=${'$as_ac_var'}
59502                  $as_echo "$as_val"'`
59503    if test "x$as_val" = x""yes; then
59504   cat >>confdefs.h <<_ACEOF
59505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59506 _ACEOF
59507  ice_have_bzero=yes
59508 fi
59509 done
59510
59511 if test "${ice_have_bzero}" = yes; then
59512 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
59513 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
59514 if test "${ice_cv_have_bzero_decl+set}" = set; then
59515   $as_echo_n "(cached) " >&6
59516 else
59517
59518 ice_cv_have_bzero_decl=no
59519 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59520 ice_re_word='(^|[^a-zA-Z0-9_])'
59521 for header in string.h strings.h stdlib.h; do
59522 # Check for ordinary declaration
59523 cat >conftest.$ac_ext <<_ACEOF
59524 /* confdefs.h.  */
59525 _ACEOF
59526 cat confdefs.h >>conftest.$ac_ext
59527 cat >>conftest.$ac_ext <<_ACEOF
59528 /* end confdefs.h.  */
59529 #include <$header>
59530
59531 _ACEOF
59532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59533   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
59534   ice_cv_have_bzero_decl=yes
59535 fi
59536 rm -f conftest*
59537
59538 if test "$ice_cv_have_bzero_decl" = yes; then
59539         break
59540 fi
59541 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59542 cat >conftest.$ac_ext <<_ACEOF
59543 /* confdefs.h.  */
59544 _ACEOF
59545 cat confdefs.h >>conftest.$ac_ext
59546 cat >>conftest.$ac_ext <<_ACEOF
59547 /* end confdefs.h.  */
59548 #include <$header>
59549
59550 _ACEOF
59551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59552   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59553   ice_cv_have_bzero_decl=yes
59554 fi
59555 rm -f conftest*
59556
59557 if test "$ice_cv_have_bzero_decl" = yes; then
59558         break
59559 fi
59560 done
59561
59562 fi
59563
59564 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
59565 $as_echo "$ice_cv_have_bzero_decl" >&6; }
59566 if test "$ice_cv_have_bzero_decl" = yes; then
59567
59568 cat >>confdefs.h <<_ACEOF
59569 #define HAVE_BZERO_DECL 1
59570 _ACEOF
59571
59572 fi
59573 fi
59574
59575 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
59576 $as_echo_n "checking whether closedir returns void... " >&6; }
59577 if test "${ac_cv_func_closedir_void+set}" = set; then
59578   $as_echo_n "(cached) " >&6
59579 else
59580   if test "$cross_compiling" = yes; then
59581   ac_cv_func_closedir_void=yes
59582 else
59583   cat >conftest.$ac_ext <<_ACEOF
59584 /* confdefs.h.  */
59585 _ACEOF
59586 cat confdefs.h >>conftest.$ac_ext
59587 cat >>conftest.$ac_ext <<_ACEOF
59588 /* end confdefs.h.  */
59589 $ac_includes_default
59590 #include <$ac_header_dirent>
59591 #ifndef __cplusplus
59592 int closedir ();
59593 #endif
59594
59595 int
59596 main ()
59597 {
59598 return closedir (opendir (".")) != 0;
59599   ;
59600   return 0;
59601 }
59602 _ACEOF
59603 rm -f conftest$ac_exeext
59604 if { (ac_try="$ac_link"
59605 case "(($ac_try" in
59606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59607   *) ac_try_echo=$ac_try;;
59608 esac
59609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59610 $as_echo "$ac_try_echo") >&5
59611   (eval "$ac_link") 2>&5
59612   ac_status=$?
59613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59615   { (case "(($ac_try" in
59616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59617   *) ac_try_echo=$ac_try;;
59618 esac
59619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59620 $as_echo "$ac_try_echo") >&5
59621   (eval "$ac_try") 2>&5
59622   ac_status=$?
59623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59624   (exit $ac_status); }; }; then
59625   ac_cv_func_closedir_void=no
59626 else
59627   $as_echo "$as_me: program exited with status $ac_status" >&5
59628 $as_echo "$as_me: failed program was:" >&5
59629 sed 's/^/| /' conftest.$ac_ext >&5
59630
59631 ( exit $ac_status )
59632 ac_cv_func_closedir_void=yes
59633 fi
59634 rm -rf conftest.dSYM
59635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59636 fi
59637
59638
59639 fi
59640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
59641 $as_echo "$ac_cv_func_closedir_void" >&6; }
59642 if test $ac_cv_func_closedir_void = yes; then
59643
59644 cat >>confdefs.h <<\_ACEOF
59645 #define CLOSEDIR_VOID 1
59646 _ACEOF
59647
59648 fi
59649
59650
59651 ice_have_closelog=no
59652
59653 for ac_func in closelog
59654 do
59655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59656 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59657 $as_echo_n "checking for $ac_func... " >&6; }
59658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59659   $as_echo_n "(cached) " >&6
59660 else
59661   cat >conftest.$ac_ext <<_ACEOF
59662 /* confdefs.h.  */
59663 _ACEOF
59664 cat confdefs.h >>conftest.$ac_ext
59665 cat >>conftest.$ac_ext <<_ACEOF
59666 /* end confdefs.h.  */
59667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59669 #define $ac_func innocuous_$ac_func
59670
59671 /* System header to define __stub macros and hopefully few prototypes,
59672     which can conflict with char $ac_func (); below.
59673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59674     <limits.h> exists even on freestanding compilers.  */
59675
59676 #ifdef __STDC__
59677 # include <limits.h>
59678 #else
59679 # include <assert.h>
59680 #endif
59681
59682 #undef $ac_func
59683
59684 /* Override any GCC internal prototype to avoid an error.
59685    Use char because int might match the return type of a GCC
59686    builtin and then its argument prototype would still apply.  */
59687 #ifdef __cplusplus
59688 extern "C"
59689 #endif
59690 char $ac_func ();
59691 /* The GNU C library defines this for functions which it implements
59692     to always fail with ENOSYS.  Some functions are actually named
59693     something starting with __ and the normal name is an alias.  */
59694 #if defined __stub_$ac_func || defined __stub___$ac_func
59695 choke me
59696 #endif
59697
59698 int
59699 main ()
59700 {
59701 return $ac_func ();
59702   ;
59703   return 0;
59704 }
59705 _ACEOF
59706 rm -f conftest.$ac_objext conftest$ac_exeext
59707 if { (ac_try="$ac_link"
59708 case "(($ac_try" in
59709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59710   *) ac_try_echo=$ac_try;;
59711 esac
59712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59713 $as_echo "$ac_try_echo") >&5
59714   (eval "$ac_link") 2>conftest.er1
59715   ac_status=$?
59716   grep -v '^ *+' conftest.er1 >conftest.err
59717   rm -f conftest.er1
59718   cat conftest.err >&5
59719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59720   (exit $ac_status); } && {
59721          test -z "$ac_c_werror_flag" ||
59722          test ! -s conftest.err
59723        } && test -s conftest$ac_exeext && {
59724          test "$cross_compiling" = yes ||
59725          $as_test_x conftest$ac_exeext
59726        }; then
59727   eval "$as_ac_var=yes"
59728 else
59729   $as_echo "$as_me: failed program was:" >&5
59730 sed 's/^/| /' conftest.$ac_ext >&5
59731
59732         eval "$as_ac_var=no"
59733 fi
59734
59735 rm -rf conftest.dSYM
59736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59737       conftest$ac_exeext conftest.$ac_ext
59738 fi
59739 ac_res=`eval 'as_val=${'$as_ac_var'}
59740                  $as_echo "$as_val"'`
59741                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59742 $as_echo "$ac_res" >&6; }
59743 as_val=`eval 'as_val=${'$as_ac_var'}
59744                  $as_echo "$as_val"'`
59745    if test "x$as_val" = x""yes; then
59746   cat >>confdefs.h <<_ACEOF
59747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59748 _ACEOF
59749  ice_have_closelog=yes
59750 fi
59751 done
59752
59753 if test "${ice_have_closelog}" = yes; then
59754 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
59755 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
59756 if test "${ice_cv_have_closelog_decl+set}" = set; then
59757   $as_echo_n "(cached) " >&6
59758 else
59759
59760 ice_cv_have_closelog_decl=no
59761 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59762 ice_re_word='(^|[^a-zA-Z0-9_])'
59763 for header in syslog.h; do
59764 # Check for ordinary declaration
59765 cat >conftest.$ac_ext <<_ACEOF
59766 /* confdefs.h.  */
59767 _ACEOF
59768 cat confdefs.h >>conftest.$ac_ext
59769 cat >>conftest.$ac_ext <<_ACEOF
59770 /* end confdefs.h.  */
59771 #include <$header>
59772
59773 _ACEOF
59774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59775   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
59776   ice_cv_have_closelog_decl=yes
59777 fi
59778 rm -f conftest*
59779
59780 if test "$ice_cv_have_closelog_decl" = yes; then
59781         break
59782 fi
59783 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59784 cat >conftest.$ac_ext <<_ACEOF
59785 /* confdefs.h.  */
59786 _ACEOF
59787 cat confdefs.h >>conftest.$ac_ext
59788 cat >>conftest.$ac_ext <<_ACEOF
59789 /* end confdefs.h.  */
59790 #include <$header>
59791
59792 _ACEOF
59793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59794   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59795   ice_cv_have_closelog_decl=yes
59796 fi
59797 rm -f conftest*
59798
59799 if test "$ice_cv_have_closelog_decl" = yes; then
59800         break
59801 fi
59802 done
59803
59804 fi
59805
59806 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
59807 $as_echo "$ice_cv_have_closelog_decl" >&6; }
59808 if test "$ice_cv_have_closelog_decl" = yes; then
59809
59810 cat >>confdefs.h <<_ACEOF
59811 #define HAVE_CLOSELOG_DECL 1
59812 _ACEOF
59813
59814 fi
59815 fi
59816
59817
59818 ice_have_connect=no
59819
59820 for ac_func in connect
59821 do
59822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59823 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59824 $as_echo_n "checking for $ac_func... " >&6; }
59825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59826   $as_echo_n "(cached) " >&6
59827 else
59828   cat >conftest.$ac_ext <<_ACEOF
59829 /* confdefs.h.  */
59830 _ACEOF
59831 cat confdefs.h >>conftest.$ac_ext
59832 cat >>conftest.$ac_ext <<_ACEOF
59833 /* end confdefs.h.  */
59834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59836 #define $ac_func innocuous_$ac_func
59837
59838 /* System header to define __stub macros and hopefully few prototypes,
59839     which can conflict with char $ac_func (); below.
59840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59841     <limits.h> exists even on freestanding compilers.  */
59842
59843 #ifdef __STDC__
59844 # include <limits.h>
59845 #else
59846 # include <assert.h>
59847 #endif
59848
59849 #undef $ac_func
59850
59851 /* Override any GCC internal prototype to avoid an error.
59852    Use char because int might match the return type of a GCC
59853    builtin and then its argument prototype would still apply.  */
59854 #ifdef __cplusplus
59855 extern "C"
59856 #endif
59857 char $ac_func ();
59858 /* The GNU C library defines this for functions which it implements
59859     to always fail with ENOSYS.  Some functions are actually named
59860     something starting with __ and the normal name is an alias.  */
59861 #if defined __stub_$ac_func || defined __stub___$ac_func
59862 choke me
59863 #endif
59864
59865 int
59866 main ()
59867 {
59868 return $ac_func ();
59869   ;
59870   return 0;
59871 }
59872 _ACEOF
59873 rm -f conftest.$ac_objext conftest$ac_exeext
59874 if { (ac_try="$ac_link"
59875 case "(($ac_try" in
59876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59877   *) ac_try_echo=$ac_try;;
59878 esac
59879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59880 $as_echo "$ac_try_echo") >&5
59881   (eval "$ac_link") 2>conftest.er1
59882   ac_status=$?
59883   grep -v '^ *+' conftest.er1 >conftest.err
59884   rm -f conftest.er1
59885   cat conftest.err >&5
59886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59887   (exit $ac_status); } && {
59888          test -z "$ac_c_werror_flag" ||
59889          test ! -s conftest.err
59890        } && test -s conftest$ac_exeext && {
59891          test "$cross_compiling" = yes ||
59892          $as_test_x conftest$ac_exeext
59893        }; then
59894   eval "$as_ac_var=yes"
59895 else
59896   $as_echo "$as_me: failed program was:" >&5
59897 sed 's/^/| /' conftest.$ac_ext >&5
59898
59899         eval "$as_ac_var=no"
59900 fi
59901
59902 rm -rf conftest.dSYM
59903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59904       conftest$ac_exeext conftest.$ac_ext
59905 fi
59906 ac_res=`eval 'as_val=${'$as_ac_var'}
59907                  $as_echo "$as_val"'`
59908                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59909 $as_echo "$ac_res" >&6; }
59910 as_val=`eval 'as_val=${'$as_ac_var'}
59911                  $as_echo "$as_val"'`
59912    if test "x$as_val" = x""yes; then
59913   cat >>confdefs.h <<_ACEOF
59914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59915 _ACEOF
59916  ice_have_connect=yes
59917 fi
59918 done
59919
59920 if test "${ice_have_connect}" = yes; then
59921 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
59922 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
59923 if test "${ice_cv_have_connect_decl+set}" = set; then
59924   $as_echo_n "(cached) " >&6
59925 else
59926
59927 ice_cv_have_connect_decl=no
59928 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59929 ice_re_word='(^|[^a-zA-Z0-9_])'
59930 for header in sys/types.h sys/socket.h; do
59931 # Check for ordinary declaration
59932 cat >conftest.$ac_ext <<_ACEOF
59933 /* confdefs.h.  */
59934 _ACEOF
59935 cat confdefs.h >>conftest.$ac_ext
59936 cat >>conftest.$ac_ext <<_ACEOF
59937 /* end confdefs.h.  */
59938 #include <$header>
59939
59940 _ACEOF
59941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59942   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
59943   ice_cv_have_connect_decl=yes
59944 fi
59945 rm -f conftest*
59946
59947 if test "$ice_cv_have_connect_decl" = yes; then
59948         break
59949 fi
59950 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59951 cat >conftest.$ac_ext <<_ACEOF
59952 /* confdefs.h.  */
59953 _ACEOF
59954 cat confdefs.h >>conftest.$ac_ext
59955 cat >>conftest.$ac_ext <<_ACEOF
59956 /* end confdefs.h.  */
59957 #include <$header>
59958
59959 _ACEOF
59960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59961   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59962   ice_cv_have_connect_decl=yes
59963 fi
59964 rm -f conftest*
59965
59966 if test "$ice_cv_have_connect_decl" = yes; then
59967         break
59968 fi
59969 done
59970
59971 fi
59972
59973 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
59974 $as_echo "$ice_cv_have_connect_decl" >&6; }
59975 if test "$ice_cv_have_connect_decl" = yes; then
59976
59977 cat >>confdefs.h <<_ACEOF
59978 #define HAVE_CONNECT_DECL 1
59979 _ACEOF
59980
59981 fi
59982 fi
59983
59984
59985 ice_have_fclose=no
59986
59987 for ac_func in fclose
59988 do
59989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59990 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59991 $as_echo_n "checking for $ac_func... " >&6; }
59992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59993   $as_echo_n "(cached) " >&6
59994 else
59995   cat >conftest.$ac_ext <<_ACEOF
59996 /* confdefs.h.  */
59997 _ACEOF
59998 cat confdefs.h >>conftest.$ac_ext
59999 cat >>conftest.$ac_ext <<_ACEOF
60000 /* end confdefs.h.  */
60001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60003 #define $ac_func innocuous_$ac_func
60004
60005 /* System header to define __stub macros and hopefully few prototypes,
60006     which can conflict with char $ac_func (); below.
60007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60008     <limits.h> exists even on freestanding compilers.  */
60009
60010 #ifdef __STDC__
60011 # include <limits.h>
60012 #else
60013 # include <assert.h>
60014 #endif
60015
60016 #undef $ac_func
60017
60018 /* Override any GCC internal prototype to avoid an error.
60019    Use char because int might match the return type of a GCC
60020    builtin and then its argument prototype would still apply.  */
60021 #ifdef __cplusplus
60022 extern "C"
60023 #endif
60024 char $ac_func ();
60025 /* The GNU C library defines this for functions which it implements
60026     to always fail with ENOSYS.  Some functions are actually named
60027     something starting with __ and the normal name is an alias.  */
60028 #if defined __stub_$ac_func || defined __stub___$ac_func
60029 choke me
60030 #endif
60031
60032 int
60033 main ()
60034 {
60035 return $ac_func ();
60036   ;
60037   return 0;
60038 }
60039 _ACEOF
60040 rm -f conftest.$ac_objext conftest$ac_exeext
60041 if { (ac_try="$ac_link"
60042 case "(($ac_try" in
60043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60044   *) ac_try_echo=$ac_try;;
60045 esac
60046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60047 $as_echo "$ac_try_echo") >&5
60048   (eval "$ac_link") 2>conftest.er1
60049   ac_status=$?
60050   grep -v '^ *+' conftest.er1 >conftest.err
60051   rm -f conftest.er1
60052   cat conftest.err >&5
60053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60054   (exit $ac_status); } && {
60055          test -z "$ac_c_werror_flag" ||
60056          test ! -s conftest.err
60057        } && test -s conftest$ac_exeext && {
60058          test "$cross_compiling" = yes ||
60059          $as_test_x conftest$ac_exeext
60060        }; then
60061   eval "$as_ac_var=yes"
60062 else
60063   $as_echo "$as_me: failed program was:" >&5
60064 sed 's/^/| /' conftest.$ac_ext >&5
60065
60066         eval "$as_ac_var=no"
60067 fi
60068
60069 rm -rf conftest.dSYM
60070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60071       conftest$ac_exeext conftest.$ac_ext
60072 fi
60073 ac_res=`eval 'as_val=${'$as_ac_var'}
60074                  $as_echo "$as_val"'`
60075                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60076 $as_echo "$ac_res" >&6; }
60077 as_val=`eval 'as_val=${'$as_ac_var'}
60078                  $as_echo "$as_val"'`
60079    if test "x$as_val" = x""yes; then
60080   cat >>confdefs.h <<_ACEOF
60081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60082 _ACEOF
60083  ice_have_fclose=yes
60084 fi
60085 done
60086
60087 if test "${ice_have_fclose}" = yes; then
60088 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
60089 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
60090 if test "${ice_cv_have_fclose_decl+set}" = set; then
60091   $as_echo_n "(cached) " >&6
60092 else
60093
60094 ice_cv_have_fclose_decl=no
60095 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60096 ice_re_word='(^|[^a-zA-Z0-9_])'
60097 for header in stdio.h; do
60098 # Check for ordinary declaration
60099 cat >conftest.$ac_ext <<_ACEOF
60100 /* confdefs.h.  */
60101 _ACEOF
60102 cat confdefs.h >>conftest.$ac_ext
60103 cat >>conftest.$ac_ext <<_ACEOF
60104 /* end confdefs.h.  */
60105 #include <$header>
60106
60107 _ACEOF
60108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60109   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
60110   ice_cv_have_fclose_decl=yes
60111 fi
60112 rm -f conftest*
60113
60114 if test "$ice_cv_have_fclose_decl" = yes; then
60115         break
60116 fi
60117 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60118 cat >conftest.$ac_ext <<_ACEOF
60119 /* confdefs.h.  */
60120 _ACEOF
60121 cat confdefs.h >>conftest.$ac_ext
60122 cat >>conftest.$ac_ext <<_ACEOF
60123 /* end confdefs.h.  */
60124 #include <$header>
60125
60126 _ACEOF
60127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60128   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60129   ice_cv_have_fclose_decl=yes
60130 fi
60131 rm -f conftest*
60132
60133 if test "$ice_cv_have_fclose_decl" = yes; then
60134         break
60135 fi
60136 done
60137
60138 fi
60139
60140 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
60141 $as_echo "$ice_cv_have_fclose_decl" >&6; }
60142 if test "$ice_cv_have_fclose_decl" = yes; then
60143
60144 cat >>confdefs.h <<_ACEOF
60145 #define HAVE_FCLOSE_DECL 1
60146 _ACEOF
60147
60148 fi
60149 fi
60150
60151
60152 ice_have_fflush=no
60153
60154 for ac_func in fflush
60155 do
60156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60158 $as_echo_n "checking for $ac_func... " >&6; }
60159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60160   $as_echo_n "(cached) " >&6
60161 else
60162   cat >conftest.$ac_ext <<_ACEOF
60163 /* confdefs.h.  */
60164 _ACEOF
60165 cat confdefs.h >>conftest.$ac_ext
60166 cat >>conftest.$ac_ext <<_ACEOF
60167 /* end confdefs.h.  */
60168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60170 #define $ac_func innocuous_$ac_func
60171
60172 /* System header to define __stub macros and hopefully few prototypes,
60173     which can conflict with char $ac_func (); below.
60174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60175     <limits.h> exists even on freestanding compilers.  */
60176
60177 #ifdef __STDC__
60178 # include <limits.h>
60179 #else
60180 # include <assert.h>
60181 #endif
60182
60183 #undef $ac_func
60184
60185 /* Override any GCC internal prototype to avoid an error.
60186    Use char because int might match the return type of a GCC
60187    builtin and then its argument prototype would still apply.  */
60188 #ifdef __cplusplus
60189 extern "C"
60190 #endif
60191 char $ac_func ();
60192 /* The GNU C library defines this for functions which it implements
60193     to always fail with ENOSYS.  Some functions are actually named
60194     something starting with __ and the normal name is an alias.  */
60195 #if defined __stub_$ac_func || defined __stub___$ac_func
60196 choke me
60197 #endif
60198
60199 int
60200 main ()
60201 {
60202 return $ac_func ();
60203   ;
60204   return 0;
60205 }
60206 _ACEOF
60207 rm -f conftest.$ac_objext conftest$ac_exeext
60208 if { (ac_try="$ac_link"
60209 case "(($ac_try" in
60210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60211   *) ac_try_echo=$ac_try;;
60212 esac
60213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60214 $as_echo "$ac_try_echo") >&5
60215   (eval "$ac_link") 2>conftest.er1
60216   ac_status=$?
60217   grep -v '^ *+' conftest.er1 >conftest.err
60218   rm -f conftest.er1
60219   cat conftest.err >&5
60220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60221   (exit $ac_status); } && {
60222          test -z "$ac_c_werror_flag" ||
60223          test ! -s conftest.err
60224        } && test -s conftest$ac_exeext && {
60225          test "$cross_compiling" = yes ||
60226          $as_test_x conftest$ac_exeext
60227        }; then
60228   eval "$as_ac_var=yes"
60229 else
60230   $as_echo "$as_me: failed program was:" >&5
60231 sed 's/^/| /' conftest.$ac_ext >&5
60232
60233         eval "$as_ac_var=no"
60234 fi
60235
60236 rm -rf conftest.dSYM
60237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60238       conftest$ac_exeext conftest.$ac_ext
60239 fi
60240 ac_res=`eval 'as_val=${'$as_ac_var'}
60241                  $as_echo "$as_val"'`
60242                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60243 $as_echo "$ac_res" >&6; }
60244 as_val=`eval 'as_val=${'$as_ac_var'}
60245                  $as_echo "$as_val"'`
60246    if test "x$as_val" = x""yes; then
60247   cat >>confdefs.h <<_ACEOF
60248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60249 _ACEOF
60250  ice_have_fflush=yes
60251 fi
60252 done
60253
60254 if test "${ice_have_fflush}" = yes; then
60255 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
60256 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
60257 if test "${ice_cv_have_fflush_decl+set}" = set; then
60258   $as_echo_n "(cached) " >&6
60259 else
60260
60261 ice_cv_have_fflush_decl=no
60262 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60263 ice_re_word='(^|[^a-zA-Z0-9_])'
60264 for header in stdio.h; do
60265 # Check for ordinary declaration
60266 cat >conftest.$ac_ext <<_ACEOF
60267 /* confdefs.h.  */
60268 _ACEOF
60269 cat confdefs.h >>conftest.$ac_ext
60270 cat >>conftest.$ac_ext <<_ACEOF
60271 /* end confdefs.h.  */
60272 #include <$header>
60273
60274 _ACEOF
60275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60276   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
60277   ice_cv_have_fflush_decl=yes
60278 fi
60279 rm -f conftest*
60280
60281 if test "$ice_cv_have_fflush_decl" = yes; then
60282         break
60283 fi
60284 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60285 cat >conftest.$ac_ext <<_ACEOF
60286 /* confdefs.h.  */
60287 _ACEOF
60288 cat confdefs.h >>conftest.$ac_ext
60289 cat >>conftest.$ac_ext <<_ACEOF
60290 /* end confdefs.h.  */
60291 #include <$header>
60292
60293 _ACEOF
60294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60295   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60296   ice_cv_have_fflush_decl=yes
60297 fi
60298 rm -f conftest*
60299
60300 if test "$ice_cv_have_fflush_decl" = yes; then
60301         break
60302 fi
60303 done
60304
60305 fi
60306
60307 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
60308 $as_echo "$ice_cv_have_fflush_decl" >&6; }
60309 if test "$ice_cv_have_fflush_decl" = yes; then
60310
60311 cat >>confdefs.h <<_ACEOF
60312 #define HAVE_FFLUSH_DECL 1
60313 _ACEOF
60314
60315 fi
60316 fi
60317
60318
60319 ice_have_fprintf=no
60320
60321 for ac_func in fprintf
60322 do
60323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60325 $as_echo_n "checking for $ac_func... " >&6; }
60326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60327   $as_echo_n "(cached) " >&6
60328 else
60329   cat >conftest.$ac_ext <<_ACEOF
60330 /* confdefs.h.  */
60331 _ACEOF
60332 cat confdefs.h >>conftest.$ac_ext
60333 cat >>conftest.$ac_ext <<_ACEOF
60334 /* end confdefs.h.  */
60335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60337 #define $ac_func innocuous_$ac_func
60338
60339 /* System header to define __stub macros and hopefully few prototypes,
60340     which can conflict with char $ac_func (); below.
60341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60342     <limits.h> exists even on freestanding compilers.  */
60343
60344 #ifdef __STDC__
60345 # include <limits.h>
60346 #else
60347 # include <assert.h>
60348 #endif
60349
60350 #undef $ac_func
60351
60352 /* Override any GCC internal prototype to avoid an error.
60353    Use char because int might match the return type of a GCC
60354    builtin and then its argument prototype would still apply.  */
60355 #ifdef __cplusplus
60356 extern "C"
60357 #endif
60358 char $ac_func ();
60359 /* The GNU C library defines this for functions which it implements
60360     to always fail with ENOSYS.  Some functions are actually named
60361     something starting with __ and the normal name is an alias.  */
60362 #if defined __stub_$ac_func || defined __stub___$ac_func
60363 choke me
60364 #endif
60365
60366 int
60367 main ()
60368 {
60369 return $ac_func ();
60370   ;
60371   return 0;
60372 }
60373 _ACEOF
60374 rm -f conftest.$ac_objext conftest$ac_exeext
60375 if { (ac_try="$ac_link"
60376 case "(($ac_try" in
60377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60378   *) ac_try_echo=$ac_try;;
60379 esac
60380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60381 $as_echo "$ac_try_echo") >&5
60382   (eval "$ac_link") 2>conftest.er1
60383   ac_status=$?
60384   grep -v '^ *+' conftest.er1 >conftest.err
60385   rm -f conftest.er1
60386   cat conftest.err >&5
60387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60388   (exit $ac_status); } && {
60389          test -z "$ac_c_werror_flag" ||
60390          test ! -s conftest.err
60391        } && test -s conftest$ac_exeext && {
60392          test "$cross_compiling" = yes ||
60393          $as_test_x conftest$ac_exeext
60394        }; then
60395   eval "$as_ac_var=yes"
60396 else
60397   $as_echo "$as_me: failed program was:" >&5
60398 sed 's/^/| /' conftest.$ac_ext >&5
60399
60400         eval "$as_ac_var=no"
60401 fi
60402
60403 rm -rf conftest.dSYM
60404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60405       conftest$ac_exeext conftest.$ac_ext
60406 fi
60407 ac_res=`eval 'as_val=${'$as_ac_var'}
60408                  $as_echo "$as_val"'`
60409                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60410 $as_echo "$ac_res" >&6; }
60411 as_val=`eval 'as_val=${'$as_ac_var'}
60412                  $as_echo "$as_val"'`
60413    if test "x$as_val" = x""yes; then
60414   cat >>confdefs.h <<_ACEOF
60415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60416 _ACEOF
60417  ice_have_fprintf=yes
60418 fi
60419 done
60420
60421 if test "${ice_have_fprintf}" = yes; then
60422 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
60423 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
60424 if test "${ice_cv_have_fprintf_decl+set}" = set; then
60425   $as_echo_n "(cached) " >&6
60426 else
60427
60428 ice_cv_have_fprintf_decl=no
60429 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60430 ice_re_word='(^|[^a-zA-Z0-9_])'
60431 for header in stdio.h; do
60432 # Check for ordinary declaration
60433 cat >conftest.$ac_ext <<_ACEOF
60434 /* confdefs.h.  */
60435 _ACEOF
60436 cat confdefs.h >>conftest.$ac_ext
60437 cat >>conftest.$ac_ext <<_ACEOF
60438 /* end confdefs.h.  */
60439 #include <$header>
60440
60441 _ACEOF
60442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60443   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
60444   ice_cv_have_fprintf_decl=yes
60445 fi
60446 rm -f conftest*
60447
60448 if test "$ice_cv_have_fprintf_decl" = yes; then
60449         break
60450 fi
60451 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60452 cat >conftest.$ac_ext <<_ACEOF
60453 /* confdefs.h.  */
60454 _ACEOF
60455 cat confdefs.h >>conftest.$ac_ext
60456 cat >>conftest.$ac_ext <<_ACEOF
60457 /* end confdefs.h.  */
60458 #include <$header>
60459
60460 _ACEOF
60461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60462   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60463   ice_cv_have_fprintf_decl=yes
60464 fi
60465 rm -f conftest*
60466
60467 if test "$ice_cv_have_fprintf_decl" = yes; then
60468         break
60469 fi
60470 done
60471
60472 fi
60473
60474 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
60475 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
60476 if test "$ice_cv_have_fprintf_decl" = yes; then
60477
60478 cat >>confdefs.h <<_ACEOF
60479 #define HAVE_FPRINTF_DECL 1
60480 _ACEOF
60481
60482 fi
60483 fi
60484
60485
60486 ice_have_fputc=no
60487
60488 for ac_func in fputc
60489 do
60490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60492 $as_echo_n "checking for $ac_func... " >&6; }
60493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60494   $as_echo_n "(cached) " >&6
60495 else
60496   cat >conftest.$ac_ext <<_ACEOF
60497 /* confdefs.h.  */
60498 _ACEOF
60499 cat confdefs.h >>conftest.$ac_ext
60500 cat >>conftest.$ac_ext <<_ACEOF
60501 /* end confdefs.h.  */
60502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60504 #define $ac_func innocuous_$ac_func
60505
60506 /* System header to define __stub macros and hopefully few prototypes,
60507     which can conflict with char $ac_func (); below.
60508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60509     <limits.h> exists even on freestanding compilers.  */
60510
60511 #ifdef __STDC__
60512 # include <limits.h>
60513 #else
60514 # include <assert.h>
60515 #endif
60516
60517 #undef $ac_func
60518
60519 /* Override any GCC internal prototype to avoid an error.
60520    Use char because int might match the return type of a GCC
60521    builtin and then its argument prototype would still apply.  */
60522 #ifdef __cplusplus
60523 extern "C"
60524 #endif
60525 char $ac_func ();
60526 /* The GNU C library defines this for functions which it implements
60527     to always fail with ENOSYS.  Some functions are actually named
60528     something starting with __ and the normal name is an alias.  */
60529 #if defined __stub_$ac_func || defined __stub___$ac_func
60530 choke me
60531 #endif
60532
60533 int
60534 main ()
60535 {
60536 return $ac_func ();
60537   ;
60538   return 0;
60539 }
60540 _ACEOF
60541 rm -f conftest.$ac_objext conftest$ac_exeext
60542 if { (ac_try="$ac_link"
60543 case "(($ac_try" in
60544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60545   *) ac_try_echo=$ac_try;;
60546 esac
60547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60548 $as_echo "$ac_try_echo") >&5
60549   (eval "$ac_link") 2>conftest.er1
60550   ac_status=$?
60551   grep -v '^ *+' conftest.er1 >conftest.err
60552   rm -f conftest.er1
60553   cat conftest.err >&5
60554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60555   (exit $ac_status); } && {
60556          test -z "$ac_c_werror_flag" ||
60557          test ! -s conftest.err
60558        } && test -s conftest$ac_exeext && {
60559          test "$cross_compiling" = yes ||
60560          $as_test_x conftest$ac_exeext
60561        }; then
60562   eval "$as_ac_var=yes"
60563 else
60564   $as_echo "$as_me: failed program was:" >&5
60565 sed 's/^/| /' conftest.$ac_ext >&5
60566
60567         eval "$as_ac_var=no"
60568 fi
60569
60570 rm -rf conftest.dSYM
60571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60572       conftest$ac_exeext conftest.$ac_ext
60573 fi
60574 ac_res=`eval 'as_val=${'$as_ac_var'}
60575                  $as_echo "$as_val"'`
60576                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60577 $as_echo "$ac_res" >&6; }
60578 as_val=`eval 'as_val=${'$as_ac_var'}
60579                  $as_echo "$as_val"'`
60580    if test "x$as_val" = x""yes; then
60581   cat >>confdefs.h <<_ACEOF
60582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60583 _ACEOF
60584  ice_have_fputc=yes
60585 fi
60586 done
60587
60588 if test "${ice_have_fputc}" = yes; then
60589 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
60590 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
60591 if test "${ice_cv_have_fputc_decl+set}" = set; then
60592   $as_echo_n "(cached) " >&6
60593 else
60594
60595 ice_cv_have_fputc_decl=no
60596 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60597 ice_re_word='(^|[^a-zA-Z0-9_])'
60598 for header in stdio.h; do
60599 # Check for ordinary declaration
60600 cat >conftest.$ac_ext <<_ACEOF
60601 /* confdefs.h.  */
60602 _ACEOF
60603 cat confdefs.h >>conftest.$ac_ext
60604 cat >>conftest.$ac_ext <<_ACEOF
60605 /* end confdefs.h.  */
60606 #include <$header>
60607
60608 _ACEOF
60609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60610   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
60611   ice_cv_have_fputc_decl=yes
60612 fi
60613 rm -f conftest*
60614
60615 if test "$ice_cv_have_fputc_decl" = yes; then
60616         break
60617 fi
60618 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60619 cat >conftest.$ac_ext <<_ACEOF
60620 /* confdefs.h.  */
60621 _ACEOF
60622 cat confdefs.h >>conftest.$ac_ext
60623 cat >>conftest.$ac_ext <<_ACEOF
60624 /* end confdefs.h.  */
60625 #include <$header>
60626
60627 _ACEOF
60628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60629   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60630   ice_cv_have_fputc_decl=yes
60631 fi
60632 rm -f conftest*
60633
60634 if test "$ice_cv_have_fputc_decl" = yes; then
60635         break
60636 fi
60637 done
60638
60639 fi
60640
60641 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
60642 $as_echo "$ice_cv_have_fputc_decl" >&6; }
60643 if test "$ice_cv_have_fputc_decl" = yes; then
60644
60645 cat >>confdefs.h <<_ACEOF
60646 #define HAVE_FPUTC_DECL 1
60647 _ACEOF
60648
60649 fi
60650 fi
60651
60652
60653 ice_have_fputs=no
60654
60655 for ac_func in fputs
60656 do
60657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60658 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60659 $as_echo_n "checking for $ac_func... " >&6; }
60660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60661   $as_echo_n "(cached) " >&6
60662 else
60663   cat >conftest.$ac_ext <<_ACEOF
60664 /* confdefs.h.  */
60665 _ACEOF
60666 cat confdefs.h >>conftest.$ac_ext
60667 cat >>conftest.$ac_ext <<_ACEOF
60668 /* end confdefs.h.  */
60669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60671 #define $ac_func innocuous_$ac_func
60672
60673 /* System header to define __stub macros and hopefully few prototypes,
60674     which can conflict with char $ac_func (); below.
60675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60676     <limits.h> exists even on freestanding compilers.  */
60677
60678 #ifdef __STDC__
60679 # include <limits.h>
60680 #else
60681 # include <assert.h>
60682 #endif
60683
60684 #undef $ac_func
60685
60686 /* Override any GCC internal prototype to avoid an error.
60687    Use char because int might match the return type of a GCC
60688    builtin and then its argument prototype would still apply.  */
60689 #ifdef __cplusplus
60690 extern "C"
60691 #endif
60692 char $ac_func ();
60693 /* The GNU C library defines this for functions which it implements
60694     to always fail with ENOSYS.  Some functions are actually named
60695     something starting with __ and the normal name is an alias.  */
60696 #if defined __stub_$ac_func || defined __stub___$ac_func
60697 choke me
60698 #endif
60699
60700 int
60701 main ()
60702 {
60703 return $ac_func ();
60704   ;
60705   return 0;
60706 }
60707 _ACEOF
60708 rm -f conftest.$ac_objext conftest$ac_exeext
60709 if { (ac_try="$ac_link"
60710 case "(($ac_try" in
60711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60712   *) ac_try_echo=$ac_try;;
60713 esac
60714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60715 $as_echo "$ac_try_echo") >&5
60716   (eval "$ac_link") 2>conftest.er1
60717   ac_status=$?
60718   grep -v '^ *+' conftest.er1 >conftest.err
60719   rm -f conftest.er1
60720   cat conftest.err >&5
60721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60722   (exit $ac_status); } && {
60723          test -z "$ac_c_werror_flag" ||
60724          test ! -s conftest.err
60725        } && test -s conftest$ac_exeext && {
60726          test "$cross_compiling" = yes ||
60727          $as_test_x conftest$ac_exeext
60728        }; then
60729   eval "$as_ac_var=yes"
60730 else
60731   $as_echo "$as_me: failed program was:" >&5
60732 sed 's/^/| /' conftest.$ac_ext >&5
60733
60734         eval "$as_ac_var=no"
60735 fi
60736
60737 rm -rf conftest.dSYM
60738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60739       conftest$ac_exeext conftest.$ac_ext
60740 fi
60741 ac_res=`eval 'as_val=${'$as_ac_var'}
60742                  $as_echo "$as_val"'`
60743                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60744 $as_echo "$ac_res" >&6; }
60745 as_val=`eval 'as_val=${'$as_ac_var'}
60746                  $as_echo "$as_val"'`
60747    if test "x$as_val" = x""yes; then
60748   cat >>confdefs.h <<_ACEOF
60749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60750 _ACEOF
60751  ice_have_fputs=yes
60752 fi
60753 done
60754
60755 if test "${ice_have_fputs}" = yes; then
60756 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
60757 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
60758 if test "${ice_cv_have_fputs_decl+set}" = set; then
60759   $as_echo_n "(cached) " >&6
60760 else
60761
60762 ice_cv_have_fputs_decl=no
60763 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60764 ice_re_word='(^|[^a-zA-Z0-9_])'
60765 for header in stdio.h; do
60766 # Check for ordinary declaration
60767 cat >conftest.$ac_ext <<_ACEOF
60768 /* confdefs.h.  */
60769 _ACEOF
60770 cat confdefs.h >>conftest.$ac_ext
60771 cat >>conftest.$ac_ext <<_ACEOF
60772 /* end confdefs.h.  */
60773 #include <$header>
60774
60775 _ACEOF
60776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60777   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
60778   ice_cv_have_fputs_decl=yes
60779 fi
60780 rm -f conftest*
60781
60782 if test "$ice_cv_have_fputs_decl" = yes; then
60783         break
60784 fi
60785 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60786 cat >conftest.$ac_ext <<_ACEOF
60787 /* confdefs.h.  */
60788 _ACEOF
60789 cat confdefs.h >>conftest.$ac_ext
60790 cat >>conftest.$ac_ext <<_ACEOF
60791 /* end confdefs.h.  */
60792 #include <$header>
60793
60794 _ACEOF
60795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60796   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60797   ice_cv_have_fputs_decl=yes
60798 fi
60799 rm -f conftest*
60800
60801 if test "$ice_cv_have_fputs_decl" = yes; then
60802         break
60803 fi
60804 done
60805
60806 fi
60807
60808 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
60809 $as_echo "$ice_cv_have_fputs_decl" >&6; }
60810 if test "$ice_cv_have_fputs_decl" = yes; then
60811
60812 cat >>confdefs.h <<_ACEOF
60813 #define HAVE_FPUTS_DECL 1
60814 _ACEOF
60815
60816 fi
60817 fi
60818
60819
60820 ice_have_fread=no
60821
60822 for ac_func in fread
60823 do
60824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60825 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60826 $as_echo_n "checking for $ac_func... " >&6; }
60827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60828   $as_echo_n "(cached) " >&6
60829 else
60830   cat >conftest.$ac_ext <<_ACEOF
60831 /* confdefs.h.  */
60832 _ACEOF
60833 cat confdefs.h >>conftest.$ac_ext
60834 cat >>conftest.$ac_ext <<_ACEOF
60835 /* end confdefs.h.  */
60836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60838 #define $ac_func innocuous_$ac_func
60839
60840 /* System header to define __stub macros and hopefully few prototypes,
60841     which can conflict with char $ac_func (); below.
60842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60843     <limits.h> exists even on freestanding compilers.  */
60844
60845 #ifdef __STDC__
60846 # include <limits.h>
60847 #else
60848 # include <assert.h>
60849 #endif
60850
60851 #undef $ac_func
60852
60853 /* Override any GCC internal prototype to avoid an error.
60854    Use char because int might match the return type of a GCC
60855    builtin and then its argument prototype would still apply.  */
60856 #ifdef __cplusplus
60857 extern "C"
60858 #endif
60859 char $ac_func ();
60860 /* The GNU C library defines this for functions which it implements
60861     to always fail with ENOSYS.  Some functions are actually named
60862     something starting with __ and the normal name is an alias.  */
60863 #if defined __stub_$ac_func || defined __stub___$ac_func
60864 choke me
60865 #endif
60866
60867 int
60868 main ()
60869 {
60870 return $ac_func ();
60871   ;
60872   return 0;
60873 }
60874 _ACEOF
60875 rm -f conftest.$ac_objext conftest$ac_exeext
60876 if { (ac_try="$ac_link"
60877 case "(($ac_try" in
60878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60879   *) ac_try_echo=$ac_try;;
60880 esac
60881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60882 $as_echo "$ac_try_echo") >&5
60883   (eval "$ac_link") 2>conftest.er1
60884   ac_status=$?
60885   grep -v '^ *+' conftest.er1 >conftest.err
60886   rm -f conftest.er1
60887   cat conftest.err >&5
60888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60889   (exit $ac_status); } && {
60890          test -z "$ac_c_werror_flag" ||
60891          test ! -s conftest.err
60892        } && test -s conftest$ac_exeext && {
60893          test "$cross_compiling" = yes ||
60894          $as_test_x conftest$ac_exeext
60895        }; then
60896   eval "$as_ac_var=yes"
60897 else
60898   $as_echo "$as_me: failed program was:" >&5
60899 sed 's/^/| /' conftest.$ac_ext >&5
60900
60901         eval "$as_ac_var=no"
60902 fi
60903
60904 rm -rf conftest.dSYM
60905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60906       conftest$ac_exeext conftest.$ac_ext
60907 fi
60908 ac_res=`eval 'as_val=${'$as_ac_var'}
60909                  $as_echo "$as_val"'`
60910                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60911 $as_echo "$ac_res" >&6; }
60912 as_val=`eval 'as_val=${'$as_ac_var'}
60913                  $as_echo "$as_val"'`
60914    if test "x$as_val" = x""yes; then
60915   cat >>confdefs.h <<_ACEOF
60916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60917 _ACEOF
60918  ice_have_fread=yes
60919 fi
60920 done
60921
60922 if test "${ice_have_fread}" = yes; then
60923 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
60924 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
60925 if test "${ice_cv_have_fread_decl+set}" = set; then
60926   $as_echo_n "(cached) " >&6
60927 else
60928
60929 ice_cv_have_fread_decl=no
60930 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60931 ice_re_word='(^|[^a-zA-Z0-9_])'
60932 for header in stdio.h stdlib.h; do
60933 # Check for ordinary declaration
60934 cat >conftest.$ac_ext <<_ACEOF
60935 /* confdefs.h.  */
60936 _ACEOF
60937 cat confdefs.h >>conftest.$ac_ext
60938 cat >>conftest.$ac_ext <<_ACEOF
60939 /* end confdefs.h.  */
60940 #include <$header>
60941
60942 _ACEOF
60943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60944   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
60945   ice_cv_have_fread_decl=yes
60946 fi
60947 rm -f conftest*
60948
60949 if test "$ice_cv_have_fread_decl" = yes; then
60950         break
60951 fi
60952 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60953 cat >conftest.$ac_ext <<_ACEOF
60954 /* confdefs.h.  */
60955 _ACEOF
60956 cat confdefs.h >>conftest.$ac_ext
60957 cat >>conftest.$ac_ext <<_ACEOF
60958 /* end confdefs.h.  */
60959 #include <$header>
60960
60961 _ACEOF
60962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60963   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60964   ice_cv_have_fread_decl=yes
60965 fi
60966 rm -f conftest*
60967
60968 if test "$ice_cv_have_fread_decl" = yes; then
60969         break
60970 fi
60971 done
60972
60973 fi
60974
60975 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
60976 $as_echo "$ice_cv_have_fread_decl" >&6; }
60977 if test "$ice_cv_have_fread_decl" = yes; then
60978
60979 cat >>confdefs.h <<_ACEOF
60980 #define HAVE_FREAD_DECL 1
60981 _ACEOF
60982
60983 fi
60984 fi
60985
60986
60987 ice_have_fseek=no
60988
60989 for ac_func in fseek
60990 do
60991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60993 $as_echo_n "checking for $ac_func... " >&6; }
60994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60995   $as_echo_n "(cached) " >&6
60996 else
60997   cat >conftest.$ac_ext <<_ACEOF
60998 /* confdefs.h.  */
60999 _ACEOF
61000 cat confdefs.h >>conftest.$ac_ext
61001 cat >>conftest.$ac_ext <<_ACEOF
61002 /* end confdefs.h.  */
61003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61005 #define $ac_func innocuous_$ac_func
61006
61007 /* System header to define __stub macros and hopefully few prototypes,
61008     which can conflict with char $ac_func (); below.
61009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61010     <limits.h> exists even on freestanding compilers.  */
61011
61012 #ifdef __STDC__
61013 # include <limits.h>
61014 #else
61015 # include <assert.h>
61016 #endif
61017
61018 #undef $ac_func
61019
61020 /* Override any GCC internal prototype to avoid an error.
61021    Use char because int might match the return type of a GCC
61022    builtin and then its argument prototype would still apply.  */
61023 #ifdef __cplusplus
61024 extern "C"
61025 #endif
61026 char $ac_func ();
61027 /* The GNU C library defines this for functions which it implements
61028     to always fail with ENOSYS.  Some functions are actually named
61029     something starting with __ and the normal name is an alias.  */
61030 #if defined __stub_$ac_func || defined __stub___$ac_func
61031 choke me
61032 #endif
61033
61034 int
61035 main ()
61036 {
61037 return $ac_func ();
61038   ;
61039   return 0;
61040 }
61041 _ACEOF
61042 rm -f conftest.$ac_objext conftest$ac_exeext
61043 if { (ac_try="$ac_link"
61044 case "(($ac_try" in
61045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61046   *) ac_try_echo=$ac_try;;
61047 esac
61048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61049 $as_echo "$ac_try_echo") >&5
61050   (eval "$ac_link") 2>conftest.er1
61051   ac_status=$?
61052   grep -v '^ *+' conftest.er1 >conftest.err
61053   rm -f conftest.er1
61054   cat conftest.err >&5
61055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61056   (exit $ac_status); } && {
61057          test -z "$ac_c_werror_flag" ||
61058          test ! -s conftest.err
61059        } && test -s conftest$ac_exeext && {
61060          test "$cross_compiling" = yes ||
61061          $as_test_x conftest$ac_exeext
61062        }; then
61063   eval "$as_ac_var=yes"
61064 else
61065   $as_echo "$as_me: failed program was:" >&5
61066 sed 's/^/| /' conftest.$ac_ext >&5
61067
61068         eval "$as_ac_var=no"
61069 fi
61070
61071 rm -rf conftest.dSYM
61072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61073       conftest$ac_exeext conftest.$ac_ext
61074 fi
61075 ac_res=`eval 'as_val=${'$as_ac_var'}
61076                  $as_echo "$as_val"'`
61077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61078 $as_echo "$ac_res" >&6; }
61079 as_val=`eval 'as_val=${'$as_ac_var'}
61080                  $as_echo "$as_val"'`
61081    if test "x$as_val" = x""yes; then
61082   cat >>confdefs.h <<_ACEOF
61083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61084 _ACEOF
61085  ice_have_fseek=yes
61086 fi
61087 done
61088
61089 if test "${ice_have_fseek}" = yes; then
61090 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
61091 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
61092 if test "${ice_cv_have_fseek_decl+set}" = set; then
61093   $as_echo_n "(cached) " >&6
61094 else
61095
61096 ice_cv_have_fseek_decl=no
61097 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61098 ice_re_word='(^|[^a-zA-Z0-9_])'
61099 for header in stdio.h; do
61100 # Check for ordinary declaration
61101 cat >conftest.$ac_ext <<_ACEOF
61102 /* confdefs.h.  */
61103 _ACEOF
61104 cat confdefs.h >>conftest.$ac_ext
61105 cat >>conftest.$ac_ext <<_ACEOF
61106 /* end confdefs.h.  */
61107 #include <$header>
61108
61109 _ACEOF
61110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61111   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
61112   ice_cv_have_fseek_decl=yes
61113 fi
61114 rm -f conftest*
61115
61116 if test "$ice_cv_have_fseek_decl" = yes; then
61117         break
61118 fi
61119 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61120 cat >conftest.$ac_ext <<_ACEOF
61121 /* confdefs.h.  */
61122 _ACEOF
61123 cat confdefs.h >>conftest.$ac_ext
61124 cat >>conftest.$ac_ext <<_ACEOF
61125 /* end confdefs.h.  */
61126 #include <$header>
61127
61128 _ACEOF
61129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61130   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61131   ice_cv_have_fseek_decl=yes
61132 fi
61133 rm -f conftest*
61134
61135 if test "$ice_cv_have_fseek_decl" = yes; then
61136         break
61137 fi
61138 done
61139
61140 fi
61141
61142 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
61143 $as_echo "$ice_cv_have_fseek_decl" >&6; }
61144 if test "$ice_cv_have_fseek_decl" = yes; then
61145
61146 cat >>confdefs.h <<_ACEOF
61147 #define HAVE_FSEEK_DECL 1
61148 _ACEOF
61149
61150 fi
61151 fi
61152
61153
61154 ice_have_fwrite=no
61155
61156 for ac_func in fwrite
61157 do
61158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61160 $as_echo_n "checking for $ac_func... " >&6; }
61161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61162   $as_echo_n "(cached) " >&6
61163 else
61164   cat >conftest.$ac_ext <<_ACEOF
61165 /* confdefs.h.  */
61166 _ACEOF
61167 cat confdefs.h >>conftest.$ac_ext
61168 cat >>conftest.$ac_ext <<_ACEOF
61169 /* end confdefs.h.  */
61170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61172 #define $ac_func innocuous_$ac_func
61173
61174 /* System header to define __stub macros and hopefully few prototypes,
61175     which can conflict with char $ac_func (); below.
61176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61177     <limits.h> exists even on freestanding compilers.  */
61178
61179 #ifdef __STDC__
61180 # include <limits.h>
61181 #else
61182 # include <assert.h>
61183 #endif
61184
61185 #undef $ac_func
61186
61187 /* Override any GCC internal prototype to avoid an error.
61188    Use char because int might match the return type of a GCC
61189    builtin and then its argument prototype would still apply.  */
61190 #ifdef __cplusplus
61191 extern "C"
61192 #endif
61193 char $ac_func ();
61194 /* The GNU C library defines this for functions which it implements
61195     to always fail with ENOSYS.  Some functions are actually named
61196     something starting with __ and the normal name is an alias.  */
61197 #if defined __stub_$ac_func || defined __stub___$ac_func
61198 choke me
61199 #endif
61200
61201 int
61202 main ()
61203 {
61204 return $ac_func ();
61205   ;
61206   return 0;
61207 }
61208 _ACEOF
61209 rm -f conftest.$ac_objext conftest$ac_exeext
61210 if { (ac_try="$ac_link"
61211 case "(($ac_try" in
61212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61213   *) ac_try_echo=$ac_try;;
61214 esac
61215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61216 $as_echo "$ac_try_echo") >&5
61217   (eval "$ac_link") 2>conftest.er1
61218   ac_status=$?
61219   grep -v '^ *+' conftest.er1 >conftest.err
61220   rm -f conftest.er1
61221   cat conftest.err >&5
61222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61223   (exit $ac_status); } && {
61224          test -z "$ac_c_werror_flag" ||
61225          test ! -s conftest.err
61226        } && test -s conftest$ac_exeext && {
61227          test "$cross_compiling" = yes ||
61228          $as_test_x conftest$ac_exeext
61229        }; then
61230   eval "$as_ac_var=yes"
61231 else
61232   $as_echo "$as_me: failed program was:" >&5
61233 sed 's/^/| /' conftest.$ac_ext >&5
61234
61235         eval "$as_ac_var=no"
61236 fi
61237
61238 rm -rf conftest.dSYM
61239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61240       conftest$ac_exeext conftest.$ac_ext
61241 fi
61242 ac_res=`eval 'as_val=${'$as_ac_var'}
61243                  $as_echo "$as_val"'`
61244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61245 $as_echo "$ac_res" >&6; }
61246 as_val=`eval 'as_val=${'$as_ac_var'}
61247                  $as_echo "$as_val"'`
61248    if test "x$as_val" = x""yes; then
61249   cat >>confdefs.h <<_ACEOF
61250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61251 _ACEOF
61252  ice_have_fwrite=yes
61253 fi
61254 done
61255
61256 if test "${ice_have_fwrite}" = yes; then
61257 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
61258 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
61259 if test "${ice_cv_have_fwrite_decl+set}" = set; then
61260   $as_echo_n "(cached) " >&6
61261 else
61262
61263 ice_cv_have_fwrite_decl=no
61264 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61265 ice_re_word='(^|[^a-zA-Z0-9_])'
61266 for header in stdio.h stdlib.h; do
61267 # Check for ordinary declaration
61268 cat >conftest.$ac_ext <<_ACEOF
61269 /* confdefs.h.  */
61270 _ACEOF
61271 cat confdefs.h >>conftest.$ac_ext
61272 cat >>conftest.$ac_ext <<_ACEOF
61273 /* end confdefs.h.  */
61274 #include <$header>
61275
61276 _ACEOF
61277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61278   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
61279   ice_cv_have_fwrite_decl=yes
61280 fi
61281 rm -f conftest*
61282
61283 if test "$ice_cv_have_fwrite_decl" = yes; then
61284         break
61285 fi
61286 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61287 cat >conftest.$ac_ext <<_ACEOF
61288 /* confdefs.h.  */
61289 _ACEOF
61290 cat confdefs.h >>conftest.$ac_ext
61291 cat >>conftest.$ac_ext <<_ACEOF
61292 /* end confdefs.h.  */
61293 #include <$header>
61294
61295 _ACEOF
61296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61297   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61298   ice_cv_have_fwrite_decl=yes
61299 fi
61300 rm -f conftest*
61301
61302 if test "$ice_cv_have_fwrite_decl" = yes; then
61303         break
61304 fi
61305 done
61306
61307 fi
61308
61309 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
61310 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
61311 if test "$ice_cv_have_fwrite_decl" = yes; then
61312
61313 cat >>confdefs.h <<_ACEOF
61314 #define HAVE_FWRITE_DECL 1
61315 _ACEOF
61316
61317 fi
61318 fi
61319
61320
61321 for ac_func in getgrgid_r
61322 do
61323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61325 $as_echo_n "checking for $ac_func... " >&6; }
61326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61327   $as_echo_n "(cached) " >&6
61328 else
61329   cat >conftest.$ac_ext <<_ACEOF
61330 /* confdefs.h.  */
61331 _ACEOF
61332 cat confdefs.h >>conftest.$ac_ext
61333 cat >>conftest.$ac_ext <<_ACEOF
61334 /* end confdefs.h.  */
61335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61337 #define $ac_func innocuous_$ac_func
61338
61339 /* System header to define __stub macros and hopefully few prototypes,
61340     which can conflict with char $ac_func (); below.
61341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61342     <limits.h> exists even on freestanding compilers.  */
61343
61344 #ifdef __STDC__
61345 # include <limits.h>
61346 #else
61347 # include <assert.h>
61348 #endif
61349
61350 #undef $ac_func
61351
61352 /* Override any GCC internal prototype to avoid an error.
61353    Use char because int might match the return type of a GCC
61354    builtin and then its argument prototype would still apply.  */
61355 #ifdef __cplusplus
61356 extern "C"
61357 #endif
61358 char $ac_func ();
61359 /* The GNU C library defines this for functions which it implements
61360     to always fail with ENOSYS.  Some functions are actually named
61361     something starting with __ and the normal name is an alias.  */
61362 #if defined __stub_$ac_func || defined __stub___$ac_func
61363 choke me
61364 #endif
61365
61366 int
61367 main ()
61368 {
61369 return $ac_func ();
61370   ;
61371   return 0;
61372 }
61373 _ACEOF
61374 rm -f conftest.$ac_objext conftest$ac_exeext
61375 if { (ac_try="$ac_link"
61376 case "(($ac_try" in
61377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61378   *) ac_try_echo=$ac_try;;
61379 esac
61380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61381 $as_echo "$ac_try_echo") >&5
61382   (eval "$ac_link") 2>conftest.er1
61383   ac_status=$?
61384   grep -v '^ *+' conftest.er1 >conftest.err
61385   rm -f conftest.er1
61386   cat conftest.err >&5
61387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61388   (exit $ac_status); } && {
61389          test -z "$ac_c_werror_flag" ||
61390          test ! -s conftest.err
61391        } && test -s conftest$ac_exeext && {
61392          test "$cross_compiling" = yes ||
61393          $as_test_x conftest$ac_exeext
61394        }; then
61395   eval "$as_ac_var=yes"
61396 else
61397   $as_echo "$as_me: failed program was:" >&5
61398 sed 's/^/| /' conftest.$ac_ext >&5
61399
61400         eval "$as_ac_var=no"
61401 fi
61402
61403 rm -rf conftest.dSYM
61404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61405       conftest$ac_exeext conftest.$ac_ext
61406 fi
61407 ac_res=`eval 'as_val=${'$as_ac_var'}
61408                  $as_echo "$as_val"'`
61409                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61410 $as_echo "$ac_res" >&6; }
61411 as_val=`eval 'as_val=${'$as_ac_var'}
61412                  $as_echo "$as_val"'`
61413    if test "x$as_val" = x""yes; then
61414   cat >>confdefs.h <<_ACEOF
61415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61416 _ACEOF
61417
61418 fi
61419 done
61420
61421
61422 for ac_func in getpwuid_r
61423 do
61424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61426 $as_echo_n "checking for $ac_func... " >&6; }
61427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61428   $as_echo_n "(cached) " >&6
61429 else
61430   cat >conftest.$ac_ext <<_ACEOF
61431 /* confdefs.h.  */
61432 _ACEOF
61433 cat confdefs.h >>conftest.$ac_ext
61434 cat >>conftest.$ac_ext <<_ACEOF
61435 /* end confdefs.h.  */
61436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61438 #define $ac_func innocuous_$ac_func
61439
61440 /* System header to define __stub macros and hopefully few prototypes,
61441     which can conflict with char $ac_func (); below.
61442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61443     <limits.h> exists even on freestanding compilers.  */
61444
61445 #ifdef __STDC__
61446 # include <limits.h>
61447 #else
61448 # include <assert.h>
61449 #endif
61450
61451 #undef $ac_func
61452
61453 /* Override any GCC internal prototype to avoid an error.
61454    Use char because int might match the return type of a GCC
61455    builtin and then its argument prototype would still apply.  */
61456 #ifdef __cplusplus
61457 extern "C"
61458 #endif
61459 char $ac_func ();
61460 /* The GNU C library defines this for functions which it implements
61461     to always fail with ENOSYS.  Some functions are actually named
61462     something starting with __ and the normal name is an alias.  */
61463 #if defined __stub_$ac_func || defined __stub___$ac_func
61464 choke me
61465 #endif
61466
61467 int
61468 main ()
61469 {
61470 return $ac_func ();
61471   ;
61472   return 0;
61473 }
61474 _ACEOF
61475 rm -f conftest.$ac_objext conftest$ac_exeext
61476 if { (ac_try="$ac_link"
61477 case "(($ac_try" in
61478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61479   *) ac_try_echo=$ac_try;;
61480 esac
61481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61482 $as_echo "$ac_try_echo") >&5
61483   (eval "$ac_link") 2>conftest.er1
61484   ac_status=$?
61485   grep -v '^ *+' conftest.er1 >conftest.err
61486   rm -f conftest.er1
61487   cat conftest.err >&5
61488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61489   (exit $ac_status); } && {
61490          test -z "$ac_c_werror_flag" ||
61491          test ! -s conftest.err
61492        } && test -s conftest$ac_exeext && {
61493          test "$cross_compiling" = yes ||
61494          $as_test_x conftest$ac_exeext
61495        }; then
61496   eval "$as_ac_var=yes"
61497 else
61498   $as_echo "$as_me: failed program was:" >&5
61499 sed 's/^/| /' conftest.$ac_ext >&5
61500
61501         eval "$as_ac_var=no"
61502 fi
61503
61504 rm -rf conftest.dSYM
61505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61506       conftest$ac_exeext conftest.$ac_ext
61507 fi
61508 ac_res=`eval 'as_val=${'$as_ac_var'}
61509                  $as_echo "$as_val"'`
61510                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61511 $as_echo "$ac_res" >&6; }
61512 as_val=`eval 'as_val=${'$as_ac_var'}
61513                  $as_echo "$as_val"'`
61514    if test "x$as_val" = x""yes; then
61515   cat >>confdefs.h <<_ACEOF
61516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61517 _ACEOF
61518
61519 fi
61520 done
61521
61522
61523 ice_have_gethostname=no
61524
61525 for ac_func in gethostname
61526 do
61527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61529 $as_echo_n "checking for $ac_func... " >&6; }
61530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61531   $as_echo_n "(cached) " >&6
61532 else
61533   cat >conftest.$ac_ext <<_ACEOF
61534 /* confdefs.h.  */
61535 _ACEOF
61536 cat confdefs.h >>conftest.$ac_ext
61537 cat >>conftest.$ac_ext <<_ACEOF
61538 /* end confdefs.h.  */
61539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61541 #define $ac_func innocuous_$ac_func
61542
61543 /* System header to define __stub macros and hopefully few prototypes,
61544     which can conflict with char $ac_func (); below.
61545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61546     <limits.h> exists even on freestanding compilers.  */
61547
61548 #ifdef __STDC__
61549 # include <limits.h>
61550 #else
61551 # include <assert.h>
61552 #endif
61553
61554 #undef $ac_func
61555
61556 /* Override any GCC internal prototype to avoid an error.
61557    Use char because int might match the return type of a GCC
61558    builtin and then its argument prototype would still apply.  */
61559 #ifdef __cplusplus
61560 extern "C"
61561 #endif
61562 char $ac_func ();
61563 /* The GNU C library defines this for functions which it implements
61564     to always fail with ENOSYS.  Some functions are actually named
61565     something starting with __ and the normal name is an alias.  */
61566 #if defined __stub_$ac_func || defined __stub___$ac_func
61567 choke me
61568 #endif
61569
61570 int
61571 main ()
61572 {
61573 return $ac_func ();
61574   ;
61575   return 0;
61576 }
61577 _ACEOF
61578 rm -f conftest.$ac_objext conftest$ac_exeext
61579 if { (ac_try="$ac_link"
61580 case "(($ac_try" in
61581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61582   *) ac_try_echo=$ac_try;;
61583 esac
61584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61585 $as_echo "$ac_try_echo") >&5
61586   (eval "$ac_link") 2>conftest.er1
61587   ac_status=$?
61588   grep -v '^ *+' conftest.er1 >conftest.err
61589   rm -f conftest.er1
61590   cat conftest.err >&5
61591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61592   (exit $ac_status); } && {
61593          test -z "$ac_c_werror_flag" ||
61594          test ! -s conftest.err
61595        } && test -s conftest$ac_exeext && {
61596          test "$cross_compiling" = yes ||
61597          $as_test_x conftest$ac_exeext
61598        }; then
61599   eval "$as_ac_var=yes"
61600 else
61601   $as_echo "$as_me: failed program was:" >&5
61602 sed 's/^/| /' conftest.$ac_ext >&5
61603
61604         eval "$as_ac_var=no"
61605 fi
61606
61607 rm -rf conftest.dSYM
61608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61609       conftest$ac_exeext conftest.$ac_ext
61610 fi
61611 ac_res=`eval 'as_val=${'$as_ac_var'}
61612                  $as_echo "$as_val"'`
61613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61614 $as_echo "$ac_res" >&6; }
61615 as_val=`eval 'as_val=${'$as_ac_var'}
61616                  $as_echo "$as_val"'`
61617    if test "x$as_val" = x""yes; then
61618   cat >>confdefs.h <<_ACEOF
61619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61620 _ACEOF
61621  ice_have_gethostname=yes
61622 fi
61623 done
61624
61625 if test "${ice_have_gethostname}" = yes; then
61626 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
61627 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
61628 if test "${ice_cv_have_gethostname_decl+set}" = set; then
61629   $as_echo_n "(cached) " >&6
61630 else
61631
61632 ice_cv_have_gethostname_decl=no
61633 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61634 ice_re_word='(^|[^a-zA-Z0-9_])'
61635 for header in unistd.h; do
61636 # Check for ordinary declaration
61637 cat >conftest.$ac_ext <<_ACEOF
61638 /* confdefs.h.  */
61639 _ACEOF
61640 cat confdefs.h >>conftest.$ac_ext
61641 cat >>conftest.$ac_ext <<_ACEOF
61642 /* end confdefs.h.  */
61643 #include <$header>
61644
61645 _ACEOF
61646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61647   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
61648   ice_cv_have_gethostname_decl=yes
61649 fi
61650 rm -f conftest*
61651
61652 if test "$ice_cv_have_gethostname_decl" = yes; then
61653         break
61654 fi
61655 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61656 cat >conftest.$ac_ext <<_ACEOF
61657 /* confdefs.h.  */
61658 _ACEOF
61659 cat confdefs.h >>conftest.$ac_ext
61660 cat >>conftest.$ac_ext <<_ACEOF
61661 /* end confdefs.h.  */
61662 #include <$header>
61663
61664 _ACEOF
61665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61666   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61667   ice_cv_have_gethostname_decl=yes
61668 fi
61669 rm -f conftest*
61670
61671 if test "$ice_cv_have_gethostname_decl" = yes; then
61672         break
61673 fi
61674 done
61675
61676 fi
61677
61678 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
61679 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
61680 if test "$ice_cv_have_gethostname_decl" = yes; then
61681
61682 cat >>confdefs.h <<_ACEOF
61683 #define HAVE_GETHOSTNAME_DECL 1
61684 _ACEOF
61685
61686 fi
61687 fi
61688
61689
61690 ice_have_getopt=no
61691
61692 for ac_func in getopt
61693 do
61694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61696 $as_echo_n "checking for $ac_func... " >&6; }
61697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61698   $as_echo_n "(cached) " >&6
61699 else
61700   cat >conftest.$ac_ext <<_ACEOF
61701 /* confdefs.h.  */
61702 _ACEOF
61703 cat confdefs.h >>conftest.$ac_ext
61704 cat >>conftest.$ac_ext <<_ACEOF
61705 /* end confdefs.h.  */
61706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61708 #define $ac_func innocuous_$ac_func
61709
61710 /* System header to define __stub macros and hopefully few prototypes,
61711     which can conflict with char $ac_func (); below.
61712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61713     <limits.h> exists even on freestanding compilers.  */
61714
61715 #ifdef __STDC__
61716 # include <limits.h>
61717 #else
61718 # include <assert.h>
61719 #endif
61720
61721 #undef $ac_func
61722
61723 /* Override any GCC internal prototype to avoid an error.
61724    Use char because int might match the return type of a GCC
61725    builtin and then its argument prototype would still apply.  */
61726 #ifdef __cplusplus
61727 extern "C"
61728 #endif
61729 char $ac_func ();
61730 /* The GNU C library defines this for functions which it implements
61731     to always fail with ENOSYS.  Some functions are actually named
61732     something starting with __ and the normal name is an alias.  */
61733 #if defined __stub_$ac_func || defined __stub___$ac_func
61734 choke me
61735 #endif
61736
61737 int
61738 main ()
61739 {
61740 return $ac_func ();
61741   ;
61742   return 0;
61743 }
61744 _ACEOF
61745 rm -f conftest.$ac_objext conftest$ac_exeext
61746 if { (ac_try="$ac_link"
61747 case "(($ac_try" in
61748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61749   *) ac_try_echo=$ac_try;;
61750 esac
61751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61752 $as_echo "$ac_try_echo") >&5
61753   (eval "$ac_link") 2>conftest.er1
61754   ac_status=$?
61755   grep -v '^ *+' conftest.er1 >conftest.err
61756   rm -f conftest.er1
61757   cat conftest.err >&5
61758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61759   (exit $ac_status); } && {
61760          test -z "$ac_c_werror_flag" ||
61761          test ! -s conftest.err
61762        } && test -s conftest$ac_exeext && {
61763          test "$cross_compiling" = yes ||
61764          $as_test_x conftest$ac_exeext
61765        }; then
61766   eval "$as_ac_var=yes"
61767 else
61768   $as_echo "$as_me: failed program was:" >&5
61769 sed 's/^/| /' conftest.$ac_ext >&5
61770
61771         eval "$as_ac_var=no"
61772 fi
61773
61774 rm -rf conftest.dSYM
61775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61776       conftest$ac_exeext conftest.$ac_ext
61777 fi
61778 ac_res=`eval 'as_val=${'$as_ac_var'}
61779                  $as_echo "$as_val"'`
61780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61781 $as_echo "$ac_res" >&6; }
61782 as_val=`eval 'as_val=${'$as_ac_var'}
61783                  $as_echo "$as_val"'`
61784    if test "x$as_val" = x""yes; then
61785   cat >>confdefs.h <<_ACEOF
61786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61787 _ACEOF
61788  ice_have_getopt=yes
61789 fi
61790 done
61791
61792 if test "${ice_have_getopt}" = yes; then
61793 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
61794 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
61795 if test "${ice_cv_have_getopt_decl+set}" = set; then
61796   $as_echo_n "(cached) " >&6
61797 else
61798
61799 ice_cv_have_getopt_decl=no
61800 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61801 ice_re_word='(^|[^a-zA-Z0-9_])'
61802 for header in stdlib.h unistd.h libc.h; do
61803 # Check for ordinary declaration
61804 cat >conftest.$ac_ext <<_ACEOF
61805 /* confdefs.h.  */
61806 _ACEOF
61807 cat confdefs.h >>conftest.$ac_ext
61808 cat >>conftest.$ac_ext <<_ACEOF
61809 /* end confdefs.h.  */
61810 #include <$header>
61811
61812 _ACEOF
61813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61814   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
61815   ice_cv_have_getopt_decl=yes
61816 fi
61817 rm -f conftest*
61818
61819 if test "$ice_cv_have_getopt_decl" = yes; then
61820         break
61821 fi
61822 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61823 cat >conftest.$ac_ext <<_ACEOF
61824 /* confdefs.h.  */
61825 _ACEOF
61826 cat confdefs.h >>conftest.$ac_ext
61827 cat >>conftest.$ac_ext <<_ACEOF
61828 /* end confdefs.h.  */
61829 #include <$header>
61830
61831 _ACEOF
61832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61833   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61834   ice_cv_have_getopt_decl=yes
61835 fi
61836 rm -f conftest*
61837
61838 if test "$ice_cv_have_getopt_decl" = yes; then
61839         break
61840 fi
61841 done
61842
61843 fi
61844
61845 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
61846 $as_echo "$ice_cv_have_getopt_decl" >&6; }
61847 if test "$ice_cv_have_getopt_decl" = yes; then
61848
61849 cat >>confdefs.h <<_ACEOF
61850 #define HAVE_GETOPT_DECL 1
61851 _ACEOF
61852
61853 fi
61854 fi
61855
61856
61857 ice_have_getpeername=no
61858
61859 for ac_func in getpeername
61860 do
61861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61863 $as_echo_n "checking for $ac_func... " >&6; }
61864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61865   $as_echo_n "(cached) " >&6
61866 else
61867   cat >conftest.$ac_ext <<_ACEOF
61868 /* confdefs.h.  */
61869 _ACEOF
61870 cat confdefs.h >>conftest.$ac_ext
61871 cat >>conftest.$ac_ext <<_ACEOF
61872 /* end confdefs.h.  */
61873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61875 #define $ac_func innocuous_$ac_func
61876
61877 /* System header to define __stub macros and hopefully few prototypes,
61878     which can conflict with char $ac_func (); below.
61879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61880     <limits.h> exists even on freestanding compilers.  */
61881
61882 #ifdef __STDC__
61883 # include <limits.h>
61884 #else
61885 # include <assert.h>
61886 #endif
61887
61888 #undef $ac_func
61889
61890 /* Override any GCC internal prototype to avoid an error.
61891    Use char because int might match the return type of a GCC
61892    builtin and then its argument prototype would still apply.  */
61893 #ifdef __cplusplus
61894 extern "C"
61895 #endif
61896 char $ac_func ();
61897 /* The GNU C library defines this for functions which it implements
61898     to always fail with ENOSYS.  Some functions are actually named
61899     something starting with __ and the normal name is an alias.  */
61900 #if defined __stub_$ac_func || defined __stub___$ac_func
61901 choke me
61902 #endif
61903
61904 int
61905 main ()
61906 {
61907 return $ac_func ();
61908   ;
61909   return 0;
61910 }
61911 _ACEOF
61912 rm -f conftest.$ac_objext conftest$ac_exeext
61913 if { (ac_try="$ac_link"
61914 case "(($ac_try" in
61915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61916   *) ac_try_echo=$ac_try;;
61917 esac
61918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61919 $as_echo "$ac_try_echo") >&5
61920   (eval "$ac_link") 2>conftest.er1
61921   ac_status=$?
61922   grep -v '^ *+' conftest.er1 >conftest.err
61923   rm -f conftest.er1
61924   cat conftest.err >&5
61925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61926   (exit $ac_status); } && {
61927          test -z "$ac_c_werror_flag" ||
61928          test ! -s conftest.err
61929        } && test -s conftest$ac_exeext && {
61930          test "$cross_compiling" = yes ||
61931          $as_test_x conftest$ac_exeext
61932        }; then
61933   eval "$as_ac_var=yes"
61934 else
61935   $as_echo "$as_me: failed program was:" >&5
61936 sed 's/^/| /' conftest.$ac_ext >&5
61937
61938         eval "$as_ac_var=no"
61939 fi
61940
61941 rm -rf conftest.dSYM
61942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61943       conftest$ac_exeext conftest.$ac_ext
61944 fi
61945 ac_res=`eval 'as_val=${'$as_ac_var'}
61946                  $as_echo "$as_val"'`
61947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61948 $as_echo "$ac_res" >&6; }
61949 as_val=`eval 'as_val=${'$as_ac_var'}
61950                  $as_echo "$as_val"'`
61951    if test "x$as_val" = x""yes; then
61952   cat >>confdefs.h <<_ACEOF
61953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61954 _ACEOF
61955  ice_have_getpeername=yes
61956 fi
61957 done
61958
61959 if test "${ice_have_getpeername}" = yes; then
61960 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
61961 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
61962 if test "${ice_cv_have_getpeername_decl+set}" = set; then
61963   $as_echo_n "(cached) " >&6
61964 else
61965
61966 ice_cv_have_getpeername_decl=no
61967 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61968 ice_re_word='(^|[^a-zA-Z0-9_])'
61969 for header in sys/types.h sys/socket.h; do
61970 # Check for ordinary declaration
61971 cat >conftest.$ac_ext <<_ACEOF
61972 /* confdefs.h.  */
61973 _ACEOF
61974 cat confdefs.h >>conftest.$ac_ext
61975 cat >>conftest.$ac_ext <<_ACEOF
61976 /* end confdefs.h.  */
61977 #include <$header>
61978
61979 _ACEOF
61980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61981   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
61982   ice_cv_have_getpeername_decl=yes
61983 fi
61984 rm -f conftest*
61985
61986 if test "$ice_cv_have_getpeername_decl" = yes; then
61987         break
61988 fi
61989 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61990 cat >conftest.$ac_ext <<_ACEOF
61991 /* confdefs.h.  */
61992 _ACEOF
61993 cat confdefs.h >>conftest.$ac_ext
61994 cat >>conftest.$ac_ext <<_ACEOF
61995 /* end confdefs.h.  */
61996 #include <$header>
61997
61998 _ACEOF
61999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62000   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62001   ice_cv_have_getpeername_decl=yes
62002 fi
62003 rm -f conftest*
62004
62005 if test "$ice_cv_have_getpeername_decl" = yes; then
62006         break
62007 fi
62008 done
62009
62010 fi
62011
62012 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
62013 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
62014 if test "$ice_cv_have_getpeername_decl" = yes; then
62015
62016 cat >>confdefs.h <<_ACEOF
62017 #define HAVE_GETPEERNAME_DECL 1
62018 _ACEOF
62019
62020 fi
62021 fi
62022
62023 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
62024 $as_echo_n "checking for getpgrp... " >&6; }
62025 if test "${ac_cv_func_getpgrp+set}" = set; then
62026   $as_echo_n "(cached) " >&6
62027 else
62028   cat >conftest.$ac_ext <<_ACEOF
62029 /* confdefs.h.  */
62030 _ACEOF
62031 cat confdefs.h >>conftest.$ac_ext
62032 cat >>conftest.$ac_ext <<_ACEOF
62033 /* end confdefs.h.  */
62034 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
62035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62036 #define getpgrp innocuous_getpgrp
62037
62038 /* System header to define __stub macros and hopefully few prototypes,
62039     which can conflict with char getpgrp (); below.
62040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62041     <limits.h> exists even on freestanding compilers.  */
62042
62043 #ifdef __STDC__
62044 # include <limits.h>
62045 #else
62046 # include <assert.h>
62047 #endif
62048
62049 #undef getpgrp
62050
62051 /* Override any GCC internal prototype to avoid an error.
62052    Use char because int might match the return type of a GCC
62053    builtin and then its argument prototype would still apply.  */
62054 #ifdef __cplusplus
62055 extern "C"
62056 #endif
62057 char getpgrp ();
62058 /* The GNU C library defines this for functions which it implements
62059     to always fail with ENOSYS.  Some functions are actually named
62060     something starting with __ and the normal name is an alias.  */
62061 #if defined __stub_getpgrp || defined __stub___getpgrp
62062 choke me
62063 #endif
62064
62065 int
62066 main ()
62067 {
62068 return getpgrp ();
62069   ;
62070   return 0;
62071 }
62072 _ACEOF
62073 rm -f conftest.$ac_objext conftest$ac_exeext
62074 if { (ac_try="$ac_link"
62075 case "(($ac_try" in
62076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62077   *) ac_try_echo=$ac_try;;
62078 esac
62079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62080 $as_echo "$ac_try_echo") >&5
62081   (eval "$ac_link") 2>conftest.er1
62082   ac_status=$?
62083   grep -v '^ *+' conftest.er1 >conftest.err
62084   rm -f conftest.er1
62085   cat conftest.err >&5
62086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62087   (exit $ac_status); } && {
62088          test -z "$ac_c_werror_flag" ||
62089          test ! -s conftest.err
62090        } && test -s conftest$ac_exeext && {
62091          test "$cross_compiling" = yes ||
62092          $as_test_x conftest$ac_exeext
62093        }; then
62094   ac_cv_func_getpgrp=yes
62095 else
62096   $as_echo "$as_me: failed program was:" >&5
62097 sed 's/^/| /' conftest.$ac_ext >&5
62098
62099         ac_cv_func_getpgrp=no
62100 fi
62101
62102 rm -rf conftest.dSYM
62103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62104       conftest$ac_exeext conftest.$ac_ext
62105 fi
62106 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
62107 $as_echo "$ac_cv_func_getpgrp" >&6; }
62108
62109 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
62110 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
62111 if test "${ac_cv_func_getpgrp_void+set}" = set; then
62112   $as_echo_n "(cached) " >&6
62113 else
62114   # Use it with a single arg.
62115 cat >conftest.$ac_ext <<_ACEOF
62116 /* confdefs.h.  */
62117 _ACEOF
62118 cat confdefs.h >>conftest.$ac_ext
62119 cat >>conftest.$ac_ext <<_ACEOF
62120 /* end confdefs.h.  */
62121 $ac_includes_default
62122 int
62123 main ()
62124 {
62125 getpgrp (0);
62126   ;
62127   return 0;
62128 }
62129 _ACEOF
62130 rm -f conftest.$ac_objext
62131 if { (ac_try="$ac_compile"
62132 case "(($ac_try" in
62133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62134   *) ac_try_echo=$ac_try;;
62135 esac
62136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62137 $as_echo "$ac_try_echo") >&5
62138   (eval "$ac_compile") 2>conftest.er1
62139   ac_status=$?
62140   grep -v '^ *+' conftest.er1 >conftest.err
62141   rm -f conftest.er1
62142   cat conftest.err >&5
62143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62144   (exit $ac_status); } && {
62145          test -z "$ac_c_werror_flag" ||
62146          test ! -s conftest.err
62147        } && test -s conftest.$ac_objext; then
62148   ac_cv_func_getpgrp_void=no
62149 else
62150   $as_echo "$as_me: failed program was:" >&5
62151 sed 's/^/| /' conftest.$ac_ext >&5
62152
62153         ac_cv_func_getpgrp_void=yes
62154 fi
62155
62156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62157
62158 fi
62159 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
62160 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
62161 if test $ac_cv_func_getpgrp_void = yes; then
62162
62163 cat >>confdefs.h <<\_ACEOF
62164 #define GETPGRP_VOID 1
62165 _ACEOF
62166
62167 fi
62168
62169
62170 ice_have_getsockname=no
62171
62172 for ac_func in getsockname
62173 do
62174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62175 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62176 $as_echo_n "checking for $ac_func... " >&6; }
62177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62178   $as_echo_n "(cached) " >&6
62179 else
62180   cat >conftest.$ac_ext <<_ACEOF
62181 /* confdefs.h.  */
62182 _ACEOF
62183 cat confdefs.h >>conftest.$ac_ext
62184 cat >>conftest.$ac_ext <<_ACEOF
62185 /* end confdefs.h.  */
62186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62188 #define $ac_func innocuous_$ac_func
62189
62190 /* System header to define __stub macros and hopefully few prototypes,
62191     which can conflict with char $ac_func (); below.
62192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62193     <limits.h> exists even on freestanding compilers.  */
62194
62195 #ifdef __STDC__
62196 # include <limits.h>
62197 #else
62198 # include <assert.h>
62199 #endif
62200
62201 #undef $ac_func
62202
62203 /* Override any GCC internal prototype to avoid an error.
62204    Use char because int might match the return type of a GCC
62205    builtin and then its argument prototype would still apply.  */
62206 #ifdef __cplusplus
62207 extern "C"
62208 #endif
62209 char $ac_func ();
62210 /* The GNU C library defines this for functions which it implements
62211     to always fail with ENOSYS.  Some functions are actually named
62212     something starting with __ and the normal name is an alias.  */
62213 #if defined __stub_$ac_func || defined __stub___$ac_func
62214 choke me
62215 #endif
62216
62217 int
62218 main ()
62219 {
62220 return $ac_func ();
62221   ;
62222   return 0;
62223 }
62224 _ACEOF
62225 rm -f conftest.$ac_objext conftest$ac_exeext
62226 if { (ac_try="$ac_link"
62227 case "(($ac_try" in
62228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62229   *) ac_try_echo=$ac_try;;
62230 esac
62231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62232 $as_echo "$ac_try_echo") >&5
62233   (eval "$ac_link") 2>conftest.er1
62234   ac_status=$?
62235   grep -v '^ *+' conftest.er1 >conftest.err
62236   rm -f conftest.er1
62237   cat conftest.err >&5
62238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62239   (exit $ac_status); } && {
62240          test -z "$ac_c_werror_flag" ||
62241          test ! -s conftest.err
62242        } && test -s conftest$ac_exeext && {
62243          test "$cross_compiling" = yes ||
62244          $as_test_x conftest$ac_exeext
62245        }; then
62246   eval "$as_ac_var=yes"
62247 else
62248   $as_echo "$as_me: failed program was:" >&5
62249 sed 's/^/| /' conftest.$ac_ext >&5
62250
62251         eval "$as_ac_var=no"
62252 fi
62253
62254 rm -rf conftest.dSYM
62255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62256       conftest$ac_exeext conftest.$ac_ext
62257 fi
62258 ac_res=`eval 'as_val=${'$as_ac_var'}
62259                  $as_echo "$as_val"'`
62260                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62261 $as_echo "$ac_res" >&6; }
62262 as_val=`eval 'as_val=${'$as_ac_var'}
62263                  $as_echo "$as_val"'`
62264    if test "x$as_val" = x""yes; then
62265   cat >>confdefs.h <<_ACEOF
62266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62267 _ACEOF
62268  ice_have_getsockname=yes
62269 fi
62270 done
62271
62272 if test "${ice_have_getsockname}" = yes; then
62273 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
62274 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
62275 if test "${ice_cv_have_getsockname_decl+set}" = set; then
62276   $as_echo_n "(cached) " >&6
62277 else
62278
62279 ice_cv_have_getsockname_decl=no
62280 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62281 ice_re_word='(^|[^a-zA-Z0-9_])'
62282 for header in sys/types.h sys/socket.h; do
62283 # Check for ordinary declaration
62284 cat >conftest.$ac_ext <<_ACEOF
62285 /* confdefs.h.  */
62286 _ACEOF
62287 cat confdefs.h >>conftest.$ac_ext
62288 cat >>conftest.$ac_ext <<_ACEOF
62289 /* end confdefs.h.  */
62290 #include <$header>
62291
62292 _ACEOF
62293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62294   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
62295   ice_cv_have_getsockname_decl=yes
62296 fi
62297 rm -f conftest*
62298
62299 if test "$ice_cv_have_getsockname_decl" = yes; then
62300         break
62301 fi
62302 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62303 cat >conftest.$ac_ext <<_ACEOF
62304 /* confdefs.h.  */
62305 _ACEOF
62306 cat confdefs.h >>conftest.$ac_ext
62307 cat >>conftest.$ac_ext <<_ACEOF
62308 /* end confdefs.h.  */
62309 #include <$header>
62310
62311 _ACEOF
62312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62313   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62314   ice_cv_have_getsockname_decl=yes
62315 fi
62316 rm -f conftest*
62317
62318 if test "$ice_cv_have_getsockname_decl" = yes; then
62319         break
62320 fi
62321 done
62322
62323 fi
62324
62325 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
62326 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
62327 if test "$ice_cv_have_getsockname_decl" = yes; then
62328
62329 cat >>confdefs.h <<_ACEOF
62330 #define HAVE_GETSOCKNAME_DECL 1
62331 _ACEOF
62332
62333 fi
62334 fi
62335
62336
62337 ice_have_getsockopt=no
62338
62339 for ac_func in getsockopt
62340 do
62341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62342 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62343 $as_echo_n "checking for $ac_func... " >&6; }
62344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62345   $as_echo_n "(cached) " >&6
62346 else
62347   cat >conftest.$ac_ext <<_ACEOF
62348 /* confdefs.h.  */
62349 _ACEOF
62350 cat confdefs.h >>conftest.$ac_ext
62351 cat >>conftest.$ac_ext <<_ACEOF
62352 /* end confdefs.h.  */
62353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62355 #define $ac_func innocuous_$ac_func
62356
62357 /* System header to define __stub macros and hopefully few prototypes,
62358     which can conflict with char $ac_func (); below.
62359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62360     <limits.h> exists even on freestanding compilers.  */
62361
62362 #ifdef __STDC__
62363 # include <limits.h>
62364 #else
62365 # include <assert.h>
62366 #endif
62367
62368 #undef $ac_func
62369
62370 /* Override any GCC internal prototype to avoid an error.
62371    Use char because int might match the return type of a GCC
62372    builtin and then its argument prototype would still apply.  */
62373 #ifdef __cplusplus
62374 extern "C"
62375 #endif
62376 char $ac_func ();
62377 /* The GNU C library defines this for functions which it implements
62378     to always fail with ENOSYS.  Some functions are actually named
62379     something starting with __ and the normal name is an alias.  */
62380 #if defined __stub_$ac_func || defined __stub___$ac_func
62381 choke me
62382 #endif
62383
62384 int
62385 main ()
62386 {
62387 return $ac_func ();
62388   ;
62389   return 0;
62390 }
62391 _ACEOF
62392 rm -f conftest.$ac_objext conftest$ac_exeext
62393 if { (ac_try="$ac_link"
62394 case "(($ac_try" in
62395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62396   *) ac_try_echo=$ac_try;;
62397 esac
62398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62399 $as_echo "$ac_try_echo") >&5
62400   (eval "$ac_link") 2>conftest.er1
62401   ac_status=$?
62402   grep -v '^ *+' conftest.er1 >conftest.err
62403   rm -f conftest.er1
62404   cat conftest.err >&5
62405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62406   (exit $ac_status); } && {
62407          test -z "$ac_c_werror_flag" ||
62408          test ! -s conftest.err
62409        } && test -s conftest$ac_exeext && {
62410          test "$cross_compiling" = yes ||
62411          $as_test_x conftest$ac_exeext
62412        }; then
62413   eval "$as_ac_var=yes"
62414 else
62415   $as_echo "$as_me: failed program was:" >&5
62416 sed 's/^/| /' conftest.$ac_ext >&5
62417
62418         eval "$as_ac_var=no"
62419 fi
62420
62421 rm -rf conftest.dSYM
62422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62423       conftest$ac_exeext conftest.$ac_ext
62424 fi
62425 ac_res=`eval 'as_val=${'$as_ac_var'}
62426                  $as_echo "$as_val"'`
62427                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62428 $as_echo "$ac_res" >&6; }
62429 as_val=`eval 'as_val=${'$as_ac_var'}
62430                  $as_echo "$as_val"'`
62431    if test "x$as_val" = x""yes; then
62432   cat >>confdefs.h <<_ACEOF
62433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62434 _ACEOF
62435  ice_have_getsockopt=yes
62436 fi
62437 done
62438
62439 if test "${ice_have_getsockopt}" = yes; then
62440 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
62441 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
62442 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
62443   $as_echo_n "(cached) " >&6
62444 else
62445
62446 ice_cv_have_getsockopt_decl=no
62447 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62448 ice_re_word='(^|[^a-zA-Z0-9_])'
62449 for header in sys/types.h sys/socket.h; do
62450 # Check for ordinary declaration
62451 cat >conftest.$ac_ext <<_ACEOF
62452 /* confdefs.h.  */
62453 _ACEOF
62454 cat confdefs.h >>conftest.$ac_ext
62455 cat >>conftest.$ac_ext <<_ACEOF
62456 /* end confdefs.h.  */
62457 #include <$header>
62458
62459 _ACEOF
62460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62461   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
62462   ice_cv_have_getsockopt_decl=yes
62463 fi
62464 rm -f conftest*
62465
62466 if test "$ice_cv_have_getsockopt_decl" = yes; then
62467         break
62468 fi
62469 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62470 cat >conftest.$ac_ext <<_ACEOF
62471 /* confdefs.h.  */
62472 _ACEOF
62473 cat confdefs.h >>conftest.$ac_ext
62474 cat >>conftest.$ac_ext <<_ACEOF
62475 /* end confdefs.h.  */
62476 #include <$header>
62477
62478 _ACEOF
62479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62480   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62481   ice_cv_have_getsockopt_decl=yes
62482 fi
62483 rm -f conftest*
62484
62485 if test "$ice_cv_have_getsockopt_decl" = yes; then
62486         break
62487 fi
62488 done
62489
62490 fi
62491
62492 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
62493 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
62494 if test "$ice_cv_have_getsockopt_decl" = yes; then
62495
62496 cat >>confdefs.h <<_ACEOF
62497 #define HAVE_GETSOCKOPT_DECL 1
62498 _ACEOF
62499
62500 fi
62501 fi
62502
62503
62504 ice_have_initgroups=no
62505
62506 for ac_func in initgroups
62507 do
62508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62510 $as_echo_n "checking for $ac_func... " >&6; }
62511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62512   $as_echo_n "(cached) " >&6
62513 else
62514   cat >conftest.$ac_ext <<_ACEOF
62515 /* confdefs.h.  */
62516 _ACEOF
62517 cat confdefs.h >>conftest.$ac_ext
62518 cat >>conftest.$ac_ext <<_ACEOF
62519 /* end confdefs.h.  */
62520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62522 #define $ac_func innocuous_$ac_func
62523
62524 /* System header to define __stub macros and hopefully few prototypes,
62525     which can conflict with char $ac_func (); below.
62526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62527     <limits.h> exists even on freestanding compilers.  */
62528
62529 #ifdef __STDC__
62530 # include <limits.h>
62531 #else
62532 # include <assert.h>
62533 #endif
62534
62535 #undef $ac_func
62536
62537 /* Override any GCC internal prototype to avoid an error.
62538    Use char because int might match the return type of a GCC
62539    builtin and then its argument prototype would still apply.  */
62540 #ifdef __cplusplus
62541 extern "C"
62542 #endif
62543 char $ac_func ();
62544 /* The GNU C library defines this for functions which it implements
62545     to always fail with ENOSYS.  Some functions are actually named
62546     something starting with __ and the normal name is an alias.  */
62547 #if defined __stub_$ac_func || defined __stub___$ac_func
62548 choke me
62549 #endif
62550
62551 int
62552 main ()
62553 {
62554 return $ac_func ();
62555   ;
62556   return 0;
62557 }
62558 _ACEOF
62559 rm -f conftest.$ac_objext conftest$ac_exeext
62560 if { (ac_try="$ac_link"
62561 case "(($ac_try" in
62562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62563   *) ac_try_echo=$ac_try;;
62564 esac
62565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62566 $as_echo "$ac_try_echo") >&5
62567   (eval "$ac_link") 2>conftest.er1
62568   ac_status=$?
62569   grep -v '^ *+' conftest.er1 >conftest.err
62570   rm -f conftest.er1
62571   cat conftest.err >&5
62572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62573   (exit $ac_status); } && {
62574          test -z "$ac_c_werror_flag" ||
62575          test ! -s conftest.err
62576        } && test -s conftest$ac_exeext && {
62577          test "$cross_compiling" = yes ||
62578          $as_test_x conftest$ac_exeext
62579        }; then
62580   eval "$as_ac_var=yes"
62581 else
62582   $as_echo "$as_me: failed program was:" >&5
62583 sed 's/^/| /' conftest.$ac_ext >&5
62584
62585         eval "$as_ac_var=no"
62586 fi
62587
62588 rm -rf conftest.dSYM
62589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62590       conftest$ac_exeext conftest.$ac_ext
62591 fi
62592 ac_res=`eval 'as_val=${'$as_ac_var'}
62593                  $as_echo "$as_val"'`
62594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62595 $as_echo "$ac_res" >&6; }
62596 as_val=`eval 'as_val=${'$as_ac_var'}
62597                  $as_echo "$as_val"'`
62598    if test "x$as_val" = x""yes; then
62599   cat >>confdefs.h <<_ACEOF
62600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62601 _ACEOF
62602  ice_have_initgroups=yes
62603 fi
62604 done
62605
62606 if test "${ice_have_initgroups}" = yes; then
62607 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
62608 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
62609 if test "${ice_cv_have_initgroups_decl+set}" = set; then
62610   $as_echo_n "(cached) " >&6
62611 else
62612
62613 ice_cv_have_initgroups_decl=no
62614 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62615 ice_re_word='(^|[^a-zA-Z0-9_])'
62616 for header in grp.h sys/types.h unistd.h libc.h; do
62617 # Check for ordinary declaration
62618 cat >conftest.$ac_ext <<_ACEOF
62619 /* confdefs.h.  */
62620 _ACEOF
62621 cat confdefs.h >>conftest.$ac_ext
62622 cat >>conftest.$ac_ext <<_ACEOF
62623 /* end confdefs.h.  */
62624 #include <$header>
62625
62626 _ACEOF
62627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62628   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
62629   ice_cv_have_initgroups_decl=yes
62630 fi
62631 rm -f conftest*
62632
62633 if test "$ice_cv_have_initgroups_decl" = yes; then
62634         break
62635 fi
62636 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62637 cat >conftest.$ac_ext <<_ACEOF
62638 /* confdefs.h.  */
62639 _ACEOF
62640 cat confdefs.h >>conftest.$ac_ext
62641 cat >>conftest.$ac_ext <<_ACEOF
62642 /* end confdefs.h.  */
62643 #include <$header>
62644
62645 _ACEOF
62646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62647   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62648   ice_cv_have_initgroups_decl=yes
62649 fi
62650 rm -f conftest*
62651
62652 if test "$ice_cv_have_initgroups_decl" = yes; then
62653         break
62654 fi
62655 done
62656
62657 fi
62658
62659 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
62660 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
62661 if test "$ice_cv_have_initgroups_decl" = yes; then
62662
62663 cat >>confdefs.h <<_ACEOF
62664 #define HAVE_INITGROUPS_DECL 1
62665 _ACEOF
62666
62667 fi
62668 fi
62669
62670
62671 ice_have_ioctl=no
62672
62673 for ac_func in ioctl
62674 do
62675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62676 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62677 $as_echo_n "checking for $ac_func... " >&6; }
62678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62679   $as_echo_n "(cached) " >&6
62680 else
62681   cat >conftest.$ac_ext <<_ACEOF
62682 /* confdefs.h.  */
62683 _ACEOF
62684 cat confdefs.h >>conftest.$ac_ext
62685 cat >>conftest.$ac_ext <<_ACEOF
62686 /* end confdefs.h.  */
62687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62689 #define $ac_func innocuous_$ac_func
62690
62691 /* System header to define __stub macros and hopefully few prototypes,
62692     which can conflict with char $ac_func (); below.
62693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62694     <limits.h> exists even on freestanding compilers.  */
62695
62696 #ifdef __STDC__
62697 # include <limits.h>
62698 #else
62699 # include <assert.h>
62700 #endif
62701
62702 #undef $ac_func
62703
62704 /* Override any GCC internal prototype to avoid an error.
62705    Use char because int might match the return type of a GCC
62706    builtin and then its argument prototype would still apply.  */
62707 #ifdef __cplusplus
62708 extern "C"
62709 #endif
62710 char $ac_func ();
62711 /* The GNU C library defines this for functions which it implements
62712     to always fail with ENOSYS.  Some functions are actually named
62713     something starting with __ and the normal name is an alias.  */
62714 #if defined __stub_$ac_func || defined __stub___$ac_func
62715 choke me
62716 #endif
62717
62718 int
62719 main ()
62720 {
62721 return $ac_func ();
62722   ;
62723   return 0;
62724 }
62725 _ACEOF
62726 rm -f conftest.$ac_objext conftest$ac_exeext
62727 if { (ac_try="$ac_link"
62728 case "(($ac_try" in
62729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62730   *) ac_try_echo=$ac_try;;
62731 esac
62732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62733 $as_echo "$ac_try_echo") >&5
62734   (eval "$ac_link") 2>conftest.er1
62735   ac_status=$?
62736   grep -v '^ *+' conftest.er1 >conftest.err
62737   rm -f conftest.er1
62738   cat conftest.err >&5
62739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62740   (exit $ac_status); } && {
62741          test -z "$ac_c_werror_flag" ||
62742          test ! -s conftest.err
62743        } && test -s conftest$ac_exeext && {
62744          test "$cross_compiling" = yes ||
62745          $as_test_x conftest$ac_exeext
62746        }; then
62747   eval "$as_ac_var=yes"
62748 else
62749   $as_echo "$as_me: failed program was:" >&5
62750 sed 's/^/| /' conftest.$ac_ext >&5
62751
62752         eval "$as_ac_var=no"
62753 fi
62754
62755 rm -rf conftest.dSYM
62756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62757       conftest$ac_exeext conftest.$ac_ext
62758 fi
62759 ac_res=`eval 'as_val=${'$as_ac_var'}
62760                  $as_echo "$as_val"'`
62761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62762 $as_echo "$ac_res" >&6; }
62763 as_val=`eval 'as_val=${'$as_ac_var'}
62764                  $as_echo "$as_val"'`
62765    if test "x$as_val" = x""yes; then
62766   cat >>confdefs.h <<_ACEOF
62767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62768 _ACEOF
62769  ice_have_ioctl=yes
62770 fi
62771 done
62772
62773 if test "${ice_have_ioctl}" = yes; then
62774 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
62775 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
62776 if test "${ice_cv_have_ioctl_decl+set}" = set; then
62777   $as_echo_n "(cached) " >&6
62778 else
62779
62780 ice_cv_have_ioctl_decl=no
62781 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62782 ice_re_word='(^|[^a-zA-Z0-9_])'
62783 for header in sys/ioctl.h unistd.h libc.h; do
62784 # Check for ordinary declaration
62785 cat >conftest.$ac_ext <<_ACEOF
62786 /* confdefs.h.  */
62787 _ACEOF
62788 cat confdefs.h >>conftest.$ac_ext
62789 cat >>conftest.$ac_ext <<_ACEOF
62790 /* end confdefs.h.  */
62791 #include <$header>
62792
62793 _ACEOF
62794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62795   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
62796   ice_cv_have_ioctl_decl=yes
62797 fi
62798 rm -f conftest*
62799
62800 if test "$ice_cv_have_ioctl_decl" = yes; then
62801         break
62802 fi
62803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62804 cat >conftest.$ac_ext <<_ACEOF
62805 /* confdefs.h.  */
62806 _ACEOF
62807 cat confdefs.h >>conftest.$ac_ext
62808 cat >>conftest.$ac_ext <<_ACEOF
62809 /* end confdefs.h.  */
62810 #include <$header>
62811
62812 _ACEOF
62813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62814   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62815   ice_cv_have_ioctl_decl=yes
62816 fi
62817 rm -f conftest*
62818
62819 if test "$ice_cv_have_ioctl_decl" = yes; then
62820         break
62821 fi
62822 done
62823
62824 fi
62825
62826 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
62827 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
62828 if test "$ice_cv_have_ioctl_decl" = yes; then
62829
62830 cat >>confdefs.h <<_ACEOF
62831 #define HAVE_IOCTL_DECL 1
62832 _ACEOF
62833
62834 fi
62835 fi
62836
62837
62838 ice_have_isnormal=no
62839
62840 for ac_func in isnormal
62841 do
62842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62844 $as_echo_n "checking for $ac_func... " >&6; }
62845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62846   $as_echo_n "(cached) " >&6
62847 else
62848   cat >conftest.$ac_ext <<_ACEOF
62849 /* confdefs.h.  */
62850 _ACEOF
62851 cat confdefs.h >>conftest.$ac_ext
62852 cat >>conftest.$ac_ext <<_ACEOF
62853 /* end confdefs.h.  */
62854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62856 #define $ac_func innocuous_$ac_func
62857
62858 /* System header to define __stub macros and hopefully few prototypes,
62859     which can conflict with char $ac_func (); below.
62860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62861     <limits.h> exists even on freestanding compilers.  */
62862
62863 #ifdef __STDC__
62864 # include <limits.h>
62865 #else
62866 # include <assert.h>
62867 #endif
62868
62869 #undef $ac_func
62870
62871 /* Override any GCC internal prototype to avoid an error.
62872    Use char because int might match the return type of a GCC
62873    builtin and then its argument prototype would still apply.  */
62874 #ifdef __cplusplus
62875 extern "C"
62876 #endif
62877 char $ac_func ();
62878 /* The GNU C library defines this for functions which it implements
62879     to always fail with ENOSYS.  Some functions are actually named
62880     something starting with __ and the normal name is an alias.  */
62881 #if defined __stub_$ac_func || defined __stub___$ac_func
62882 choke me
62883 #endif
62884
62885 int
62886 main ()
62887 {
62888 return $ac_func ();
62889   ;
62890   return 0;
62891 }
62892 _ACEOF
62893 rm -f conftest.$ac_objext conftest$ac_exeext
62894 if { (ac_try="$ac_link"
62895 case "(($ac_try" in
62896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62897   *) ac_try_echo=$ac_try;;
62898 esac
62899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62900 $as_echo "$ac_try_echo") >&5
62901   (eval "$ac_link") 2>conftest.er1
62902   ac_status=$?
62903   grep -v '^ *+' conftest.er1 >conftest.err
62904   rm -f conftest.er1
62905   cat conftest.err >&5
62906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62907   (exit $ac_status); } && {
62908          test -z "$ac_c_werror_flag" ||
62909          test ! -s conftest.err
62910        } && test -s conftest$ac_exeext && {
62911          test "$cross_compiling" = yes ||
62912          $as_test_x conftest$ac_exeext
62913        }; then
62914   eval "$as_ac_var=yes"
62915 else
62916   $as_echo "$as_me: failed program was:" >&5
62917 sed 's/^/| /' conftest.$ac_ext >&5
62918
62919         eval "$as_ac_var=no"
62920 fi
62921
62922 rm -rf conftest.dSYM
62923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62924       conftest$ac_exeext conftest.$ac_ext
62925 fi
62926 ac_res=`eval 'as_val=${'$as_ac_var'}
62927                  $as_echo "$as_val"'`
62928                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62929 $as_echo "$ac_res" >&6; }
62930 as_val=`eval 'as_val=${'$as_ac_var'}
62931                  $as_echo "$as_val"'`
62932    if test "x$as_val" = x""yes; then
62933   cat >>confdefs.h <<_ACEOF
62934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62935 _ACEOF
62936  ice_have_isnormal=yes
62937 fi
62938 done
62939
62940 if test "${ice_have_isnormal}" = yes; then
62941 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
62942 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
62943 if test "${ice_cv_have_isnormal_decl+set}" = set; then
62944   $as_echo_n "(cached) " >&6
62945 else
62946
62947 ice_cv_have_isnormal_decl=no
62948 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62949 ice_re_word='(^|[^a-zA-Z0-9_])'
62950 for header in math.h; do
62951 # Check for ordinary declaration
62952 cat >conftest.$ac_ext <<_ACEOF
62953 /* confdefs.h.  */
62954 _ACEOF
62955 cat confdefs.h >>conftest.$ac_ext
62956 cat >>conftest.$ac_ext <<_ACEOF
62957 /* end confdefs.h.  */
62958 #include <$header>
62959
62960 _ACEOF
62961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62962   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
62963   ice_cv_have_isnormal_decl=yes
62964 fi
62965 rm -f conftest*
62966
62967 if test "$ice_cv_have_isnormal_decl" = yes; then
62968         break
62969 fi
62970 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62971 cat >conftest.$ac_ext <<_ACEOF
62972 /* confdefs.h.  */
62973 _ACEOF
62974 cat confdefs.h >>conftest.$ac_ext
62975 cat >>conftest.$ac_ext <<_ACEOF
62976 /* end confdefs.h.  */
62977 #include <$header>
62978
62979 _ACEOF
62980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62981   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62982   ice_cv_have_isnormal_decl=yes
62983 fi
62984 rm -f conftest*
62985
62986 if test "$ice_cv_have_isnormal_decl" = yes; then
62987         break
62988 fi
62989 done
62990
62991 fi
62992
62993 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
62994 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
62995 if test "$ice_cv_have_isnormal_decl" = yes; then
62996
62997 cat >>confdefs.h <<_ACEOF
62998 #define HAVE_ISNORMAL_DECL 1
62999 _ACEOF
63000
63001 fi
63002 fi
63003
63004
63005 ice_have_listen=no
63006
63007 for ac_func in listen
63008 do
63009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63011 $as_echo_n "checking for $ac_func... " >&6; }
63012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63013   $as_echo_n "(cached) " >&6
63014 else
63015   cat >conftest.$ac_ext <<_ACEOF
63016 /* confdefs.h.  */
63017 _ACEOF
63018 cat confdefs.h >>conftest.$ac_ext
63019 cat >>conftest.$ac_ext <<_ACEOF
63020 /* end confdefs.h.  */
63021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63023 #define $ac_func innocuous_$ac_func
63024
63025 /* System header to define __stub macros and hopefully few prototypes,
63026     which can conflict with char $ac_func (); below.
63027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63028     <limits.h> exists even on freestanding compilers.  */
63029
63030 #ifdef __STDC__
63031 # include <limits.h>
63032 #else
63033 # include <assert.h>
63034 #endif
63035
63036 #undef $ac_func
63037
63038 /* Override any GCC internal prototype to avoid an error.
63039    Use char because int might match the return type of a GCC
63040    builtin and then its argument prototype would still apply.  */
63041 #ifdef __cplusplus
63042 extern "C"
63043 #endif
63044 char $ac_func ();
63045 /* The GNU C library defines this for functions which it implements
63046     to always fail with ENOSYS.  Some functions are actually named
63047     something starting with __ and the normal name is an alias.  */
63048 #if defined __stub_$ac_func || defined __stub___$ac_func
63049 choke me
63050 #endif
63051
63052 int
63053 main ()
63054 {
63055 return $ac_func ();
63056   ;
63057   return 0;
63058 }
63059 _ACEOF
63060 rm -f conftest.$ac_objext conftest$ac_exeext
63061 if { (ac_try="$ac_link"
63062 case "(($ac_try" in
63063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63064   *) ac_try_echo=$ac_try;;
63065 esac
63066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63067 $as_echo "$ac_try_echo") >&5
63068   (eval "$ac_link") 2>conftest.er1
63069   ac_status=$?
63070   grep -v '^ *+' conftest.er1 >conftest.err
63071   rm -f conftest.er1
63072   cat conftest.err >&5
63073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63074   (exit $ac_status); } && {
63075          test -z "$ac_c_werror_flag" ||
63076          test ! -s conftest.err
63077        } && test -s conftest$ac_exeext && {
63078          test "$cross_compiling" = yes ||
63079          $as_test_x conftest$ac_exeext
63080        }; then
63081   eval "$as_ac_var=yes"
63082 else
63083   $as_echo "$as_me: failed program was:" >&5
63084 sed 's/^/| /' conftest.$ac_ext >&5
63085
63086         eval "$as_ac_var=no"
63087 fi
63088
63089 rm -rf conftest.dSYM
63090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63091       conftest$ac_exeext conftest.$ac_ext
63092 fi
63093 ac_res=`eval 'as_val=${'$as_ac_var'}
63094                  $as_echo "$as_val"'`
63095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63096 $as_echo "$ac_res" >&6; }
63097 as_val=`eval 'as_val=${'$as_ac_var'}
63098                  $as_echo "$as_val"'`
63099    if test "x$as_val" = x""yes; then
63100   cat >>confdefs.h <<_ACEOF
63101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63102 _ACEOF
63103  ice_have_listen=yes
63104 fi
63105 done
63106
63107 if test "${ice_have_listen}" = yes; then
63108 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
63109 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
63110 if test "${ice_cv_have_listen_decl+set}" = set; then
63111   $as_echo_n "(cached) " >&6
63112 else
63113
63114 ice_cv_have_listen_decl=no
63115 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63116 ice_re_word='(^|[^a-zA-Z0-9_])'
63117 for header in sys/types.h sys/socket.h; do
63118 # Check for ordinary declaration
63119 cat >conftest.$ac_ext <<_ACEOF
63120 /* confdefs.h.  */
63121 _ACEOF
63122 cat confdefs.h >>conftest.$ac_ext
63123 cat >>conftest.$ac_ext <<_ACEOF
63124 /* end confdefs.h.  */
63125 #include <$header>
63126
63127 _ACEOF
63128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63129   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
63130   ice_cv_have_listen_decl=yes
63131 fi
63132 rm -f conftest*
63133
63134 if test "$ice_cv_have_listen_decl" = yes; then
63135         break
63136 fi
63137 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63138 cat >conftest.$ac_ext <<_ACEOF
63139 /* confdefs.h.  */
63140 _ACEOF
63141 cat confdefs.h >>conftest.$ac_ext
63142 cat >>conftest.$ac_ext <<_ACEOF
63143 /* end confdefs.h.  */
63144 #include <$header>
63145
63146 _ACEOF
63147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63148   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63149   ice_cv_have_listen_decl=yes
63150 fi
63151 rm -f conftest*
63152
63153 if test "$ice_cv_have_listen_decl" = yes; then
63154         break
63155 fi
63156 done
63157
63158 fi
63159
63160 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
63161 $as_echo "$ice_cv_have_listen_decl" >&6; }
63162 if test "$ice_cv_have_listen_decl" = yes; then
63163
63164 cat >>confdefs.h <<_ACEOF
63165 #define HAVE_LISTEN_DECL 1
63166 _ACEOF
63167
63168 fi
63169 fi
63170
63171
63172 ice_have_lstat=no
63173
63174 for ac_func in lstat
63175 do
63176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63177 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63178 $as_echo_n "checking for $ac_func... " >&6; }
63179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63180   $as_echo_n "(cached) " >&6
63181 else
63182   cat >conftest.$ac_ext <<_ACEOF
63183 /* confdefs.h.  */
63184 _ACEOF
63185 cat confdefs.h >>conftest.$ac_ext
63186 cat >>conftest.$ac_ext <<_ACEOF
63187 /* end confdefs.h.  */
63188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63190 #define $ac_func innocuous_$ac_func
63191
63192 /* System header to define __stub macros and hopefully few prototypes,
63193     which can conflict with char $ac_func (); below.
63194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63195     <limits.h> exists even on freestanding compilers.  */
63196
63197 #ifdef __STDC__
63198 # include <limits.h>
63199 #else
63200 # include <assert.h>
63201 #endif
63202
63203 #undef $ac_func
63204
63205 /* Override any GCC internal prototype to avoid an error.
63206    Use char because int might match the return type of a GCC
63207    builtin and then its argument prototype would still apply.  */
63208 #ifdef __cplusplus
63209 extern "C"
63210 #endif
63211 char $ac_func ();
63212 /* The GNU C library defines this for functions which it implements
63213     to always fail with ENOSYS.  Some functions are actually named
63214     something starting with __ and the normal name is an alias.  */
63215 #if defined __stub_$ac_func || defined __stub___$ac_func
63216 choke me
63217 #endif
63218
63219 int
63220 main ()
63221 {
63222 return $ac_func ();
63223   ;
63224   return 0;
63225 }
63226 _ACEOF
63227 rm -f conftest.$ac_objext conftest$ac_exeext
63228 if { (ac_try="$ac_link"
63229 case "(($ac_try" in
63230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63231   *) ac_try_echo=$ac_try;;
63232 esac
63233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63234 $as_echo "$ac_try_echo") >&5
63235   (eval "$ac_link") 2>conftest.er1
63236   ac_status=$?
63237   grep -v '^ *+' conftest.er1 >conftest.err
63238   rm -f conftest.er1
63239   cat conftest.err >&5
63240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63241   (exit $ac_status); } && {
63242          test -z "$ac_c_werror_flag" ||
63243          test ! -s conftest.err
63244        } && test -s conftest$ac_exeext && {
63245          test "$cross_compiling" = yes ||
63246          $as_test_x conftest$ac_exeext
63247        }; then
63248   eval "$as_ac_var=yes"
63249 else
63250   $as_echo "$as_me: failed program was:" >&5
63251 sed 's/^/| /' conftest.$ac_ext >&5
63252
63253         eval "$as_ac_var=no"
63254 fi
63255
63256 rm -rf conftest.dSYM
63257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63258       conftest$ac_exeext conftest.$ac_ext
63259 fi
63260 ac_res=`eval 'as_val=${'$as_ac_var'}
63261                  $as_echo "$as_val"'`
63262                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63263 $as_echo "$ac_res" >&6; }
63264 as_val=`eval 'as_val=${'$as_ac_var'}
63265                  $as_echo "$as_val"'`
63266    if test "x$as_val" = x""yes; then
63267   cat >>confdefs.h <<_ACEOF
63268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63269 _ACEOF
63270  ice_have_lstat=yes
63271 fi
63272 done
63273
63274 if test "${ice_have_lstat}" = yes; then
63275 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
63276 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
63277 if test "${ice_cv_have_lstat_decl+set}" = set; then
63278   $as_echo_n "(cached) " >&6
63279 else
63280
63281 ice_cv_have_lstat_decl=no
63282 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63283 ice_re_word='(^|[^a-zA-Z0-9_])'
63284 for header in sys/types.h sys/stat.h; do
63285 # Check for ordinary declaration
63286 cat >conftest.$ac_ext <<_ACEOF
63287 /* confdefs.h.  */
63288 _ACEOF
63289 cat confdefs.h >>conftest.$ac_ext
63290 cat >>conftest.$ac_ext <<_ACEOF
63291 /* end confdefs.h.  */
63292 #include <$header>
63293
63294 _ACEOF
63295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63296   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
63297   ice_cv_have_lstat_decl=yes
63298 fi
63299 rm -f conftest*
63300
63301 if test "$ice_cv_have_lstat_decl" = yes; then
63302         break
63303 fi
63304 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63305 cat >conftest.$ac_ext <<_ACEOF
63306 /* confdefs.h.  */
63307 _ACEOF
63308 cat confdefs.h >>conftest.$ac_ext
63309 cat >>conftest.$ac_ext <<_ACEOF
63310 /* end confdefs.h.  */
63311 #include <$header>
63312
63313 _ACEOF
63314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63315   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63316   ice_cv_have_lstat_decl=yes
63317 fi
63318 rm -f conftest*
63319
63320 if test "$ice_cv_have_lstat_decl" = yes; then
63321         break
63322 fi
63323 done
63324
63325 fi
63326
63327 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
63328 $as_echo "$ice_cv_have_lstat_decl" >&6; }
63329 if test "$ice_cv_have_lstat_decl" = yes; then
63330
63331 cat >>confdefs.h <<_ACEOF
63332 #define HAVE_LSTAT_DECL 1
63333 _ACEOF
63334
63335 fi
63336 fi
63337
63338
63339 ice_have_malloc=no
63340
63341 for ac_func in malloc
63342 do
63343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63345 $as_echo_n "checking for $ac_func... " >&6; }
63346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63347   $as_echo_n "(cached) " >&6
63348 else
63349   cat >conftest.$ac_ext <<_ACEOF
63350 /* confdefs.h.  */
63351 _ACEOF
63352 cat confdefs.h >>conftest.$ac_ext
63353 cat >>conftest.$ac_ext <<_ACEOF
63354 /* end confdefs.h.  */
63355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63357 #define $ac_func innocuous_$ac_func
63358
63359 /* System header to define __stub macros and hopefully few prototypes,
63360     which can conflict with char $ac_func (); below.
63361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63362     <limits.h> exists even on freestanding compilers.  */
63363
63364 #ifdef __STDC__
63365 # include <limits.h>
63366 #else
63367 # include <assert.h>
63368 #endif
63369
63370 #undef $ac_func
63371
63372 /* Override any GCC internal prototype to avoid an error.
63373    Use char because int might match the return type of a GCC
63374    builtin and then its argument prototype would still apply.  */
63375 #ifdef __cplusplus
63376 extern "C"
63377 #endif
63378 char $ac_func ();
63379 /* The GNU C library defines this for functions which it implements
63380     to always fail with ENOSYS.  Some functions are actually named
63381     something starting with __ and the normal name is an alias.  */
63382 #if defined __stub_$ac_func || defined __stub___$ac_func
63383 choke me
63384 #endif
63385
63386 int
63387 main ()
63388 {
63389 return $ac_func ();
63390   ;
63391   return 0;
63392 }
63393 _ACEOF
63394 rm -f conftest.$ac_objext conftest$ac_exeext
63395 if { (ac_try="$ac_link"
63396 case "(($ac_try" in
63397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63398   *) ac_try_echo=$ac_try;;
63399 esac
63400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63401 $as_echo "$ac_try_echo") >&5
63402   (eval "$ac_link") 2>conftest.er1
63403   ac_status=$?
63404   grep -v '^ *+' conftest.er1 >conftest.err
63405   rm -f conftest.er1
63406   cat conftest.err >&5
63407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63408   (exit $ac_status); } && {
63409          test -z "$ac_c_werror_flag" ||
63410          test ! -s conftest.err
63411        } && test -s conftest$ac_exeext && {
63412          test "$cross_compiling" = yes ||
63413          $as_test_x conftest$ac_exeext
63414        }; then
63415   eval "$as_ac_var=yes"
63416 else
63417   $as_echo "$as_me: failed program was:" >&5
63418 sed 's/^/| /' conftest.$ac_ext >&5
63419
63420         eval "$as_ac_var=no"
63421 fi
63422
63423 rm -rf conftest.dSYM
63424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63425       conftest$ac_exeext conftest.$ac_ext
63426 fi
63427 ac_res=`eval 'as_val=${'$as_ac_var'}
63428                  $as_echo "$as_val"'`
63429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63430 $as_echo "$ac_res" >&6; }
63431 as_val=`eval 'as_val=${'$as_ac_var'}
63432                  $as_echo "$as_val"'`
63433    if test "x$as_val" = x""yes; then
63434   cat >>confdefs.h <<_ACEOF
63435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63436 _ACEOF
63437  ice_have_malloc=yes
63438 fi
63439 done
63440
63441 if test "${ice_have_malloc}" = yes; then
63442 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
63443 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
63444 if test "${ice_cv_have_malloc_decl+set}" = set; then
63445   $as_echo_n "(cached) " >&6
63446 else
63447
63448 ice_cv_have_malloc_decl=no
63449 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63450 ice_re_word='(^|[^a-zA-Z0-9_])'
63451 for header in stdlib.h; do
63452 # Check for ordinary declaration
63453 cat >conftest.$ac_ext <<_ACEOF
63454 /* confdefs.h.  */
63455 _ACEOF
63456 cat confdefs.h >>conftest.$ac_ext
63457 cat >>conftest.$ac_ext <<_ACEOF
63458 /* end confdefs.h.  */
63459 #include <$header>
63460
63461 _ACEOF
63462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63463   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
63464   ice_cv_have_malloc_decl=yes
63465 fi
63466 rm -f conftest*
63467
63468 if test "$ice_cv_have_malloc_decl" = yes; then
63469         break
63470 fi
63471 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63472 cat >conftest.$ac_ext <<_ACEOF
63473 /* confdefs.h.  */
63474 _ACEOF
63475 cat confdefs.h >>conftest.$ac_ext
63476 cat >>conftest.$ac_ext <<_ACEOF
63477 /* end confdefs.h.  */
63478 #include <$header>
63479
63480 _ACEOF
63481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63482   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63483   ice_cv_have_malloc_decl=yes
63484 fi
63485 rm -f conftest*
63486
63487 if test "$ice_cv_have_malloc_decl" = yes; then
63488         break
63489 fi
63490 done
63491
63492 fi
63493
63494 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
63495 $as_echo "$ice_cv_have_malloc_decl" >&6; }
63496 if test "$ice_cv_have_malloc_decl" = yes; then
63497
63498 cat >>confdefs.h <<_ACEOF
63499 #define HAVE_MALLOC_DECL 1
63500 _ACEOF
63501
63502 fi
63503 fi
63504
63505
63506 ice_have_memmove=no
63507
63508 for ac_func in memmove
63509 do
63510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63512 $as_echo_n "checking for $ac_func... " >&6; }
63513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63514   $as_echo_n "(cached) " >&6
63515 else
63516   cat >conftest.$ac_ext <<_ACEOF
63517 /* confdefs.h.  */
63518 _ACEOF
63519 cat confdefs.h >>conftest.$ac_ext
63520 cat >>conftest.$ac_ext <<_ACEOF
63521 /* end confdefs.h.  */
63522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63524 #define $ac_func innocuous_$ac_func
63525
63526 /* System header to define __stub macros and hopefully few prototypes,
63527     which can conflict with char $ac_func (); below.
63528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63529     <limits.h> exists even on freestanding compilers.  */
63530
63531 #ifdef __STDC__
63532 # include <limits.h>
63533 #else
63534 # include <assert.h>
63535 #endif
63536
63537 #undef $ac_func
63538
63539 /* Override any GCC internal prototype to avoid an error.
63540    Use char because int might match the return type of a GCC
63541    builtin and then its argument prototype would still apply.  */
63542 #ifdef __cplusplus
63543 extern "C"
63544 #endif
63545 char $ac_func ();
63546 /* The GNU C library defines this for functions which it implements
63547     to always fail with ENOSYS.  Some functions are actually named
63548     something starting with __ and the normal name is an alias.  */
63549 #if defined __stub_$ac_func || defined __stub___$ac_func
63550 choke me
63551 #endif
63552
63553 int
63554 main ()
63555 {
63556 return $ac_func ();
63557   ;
63558   return 0;
63559 }
63560 _ACEOF
63561 rm -f conftest.$ac_objext conftest$ac_exeext
63562 if { (ac_try="$ac_link"
63563 case "(($ac_try" in
63564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63565   *) ac_try_echo=$ac_try;;
63566 esac
63567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63568 $as_echo "$ac_try_echo") >&5
63569   (eval "$ac_link") 2>conftest.er1
63570   ac_status=$?
63571   grep -v '^ *+' conftest.er1 >conftest.err
63572   rm -f conftest.er1
63573   cat conftest.err >&5
63574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63575   (exit $ac_status); } && {
63576          test -z "$ac_c_werror_flag" ||
63577          test ! -s conftest.err
63578        } && test -s conftest$ac_exeext && {
63579          test "$cross_compiling" = yes ||
63580          $as_test_x conftest$ac_exeext
63581        }; then
63582   eval "$as_ac_var=yes"
63583 else
63584   $as_echo "$as_me: failed program was:" >&5
63585 sed 's/^/| /' conftest.$ac_ext >&5
63586
63587         eval "$as_ac_var=no"
63588 fi
63589
63590 rm -rf conftest.dSYM
63591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63592       conftest$ac_exeext conftest.$ac_ext
63593 fi
63594 ac_res=`eval 'as_val=${'$as_ac_var'}
63595                  $as_echo "$as_val"'`
63596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63597 $as_echo "$ac_res" >&6; }
63598 as_val=`eval 'as_val=${'$as_ac_var'}
63599                  $as_echo "$as_val"'`
63600    if test "x$as_val" = x""yes; then
63601   cat >>confdefs.h <<_ACEOF
63602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63603 _ACEOF
63604  ice_have_memmove=yes
63605 fi
63606 done
63607
63608 if test "${ice_have_memmove}" = yes; then
63609 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
63610 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
63611 if test "${ice_cv_have_memmove_decl+set}" = set; then
63612   $as_echo_n "(cached) " >&6
63613 else
63614
63615 ice_cv_have_memmove_decl=no
63616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63617 ice_re_word='(^|[^a-zA-Z0-9_])'
63618 for header in string.h strings.h; do
63619 # Check for ordinary declaration
63620 cat >conftest.$ac_ext <<_ACEOF
63621 /* confdefs.h.  */
63622 _ACEOF
63623 cat confdefs.h >>conftest.$ac_ext
63624 cat >>conftest.$ac_ext <<_ACEOF
63625 /* end confdefs.h.  */
63626 #include <$header>
63627
63628 _ACEOF
63629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63630   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
63631   ice_cv_have_memmove_decl=yes
63632 fi
63633 rm -f conftest*
63634
63635 if test "$ice_cv_have_memmove_decl" = yes; then
63636         break
63637 fi
63638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63639 cat >conftest.$ac_ext <<_ACEOF
63640 /* confdefs.h.  */
63641 _ACEOF
63642 cat confdefs.h >>conftest.$ac_ext
63643 cat >>conftest.$ac_ext <<_ACEOF
63644 /* end confdefs.h.  */
63645 #include <$header>
63646
63647 _ACEOF
63648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63649   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63650   ice_cv_have_memmove_decl=yes
63651 fi
63652 rm -f conftest*
63653
63654 if test "$ice_cv_have_memmove_decl" = yes; then
63655         break
63656 fi
63657 done
63658
63659 fi
63660
63661 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
63662 $as_echo "$ice_cv_have_memmove_decl" >&6; }
63663 if test "$ice_cv_have_memmove_decl" = yes; then
63664
63665 cat >>confdefs.h <<_ACEOF
63666 #define HAVE_MEMMOVE_DECL 1
63667 _ACEOF
63668
63669 fi
63670 fi
63671
63672
63673 ice_have_memset=no
63674
63675 for ac_func in memset
63676 do
63677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63679 $as_echo_n "checking for $ac_func... " >&6; }
63680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63681   $as_echo_n "(cached) " >&6
63682 else
63683   cat >conftest.$ac_ext <<_ACEOF
63684 /* confdefs.h.  */
63685 _ACEOF
63686 cat confdefs.h >>conftest.$ac_ext
63687 cat >>conftest.$ac_ext <<_ACEOF
63688 /* end confdefs.h.  */
63689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63691 #define $ac_func innocuous_$ac_func
63692
63693 /* System header to define __stub macros and hopefully few prototypes,
63694     which can conflict with char $ac_func (); below.
63695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63696     <limits.h> exists even on freestanding compilers.  */
63697
63698 #ifdef __STDC__
63699 # include <limits.h>
63700 #else
63701 # include <assert.h>
63702 #endif
63703
63704 #undef $ac_func
63705
63706 /* Override any GCC internal prototype to avoid an error.
63707    Use char because int might match the return type of a GCC
63708    builtin and then its argument prototype would still apply.  */
63709 #ifdef __cplusplus
63710 extern "C"
63711 #endif
63712 char $ac_func ();
63713 /* The GNU C library defines this for functions which it implements
63714     to always fail with ENOSYS.  Some functions are actually named
63715     something starting with __ and the normal name is an alias.  */
63716 #if defined __stub_$ac_func || defined __stub___$ac_func
63717 choke me
63718 #endif
63719
63720 int
63721 main ()
63722 {
63723 return $ac_func ();
63724   ;
63725   return 0;
63726 }
63727 _ACEOF
63728 rm -f conftest.$ac_objext conftest$ac_exeext
63729 if { (ac_try="$ac_link"
63730 case "(($ac_try" in
63731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63732   *) ac_try_echo=$ac_try;;
63733 esac
63734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63735 $as_echo "$ac_try_echo") >&5
63736   (eval "$ac_link") 2>conftest.er1
63737   ac_status=$?
63738   grep -v '^ *+' conftest.er1 >conftest.err
63739   rm -f conftest.er1
63740   cat conftest.err >&5
63741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63742   (exit $ac_status); } && {
63743          test -z "$ac_c_werror_flag" ||
63744          test ! -s conftest.err
63745        } && test -s conftest$ac_exeext && {
63746          test "$cross_compiling" = yes ||
63747          $as_test_x conftest$ac_exeext
63748        }; then
63749   eval "$as_ac_var=yes"
63750 else
63751   $as_echo "$as_me: failed program was:" >&5
63752 sed 's/^/| /' conftest.$ac_ext >&5
63753
63754         eval "$as_ac_var=no"
63755 fi
63756
63757 rm -rf conftest.dSYM
63758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63759       conftest$ac_exeext conftest.$ac_ext
63760 fi
63761 ac_res=`eval 'as_val=${'$as_ac_var'}
63762                  $as_echo "$as_val"'`
63763                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63764 $as_echo "$ac_res" >&6; }
63765 as_val=`eval 'as_val=${'$as_ac_var'}
63766                  $as_echo "$as_val"'`
63767    if test "x$as_val" = x""yes; then
63768   cat >>confdefs.h <<_ACEOF
63769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63770 _ACEOF
63771  ice_have_memset=yes
63772 fi
63773 done
63774
63775 if test "${ice_have_memset}" = yes; then
63776 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
63777 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
63778 if test "${ice_cv_have_memset_decl+set}" = set; then
63779   $as_echo_n "(cached) " >&6
63780 else
63781
63782 ice_cv_have_memset_decl=no
63783 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63784 ice_re_word='(^|[^a-zA-Z0-9_])'
63785 for header in string.h strings.h; do
63786 # Check for ordinary declaration
63787 cat >conftest.$ac_ext <<_ACEOF
63788 /* confdefs.h.  */
63789 _ACEOF
63790 cat confdefs.h >>conftest.$ac_ext
63791 cat >>conftest.$ac_ext <<_ACEOF
63792 /* end confdefs.h.  */
63793 #include <$header>
63794
63795 _ACEOF
63796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63797   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
63798   ice_cv_have_memset_decl=yes
63799 fi
63800 rm -f conftest*
63801
63802 if test "$ice_cv_have_memset_decl" = yes; then
63803         break
63804 fi
63805 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63806 cat >conftest.$ac_ext <<_ACEOF
63807 /* confdefs.h.  */
63808 _ACEOF
63809 cat confdefs.h >>conftest.$ac_ext
63810 cat >>conftest.$ac_ext <<_ACEOF
63811 /* end confdefs.h.  */
63812 #include <$header>
63813
63814 _ACEOF
63815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63816   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63817   ice_cv_have_memset_decl=yes
63818 fi
63819 rm -f conftest*
63820
63821 if test "$ice_cv_have_memset_decl" = yes; then
63822         break
63823 fi
63824 done
63825
63826 fi
63827
63828 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
63829 $as_echo "$ice_cv_have_memset_decl" >&6; }
63830 if test "$ice_cv_have_memset_decl" = yes; then
63831
63832 cat >>confdefs.h <<_ACEOF
63833 #define HAVE_MEMSET_DECL 1
63834 _ACEOF
63835
63836 fi
63837 fi
63838
63839
63840 ice_have_mkstemp=no
63841
63842 for ac_func in mkstemp
63843 do
63844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63846 $as_echo_n "checking for $ac_func... " >&6; }
63847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63848   $as_echo_n "(cached) " >&6
63849 else
63850   cat >conftest.$ac_ext <<_ACEOF
63851 /* confdefs.h.  */
63852 _ACEOF
63853 cat confdefs.h >>conftest.$ac_ext
63854 cat >>conftest.$ac_ext <<_ACEOF
63855 /* end confdefs.h.  */
63856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63858 #define $ac_func innocuous_$ac_func
63859
63860 /* System header to define __stub macros and hopefully few prototypes,
63861     which can conflict with char $ac_func (); below.
63862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63863     <limits.h> exists even on freestanding compilers.  */
63864
63865 #ifdef __STDC__
63866 # include <limits.h>
63867 #else
63868 # include <assert.h>
63869 #endif
63870
63871 #undef $ac_func
63872
63873 /* Override any GCC internal prototype to avoid an error.
63874    Use char because int might match the return type of a GCC
63875    builtin and then its argument prototype would still apply.  */
63876 #ifdef __cplusplus
63877 extern "C"
63878 #endif
63879 char $ac_func ();
63880 /* The GNU C library defines this for functions which it implements
63881     to always fail with ENOSYS.  Some functions are actually named
63882     something starting with __ and the normal name is an alias.  */
63883 #if defined __stub_$ac_func || defined __stub___$ac_func
63884 choke me
63885 #endif
63886
63887 int
63888 main ()
63889 {
63890 return $ac_func ();
63891   ;
63892   return 0;
63893 }
63894 _ACEOF
63895 rm -f conftest.$ac_objext conftest$ac_exeext
63896 if { (ac_try="$ac_link"
63897 case "(($ac_try" in
63898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63899   *) ac_try_echo=$ac_try;;
63900 esac
63901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63902 $as_echo "$ac_try_echo") >&5
63903   (eval "$ac_link") 2>conftest.er1
63904   ac_status=$?
63905   grep -v '^ *+' conftest.er1 >conftest.err
63906   rm -f conftest.er1
63907   cat conftest.err >&5
63908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63909   (exit $ac_status); } && {
63910          test -z "$ac_c_werror_flag" ||
63911          test ! -s conftest.err
63912        } && test -s conftest$ac_exeext && {
63913          test "$cross_compiling" = yes ||
63914          $as_test_x conftest$ac_exeext
63915        }; then
63916   eval "$as_ac_var=yes"
63917 else
63918   $as_echo "$as_me: failed program was:" >&5
63919 sed 's/^/| /' conftest.$ac_ext >&5
63920
63921         eval "$as_ac_var=no"
63922 fi
63923
63924 rm -rf conftest.dSYM
63925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63926       conftest$ac_exeext conftest.$ac_ext
63927 fi
63928 ac_res=`eval 'as_val=${'$as_ac_var'}
63929                  $as_echo "$as_val"'`
63930                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63931 $as_echo "$ac_res" >&6; }
63932 as_val=`eval 'as_val=${'$as_ac_var'}
63933                  $as_echo "$as_val"'`
63934    if test "x$as_val" = x""yes; then
63935   cat >>confdefs.h <<_ACEOF
63936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63937 _ACEOF
63938  ice_have_mkstemp=yes
63939 fi
63940 done
63941
63942 if test "${ice_have_mkstemp}" = yes; then
63943 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
63944 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
63945 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
63946   $as_echo_n "(cached) " >&6
63947 else
63948
63949 ice_cv_have_mkstemp_decl=no
63950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63951 ice_re_word='(^|[^a-zA-Z0-9_])'
63952 for header in stdlib.h; do
63953 # Check for ordinary declaration
63954 cat >conftest.$ac_ext <<_ACEOF
63955 /* confdefs.h.  */
63956 _ACEOF
63957 cat confdefs.h >>conftest.$ac_ext
63958 cat >>conftest.$ac_ext <<_ACEOF
63959 /* end confdefs.h.  */
63960 #include <$header>
63961
63962 _ACEOF
63963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63964   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
63965   ice_cv_have_mkstemp_decl=yes
63966 fi
63967 rm -f conftest*
63968
63969 if test "$ice_cv_have_mkstemp_decl" = yes; then
63970         break
63971 fi
63972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63973 cat >conftest.$ac_ext <<_ACEOF
63974 /* confdefs.h.  */
63975 _ACEOF
63976 cat confdefs.h >>conftest.$ac_ext
63977 cat >>conftest.$ac_ext <<_ACEOF
63978 /* end confdefs.h.  */
63979 #include <$header>
63980
63981 _ACEOF
63982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63983   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63984   ice_cv_have_mkstemp_decl=yes
63985 fi
63986 rm -f conftest*
63987
63988 if test "$ice_cv_have_mkstemp_decl" = yes; then
63989         break
63990 fi
63991 done
63992
63993 fi
63994
63995 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
63996 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
63997 if test "$ice_cv_have_mkstemp_decl" = yes; then
63998
63999 cat >>confdefs.h <<_ACEOF
64000 #define HAVE_MKSTEMP_DECL 1
64001 _ACEOF
64002
64003 fi
64004 fi
64005
64006
64007 ice_have_mktemp=no
64008
64009 for ac_func in mktemp
64010 do
64011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64013 $as_echo_n "checking for $ac_func... " >&6; }
64014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64015   $as_echo_n "(cached) " >&6
64016 else
64017   cat >conftest.$ac_ext <<_ACEOF
64018 /* confdefs.h.  */
64019 _ACEOF
64020 cat confdefs.h >>conftest.$ac_ext
64021 cat >>conftest.$ac_ext <<_ACEOF
64022 /* end confdefs.h.  */
64023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64025 #define $ac_func innocuous_$ac_func
64026
64027 /* System header to define __stub macros and hopefully few prototypes,
64028     which can conflict with char $ac_func (); below.
64029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64030     <limits.h> exists even on freestanding compilers.  */
64031
64032 #ifdef __STDC__
64033 # include <limits.h>
64034 #else
64035 # include <assert.h>
64036 #endif
64037
64038 #undef $ac_func
64039
64040 /* Override any GCC internal prototype to avoid an error.
64041    Use char because int might match the return type of a GCC
64042    builtin and then its argument prototype would still apply.  */
64043 #ifdef __cplusplus
64044 extern "C"
64045 #endif
64046 char $ac_func ();
64047 /* The GNU C library defines this for functions which it implements
64048     to always fail with ENOSYS.  Some functions are actually named
64049     something starting with __ and the normal name is an alias.  */
64050 #if defined __stub_$ac_func || defined __stub___$ac_func
64051 choke me
64052 #endif
64053
64054 int
64055 main ()
64056 {
64057 return $ac_func ();
64058   ;
64059   return 0;
64060 }
64061 _ACEOF
64062 rm -f conftest.$ac_objext conftest$ac_exeext
64063 if { (ac_try="$ac_link"
64064 case "(($ac_try" in
64065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64066   *) ac_try_echo=$ac_try;;
64067 esac
64068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64069 $as_echo "$ac_try_echo") >&5
64070   (eval "$ac_link") 2>conftest.er1
64071   ac_status=$?
64072   grep -v '^ *+' conftest.er1 >conftest.err
64073   rm -f conftest.er1
64074   cat conftest.err >&5
64075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64076   (exit $ac_status); } && {
64077          test -z "$ac_c_werror_flag" ||
64078          test ! -s conftest.err
64079        } && test -s conftest$ac_exeext && {
64080          test "$cross_compiling" = yes ||
64081          $as_test_x conftest$ac_exeext
64082        }; then
64083   eval "$as_ac_var=yes"
64084 else
64085   $as_echo "$as_me: failed program was:" >&5
64086 sed 's/^/| /' conftest.$ac_ext >&5
64087
64088         eval "$as_ac_var=no"
64089 fi
64090
64091 rm -rf conftest.dSYM
64092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64093       conftest$ac_exeext conftest.$ac_ext
64094 fi
64095 ac_res=`eval 'as_val=${'$as_ac_var'}
64096                  $as_echo "$as_val"'`
64097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64098 $as_echo "$ac_res" >&6; }
64099 as_val=`eval 'as_val=${'$as_ac_var'}
64100                  $as_echo "$as_val"'`
64101    if test "x$as_val" = x""yes; then
64102   cat >>confdefs.h <<_ACEOF
64103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64104 _ACEOF
64105  ice_have_mktemp=yes
64106 fi
64107 done
64108
64109 if test "${ice_have_mktemp}" = yes; then
64110 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
64111 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
64112 if test "${ice_cv_have_mktemp_decl+set}" = set; then
64113   $as_echo_n "(cached) " >&6
64114 else
64115
64116 ice_cv_have_mktemp_decl=no
64117 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64118 ice_re_word='(^|[^a-zA-Z0-9_])'
64119 for header in stdlib.h; do
64120 # Check for ordinary declaration
64121 cat >conftest.$ac_ext <<_ACEOF
64122 /* confdefs.h.  */
64123 _ACEOF
64124 cat confdefs.h >>conftest.$ac_ext
64125 cat >>conftest.$ac_ext <<_ACEOF
64126 /* end confdefs.h.  */
64127 #include <$header>
64128
64129 _ACEOF
64130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64131   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
64132   ice_cv_have_mktemp_decl=yes
64133 fi
64134 rm -f conftest*
64135
64136 if test "$ice_cv_have_mktemp_decl" = yes; then
64137         break
64138 fi
64139 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64140 cat >conftest.$ac_ext <<_ACEOF
64141 /* confdefs.h.  */
64142 _ACEOF
64143 cat confdefs.h >>conftest.$ac_ext
64144 cat >>conftest.$ac_ext <<_ACEOF
64145 /* end confdefs.h.  */
64146 #include <$header>
64147
64148 _ACEOF
64149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64150   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64151   ice_cv_have_mktemp_decl=yes
64152 fi
64153 rm -f conftest*
64154
64155 if test "$ice_cv_have_mktemp_decl" = yes; then
64156         break
64157 fi
64158 done
64159
64160 fi
64161
64162 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
64163 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
64164 if test "$ice_cv_have_mktemp_decl" = yes; then
64165
64166 cat >>confdefs.h <<_ACEOF
64167 #define HAVE_MKTEMP_DECL 1
64168 _ACEOF
64169
64170 fi
64171 fi
64172
64173
64174 ice_have_mktime=no
64175
64176 for ac_func in mktime
64177 do
64178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64179 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64180 $as_echo_n "checking for $ac_func... " >&6; }
64181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64182   $as_echo_n "(cached) " >&6
64183 else
64184   cat >conftest.$ac_ext <<_ACEOF
64185 /* confdefs.h.  */
64186 _ACEOF
64187 cat confdefs.h >>conftest.$ac_ext
64188 cat >>conftest.$ac_ext <<_ACEOF
64189 /* end confdefs.h.  */
64190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64192 #define $ac_func innocuous_$ac_func
64193
64194 /* System header to define __stub macros and hopefully few prototypes,
64195     which can conflict with char $ac_func (); below.
64196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64197     <limits.h> exists even on freestanding compilers.  */
64198
64199 #ifdef __STDC__
64200 # include <limits.h>
64201 #else
64202 # include <assert.h>
64203 #endif
64204
64205 #undef $ac_func
64206
64207 /* Override any GCC internal prototype to avoid an error.
64208    Use char because int might match the return type of a GCC
64209    builtin and then its argument prototype would still apply.  */
64210 #ifdef __cplusplus
64211 extern "C"
64212 #endif
64213 char $ac_func ();
64214 /* The GNU C library defines this for functions which it implements
64215     to always fail with ENOSYS.  Some functions are actually named
64216     something starting with __ and the normal name is an alias.  */
64217 #if defined __stub_$ac_func || defined __stub___$ac_func
64218 choke me
64219 #endif
64220
64221 int
64222 main ()
64223 {
64224 return $ac_func ();
64225   ;
64226   return 0;
64227 }
64228 _ACEOF
64229 rm -f conftest.$ac_objext conftest$ac_exeext
64230 if { (ac_try="$ac_link"
64231 case "(($ac_try" in
64232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64233   *) ac_try_echo=$ac_try;;
64234 esac
64235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64236 $as_echo "$ac_try_echo") >&5
64237   (eval "$ac_link") 2>conftest.er1
64238   ac_status=$?
64239   grep -v '^ *+' conftest.er1 >conftest.err
64240   rm -f conftest.er1
64241   cat conftest.err >&5
64242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64243   (exit $ac_status); } && {
64244          test -z "$ac_c_werror_flag" ||
64245          test ! -s conftest.err
64246        } && test -s conftest$ac_exeext && {
64247          test "$cross_compiling" = yes ||
64248          $as_test_x conftest$ac_exeext
64249        }; then
64250   eval "$as_ac_var=yes"
64251 else
64252   $as_echo "$as_me: failed program was:" >&5
64253 sed 's/^/| /' conftest.$ac_ext >&5
64254
64255         eval "$as_ac_var=no"
64256 fi
64257
64258 rm -rf conftest.dSYM
64259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64260       conftest$ac_exeext conftest.$ac_ext
64261 fi
64262 ac_res=`eval 'as_val=${'$as_ac_var'}
64263                  $as_echo "$as_val"'`
64264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64265 $as_echo "$ac_res" >&6; }
64266 as_val=`eval 'as_val=${'$as_ac_var'}
64267                  $as_echo "$as_val"'`
64268    if test "x$as_val" = x""yes; then
64269   cat >>confdefs.h <<_ACEOF
64270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64271 _ACEOF
64272  ice_have_mktime=yes
64273 fi
64274 done
64275
64276 if test "${ice_have_mktime}" = yes; then
64277 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
64278 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
64279 if test "${ice_cv_have_mktime_decl+set}" = set; then
64280   $as_echo_n "(cached) " >&6
64281 else
64282
64283 ice_cv_have_mktime_decl=no
64284 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64285 ice_re_word='(^|[^a-zA-Z0-9_])'
64286 for header in time.h sys/time.h; do
64287 # Check for ordinary declaration
64288 cat >conftest.$ac_ext <<_ACEOF
64289 /* confdefs.h.  */
64290 _ACEOF
64291 cat confdefs.h >>conftest.$ac_ext
64292 cat >>conftest.$ac_ext <<_ACEOF
64293 /* end confdefs.h.  */
64294 #include <$header>
64295
64296 _ACEOF
64297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64298   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
64299   ice_cv_have_mktime_decl=yes
64300 fi
64301 rm -f conftest*
64302
64303 if test "$ice_cv_have_mktime_decl" = yes; then
64304         break
64305 fi
64306 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64307 cat >conftest.$ac_ext <<_ACEOF
64308 /* confdefs.h.  */
64309 _ACEOF
64310 cat confdefs.h >>conftest.$ac_ext
64311 cat >>conftest.$ac_ext <<_ACEOF
64312 /* end confdefs.h.  */
64313 #include <$header>
64314
64315 _ACEOF
64316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64317   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64318   ice_cv_have_mktime_decl=yes
64319 fi
64320 rm -f conftest*
64321
64322 if test "$ice_cv_have_mktime_decl" = yes; then
64323         break
64324 fi
64325 done
64326
64327 fi
64328
64329 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
64330 $as_echo "$ice_cv_have_mktime_decl" >&6; }
64331 if test "$ice_cv_have_mktime_decl" = yes; then
64332
64333 cat >>confdefs.h <<_ACEOF
64334 #define HAVE_MKTIME_DECL 1
64335 _ACEOF
64336
64337 fi
64338 fi
64339
64340
64341 for ac_func in on_exit
64342 do
64343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64345 $as_echo_n "checking for $ac_func... " >&6; }
64346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64347   $as_echo_n "(cached) " >&6
64348 else
64349   cat >conftest.$ac_ext <<_ACEOF
64350 /* confdefs.h.  */
64351 _ACEOF
64352 cat confdefs.h >>conftest.$ac_ext
64353 cat >>conftest.$ac_ext <<_ACEOF
64354 /* end confdefs.h.  */
64355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64357 #define $ac_func innocuous_$ac_func
64358
64359 /* System header to define __stub macros and hopefully few prototypes,
64360     which can conflict with char $ac_func (); below.
64361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64362     <limits.h> exists even on freestanding compilers.  */
64363
64364 #ifdef __STDC__
64365 # include <limits.h>
64366 #else
64367 # include <assert.h>
64368 #endif
64369
64370 #undef $ac_func
64371
64372 /* Override any GCC internal prototype to avoid an error.
64373    Use char because int might match the return type of a GCC
64374    builtin and then its argument prototype would still apply.  */
64375 #ifdef __cplusplus
64376 extern "C"
64377 #endif
64378 char $ac_func ();
64379 /* The GNU C library defines this for functions which it implements
64380     to always fail with ENOSYS.  Some functions are actually named
64381     something starting with __ and the normal name is an alias.  */
64382 #if defined __stub_$ac_func || defined __stub___$ac_func
64383 choke me
64384 #endif
64385
64386 int
64387 main ()
64388 {
64389 return $ac_func ();
64390   ;
64391   return 0;
64392 }
64393 _ACEOF
64394 rm -f conftest.$ac_objext conftest$ac_exeext
64395 if { (ac_try="$ac_link"
64396 case "(($ac_try" in
64397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64398   *) ac_try_echo=$ac_try;;
64399 esac
64400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64401 $as_echo "$ac_try_echo") >&5
64402   (eval "$ac_link") 2>conftest.er1
64403   ac_status=$?
64404   grep -v '^ *+' conftest.er1 >conftest.err
64405   rm -f conftest.er1
64406   cat conftest.err >&5
64407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64408   (exit $ac_status); } && {
64409          test -z "$ac_c_werror_flag" ||
64410          test ! -s conftest.err
64411        } && test -s conftest$ac_exeext && {
64412          test "$cross_compiling" = yes ||
64413          $as_test_x conftest$ac_exeext
64414        }; then
64415   eval "$as_ac_var=yes"
64416 else
64417   $as_echo "$as_me: failed program was:" >&5
64418 sed 's/^/| /' conftest.$ac_ext >&5
64419
64420         eval "$as_ac_var=no"
64421 fi
64422
64423 rm -rf conftest.dSYM
64424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64425       conftest$ac_exeext conftest.$ac_ext
64426 fi
64427 ac_res=`eval 'as_val=${'$as_ac_var'}
64428                  $as_echo "$as_val"'`
64429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64430 $as_echo "$ac_res" >&6; }
64431 as_val=`eval 'as_val=${'$as_ac_var'}
64432                  $as_echo "$as_val"'`
64433    if test "x$as_val" = x""yes; then
64434   cat >>confdefs.h <<_ACEOF
64435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64436 _ACEOF
64437
64438 fi
64439 done
64440
64441
64442 ice_have_openlog=no
64443
64444 for ac_func in openlog
64445 do
64446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64447 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64448 $as_echo_n "checking for $ac_func... " >&6; }
64449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64450   $as_echo_n "(cached) " >&6
64451 else
64452   cat >conftest.$ac_ext <<_ACEOF
64453 /* confdefs.h.  */
64454 _ACEOF
64455 cat confdefs.h >>conftest.$ac_ext
64456 cat >>conftest.$ac_ext <<_ACEOF
64457 /* end confdefs.h.  */
64458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64460 #define $ac_func innocuous_$ac_func
64461
64462 /* System header to define __stub macros and hopefully few prototypes,
64463     which can conflict with char $ac_func (); below.
64464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64465     <limits.h> exists even on freestanding compilers.  */
64466
64467 #ifdef __STDC__
64468 # include <limits.h>
64469 #else
64470 # include <assert.h>
64471 #endif
64472
64473 #undef $ac_func
64474
64475 /* Override any GCC internal prototype to avoid an error.
64476    Use char because int might match the return type of a GCC
64477    builtin and then its argument prototype would still apply.  */
64478 #ifdef __cplusplus
64479 extern "C"
64480 #endif
64481 char $ac_func ();
64482 /* The GNU C library defines this for functions which it implements
64483     to always fail with ENOSYS.  Some functions are actually named
64484     something starting with __ and the normal name is an alias.  */
64485 #if defined __stub_$ac_func || defined __stub___$ac_func
64486 choke me
64487 #endif
64488
64489 int
64490 main ()
64491 {
64492 return $ac_func ();
64493   ;
64494   return 0;
64495 }
64496 _ACEOF
64497 rm -f conftest.$ac_objext conftest$ac_exeext
64498 if { (ac_try="$ac_link"
64499 case "(($ac_try" in
64500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64501   *) ac_try_echo=$ac_try;;
64502 esac
64503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64504 $as_echo "$ac_try_echo") >&5
64505   (eval "$ac_link") 2>conftest.er1
64506   ac_status=$?
64507   grep -v '^ *+' conftest.er1 >conftest.err
64508   rm -f conftest.er1
64509   cat conftest.err >&5
64510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64511   (exit $ac_status); } && {
64512          test -z "$ac_c_werror_flag" ||
64513          test ! -s conftest.err
64514        } && test -s conftest$ac_exeext && {
64515          test "$cross_compiling" = yes ||
64516          $as_test_x conftest$ac_exeext
64517        }; then
64518   eval "$as_ac_var=yes"
64519 else
64520   $as_echo "$as_me: failed program was:" >&5
64521 sed 's/^/| /' conftest.$ac_ext >&5
64522
64523         eval "$as_ac_var=no"
64524 fi
64525
64526 rm -rf conftest.dSYM
64527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64528       conftest$ac_exeext conftest.$ac_ext
64529 fi
64530 ac_res=`eval 'as_val=${'$as_ac_var'}
64531                  $as_echo "$as_val"'`
64532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64533 $as_echo "$ac_res" >&6; }
64534 as_val=`eval 'as_val=${'$as_ac_var'}
64535                  $as_echo "$as_val"'`
64536    if test "x$as_val" = x""yes; then
64537   cat >>confdefs.h <<_ACEOF
64538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64539 _ACEOF
64540  ice_have_openlog=yes
64541 fi
64542 done
64543
64544 if test "${ice_have_openlog}" = yes; then
64545 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
64546 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
64547 if test "${ice_cv_have_openlog_decl+set}" = set; then
64548   $as_echo_n "(cached) " >&6
64549 else
64550
64551 ice_cv_have_openlog_decl=no
64552 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64553 ice_re_word='(^|[^a-zA-Z0-9_])'
64554 for header in syslog.h; do
64555 # Check for ordinary declaration
64556 cat >conftest.$ac_ext <<_ACEOF
64557 /* confdefs.h.  */
64558 _ACEOF
64559 cat confdefs.h >>conftest.$ac_ext
64560 cat >>conftest.$ac_ext <<_ACEOF
64561 /* end confdefs.h.  */
64562 #include <$header>
64563
64564 _ACEOF
64565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64566   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
64567   ice_cv_have_openlog_decl=yes
64568 fi
64569 rm -f conftest*
64570
64571 if test "$ice_cv_have_openlog_decl" = yes; then
64572         break
64573 fi
64574 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64575 cat >conftest.$ac_ext <<_ACEOF
64576 /* confdefs.h.  */
64577 _ACEOF
64578 cat confdefs.h >>conftest.$ac_ext
64579 cat >>conftest.$ac_ext <<_ACEOF
64580 /* end confdefs.h.  */
64581 #include <$header>
64582
64583 _ACEOF
64584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64585   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64586   ice_cv_have_openlog_decl=yes
64587 fi
64588 rm -f conftest*
64589
64590 if test "$ice_cv_have_openlog_decl" = yes; then
64591         break
64592 fi
64593 done
64594
64595 fi
64596
64597 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
64598 $as_echo "$ice_cv_have_openlog_decl" >&6; }
64599 if test "$ice_cv_have_openlog_decl" = yes; then
64600
64601 cat >>confdefs.h <<_ACEOF
64602 #define HAVE_OPENLOG_DECL 1
64603 _ACEOF
64604
64605 fi
64606 fi
64607
64608
64609 ice_have_pclose=no
64610
64611 for ac_func in pclose
64612 do
64613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64614 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64615 $as_echo_n "checking for $ac_func... " >&6; }
64616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64617   $as_echo_n "(cached) " >&6
64618 else
64619   cat >conftest.$ac_ext <<_ACEOF
64620 /* confdefs.h.  */
64621 _ACEOF
64622 cat confdefs.h >>conftest.$ac_ext
64623 cat >>conftest.$ac_ext <<_ACEOF
64624 /* end confdefs.h.  */
64625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64627 #define $ac_func innocuous_$ac_func
64628
64629 /* System header to define __stub macros and hopefully few prototypes,
64630     which can conflict with char $ac_func (); below.
64631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64632     <limits.h> exists even on freestanding compilers.  */
64633
64634 #ifdef __STDC__
64635 # include <limits.h>
64636 #else
64637 # include <assert.h>
64638 #endif
64639
64640 #undef $ac_func
64641
64642 /* Override any GCC internal prototype to avoid an error.
64643    Use char because int might match the return type of a GCC
64644    builtin and then its argument prototype would still apply.  */
64645 #ifdef __cplusplus
64646 extern "C"
64647 #endif
64648 char $ac_func ();
64649 /* The GNU C library defines this for functions which it implements
64650     to always fail with ENOSYS.  Some functions are actually named
64651     something starting with __ and the normal name is an alias.  */
64652 #if defined __stub_$ac_func || defined __stub___$ac_func
64653 choke me
64654 #endif
64655
64656 int
64657 main ()
64658 {
64659 return $ac_func ();
64660   ;
64661   return 0;
64662 }
64663 _ACEOF
64664 rm -f conftest.$ac_objext conftest$ac_exeext
64665 if { (ac_try="$ac_link"
64666 case "(($ac_try" in
64667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64668   *) ac_try_echo=$ac_try;;
64669 esac
64670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64671 $as_echo "$ac_try_echo") >&5
64672   (eval "$ac_link") 2>conftest.er1
64673   ac_status=$?
64674   grep -v '^ *+' conftest.er1 >conftest.err
64675   rm -f conftest.er1
64676   cat conftest.err >&5
64677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64678   (exit $ac_status); } && {
64679          test -z "$ac_c_werror_flag" ||
64680          test ! -s conftest.err
64681        } && test -s conftest$ac_exeext && {
64682          test "$cross_compiling" = yes ||
64683          $as_test_x conftest$ac_exeext
64684        }; then
64685   eval "$as_ac_var=yes"
64686 else
64687   $as_echo "$as_me: failed program was:" >&5
64688 sed 's/^/| /' conftest.$ac_ext >&5
64689
64690         eval "$as_ac_var=no"
64691 fi
64692
64693 rm -rf conftest.dSYM
64694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64695       conftest$ac_exeext conftest.$ac_ext
64696 fi
64697 ac_res=`eval 'as_val=${'$as_ac_var'}
64698                  $as_echo "$as_val"'`
64699                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64700 $as_echo "$ac_res" >&6; }
64701 as_val=`eval 'as_val=${'$as_ac_var'}
64702                  $as_echo "$as_val"'`
64703    if test "x$as_val" = x""yes; then
64704   cat >>confdefs.h <<_ACEOF
64705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64706 _ACEOF
64707  ice_have_pclose=yes
64708 fi
64709 done
64710
64711 if test "${ice_have_pclose}" = yes; then
64712 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
64713 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
64714 if test "${ice_cv_have_pclose_decl+set}" = set; then
64715   $as_echo_n "(cached) " >&6
64716 else
64717
64718 ice_cv_have_pclose_decl=no
64719 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64720 ice_re_word='(^|[^a-zA-Z0-9_])'
64721 for header in stdio.h; do
64722 # Check for ordinary declaration
64723 cat >conftest.$ac_ext <<_ACEOF
64724 /* confdefs.h.  */
64725 _ACEOF
64726 cat confdefs.h >>conftest.$ac_ext
64727 cat >>conftest.$ac_ext <<_ACEOF
64728 /* end confdefs.h.  */
64729 #include <$header>
64730
64731 _ACEOF
64732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64733   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
64734   ice_cv_have_pclose_decl=yes
64735 fi
64736 rm -f conftest*
64737
64738 if test "$ice_cv_have_pclose_decl" = yes; then
64739         break
64740 fi
64741 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64742 cat >conftest.$ac_ext <<_ACEOF
64743 /* confdefs.h.  */
64744 _ACEOF
64745 cat confdefs.h >>conftest.$ac_ext
64746 cat >>conftest.$ac_ext <<_ACEOF
64747 /* end confdefs.h.  */
64748 #include <$header>
64749
64750 _ACEOF
64751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64752   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64753   ice_cv_have_pclose_decl=yes
64754 fi
64755 rm -f conftest*
64756
64757 if test "$ice_cv_have_pclose_decl" = yes; then
64758         break
64759 fi
64760 done
64761
64762 fi
64763
64764 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
64765 $as_echo "$ice_cv_have_pclose_decl" >&6; }
64766 if test "$ice_cv_have_pclose_decl" = yes; then
64767
64768 cat >>confdefs.h <<_ACEOF
64769 #define HAVE_PCLOSE_DECL 1
64770 _ACEOF
64771
64772 fi
64773 fi
64774
64775
64776 ice_have_perror=no
64777
64778 for ac_func in perror
64779 do
64780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64781 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64782 $as_echo_n "checking for $ac_func... " >&6; }
64783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64784   $as_echo_n "(cached) " >&6
64785 else
64786   cat >conftest.$ac_ext <<_ACEOF
64787 /* confdefs.h.  */
64788 _ACEOF
64789 cat confdefs.h >>conftest.$ac_ext
64790 cat >>conftest.$ac_ext <<_ACEOF
64791 /* end confdefs.h.  */
64792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64794 #define $ac_func innocuous_$ac_func
64795
64796 /* System header to define __stub macros and hopefully few prototypes,
64797     which can conflict with char $ac_func (); below.
64798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64799     <limits.h> exists even on freestanding compilers.  */
64800
64801 #ifdef __STDC__
64802 # include <limits.h>
64803 #else
64804 # include <assert.h>
64805 #endif
64806
64807 #undef $ac_func
64808
64809 /* Override any GCC internal prototype to avoid an error.
64810    Use char because int might match the return type of a GCC
64811    builtin and then its argument prototype would still apply.  */
64812 #ifdef __cplusplus
64813 extern "C"
64814 #endif
64815 char $ac_func ();
64816 /* The GNU C library defines this for functions which it implements
64817     to always fail with ENOSYS.  Some functions are actually named
64818     something starting with __ and the normal name is an alias.  */
64819 #if defined __stub_$ac_func || defined __stub___$ac_func
64820 choke me
64821 #endif
64822
64823 int
64824 main ()
64825 {
64826 return $ac_func ();
64827   ;
64828   return 0;
64829 }
64830 _ACEOF
64831 rm -f conftest.$ac_objext conftest$ac_exeext
64832 if { (ac_try="$ac_link"
64833 case "(($ac_try" in
64834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64835   *) ac_try_echo=$ac_try;;
64836 esac
64837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64838 $as_echo "$ac_try_echo") >&5
64839   (eval "$ac_link") 2>conftest.er1
64840   ac_status=$?
64841   grep -v '^ *+' conftest.er1 >conftest.err
64842   rm -f conftest.er1
64843   cat conftest.err >&5
64844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64845   (exit $ac_status); } && {
64846          test -z "$ac_c_werror_flag" ||
64847          test ! -s conftest.err
64848        } && test -s conftest$ac_exeext && {
64849          test "$cross_compiling" = yes ||
64850          $as_test_x conftest$ac_exeext
64851        }; then
64852   eval "$as_ac_var=yes"
64853 else
64854   $as_echo "$as_me: failed program was:" >&5
64855 sed 's/^/| /' conftest.$ac_ext >&5
64856
64857         eval "$as_ac_var=no"
64858 fi
64859
64860 rm -rf conftest.dSYM
64861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64862       conftest$ac_exeext conftest.$ac_ext
64863 fi
64864 ac_res=`eval 'as_val=${'$as_ac_var'}
64865                  $as_echo "$as_val"'`
64866                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64867 $as_echo "$ac_res" >&6; }
64868 as_val=`eval 'as_val=${'$as_ac_var'}
64869                  $as_echo "$as_val"'`
64870    if test "x$as_val" = x""yes; then
64871   cat >>confdefs.h <<_ACEOF
64872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64873 _ACEOF
64874  ice_have_perror=yes
64875 fi
64876 done
64877
64878 if test "${ice_have_perror}" = yes; then
64879 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
64880 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
64881 if test "${ice_cv_have_perror_decl+set}" = set; then
64882   $as_echo_n "(cached) " >&6
64883 else
64884
64885 ice_cv_have_perror_decl=no
64886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64887 ice_re_word='(^|[^a-zA-Z0-9_])'
64888 for header in stdio.h; do
64889 # Check for ordinary declaration
64890 cat >conftest.$ac_ext <<_ACEOF
64891 /* confdefs.h.  */
64892 _ACEOF
64893 cat confdefs.h >>conftest.$ac_ext
64894 cat >>conftest.$ac_ext <<_ACEOF
64895 /* end confdefs.h.  */
64896 #include <$header>
64897
64898 _ACEOF
64899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64900   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
64901   ice_cv_have_perror_decl=yes
64902 fi
64903 rm -f conftest*
64904
64905 if test "$ice_cv_have_perror_decl" = yes; then
64906         break
64907 fi
64908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64909 cat >conftest.$ac_ext <<_ACEOF
64910 /* confdefs.h.  */
64911 _ACEOF
64912 cat confdefs.h >>conftest.$ac_ext
64913 cat >>conftest.$ac_ext <<_ACEOF
64914 /* end confdefs.h.  */
64915 #include <$header>
64916
64917 _ACEOF
64918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64919   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64920   ice_cv_have_perror_decl=yes
64921 fi
64922 rm -f conftest*
64923
64924 if test "$ice_cv_have_perror_decl" = yes; then
64925         break
64926 fi
64927 done
64928
64929 fi
64930
64931 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
64932 $as_echo "$ice_cv_have_perror_decl" >&6; }
64933 if test "$ice_cv_have_perror_decl" = yes; then
64934
64935 cat >>confdefs.h <<_ACEOF
64936 #define HAVE_PERROR_DECL 1
64937 _ACEOF
64938
64939 fi
64940 fi
64941
64942
64943 ice_have_printf=no
64944
64945 for ac_func in printf
64946 do
64947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64948 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64949 $as_echo_n "checking for $ac_func... " >&6; }
64950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64951   $as_echo_n "(cached) " >&6
64952 else
64953   cat >conftest.$ac_ext <<_ACEOF
64954 /* confdefs.h.  */
64955 _ACEOF
64956 cat confdefs.h >>conftest.$ac_ext
64957 cat >>conftest.$ac_ext <<_ACEOF
64958 /* end confdefs.h.  */
64959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64961 #define $ac_func innocuous_$ac_func
64962
64963 /* System header to define __stub macros and hopefully few prototypes,
64964     which can conflict with char $ac_func (); below.
64965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64966     <limits.h> exists even on freestanding compilers.  */
64967
64968 #ifdef __STDC__
64969 # include <limits.h>
64970 #else
64971 # include <assert.h>
64972 #endif
64973
64974 #undef $ac_func
64975
64976 /* Override any GCC internal prototype to avoid an error.
64977    Use char because int might match the return type of a GCC
64978    builtin and then its argument prototype would still apply.  */
64979 #ifdef __cplusplus
64980 extern "C"
64981 #endif
64982 char $ac_func ();
64983 /* The GNU C library defines this for functions which it implements
64984     to always fail with ENOSYS.  Some functions are actually named
64985     something starting with __ and the normal name is an alias.  */
64986 #if defined __stub_$ac_func || defined __stub___$ac_func
64987 choke me
64988 #endif
64989
64990 int
64991 main ()
64992 {
64993 return $ac_func ();
64994   ;
64995   return 0;
64996 }
64997 _ACEOF
64998 rm -f conftest.$ac_objext conftest$ac_exeext
64999 if { (ac_try="$ac_link"
65000 case "(($ac_try" in
65001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65002   *) ac_try_echo=$ac_try;;
65003 esac
65004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65005 $as_echo "$ac_try_echo") >&5
65006   (eval "$ac_link") 2>conftest.er1
65007   ac_status=$?
65008   grep -v '^ *+' conftest.er1 >conftest.err
65009   rm -f conftest.er1
65010   cat conftest.err >&5
65011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65012   (exit $ac_status); } && {
65013          test -z "$ac_c_werror_flag" ||
65014          test ! -s conftest.err
65015        } && test -s conftest$ac_exeext && {
65016          test "$cross_compiling" = yes ||
65017          $as_test_x conftest$ac_exeext
65018        }; then
65019   eval "$as_ac_var=yes"
65020 else
65021   $as_echo "$as_me: failed program was:" >&5
65022 sed 's/^/| /' conftest.$ac_ext >&5
65023
65024         eval "$as_ac_var=no"
65025 fi
65026
65027 rm -rf conftest.dSYM
65028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65029       conftest$ac_exeext conftest.$ac_ext
65030 fi
65031 ac_res=`eval 'as_val=${'$as_ac_var'}
65032                  $as_echo "$as_val"'`
65033                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65034 $as_echo "$ac_res" >&6; }
65035 as_val=`eval 'as_val=${'$as_ac_var'}
65036                  $as_echo "$as_val"'`
65037    if test "x$as_val" = x""yes; then
65038   cat >>confdefs.h <<_ACEOF
65039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65040 _ACEOF
65041  ice_have_printf=yes
65042 fi
65043 done
65044
65045 if test "${ice_have_printf}" = yes; then
65046 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
65047 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
65048 if test "${ice_cv_have_printf_decl+set}" = set; then
65049   $as_echo_n "(cached) " >&6
65050 else
65051
65052 ice_cv_have_printf_decl=no
65053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65054 ice_re_word='(^|[^a-zA-Z0-9_])'
65055 for header in stdio.h; do
65056 # Check for ordinary declaration
65057 cat >conftest.$ac_ext <<_ACEOF
65058 /* confdefs.h.  */
65059 _ACEOF
65060 cat confdefs.h >>conftest.$ac_ext
65061 cat >>conftest.$ac_ext <<_ACEOF
65062 /* end confdefs.h.  */
65063 #include <$header>
65064
65065 _ACEOF
65066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65067   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
65068   ice_cv_have_printf_decl=yes
65069 fi
65070 rm -f conftest*
65071
65072 if test "$ice_cv_have_printf_decl" = yes; then
65073         break
65074 fi
65075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65076 cat >conftest.$ac_ext <<_ACEOF
65077 /* confdefs.h.  */
65078 _ACEOF
65079 cat confdefs.h >>conftest.$ac_ext
65080 cat >>conftest.$ac_ext <<_ACEOF
65081 /* end confdefs.h.  */
65082 #include <$header>
65083
65084 _ACEOF
65085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65086   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65087   ice_cv_have_printf_decl=yes
65088 fi
65089 rm -f conftest*
65090
65091 if test "$ice_cv_have_printf_decl" = yes; then
65092         break
65093 fi
65094 done
65095
65096 fi
65097
65098 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
65099 $as_echo "$ice_cv_have_printf_decl" >&6; }
65100 if test "$ice_cv_have_printf_decl" = yes; then
65101
65102 cat >>confdefs.h <<_ACEOF
65103 #define HAVE_PRINTF_DECL 1
65104 _ACEOF
65105
65106 fi
65107 fi
65108
65109
65110 for ac_func in putenv
65111 do
65112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65114 $as_echo_n "checking for $ac_func... " >&6; }
65115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65116   $as_echo_n "(cached) " >&6
65117 else
65118   cat >conftest.$ac_ext <<_ACEOF
65119 /* confdefs.h.  */
65120 _ACEOF
65121 cat confdefs.h >>conftest.$ac_ext
65122 cat >>conftest.$ac_ext <<_ACEOF
65123 /* end confdefs.h.  */
65124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65126 #define $ac_func innocuous_$ac_func
65127
65128 /* System header to define __stub macros and hopefully few prototypes,
65129     which can conflict with char $ac_func (); below.
65130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65131     <limits.h> exists even on freestanding compilers.  */
65132
65133 #ifdef __STDC__
65134 # include <limits.h>
65135 #else
65136 # include <assert.h>
65137 #endif
65138
65139 #undef $ac_func
65140
65141 /* Override any GCC internal prototype to avoid an error.
65142    Use char because int might match the return type of a GCC
65143    builtin and then its argument prototype would still apply.  */
65144 #ifdef __cplusplus
65145 extern "C"
65146 #endif
65147 char $ac_func ();
65148 /* The GNU C library defines this for functions which it implements
65149     to always fail with ENOSYS.  Some functions are actually named
65150     something starting with __ and the normal name is an alias.  */
65151 #if defined __stub_$ac_func || defined __stub___$ac_func
65152 choke me
65153 #endif
65154
65155 int
65156 main ()
65157 {
65158 return $ac_func ();
65159   ;
65160   return 0;
65161 }
65162 _ACEOF
65163 rm -f conftest.$ac_objext conftest$ac_exeext
65164 if { (ac_try="$ac_link"
65165 case "(($ac_try" in
65166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65167   *) ac_try_echo=$ac_try;;
65168 esac
65169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65170 $as_echo "$ac_try_echo") >&5
65171   (eval "$ac_link") 2>conftest.er1
65172   ac_status=$?
65173   grep -v '^ *+' conftest.er1 >conftest.err
65174   rm -f conftest.er1
65175   cat conftest.err >&5
65176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65177   (exit $ac_status); } && {
65178          test -z "$ac_c_werror_flag" ||
65179          test ! -s conftest.err
65180        } && test -s conftest$ac_exeext && {
65181          test "$cross_compiling" = yes ||
65182          $as_test_x conftest$ac_exeext
65183        }; then
65184   eval "$as_ac_var=yes"
65185 else
65186   $as_echo "$as_me: failed program was:" >&5
65187 sed 's/^/| /' conftest.$ac_ext >&5
65188
65189         eval "$as_ac_var=no"
65190 fi
65191
65192 rm -rf conftest.dSYM
65193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65194       conftest$ac_exeext conftest.$ac_ext
65195 fi
65196 ac_res=`eval 'as_val=${'$as_ac_var'}
65197                  $as_echo "$as_val"'`
65198                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65199 $as_echo "$ac_res" >&6; }
65200 as_val=`eval 'as_val=${'$as_ac_var'}
65201                  $as_echo "$as_val"'`
65202    if test "x$as_val" = x""yes; then
65203   cat >>confdefs.h <<_ACEOF
65204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65205 _ACEOF
65206
65207 fi
65208 done
65209
65210
65211 ice_have_puts=no
65212
65213 for ac_func in puts
65214 do
65215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65217 $as_echo_n "checking for $ac_func... " >&6; }
65218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65219   $as_echo_n "(cached) " >&6
65220 else
65221   cat >conftest.$ac_ext <<_ACEOF
65222 /* confdefs.h.  */
65223 _ACEOF
65224 cat confdefs.h >>conftest.$ac_ext
65225 cat >>conftest.$ac_ext <<_ACEOF
65226 /* end confdefs.h.  */
65227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65229 #define $ac_func innocuous_$ac_func
65230
65231 /* System header to define __stub macros and hopefully few prototypes,
65232     which can conflict with char $ac_func (); below.
65233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65234     <limits.h> exists even on freestanding compilers.  */
65235
65236 #ifdef __STDC__
65237 # include <limits.h>
65238 #else
65239 # include <assert.h>
65240 #endif
65241
65242 #undef $ac_func
65243
65244 /* Override any GCC internal prototype to avoid an error.
65245    Use char because int might match the return type of a GCC
65246    builtin and then its argument prototype would still apply.  */
65247 #ifdef __cplusplus
65248 extern "C"
65249 #endif
65250 char $ac_func ();
65251 /* The GNU C library defines this for functions which it implements
65252     to always fail with ENOSYS.  Some functions are actually named
65253     something starting with __ and the normal name is an alias.  */
65254 #if defined __stub_$ac_func || defined __stub___$ac_func
65255 choke me
65256 #endif
65257
65258 int
65259 main ()
65260 {
65261 return $ac_func ();
65262   ;
65263   return 0;
65264 }
65265 _ACEOF
65266 rm -f conftest.$ac_objext conftest$ac_exeext
65267 if { (ac_try="$ac_link"
65268 case "(($ac_try" in
65269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65270   *) ac_try_echo=$ac_try;;
65271 esac
65272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65273 $as_echo "$ac_try_echo") >&5
65274   (eval "$ac_link") 2>conftest.er1
65275   ac_status=$?
65276   grep -v '^ *+' conftest.er1 >conftest.err
65277   rm -f conftest.er1
65278   cat conftest.err >&5
65279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65280   (exit $ac_status); } && {
65281          test -z "$ac_c_werror_flag" ||
65282          test ! -s conftest.err
65283        } && test -s conftest$ac_exeext && {
65284          test "$cross_compiling" = yes ||
65285          $as_test_x conftest$ac_exeext
65286        }; then
65287   eval "$as_ac_var=yes"
65288 else
65289   $as_echo "$as_me: failed program was:" >&5
65290 sed 's/^/| /' conftest.$ac_ext >&5
65291
65292         eval "$as_ac_var=no"
65293 fi
65294
65295 rm -rf conftest.dSYM
65296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65297       conftest$ac_exeext conftest.$ac_ext
65298 fi
65299 ac_res=`eval 'as_val=${'$as_ac_var'}
65300                  $as_echo "$as_val"'`
65301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65302 $as_echo "$ac_res" >&6; }
65303 as_val=`eval 'as_val=${'$as_ac_var'}
65304                  $as_echo "$as_val"'`
65305    if test "x$as_val" = x""yes; then
65306   cat >>confdefs.h <<_ACEOF
65307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65308 _ACEOF
65309  ice_have_puts=yes
65310 fi
65311 done
65312
65313 if test "${ice_have_puts}" = yes; then
65314 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
65315 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
65316 if test "${ice_cv_have_puts_decl+set}" = set; then
65317   $as_echo_n "(cached) " >&6
65318 else
65319
65320 ice_cv_have_puts_decl=no
65321 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65322 ice_re_word='(^|[^a-zA-Z0-9_])'
65323 for header in stdio.h; do
65324 # Check for ordinary declaration
65325 cat >conftest.$ac_ext <<_ACEOF
65326 /* confdefs.h.  */
65327 _ACEOF
65328 cat confdefs.h >>conftest.$ac_ext
65329 cat >>conftest.$ac_ext <<_ACEOF
65330 /* end confdefs.h.  */
65331 #include <$header>
65332
65333 _ACEOF
65334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65335   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
65336   ice_cv_have_puts_decl=yes
65337 fi
65338 rm -f conftest*
65339
65340 if test "$ice_cv_have_puts_decl" = yes; then
65341         break
65342 fi
65343 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65344 cat >conftest.$ac_ext <<_ACEOF
65345 /* confdefs.h.  */
65346 _ACEOF
65347 cat confdefs.h >>conftest.$ac_ext
65348 cat >>conftest.$ac_ext <<_ACEOF
65349 /* end confdefs.h.  */
65350 #include <$header>
65351
65352 _ACEOF
65353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65354   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65355   ice_cv_have_puts_decl=yes
65356 fi
65357 rm -f conftest*
65358
65359 if test "$ice_cv_have_puts_decl" = yes; then
65360         break
65361 fi
65362 done
65363
65364 fi
65365
65366 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
65367 $as_echo "$ice_cv_have_puts_decl" >&6; }
65368 if test "$ice_cv_have_puts_decl" = yes; then
65369
65370 cat >>confdefs.h <<_ACEOF
65371 #define HAVE_PUTS_DECL 1
65372 _ACEOF
65373
65374 fi
65375 fi
65376
65377
65378 ice_have_realloc=no
65379
65380 for ac_func in realloc
65381 do
65382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65383 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65384 $as_echo_n "checking for $ac_func... " >&6; }
65385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65386   $as_echo_n "(cached) " >&6
65387 else
65388   cat >conftest.$ac_ext <<_ACEOF
65389 /* confdefs.h.  */
65390 _ACEOF
65391 cat confdefs.h >>conftest.$ac_ext
65392 cat >>conftest.$ac_ext <<_ACEOF
65393 /* end confdefs.h.  */
65394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65396 #define $ac_func innocuous_$ac_func
65397
65398 /* System header to define __stub macros and hopefully few prototypes,
65399     which can conflict with char $ac_func (); below.
65400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65401     <limits.h> exists even on freestanding compilers.  */
65402
65403 #ifdef __STDC__
65404 # include <limits.h>
65405 #else
65406 # include <assert.h>
65407 #endif
65408
65409 #undef $ac_func
65410
65411 /* Override any GCC internal prototype to avoid an error.
65412    Use char because int might match the return type of a GCC
65413    builtin and then its argument prototype would still apply.  */
65414 #ifdef __cplusplus
65415 extern "C"
65416 #endif
65417 char $ac_func ();
65418 /* The GNU C library defines this for functions which it implements
65419     to always fail with ENOSYS.  Some functions are actually named
65420     something starting with __ and the normal name is an alias.  */
65421 #if defined __stub_$ac_func || defined __stub___$ac_func
65422 choke me
65423 #endif
65424
65425 int
65426 main ()
65427 {
65428 return $ac_func ();
65429   ;
65430   return 0;
65431 }
65432 _ACEOF
65433 rm -f conftest.$ac_objext conftest$ac_exeext
65434 if { (ac_try="$ac_link"
65435 case "(($ac_try" in
65436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65437   *) ac_try_echo=$ac_try;;
65438 esac
65439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65440 $as_echo "$ac_try_echo") >&5
65441   (eval "$ac_link") 2>conftest.er1
65442   ac_status=$?
65443   grep -v '^ *+' conftest.er1 >conftest.err
65444   rm -f conftest.er1
65445   cat conftest.err >&5
65446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65447   (exit $ac_status); } && {
65448          test -z "$ac_c_werror_flag" ||
65449          test ! -s conftest.err
65450        } && test -s conftest$ac_exeext && {
65451          test "$cross_compiling" = yes ||
65452          $as_test_x conftest$ac_exeext
65453        }; then
65454   eval "$as_ac_var=yes"
65455 else
65456   $as_echo "$as_me: failed program was:" >&5
65457 sed 's/^/| /' conftest.$ac_ext >&5
65458
65459         eval "$as_ac_var=no"
65460 fi
65461
65462 rm -rf conftest.dSYM
65463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65464       conftest$ac_exeext conftest.$ac_ext
65465 fi
65466 ac_res=`eval 'as_val=${'$as_ac_var'}
65467                  $as_echo "$as_val"'`
65468                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65469 $as_echo "$ac_res" >&6; }
65470 as_val=`eval 'as_val=${'$as_ac_var'}
65471                  $as_echo "$as_val"'`
65472    if test "x$as_val" = x""yes; then
65473   cat >>confdefs.h <<_ACEOF
65474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65475 _ACEOF
65476  ice_have_realloc=yes
65477 fi
65478 done
65479
65480 if test "${ice_have_realloc}" = yes; then
65481 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
65482 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
65483 if test "${ice_cv_have_realloc_decl+set}" = set; then
65484   $as_echo_n "(cached) " >&6
65485 else
65486
65487 ice_cv_have_realloc_decl=no
65488 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65489 ice_re_word='(^|[^a-zA-Z0-9_])'
65490 for header in stdlib.h; do
65491 # Check for ordinary declaration
65492 cat >conftest.$ac_ext <<_ACEOF
65493 /* confdefs.h.  */
65494 _ACEOF
65495 cat confdefs.h >>conftest.$ac_ext
65496 cat >>conftest.$ac_ext <<_ACEOF
65497 /* end confdefs.h.  */
65498 #include <$header>
65499
65500 _ACEOF
65501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65502   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
65503   ice_cv_have_realloc_decl=yes
65504 fi
65505 rm -f conftest*
65506
65507 if test "$ice_cv_have_realloc_decl" = yes; then
65508         break
65509 fi
65510 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65511 cat >conftest.$ac_ext <<_ACEOF
65512 /* confdefs.h.  */
65513 _ACEOF
65514 cat confdefs.h >>conftest.$ac_ext
65515 cat >>conftest.$ac_ext <<_ACEOF
65516 /* end confdefs.h.  */
65517 #include <$header>
65518
65519 _ACEOF
65520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65521   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65522   ice_cv_have_realloc_decl=yes
65523 fi
65524 rm -f conftest*
65525
65526 if test "$ice_cv_have_realloc_decl" = yes; then
65527         break
65528 fi
65529 done
65530
65531 fi
65532
65533 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
65534 $as_echo "$ice_cv_have_realloc_decl" >&6; }
65535 if test "$ice_cv_have_realloc_decl" = yes; then
65536
65537 cat >>confdefs.h <<_ACEOF
65538 #define HAVE_REALLOC_DECL 1
65539 _ACEOF
65540
65541 fi
65542 fi
65543
65544
65545 ice_have_recvfrom=no
65546
65547 for ac_func in recvfrom
65548 do
65549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65551 $as_echo_n "checking for $ac_func... " >&6; }
65552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65553   $as_echo_n "(cached) " >&6
65554 else
65555   cat >conftest.$ac_ext <<_ACEOF
65556 /* confdefs.h.  */
65557 _ACEOF
65558 cat confdefs.h >>conftest.$ac_ext
65559 cat >>conftest.$ac_ext <<_ACEOF
65560 /* end confdefs.h.  */
65561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65563 #define $ac_func innocuous_$ac_func
65564
65565 /* System header to define __stub macros and hopefully few prototypes,
65566     which can conflict with char $ac_func (); below.
65567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65568     <limits.h> exists even on freestanding compilers.  */
65569
65570 #ifdef __STDC__
65571 # include <limits.h>
65572 #else
65573 # include <assert.h>
65574 #endif
65575
65576 #undef $ac_func
65577
65578 /* Override any GCC internal prototype to avoid an error.
65579    Use char because int might match the return type of a GCC
65580    builtin and then its argument prototype would still apply.  */
65581 #ifdef __cplusplus
65582 extern "C"
65583 #endif
65584 char $ac_func ();
65585 /* The GNU C library defines this for functions which it implements
65586     to always fail with ENOSYS.  Some functions are actually named
65587     something starting with __ and the normal name is an alias.  */
65588 #if defined __stub_$ac_func || defined __stub___$ac_func
65589 choke me
65590 #endif
65591
65592 int
65593 main ()
65594 {
65595 return $ac_func ();
65596   ;
65597   return 0;
65598 }
65599 _ACEOF
65600 rm -f conftest.$ac_objext conftest$ac_exeext
65601 if { (ac_try="$ac_link"
65602 case "(($ac_try" in
65603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65604   *) ac_try_echo=$ac_try;;
65605 esac
65606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65607 $as_echo "$ac_try_echo") >&5
65608   (eval "$ac_link") 2>conftest.er1
65609   ac_status=$?
65610   grep -v '^ *+' conftest.er1 >conftest.err
65611   rm -f conftest.er1
65612   cat conftest.err >&5
65613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65614   (exit $ac_status); } && {
65615          test -z "$ac_c_werror_flag" ||
65616          test ! -s conftest.err
65617        } && test -s conftest$ac_exeext && {
65618          test "$cross_compiling" = yes ||
65619          $as_test_x conftest$ac_exeext
65620        }; then
65621   eval "$as_ac_var=yes"
65622 else
65623   $as_echo "$as_me: failed program was:" >&5
65624 sed 's/^/| /' conftest.$ac_ext >&5
65625
65626         eval "$as_ac_var=no"
65627 fi
65628
65629 rm -rf conftest.dSYM
65630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65631       conftest$ac_exeext conftest.$ac_ext
65632 fi
65633 ac_res=`eval 'as_val=${'$as_ac_var'}
65634                  $as_echo "$as_val"'`
65635                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65636 $as_echo "$ac_res" >&6; }
65637 as_val=`eval 'as_val=${'$as_ac_var'}
65638                  $as_echo "$as_val"'`
65639    if test "x$as_val" = x""yes; then
65640   cat >>confdefs.h <<_ACEOF
65641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65642 _ACEOF
65643  ice_have_recvfrom=yes
65644 fi
65645 done
65646
65647 if test "${ice_have_recvfrom}" = yes; then
65648 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
65649 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
65650 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
65651   $as_echo_n "(cached) " >&6
65652 else
65653
65654 ice_cv_have_recvfrom_decl=no
65655 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65656 ice_re_word='(^|[^a-zA-Z0-9_])'
65657 for header in sys/types.h sys/socket.h; do
65658 # Check for ordinary declaration
65659 cat >conftest.$ac_ext <<_ACEOF
65660 /* confdefs.h.  */
65661 _ACEOF
65662 cat confdefs.h >>conftest.$ac_ext
65663 cat >>conftest.$ac_ext <<_ACEOF
65664 /* end confdefs.h.  */
65665 #include <$header>
65666
65667 _ACEOF
65668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65669   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
65670   ice_cv_have_recvfrom_decl=yes
65671 fi
65672 rm -f conftest*
65673
65674 if test "$ice_cv_have_recvfrom_decl" = yes; then
65675         break
65676 fi
65677 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65678 cat >conftest.$ac_ext <<_ACEOF
65679 /* confdefs.h.  */
65680 _ACEOF
65681 cat confdefs.h >>conftest.$ac_ext
65682 cat >>conftest.$ac_ext <<_ACEOF
65683 /* end confdefs.h.  */
65684 #include <$header>
65685
65686 _ACEOF
65687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65688   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65689   ice_cv_have_recvfrom_decl=yes
65690 fi
65691 rm -f conftest*
65692
65693 if test "$ice_cv_have_recvfrom_decl" = yes; then
65694         break
65695 fi
65696 done
65697
65698 fi
65699
65700 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
65701 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
65702 if test "$ice_cv_have_recvfrom_decl" = yes; then
65703
65704 cat >>confdefs.h <<_ACEOF
65705 #define HAVE_RECVFROM_DECL 1
65706 _ACEOF
65707
65708 fi
65709 fi
65710
65711
65712 ice_have_remove=no
65713
65714 for ac_func in remove
65715 do
65716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65717 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65718 $as_echo_n "checking for $ac_func... " >&6; }
65719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65720   $as_echo_n "(cached) " >&6
65721 else
65722   cat >conftest.$ac_ext <<_ACEOF
65723 /* confdefs.h.  */
65724 _ACEOF
65725 cat confdefs.h >>conftest.$ac_ext
65726 cat >>conftest.$ac_ext <<_ACEOF
65727 /* end confdefs.h.  */
65728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65730 #define $ac_func innocuous_$ac_func
65731
65732 /* System header to define __stub macros and hopefully few prototypes,
65733     which can conflict with char $ac_func (); below.
65734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65735     <limits.h> exists even on freestanding compilers.  */
65736
65737 #ifdef __STDC__
65738 # include <limits.h>
65739 #else
65740 # include <assert.h>
65741 #endif
65742
65743 #undef $ac_func
65744
65745 /* Override any GCC internal prototype to avoid an error.
65746    Use char because int might match the return type of a GCC
65747    builtin and then its argument prototype would still apply.  */
65748 #ifdef __cplusplus
65749 extern "C"
65750 #endif
65751 char $ac_func ();
65752 /* The GNU C library defines this for functions which it implements
65753     to always fail with ENOSYS.  Some functions are actually named
65754     something starting with __ and the normal name is an alias.  */
65755 #if defined __stub_$ac_func || defined __stub___$ac_func
65756 choke me
65757 #endif
65758
65759 int
65760 main ()
65761 {
65762 return $ac_func ();
65763   ;
65764   return 0;
65765 }
65766 _ACEOF
65767 rm -f conftest.$ac_objext conftest$ac_exeext
65768 if { (ac_try="$ac_link"
65769 case "(($ac_try" in
65770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65771   *) ac_try_echo=$ac_try;;
65772 esac
65773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65774 $as_echo "$ac_try_echo") >&5
65775   (eval "$ac_link") 2>conftest.er1
65776   ac_status=$?
65777   grep -v '^ *+' conftest.er1 >conftest.err
65778   rm -f conftest.er1
65779   cat conftest.err >&5
65780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65781   (exit $ac_status); } && {
65782          test -z "$ac_c_werror_flag" ||
65783          test ! -s conftest.err
65784        } && test -s conftest$ac_exeext && {
65785          test "$cross_compiling" = yes ||
65786          $as_test_x conftest$ac_exeext
65787        }; then
65788   eval "$as_ac_var=yes"
65789 else
65790   $as_echo "$as_me: failed program was:" >&5
65791 sed 's/^/| /' conftest.$ac_ext >&5
65792
65793         eval "$as_ac_var=no"
65794 fi
65795
65796 rm -rf conftest.dSYM
65797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65798       conftest$ac_exeext conftest.$ac_ext
65799 fi
65800 ac_res=`eval 'as_val=${'$as_ac_var'}
65801                  $as_echo "$as_val"'`
65802                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65803 $as_echo "$ac_res" >&6; }
65804 as_val=`eval 'as_val=${'$as_ac_var'}
65805                  $as_echo "$as_val"'`
65806    if test "x$as_val" = x""yes; then
65807   cat >>confdefs.h <<_ACEOF
65808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65809 _ACEOF
65810  ice_have_remove=yes
65811 fi
65812 done
65813
65814 if test "${ice_have_remove}" = yes; then
65815 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
65816 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
65817 if test "${ice_cv_have_remove_decl+set}" = set; then
65818   $as_echo_n "(cached) " >&6
65819 else
65820
65821 ice_cv_have_remove_decl=no
65822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65823 ice_re_word='(^|[^a-zA-Z0-9_])'
65824 for header in stdio.h; do
65825 # Check for ordinary declaration
65826 cat >conftest.$ac_ext <<_ACEOF
65827 /* confdefs.h.  */
65828 _ACEOF
65829 cat confdefs.h >>conftest.$ac_ext
65830 cat >>conftest.$ac_ext <<_ACEOF
65831 /* end confdefs.h.  */
65832 #include <$header>
65833
65834 _ACEOF
65835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65836   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
65837   ice_cv_have_remove_decl=yes
65838 fi
65839 rm -f conftest*
65840
65841 if test "$ice_cv_have_remove_decl" = yes; then
65842         break
65843 fi
65844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65845 cat >conftest.$ac_ext <<_ACEOF
65846 /* confdefs.h.  */
65847 _ACEOF
65848 cat confdefs.h >>conftest.$ac_ext
65849 cat >>conftest.$ac_ext <<_ACEOF
65850 /* end confdefs.h.  */
65851 #include <$header>
65852
65853 _ACEOF
65854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65855   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65856   ice_cv_have_remove_decl=yes
65857 fi
65858 rm -f conftest*
65859
65860 if test "$ice_cv_have_remove_decl" = yes; then
65861         break
65862 fi
65863 done
65864
65865 fi
65866
65867 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
65868 $as_echo "$ice_cv_have_remove_decl" >&6; }
65869 if test "$ice_cv_have_remove_decl" = yes; then
65870
65871 cat >>confdefs.h <<_ACEOF
65872 #define HAVE_REMOVE_DECL 1
65873 _ACEOF
65874
65875 fi
65876 fi
65877
65878
65879 ice_have_rename=no
65880
65881 for ac_func in rename
65882 do
65883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65885 $as_echo_n "checking for $ac_func... " >&6; }
65886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65887   $as_echo_n "(cached) " >&6
65888 else
65889   cat >conftest.$ac_ext <<_ACEOF
65890 /* confdefs.h.  */
65891 _ACEOF
65892 cat confdefs.h >>conftest.$ac_ext
65893 cat >>conftest.$ac_ext <<_ACEOF
65894 /* end confdefs.h.  */
65895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65897 #define $ac_func innocuous_$ac_func
65898
65899 /* System header to define __stub macros and hopefully few prototypes,
65900     which can conflict with char $ac_func (); below.
65901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65902     <limits.h> exists even on freestanding compilers.  */
65903
65904 #ifdef __STDC__
65905 # include <limits.h>
65906 #else
65907 # include <assert.h>
65908 #endif
65909
65910 #undef $ac_func
65911
65912 /* Override any GCC internal prototype to avoid an error.
65913    Use char because int might match the return type of a GCC
65914    builtin and then its argument prototype would still apply.  */
65915 #ifdef __cplusplus
65916 extern "C"
65917 #endif
65918 char $ac_func ();
65919 /* The GNU C library defines this for functions which it implements
65920     to always fail with ENOSYS.  Some functions are actually named
65921     something starting with __ and the normal name is an alias.  */
65922 #if defined __stub_$ac_func || defined __stub___$ac_func
65923 choke me
65924 #endif
65925
65926 int
65927 main ()
65928 {
65929 return $ac_func ();
65930   ;
65931   return 0;
65932 }
65933 _ACEOF
65934 rm -f conftest.$ac_objext conftest$ac_exeext
65935 if { (ac_try="$ac_link"
65936 case "(($ac_try" in
65937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65938   *) ac_try_echo=$ac_try;;
65939 esac
65940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65941 $as_echo "$ac_try_echo") >&5
65942   (eval "$ac_link") 2>conftest.er1
65943   ac_status=$?
65944   grep -v '^ *+' conftest.er1 >conftest.err
65945   rm -f conftest.er1
65946   cat conftest.err >&5
65947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65948   (exit $ac_status); } && {
65949          test -z "$ac_c_werror_flag" ||
65950          test ! -s conftest.err
65951        } && test -s conftest$ac_exeext && {
65952          test "$cross_compiling" = yes ||
65953          $as_test_x conftest$ac_exeext
65954        }; then
65955   eval "$as_ac_var=yes"
65956 else
65957   $as_echo "$as_me: failed program was:" >&5
65958 sed 's/^/| /' conftest.$ac_ext >&5
65959
65960         eval "$as_ac_var=no"
65961 fi
65962
65963 rm -rf conftest.dSYM
65964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65965       conftest$ac_exeext conftest.$ac_ext
65966 fi
65967 ac_res=`eval 'as_val=${'$as_ac_var'}
65968                  $as_echo "$as_val"'`
65969                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65970 $as_echo "$ac_res" >&6; }
65971 as_val=`eval 'as_val=${'$as_ac_var'}
65972                  $as_echo "$as_val"'`
65973    if test "x$as_val" = x""yes; then
65974   cat >>confdefs.h <<_ACEOF
65975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65976 _ACEOF
65977  ice_have_rename=yes
65978 fi
65979 done
65980
65981 if test "${ice_have_rename}" = yes; then
65982 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
65983 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
65984 if test "${ice_cv_have_rename_decl+set}" = set; then
65985   $as_echo_n "(cached) " >&6
65986 else
65987
65988 ice_cv_have_rename_decl=no
65989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65990 ice_re_word='(^|[^a-zA-Z0-9_])'
65991 for header in stdio.h; do
65992 # Check for ordinary declaration
65993 cat >conftest.$ac_ext <<_ACEOF
65994 /* confdefs.h.  */
65995 _ACEOF
65996 cat confdefs.h >>conftest.$ac_ext
65997 cat >>conftest.$ac_ext <<_ACEOF
65998 /* end confdefs.h.  */
65999 #include <$header>
66000
66001 _ACEOF
66002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66003   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
66004   ice_cv_have_rename_decl=yes
66005 fi
66006 rm -f conftest*
66007
66008 if test "$ice_cv_have_rename_decl" = yes; then
66009         break
66010 fi
66011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66012 cat >conftest.$ac_ext <<_ACEOF
66013 /* confdefs.h.  */
66014 _ACEOF
66015 cat confdefs.h >>conftest.$ac_ext
66016 cat >>conftest.$ac_ext <<_ACEOF
66017 /* end confdefs.h.  */
66018 #include <$header>
66019
66020 _ACEOF
66021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66022   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66023   ice_cv_have_rename_decl=yes
66024 fi
66025 rm -f conftest*
66026
66027 if test "$ice_cv_have_rename_decl" = yes; then
66028         break
66029 fi
66030 done
66031
66032 fi
66033
66034 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
66035 $as_echo "$ice_cv_have_rename_decl" >&6; }
66036 if test "$ice_cv_have_rename_decl" = yes; then
66037
66038 cat >>confdefs.h <<_ACEOF
66039 #define HAVE_RENAME_DECL 1
66040 _ACEOF
66041
66042 fi
66043 fi
66044
66045
66046 ice_have_rewind=no
66047
66048 for ac_func in rewind
66049 do
66050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66051 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66052 $as_echo_n "checking for $ac_func... " >&6; }
66053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66054   $as_echo_n "(cached) " >&6
66055 else
66056   cat >conftest.$ac_ext <<_ACEOF
66057 /* confdefs.h.  */
66058 _ACEOF
66059 cat confdefs.h >>conftest.$ac_ext
66060 cat >>conftest.$ac_ext <<_ACEOF
66061 /* end confdefs.h.  */
66062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66064 #define $ac_func innocuous_$ac_func
66065
66066 /* System header to define __stub macros and hopefully few prototypes,
66067     which can conflict with char $ac_func (); below.
66068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66069     <limits.h> exists even on freestanding compilers.  */
66070
66071 #ifdef __STDC__
66072 # include <limits.h>
66073 #else
66074 # include <assert.h>
66075 #endif
66076
66077 #undef $ac_func
66078
66079 /* Override any GCC internal prototype to avoid an error.
66080    Use char because int might match the return type of a GCC
66081    builtin and then its argument prototype would still apply.  */
66082 #ifdef __cplusplus
66083 extern "C"
66084 #endif
66085 char $ac_func ();
66086 /* The GNU C library defines this for functions which it implements
66087     to always fail with ENOSYS.  Some functions are actually named
66088     something starting with __ and the normal name is an alias.  */
66089 #if defined __stub_$ac_func || defined __stub___$ac_func
66090 choke me
66091 #endif
66092
66093 int
66094 main ()
66095 {
66096 return $ac_func ();
66097   ;
66098   return 0;
66099 }
66100 _ACEOF
66101 rm -f conftest.$ac_objext conftest$ac_exeext
66102 if { (ac_try="$ac_link"
66103 case "(($ac_try" in
66104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66105   *) ac_try_echo=$ac_try;;
66106 esac
66107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66108 $as_echo "$ac_try_echo") >&5
66109   (eval "$ac_link") 2>conftest.er1
66110   ac_status=$?
66111   grep -v '^ *+' conftest.er1 >conftest.err
66112   rm -f conftest.er1
66113   cat conftest.err >&5
66114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66115   (exit $ac_status); } && {
66116          test -z "$ac_c_werror_flag" ||
66117          test ! -s conftest.err
66118        } && test -s conftest$ac_exeext && {
66119          test "$cross_compiling" = yes ||
66120          $as_test_x conftest$ac_exeext
66121        }; then
66122   eval "$as_ac_var=yes"
66123 else
66124   $as_echo "$as_me: failed program was:" >&5
66125 sed 's/^/| /' conftest.$ac_ext >&5
66126
66127         eval "$as_ac_var=no"
66128 fi
66129
66130 rm -rf conftest.dSYM
66131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66132       conftest$ac_exeext conftest.$ac_ext
66133 fi
66134 ac_res=`eval 'as_val=${'$as_ac_var'}
66135                  $as_echo "$as_val"'`
66136                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66137 $as_echo "$ac_res" >&6; }
66138 as_val=`eval 'as_val=${'$as_ac_var'}
66139                  $as_echo "$as_val"'`
66140    if test "x$as_val" = x""yes; then
66141   cat >>confdefs.h <<_ACEOF
66142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66143 _ACEOF
66144  ice_have_rewind=yes
66145 fi
66146 done
66147
66148 if test "${ice_have_rewind}" = yes; then
66149 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
66150 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
66151 if test "${ice_cv_have_rewind_decl+set}" = set; then
66152   $as_echo_n "(cached) " >&6
66153 else
66154
66155 ice_cv_have_rewind_decl=no
66156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66157 ice_re_word='(^|[^a-zA-Z0-9_])'
66158 for header in stdio.h; do
66159 # Check for ordinary declaration
66160 cat >conftest.$ac_ext <<_ACEOF
66161 /* confdefs.h.  */
66162 _ACEOF
66163 cat confdefs.h >>conftest.$ac_ext
66164 cat >>conftest.$ac_ext <<_ACEOF
66165 /* end confdefs.h.  */
66166 #include <$header>
66167
66168 _ACEOF
66169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66170   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
66171   ice_cv_have_rewind_decl=yes
66172 fi
66173 rm -f conftest*
66174
66175 if test "$ice_cv_have_rewind_decl" = yes; then
66176         break
66177 fi
66178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66179 cat >conftest.$ac_ext <<_ACEOF
66180 /* confdefs.h.  */
66181 _ACEOF
66182 cat confdefs.h >>conftest.$ac_ext
66183 cat >>conftest.$ac_ext <<_ACEOF
66184 /* end confdefs.h.  */
66185 #include <$header>
66186
66187 _ACEOF
66188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66189   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66190   ice_cv_have_rewind_decl=yes
66191 fi
66192 rm -f conftest*
66193
66194 if test "$ice_cv_have_rewind_decl" = yes; then
66195         break
66196 fi
66197 done
66198
66199 fi
66200
66201 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
66202 $as_echo "$ice_cv_have_rewind_decl" >&6; }
66203 if test "$ice_cv_have_rewind_decl" = yes; then
66204
66205 cat >>confdefs.h <<_ACEOF
66206 #define HAVE_REWIND_DECL 1
66207 _ACEOF
66208
66209 fi
66210 fi
66211
66212
66213 ice_have_ruserok=no
66214
66215 for ac_func in ruserok
66216 do
66217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66219 $as_echo_n "checking for $ac_func... " >&6; }
66220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66221   $as_echo_n "(cached) " >&6
66222 else
66223   cat >conftest.$ac_ext <<_ACEOF
66224 /* confdefs.h.  */
66225 _ACEOF
66226 cat confdefs.h >>conftest.$ac_ext
66227 cat >>conftest.$ac_ext <<_ACEOF
66228 /* end confdefs.h.  */
66229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66231 #define $ac_func innocuous_$ac_func
66232
66233 /* System header to define __stub macros and hopefully few prototypes,
66234     which can conflict with char $ac_func (); below.
66235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66236     <limits.h> exists even on freestanding compilers.  */
66237
66238 #ifdef __STDC__
66239 # include <limits.h>
66240 #else
66241 # include <assert.h>
66242 #endif
66243
66244 #undef $ac_func
66245
66246 /* Override any GCC internal prototype to avoid an error.
66247    Use char because int might match the return type of a GCC
66248    builtin and then its argument prototype would still apply.  */
66249 #ifdef __cplusplus
66250 extern "C"
66251 #endif
66252 char $ac_func ();
66253 /* The GNU C library defines this for functions which it implements
66254     to always fail with ENOSYS.  Some functions are actually named
66255     something starting with __ and the normal name is an alias.  */
66256 #if defined __stub_$ac_func || defined __stub___$ac_func
66257 choke me
66258 #endif
66259
66260 int
66261 main ()
66262 {
66263 return $ac_func ();
66264   ;
66265   return 0;
66266 }
66267 _ACEOF
66268 rm -f conftest.$ac_objext conftest$ac_exeext
66269 if { (ac_try="$ac_link"
66270 case "(($ac_try" in
66271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66272   *) ac_try_echo=$ac_try;;
66273 esac
66274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66275 $as_echo "$ac_try_echo") >&5
66276   (eval "$ac_link") 2>conftest.er1
66277   ac_status=$?
66278   grep -v '^ *+' conftest.er1 >conftest.err
66279   rm -f conftest.er1
66280   cat conftest.err >&5
66281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66282   (exit $ac_status); } && {
66283          test -z "$ac_c_werror_flag" ||
66284          test ! -s conftest.err
66285        } && test -s conftest$ac_exeext && {
66286          test "$cross_compiling" = yes ||
66287          $as_test_x conftest$ac_exeext
66288        }; then
66289   eval "$as_ac_var=yes"
66290 else
66291   $as_echo "$as_me: failed program was:" >&5
66292 sed 's/^/| /' conftest.$ac_ext >&5
66293
66294         eval "$as_ac_var=no"
66295 fi
66296
66297 rm -rf conftest.dSYM
66298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66299       conftest$ac_exeext conftest.$ac_ext
66300 fi
66301 ac_res=`eval 'as_val=${'$as_ac_var'}
66302                  $as_echo "$as_val"'`
66303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66304 $as_echo "$ac_res" >&6; }
66305 as_val=`eval 'as_val=${'$as_ac_var'}
66306                  $as_echo "$as_val"'`
66307    if test "x$as_val" = x""yes; then
66308   cat >>confdefs.h <<_ACEOF
66309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66310 _ACEOF
66311  ice_have_ruserok=yes
66312 fi
66313 done
66314
66315 if test "${ice_have_ruserok}" = yes; then
66316 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
66317 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
66318 if test "${ice_cv_have_ruserok_decl+set}" = set; then
66319   $as_echo_n "(cached) " >&6
66320 else
66321
66322 ice_cv_have_ruserok_decl=no
66323 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66324 ice_re_word='(^|[^a-zA-Z0-9_])'
66325 for header in netdb.h sys/socket.h libc.h unistd.h; do
66326 # Check for ordinary declaration
66327 cat >conftest.$ac_ext <<_ACEOF
66328 /* confdefs.h.  */
66329 _ACEOF
66330 cat confdefs.h >>conftest.$ac_ext
66331 cat >>conftest.$ac_ext <<_ACEOF
66332 /* end confdefs.h.  */
66333 #include <$header>
66334
66335 _ACEOF
66336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66337   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
66338   ice_cv_have_ruserok_decl=yes
66339 fi
66340 rm -f conftest*
66341
66342 if test "$ice_cv_have_ruserok_decl" = yes; then
66343         break
66344 fi
66345 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66346 cat >conftest.$ac_ext <<_ACEOF
66347 /* confdefs.h.  */
66348 _ACEOF
66349 cat confdefs.h >>conftest.$ac_ext
66350 cat >>conftest.$ac_ext <<_ACEOF
66351 /* end confdefs.h.  */
66352 #include <$header>
66353
66354 _ACEOF
66355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66356   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66357   ice_cv_have_ruserok_decl=yes
66358 fi
66359 rm -f conftest*
66360
66361 if test "$ice_cv_have_ruserok_decl" = yes; then
66362         break
66363 fi
66364 done
66365
66366 fi
66367
66368 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
66369 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
66370 if test "$ice_cv_have_ruserok_decl" = yes; then
66371
66372 cat >>confdefs.h <<_ACEOF
66373 #define HAVE_RUSEROK_DECL 1
66374 _ACEOF
66375
66376 fi
66377 fi
66378
66379
66380 ice_have_select=no
66381
66382 for ac_func in select
66383 do
66384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66386 $as_echo_n "checking for $ac_func... " >&6; }
66387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66388   $as_echo_n "(cached) " >&6
66389 else
66390   cat >conftest.$ac_ext <<_ACEOF
66391 /* confdefs.h.  */
66392 _ACEOF
66393 cat confdefs.h >>conftest.$ac_ext
66394 cat >>conftest.$ac_ext <<_ACEOF
66395 /* end confdefs.h.  */
66396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66398 #define $ac_func innocuous_$ac_func
66399
66400 /* System header to define __stub macros and hopefully few prototypes,
66401     which can conflict with char $ac_func (); below.
66402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66403     <limits.h> exists even on freestanding compilers.  */
66404
66405 #ifdef __STDC__
66406 # include <limits.h>
66407 #else
66408 # include <assert.h>
66409 #endif
66410
66411 #undef $ac_func
66412
66413 /* Override any GCC internal prototype to avoid an error.
66414    Use char because int might match the return type of a GCC
66415    builtin and then its argument prototype would still apply.  */
66416 #ifdef __cplusplus
66417 extern "C"
66418 #endif
66419 char $ac_func ();
66420 /* The GNU C library defines this for functions which it implements
66421     to always fail with ENOSYS.  Some functions are actually named
66422     something starting with __ and the normal name is an alias.  */
66423 #if defined __stub_$ac_func || defined __stub___$ac_func
66424 choke me
66425 #endif
66426
66427 int
66428 main ()
66429 {
66430 return $ac_func ();
66431   ;
66432   return 0;
66433 }
66434 _ACEOF
66435 rm -f conftest.$ac_objext conftest$ac_exeext
66436 if { (ac_try="$ac_link"
66437 case "(($ac_try" in
66438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66439   *) ac_try_echo=$ac_try;;
66440 esac
66441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66442 $as_echo "$ac_try_echo") >&5
66443   (eval "$ac_link") 2>conftest.er1
66444   ac_status=$?
66445   grep -v '^ *+' conftest.er1 >conftest.err
66446   rm -f conftest.er1
66447   cat conftest.err >&5
66448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66449   (exit $ac_status); } && {
66450          test -z "$ac_c_werror_flag" ||
66451          test ! -s conftest.err
66452        } && test -s conftest$ac_exeext && {
66453          test "$cross_compiling" = yes ||
66454          $as_test_x conftest$ac_exeext
66455        }; then
66456   eval "$as_ac_var=yes"
66457 else
66458   $as_echo "$as_me: failed program was:" >&5
66459 sed 's/^/| /' conftest.$ac_ext >&5
66460
66461         eval "$as_ac_var=no"
66462 fi
66463
66464 rm -rf conftest.dSYM
66465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66466       conftest$ac_exeext conftest.$ac_ext
66467 fi
66468 ac_res=`eval 'as_val=${'$as_ac_var'}
66469                  $as_echo "$as_val"'`
66470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66471 $as_echo "$ac_res" >&6; }
66472 as_val=`eval 'as_val=${'$as_ac_var'}
66473                  $as_echo "$as_val"'`
66474    if test "x$as_val" = x""yes; then
66475   cat >>confdefs.h <<_ACEOF
66476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66477 _ACEOF
66478  ice_have_select=yes
66479 fi
66480 done
66481
66482 if test "${ice_have_select}" = yes; then
66483 { $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
66484 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
66485 if test "${ice_cv_have_select_decl+set}" = set; then
66486   $as_echo_n "(cached) " >&6
66487 else
66488
66489 ice_cv_have_select_decl=no
66490 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66491 ice_re_word='(^|[^a-zA-Z0-9_])'
66492 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
66493 # Check for ordinary declaration
66494 cat >conftest.$ac_ext <<_ACEOF
66495 /* confdefs.h.  */
66496 _ACEOF
66497 cat confdefs.h >>conftest.$ac_ext
66498 cat >>conftest.$ac_ext <<_ACEOF
66499 /* end confdefs.h.  */
66500 #include <$header>
66501
66502 _ACEOF
66503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66504   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
66505   ice_cv_have_select_decl=yes
66506 fi
66507 rm -f conftest*
66508
66509 if test "$ice_cv_have_select_decl" = yes; then
66510         break
66511 fi
66512 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66513 cat >conftest.$ac_ext <<_ACEOF
66514 /* confdefs.h.  */
66515 _ACEOF
66516 cat confdefs.h >>conftest.$ac_ext
66517 cat >>conftest.$ac_ext <<_ACEOF
66518 /* end confdefs.h.  */
66519 #include <$header>
66520
66521 _ACEOF
66522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66523   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66524   ice_cv_have_select_decl=yes
66525 fi
66526 rm -f conftest*
66527
66528 if test "$ice_cv_have_select_decl" = yes; then
66529         break
66530 fi
66531 done
66532
66533 fi
66534
66535 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
66536 $as_echo "$ice_cv_have_select_decl" >&6; }
66537 if test "$ice_cv_have_select_decl" = yes; then
66538
66539 cat >>confdefs.h <<_ACEOF
66540 #define HAVE_SELECT_DECL 1
66541 _ACEOF
66542
66543 fi
66544 fi
66545
66546
66547
66548
66549
66550
66551
66552
66553 for ac_header in sys/time.h \
66554             sys/types.h \
66555             sys/select.h \
66556             sys/socket.h \
66557             unistd.h \
66558
66559 do
66560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
66561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66562   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66563 $as_echo_n "checking for $ac_header... " >&6; }
66564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66565   $as_echo_n "(cached) " >&6
66566 fi
66567 ac_res=`eval 'as_val=${'$as_ac_Header'}
66568                  $as_echo "$as_val"'`
66569                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66570 $as_echo "$ac_res" >&6; }
66571 else
66572   # Is the header compilable?
66573 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
66574 $as_echo_n "checking $ac_header usability... " >&6; }
66575 cat >conftest.$ac_ext <<_ACEOF
66576 /* confdefs.h.  */
66577 _ACEOF
66578 cat confdefs.h >>conftest.$ac_ext
66579 cat >>conftest.$ac_ext <<_ACEOF
66580 /* end confdefs.h.  */
66581 $ac_includes_default
66582 #include <$ac_header>
66583 _ACEOF
66584 rm -f conftest.$ac_objext
66585 if { (ac_try="$ac_compile"
66586 case "(($ac_try" in
66587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66588   *) ac_try_echo=$ac_try;;
66589 esac
66590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66591 $as_echo "$ac_try_echo") >&5
66592   (eval "$ac_compile") 2>conftest.er1
66593   ac_status=$?
66594   grep -v '^ *+' conftest.er1 >conftest.err
66595   rm -f conftest.er1
66596   cat conftest.err >&5
66597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66598   (exit $ac_status); } && {
66599          test -z "$ac_c_werror_flag" ||
66600          test ! -s conftest.err
66601        } && test -s conftest.$ac_objext; then
66602   ac_header_compiler=yes
66603 else
66604   $as_echo "$as_me: failed program was:" >&5
66605 sed 's/^/| /' conftest.$ac_ext >&5
66606
66607         ac_header_compiler=no
66608 fi
66609
66610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66611 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66612 $as_echo "$ac_header_compiler" >&6; }
66613
66614 # Is the header present?
66615 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
66616 $as_echo_n "checking $ac_header presence... " >&6; }
66617 cat >conftest.$ac_ext <<_ACEOF
66618 /* confdefs.h.  */
66619 _ACEOF
66620 cat confdefs.h >>conftest.$ac_ext
66621 cat >>conftest.$ac_ext <<_ACEOF
66622 /* end confdefs.h.  */
66623 #include <$ac_header>
66624 _ACEOF
66625 if { (ac_try="$ac_cpp conftest.$ac_ext"
66626 case "(($ac_try" in
66627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66628   *) ac_try_echo=$ac_try;;
66629 esac
66630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66631 $as_echo "$ac_try_echo") >&5
66632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
66633   ac_status=$?
66634   grep -v '^ *+' conftest.er1 >conftest.err
66635   rm -f conftest.er1
66636   cat conftest.err >&5
66637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66638   (exit $ac_status); } >/dev/null && {
66639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
66640          test ! -s conftest.err
66641        }; then
66642   ac_header_preproc=yes
66643 else
66644   $as_echo "$as_me: failed program was:" >&5
66645 sed 's/^/| /' conftest.$ac_ext >&5
66646
66647   ac_header_preproc=no
66648 fi
66649
66650 rm -f conftest.err conftest.$ac_ext
66651 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66652 $as_echo "$ac_header_preproc" >&6; }
66653
66654 # So?  What about this header?
66655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66656   yes:no: )
66657     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66658 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66660 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66661     ac_header_preproc=yes
66662     ;;
66663   no:yes:* )
66664     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66665 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66666     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66667 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66669 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66671 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66672     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66673 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66675 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66676
66677     ;;
66678 esac
66679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66680 $as_echo_n "checking for $ac_header... " >&6; }
66681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66682   $as_echo_n "(cached) " >&6
66683 else
66684   eval "$as_ac_Header=\$ac_header_preproc"
66685 fi
66686 ac_res=`eval 'as_val=${'$as_ac_Header'}
66687                  $as_echo "$as_val"'`
66688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66689 $as_echo "$ac_res" >&6; }
66690
66691 fi
66692 as_val=`eval 'as_val=${'$as_ac_Header'}
66693                  $as_echo "$as_val"'`
66694    if test "x$as_val" = x""yes; then
66695   cat >>confdefs.h <<_ACEOF
66696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
66697 _ACEOF
66698
66699 fi
66700
66701 done
66702
66703
66704         { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
66705 $as_echo_n "checking for select() argument type... " >&6; }
66706 if test "${amanda_cv_select_arg_type+set}" = set; then
66707   $as_echo_n "(cached) " >&6
66708 else
66709
66710                 rm -f conftest.c
66711                 cat <<EOF >conftest.$ac_ext
66712 #include "confdefs.h"
66713 #ifdef TIME_WITH_SYS_TIME
66714 #  include <sys/time.h>
66715 #  include <time.h>
66716 #else
66717 #  ifdef HAVE_SYS_TIME_H
66718 #    include <sys/time.h>
66719 #  else
66720 #    include <time.h>
66721 #  endif
66722 #endif
66723 #ifdef HAVE_SYS_TYPES_H
66724 # include <sys/types.h>
66725 #endif
66726 #ifdef HAVE_SYS_SELECT_H
66727 #  include <sys/select.h>
66728 #endif
66729 #ifdef HAVE_SYS_SOCKET_H
66730 #  include <sys/socket.h>
66731 #endif
66732 #ifdef HAVE_UNISTD_H
66733 # include <unistd.h>
66734 #endif
66735
66736 int main()
66737 {
66738 #ifdef FD_SET_POINTER
66739         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
66740 #else
66741         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
66742 #endif
66743         return 0;
66744 }
66745 EOF
66746
66747                 # Figure out the select argument type by first trying to
66748                 # compile with the fd_set argument.  If the compile fails,
66749                 # then we know to use the int.  If it suceeds, then try to
66750                 # use the int.  If the int fails, then use fd_set.  If
66751                 # both suceeed, then do a line count on the number of
66752                 # lines that the compiler spit out, assuming that the
66753                 # compile outputing more lines had more errors.
66754                 amanda_cv_select_arg_type=no
66755                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
66756                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
66757                 if test $? -ne 0; then
66758                     amanda_cv_select_arg_type=int
66759                 fi
66760                 if test "$amanda_cv_select_arg_type" = no; then
66761                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
66762                     if test $? -ne 0; then
66763                         amanda_cv_select_arg_type=fd_set
66764                     fi
66765                 fi
66766                 if test "$amanda_cv_select_arg_type" = no; then
66767                     wc_fdset=`wc -l <conftest.fd_set`
66768                     wc_int=`wc -l <conftest.int`
66769                     if test "$wc_fdset" -le "$wc_int"; then
66770                         amanda_cv_select_arg_type=fd_set
66771                     else
66772                         amanda_cv_select_arg_type=int
66773                     fi
66774                 fi
66775                 rm -f conftest*
66776
66777
66778 fi
66779 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
66780 $as_echo "$amanda_cv_select_arg_type" >&6; }
66781
66782 cat >>confdefs.h <<_ACEOF
66783 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
66784 _ACEOF
66785
66786
66787
66788
66789 ice_have_sendto=no
66790
66791 for ac_func in sendto
66792 do
66793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66794 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66795 $as_echo_n "checking for $ac_func... " >&6; }
66796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66797   $as_echo_n "(cached) " >&6
66798 else
66799   cat >conftest.$ac_ext <<_ACEOF
66800 /* confdefs.h.  */
66801 _ACEOF
66802 cat confdefs.h >>conftest.$ac_ext
66803 cat >>conftest.$ac_ext <<_ACEOF
66804 /* end confdefs.h.  */
66805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66807 #define $ac_func innocuous_$ac_func
66808
66809 /* System header to define __stub macros and hopefully few prototypes,
66810     which can conflict with char $ac_func (); below.
66811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66812     <limits.h> exists even on freestanding compilers.  */
66813
66814 #ifdef __STDC__
66815 # include <limits.h>
66816 #else
66817 # include <assert.h>
66818 #endif
66819
66820 #undef $ac_func
66821
66822 /* Override any GCC internal prototype to avoid an error.
66823    Use char because int might match the return type of a GCC
66824    builtin and then its argument prototype would still apply.  */
66825 #ifdef __cplusplus
66826 extern "C"
66827 #endif
66828 char $ac_func ();
66829 /* The GNU C library defines this for functions which it implements
66830     to always fail with ENOSYS.  Some functions are actually named
66831     something starting with __ and the normal name is an alias.  */
66832 #if defined __stub_$ac_func || defined __stub___$ac_func
66833 choke me
66834 #endif
66835
66836 int
66837 main ()
66838 {
66839 return $ac_func ();
66840   ;
66841   return 0;
66842 }
66843 _ACEOF
66844 rm -f conftest.$ac_objext conftest$ac_exeext
66845 if { (ac_try="$ac_link"
66846 case "(($ac_try" in
66847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66848   *) ac_try_echo=$ac_try;;
66849 esac
66850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66851 $as_echo "$ac_try_echo") >&5
66852   (eval "$ac_link") 2>conftest.er1
66853   ac_status=$?
66854   grep -v '^ *+' conftest.er1 >conftest.err
66855   rm -f conftest.er1
66856   cat conftest.err >&5
66857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66858   (exit $ac_status); } && {
66859          test -z "$ac_c_werror_flag" ||
66860          test ! -s conftest.err
66861        } && test -s conftest$ac_exeext && {
66862          test "$cross_compiling" = yes ||
66863          $as_test_x conftest$ac_exeext
66864        }; then
66865   eval "$as_ac_var=yes"
66866 else
66867   $as_echo "$as_me: failed program was:" >&5
66868 sed 's/^/| /' conftest.$ac_ext >&5
66869
66870         eval "$as_ac_var=no"
66871 fi
66872
66873 rm -rf conftest.dSYM
66874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66875       conftest$ac_exeext conftest.$ac_ext
66876 fi
66877 ac_res=`eval 'as_val=${'$as_ac_var'}
66878                  $as_echo "$as_val"'`
66879                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66880 $as_echo "$ac_res" >&6; }
66881 as_val=`eval 'as_val=${'$as_ac_var'}
66882                  $as_echo "$as_val"'`
66883    if test "x$as_val" = x""yes; then
66884   cat >>confdefs.h <<_ACEOF
66885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66886 _ACEOF
66887  ice_have_sendto=yes
66888 fi
66889 done
66890
66891 if test "${ice_have_sendto}" = yes; then
66892 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
66893 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
66894 if test "${ice_cv_have_sendto_decl+set}" = set; then
66895   $as_echo_n "(cached) " >&6
66896 else
66897
66898 ice_cv_have_sendto_decl=no
66899 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66900 ice_re_word='(^|[^a-zA-Z0-9_])'
66901 for header in sys/types.h sys/socket.h; do
66902 # Check for ordinary declaration
66903 cat >conftest.$ac_ext <<_ACEOF
66904 /* confdefs.h.  */
66905 _ACEOF
66906 cat confdefs.h >>conftest.$ac_ext
66907 cat >>conftest.$ac_ext <<_ACEOF
66908 /* end confdefs.h.  */
66909 #include <$header>
66910
66911 _ACEOF
66912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66913   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
66914   ice_cv_have_sendto_decl=yes
66915 fi
66916 rm -f conftest*
66917
66918 if test "$ice_cv_have_sendto_decl" = yes; then
66919         break
66920 fi
66921 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66922 cat >conftest.$ac_ext <<_ACEOF
66923 /* confdefs.h.  */
66924 _ACEOF
66925 cat confdefs.h >>conftest.$ac_ext
66926 cat >>conftest.$ac_ext <<_ACEOF
66927 /* end confdefs.h.  */
66928 #include <$header>
66929
66930 _ACEOF
66931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66932   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66933   ice_cv_have_sendto_decl=yes
66934 fi
66935 rm -f conftest*
66936
66937 if test "$ice_cv_have_sendto_decl" = yes; then
66938         break
66939 fi
66940 done
66941
66942 fi
66943
66944 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
66945 $as_echo "$ice_cv_have_sendto_decl" >&6; }
66946 if test "$ice_cv_have_sendto_decl" = yes; then
66947
66948 cat >>confdefs.h <<_ACEOF
66949 #define HAVE_SENDTO_DECL 1
66950 _ACEOF
66951
66952 fi
66953 fi
66954
66955
66956 ice_have_setegid=no
66957
66958 for ac_func in setegid
66959 do
66960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66962 $as_echo_n "checking for $ac_func... " >&6; }
66963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66964   $as_echo_n "(cached) " >&6
66965 else
66966   cat >conftest.$ac_ext <<_ACEOF
66967 /* confdefs.h.  */
66968 _ACEOF
66969 cat confdefs.h >>conftest.$ac_ext
66970 cat >>conftest.$ac_ext <<_ACEOF
66971 /* end confdefs.h.  */
66972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66974 #define $ac_func innocuous_$ac_func
66975
66976 /* System header to define __stub macros and hopefully few prototypes,
66977     which can conflict with char $ac_func (); below.
66978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66979     <limits.h> exists even on freestanding compilers.  */
66980
66981 #ifdef __STDC__
66982 # include <limits.h>
66983 #else
66984 # include <assert.h>
66985 #endif
66986
66987 #undef $ac_func
66988
66989 /* Override any GCC internal prototype to avoid an error.
66990    Use char because int might match the return type of a GCC
66991    builtin and then its argument prototype would still apply.  */
66992 #ifdef __cplusplus
66993 extern "C"
66994 #endif
66995 char $ac_func ();
66996 /* The GNU C library defines this for functions which it implements
66997     to always fail with ENOSYS.  Some functions are actually named
66998     something starting with __ and the normal name is an alias.  */
66999 #if defined __stub_$ac_func || defined __stub___$ac_func
67000 choke me
67001 #endif
67002
67003 int
67004 main ()
67005 {
67006 return $ac_func ();
67007   ;
67008   return 0;
67009 }
67010 _ACEOF
67011 rm -f conftest.$ac_objext conftest$ac_exeext
67012 if { (ac_try="$ac_link"
67013 case "(($ac_try" in
67014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67015   *) ac_try_echo=$ac_try;;
67016 esac
67017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67018 $as_echo "$ac_try_echo") >&5
67019   (eval "$ac_link") 2>conftest.er1
67020   ac_status=$?
67021   grep -v '^ *+' conftest.er1 >conftest.err
67022   rm -f conftest.er1
67023   cat conftest.err >&5
67024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67025   (exit $ac_status); } && {
67026          test -z "$ac_c_werror_flag" ||
67027          test ! -s conftest.err
67028        } && test -s conftest$ac_exeext && {
67029          test "$cross_compiling" = yes ||
67030          $as_test_x conftest$ac_exeext
67031        }; then
67032   eval "$as_ac_var=yes"
67033 else
67034   $as_echo "$as_me: failed program was:" >&5
67035 sed 's/^/| /' conftest.$ac_ext >&5
67036
67037         eval "$as_ac_var=no"
67038 fi
67039
67040 rm -rf conftest.dSYM
67041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67042       conftest$ac_exeext conftest.$ac_ext
67043 fi
67044 ac_res=`eval 'as_val=${'$as_ac_var'}
67045                  $as_echo "$as_val"'`
67046                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67047 $as_echo "$ac_res" >&6; }
67048 as_val=`eval 'as_val=${'$as_ac_var'}
67049                  $as_echo "$as_val"'`
67050    if test "x$as_val" = x""yes; then
67051   cat >>confdefs.h <<_ACEOF
67052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67053 _ACEOF
67054  ice_have_setegid=yes
67055 fi
67056 done
67057
67058 if test "${ice_have_setegid}" = yes; then
67059 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
67060 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
67061 if test "${ice_cv_have_setegid_decl+set}" = set; then
67062   $as_echo_n "(cached) " >&6
67063 else
67064
67065 ice_cv_have_setegid_decl=no
67066 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67067 ice_re_word='(^|[^a-zA-Z0-9_])'
67068 for header in unistd.h; do
67069 # Check for ordinary declaration
67070 cat >conftest.$ac_ext <<_ACEOF
67071 /* confdefs.h.  */
67072 _ACEOF
67073 cat confdefs.h >>conftest.$ac_ext
67074 cat >>conftest.$ac_ext <<_ACEOF
67075 /* end confdefs.h.  */
67076 #include <$header>
67077
67078 _ACEOF
67079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67080   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
67081   ice_cv_have_setegid_decl=yes
67082 fi
67083 rm -f conftest*
67084
67085 if test "$ice_cv_have_setegid_decl" = yes; then
67086         break
67087 fi
67088 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67089 cat >conftest.$ac_ext <<_ACEOF
67090 /* confdefs.h.  */
67091 _ACEOF
67092 cat confdefs.h >>conftest.$ac_ext
67093 cat >>conftest.$ac_ext <<_ACEOF
67094 /* end confdefs.h.  */
67095 #include <$header>
67096
67097 _ACEOF
67098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67099   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67100   ice_cv_have_setegid_decl=yes
67101 fi
67102 rm -f conftest*
67103
67104 if test "$ice_cv_have_setegid_decl" = yes; then
67105         break
67106 fi
67107 done
67108
67109 fi
67110
67111 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
67112 $as_echo "$ice_cv_have_setegid_decl" >&6; }
67113 if test "$ice_cv_have_setegid_decl" = yes; then
67114
67115 cat >>confdefs.h <<_ACEOF
67116 #define HAVE_SETEGID_DECL 1
67117 _ACEOF
67118
67119 fi
67120 fi
67121
67122
67123 ice_have_seteuid=no
67124
67125 for ac_func in seteuid
67126 do
67127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67129 $as_echo_n "checking for $ac_func... " >&6; }
67130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67131   $as_echo_n "(cached) " >&6
67132 else
67133   cat >conftest.$ac_ext <<_ACEOF
67134 /* confdefs.h.  */
67135 _ACEOF
67136 cat confdefs.h >>conftest.$ac_ext
67137 cat >>conftest.$ac_ext <<_ACEOF
67138 /* end confdefs.h.  */
67139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67141 #define $ac_func innocuous_$ac_func
67142
67143 /* System header to define __stub macros and hopefully few prototypes,
67144     which can conflict with char $ac_func (); below.
67145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67146     <limits.h> exists even on freestanding compilers.  */
67147
67148 #ifdef __STDC__
67149 # include <limits.h>
67150 #else
67151 # include <assert.h>
67152 #endif
67153
67154 #undef $ac_func
67155
67156 /* Override any GCC internal prototype to avoid an error.
67157    Use char because int might match the return type of a GCC
67158    builtin and then its argument prototype would still apply.  */
67159 #ifdef __cplusplus
67160 extern "C"
67161 #endif
67162 char $ac_func ();
67163 /* The GNU C library defines this for functions which it implements
67164     to always fail with ENOSYS.  Some functions are actually named
67165     something starting with __ and the normal name is an alias.  */
67166 #if defined __stub_$ac_func || defined __stub___$ac_func
67167 choke me
67168 #endif
67169
67170 int
67171 main ()
67172 {
67173 return $ac_func ();
67174   ;
67175   return 0;
67176 }
67177 _ACEOF
67178 rm -f conftest.$ac_objext conftest$ac_exeext
67179 if { (ac_try="$ac_link"
67180 case "(($ac_try" in
67181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67182   *) ac_try_echo=$ac_try;;
67183 esac
67184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67185 $as_echo "$ac_try_echo") >&5
67186   (eval "$ac_link") 2>conftest.er1
67187   ac_status=$?
67188   grep -v '^ *+' conftest.er1 >conftest.err
67189   rm -f conftest.er1
67190   cat conftest.err >&5
67191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67192   (exit $ac_status); } && {
67193          test -z "$ac_c_werror_flag" ||
67194          test ! -s conftest.err
67195        } && test -s conftest$ac_exeext && {
67196          test "$cross_compiling" = yes ||
67197          $as_test_x conftest$ac_exeext
67198        }; then
67199   eval "$as_ac_var=yes"
67200 else
67201   $as_echo "$as_me: failed program was:" >&5
67202 sed 's/^/| /' conftest.$ac_ext >&5
67203
67204         eval "$as_ac_var=no"
67205 fi
67206
67207 rm -rf conftest.dSYM
67208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67209       conftest$ac_exeext conftest.$ac_ext
67210 fi
67211 ac_res=`eval 'as_val=${'$as_ac_var'}
67212                  $as_echo "$as_val"'`
67213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67214 $as_echo "$ac_res" >&6; }
67215 as_val=`eval 'as_val=${'$as_ac_var'}
67216                  $as_echo "$as_val"'`
67217    if test "x$as_val" = x""yes; then
67218   cat >>confdefs.h <<_ACEOF
67219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67220 _ACEOF
67221  ice_have_seteuid=yes
67222 fi
67223 done
67224
67225 if test "${ice_have_seteuid}" = yes; then
67226 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
67227 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
67228 if test "${ice_cv_have_seteuid_decl+set}" = set; then
67229   $as_echo_n "(cached) " >&6
67230 else
67231
67232 ice_cv_have_seteuid_decl=no
67233 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67234 ice_re_word='(^|[^a-zA-Z0-9_])'
67235 for header in unistd.h; do
67236 # Check for ordinary declaration
67237 cat >conftest.$ac_ext <<_ACEOF
67238 /* confdefs.h.  */
67239 _ACEOF
67240 cat confdefs.h >>conftest.$ac_ext
67241 cat >>conftest.$ac_ext <<_ACEOF
67242 /* end confdefs.h.  */
67243 #include <$header>
67244
67245 _ACEOF
67246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67247   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
67248   ice_cv_have_seteuid_decl=yes
67249 fi
67250 rm -f conftest*
67251
67252 if test "$ice_cv_have_seteuid_decl" = yes; then
67253         break
67254 fi
67255 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67256 cat >conftest.$ac_ext <<_ACEOF
67257 /* confdefs.h.  */
67258 _ACEOF
67259 cat confdefs.h >>conftest.$ac_ext
67260 cat >>conftest.$ac_ext <<_ACEOF
67261 /* end confdefs.h.  */
67262 #include <$header>
67263
67264 _ACEOF
67265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67266   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67267   ice_cv_have_seteuid_decl=yes
67268 fi
67269 rm -f conftest*
67270
67271 if test "$ice_cv_have_seteuid_decl" = yes; then
67272         break
67273 fi
67274 done
67275
67276 fi
67277
67278 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
67279 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
67280 if test "$ice_cv_have_seteuid_decl" = yes; then
67281
67282 cat >>confdefs.h <<_ACEOF
67283 #define HAVE_SETEUID_DECL 1
67284 _ACEOF
67285
67286 fi
67287 fi
67288
67289
67290 ice_have_setresgid=no
67291
67292 for ac_func in setresgid
67293 do
67294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67295 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67296 $as_echo_n "checking for $ac_func... " >&6; }
67297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67298   $as_echo_n "(cached) " >&6
67299 else
67300   cat >conftest.$ac_ext <<_ACEOF
67301 /* confdefs.h.  */
67302 _ACEOF
67303 cat confdefs.h >>conftest.$ac_ext
67304 cat >>conftest.$ac_ext <<_ACEOF
67305 /* end confdefs.h.  */
67306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67308 #define $ac_func innocuous_$ac_func
67309
67310 /* System header to define __stub macros and hopefully few prototypes,
67311     which can conflict with char $ac_func (); below.
67312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67313     <limits.h> exists even on freestanding compilers.  */
67314
67315 #ifdef __STDC__
67316 # include <limits.h>
67317 #else
67318 # include <assert.h>
67319 #endif
67320
67321 #undef $ac_func
67322
67323 /* Override any GCC internal prototype to avoid an error.
67324    Use char because int might match the return type of a GCC
67325    builtin and then its argument prototype would still apply.  */
67326 #ifdef __cplusplus
67327 extern "C"
67328 #endif
67329 char $ac_func ();
67330 /* The GNU C library defines this for functions which it implements
67331     to always fail with ENOSYS.  Some functions are actually named
67332     something starting with __ and the normal name is an alias.  */
67333 #if defined __stub_$ac_func || defined __stub___$ac_func
67334 choke me
67335 #endif
67336
67337 int
67338 main ()
67339 {
67340 return $ac_func ();
67341   ;
67342   return 0;
67343 }
67344 _ACEOF
67345 rm -f conftest.$ac_objext conftest$ac_exeext
67346 if { (ac_try="$ac_link"
67347 case "(($ac_try" in
67348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67349   *) ac_try_echo=$ac_try;;
67350 esac
67351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67352 $as_echo "$ac_try_echo") >&5
67353   (eval "$ac_link") 2>conftest.er1
67354   ac_status=$?
67355   grep -v '^ *+' conftest.er1 >conftest.err
67356   rm -f conftest.er1
67357   cat conftest.err >&5
67358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67359   (exit $ac_status); } && {
67360          test -z "$ac_c_werror_flag" ||
67361          test ! -s conftest.err
67362        } && test -s conftest$ac_exeext && {
67363          test "$cross_compiling" = yes ||
67364          $as_test_x conftest$ac_exeext
67365        }; then
67366   eval "$as_ac_var=yes"
67367 else
67368   $as_echo "$as_me: failed program was:" >&5
67369 sed 's/^/| /' conftest.$ac_ext >&5
67370
67371         eval "$as_ac_var=no"
67372 fi
67373
67374 rm -rf conftest.dSYM
67375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67376       conftest$ac_exeext conftest.$ac_ext
67377 fi
67378 ac_res=`eval 'as_val=${'$as_ac_var'}
67379                  $as_echo "$as_val"'`
67380                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67381 $as_echo "$ac_res" >&6; }
67382 as_val=`eval 'as_val=${'$as_ac_var'}
67383                  $as_echo "$as_val"'`
67384    if test "x$as_val" = x""yes; then
67385   cat >>confdefs.h <<_ACEOF
67386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67387 _ACEOF
67388  ice_have_setresgid=yes
67389 fi
67390 done
67391
67392 if test "${ice_have_setresgid}" = yes; then
67393 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
67394 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
67395 if test "${ice_cv_have_setresgid_decl+set}" = set; then
67396   $as_echo_n "(cached) " >&6
67397 else
67398
67399 ice_cv_have_setresgid_decl=no
67400 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67401 ice_re_word='(^|[^a-zA-Z0-9_])'
67402 for header in unistd.h; do
67403 # Check for ordinary declaration
67404 cat >conftest.$ac_ext <<_ACEOF
67405 /* confdefs.h.  */
67406 _ACEOF
67407 cat confdefs.h >>conftest.$ac_ext
67408 cat >>conftest.$ac_ext <<_ACEOF
67409 /* end confdefs.h.  */
67410 #include <$header>
67411
67412 _ACEOF
67413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67414   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
67415   ice_cv_have_setresgid_decl=yes
67416 fi
67417 rm -f conftest*
67418
67419 if test "$ice_cv_have_setresgid_decl" = yes; then
67420         break
67421 fi
67422 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67423 cat >conftest.$ac_ext <<_ACEOF
67424 /* confdefs.h.  */
67425 _ACEOF
67426 cat confdefs.h >>conftest.$ac_ext
67427 cat >>conftest.$ac_ext <<_ACEOF
67428 /* end confdefs.h.  */
67429 #include <$header>
67430
67431 _ACEOF
67432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67433   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67434   ice_cv_have_setresgid_decl=yes
67435 fi
67436 rm -f conftest*
67437
67438 if test "$ice_cv_have_setresgid_decl" = yes; then
67439         break
67440 fi
67441 done
67442
67443 fi
67444
67445 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
67446 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
67447 if test "$ice_cv_have_setresgid_decl" = yes; then
67448
67449 cat >>confdefs.h <<_ACEOF
67450 #define HAVE_SETRESGID_DECL 1
67451 _ACEOF
67452
67453 fi
67454 fi
67455
67456
67457 ice_have_setresuid=no
67458
67459 for ac_func in setresuid
67460 do
67461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67462 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67463 $as_echo_n "checking for $ac_func... " >&6; }
67464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67465   $as_echo_n "(cached) " >&6
67466 else
67467   cat >conftest.$ac_ext <<_ACEOF
67468 /* confdefs.h.  */
67469 _ACEOF
67470 cat confdefs.h >>conftest.$ac_ext
67471 cat >>conftest.$ac_ext <<_ACEOF
67472 /* end confdefs.h.  */
67473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67475 #define $ac_func innocuous_$ac_func
67476
67477 /* System header to define __stub macros and hopefully few prototypes,
67478     which can conflict with char $ac_func (); below.
67479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67480     <limits.h> exists even on freestanding compilers.  */
67481
67482 #ifdef __STDC__
67483 # include <limits.h>
67484 #else
67485 # include <assert.h>
67486 #endif
67487
67488 #undef $ac_func
67489
67490 /* Override any GCC internal prototype to avoid an error.
67491    Use char because int might match the return type of a GCC
67492    builtin and then its argument prototype would still apply.  */
67493 #ifdef __cplusplus
67494 extern "C"
67495 #endif
67496 char $ac_func ();
67497 /* The GNU C library defines this for functions which it implements
67498     to always fail with ENOSYS.  Some functions are actually named
67499     something starting with __ and the normal name is an alias.  */
67500 #if defined __stub_$ac_func || defined __stub___$ac_func
67501 choke me
67502 #endif
67503
67504 int
67505 main ()
67506 {
67507 return $ac_func ();
67508   ;
67509   return 0;
67510 }
67511 _ACEOF
67512 rm -f conftest.$ac_objext conftest$ac_exeext
67513 if { (ac_try="$ac_link"
67514 case "(($ac_try" in
67515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67516   *) ac_try_echo=$ac_try;;
67517 esac
67518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67519 $as_echo "$ac_try_echo") >&5
67520   (eval "$ac_link") 2>conftest.er1
67521   ac_status=$?
67522   grep -v '^ *+' conftest.er1 >conftest.err
67523   rm -f conftest.er1
67524   cat conftest.err >&5
67525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67526   (exit $ac_status); } && {
67527          test -z "$ac_c_werror_flag" ||
67528          test ! -s conftest.err
67529        } && test -s conftest$ac_exeext && {
67530          test "$cross_compiling" = yes ||
67531          $as_test_x conftest$ac_exeext
67532        }; then
67533   eval "$as_ac_var=yes"
67534 else
67535   $as_echo "$as_me: failed program was:" >&5
67536 sed 's/^/| /' conftest.$ac_ext >&5
67537
67538         eval "$as_ac_var=no"
67539 fi
67540
67541 rm -rf conftest.dSYM
67542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67543       conftest$ac_exeext conftest.$ac_ext
67544 fi
67545 ac_res=`eval 'as_val=${'$as_ac_var'}
67546                  $as_echo "$as_val"'`
67547                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67548 $as_echo "$ac_res" >&6; }
67549 as_val=`eval 'as_val=${'$as_ac_var'}
67550                  $as_echo "$as_val"'`
67551    if test "x$as_val" = x""yes; then
67552   cat >>confdefs.h <<_ACEOF
67553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67554 _ACEOF
67555  ice_have_setresuid=yes
67556 fi
67557 done
67558
67559 if test "${ice_have_setresuid}" = yes; then
67560 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
67561 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
67562 if test "${ice_cv_have_setresuid_decl+set}" = set; then
67563   $as_echo_n "(cached) " >&6
67564 else
67565
67566 ice_cv_have_setresuid_decl=no
67567 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67568 ice_re_word='(^|[^a-zA-Z0-9_])'
67569 for header in unistd.h; do
67570 # Check for ordinary declaration
67571 cat >conftest.$ac_ext <<_ACEOF
67572 /* confdefs.h.  */
67573 _ACEOF
67574 cat confdefs.h >>conftest.$ac_ext
67575 cat >>conftest.$ac_ext <<_ACEOF
67576 /* end confdefs.h.  */
67577 #include <$header>
67578
67579 _ACEOF
67580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67581   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
67582   ice_cv_have_setresuid_decl=yes
67583 fi
67584 rm -f conftest*
67585
67586 if test "$ice_cv_have_setresuid_decl" = yes; then
67587         break
67588 fi
67589 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67590 cat >conftest.$ac_ext <<_ACEOF
67591 /* confdefs.h.  */
67592 _ACEOF
67593 cat confdefs.h >>conftest.$ac_ext
67594 cat >>conftest.$ac_ext <<_ACEOF
67595 /* end confdefs.h.  */
67596 #include <$header>
67597
67598 _ACEOF
67599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67600   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67601   ice_cv_have_setresuid_decl=yes
67602 fi
67603 rm -f conftest*
67604
67605 if test "$ice_cv_have_setresuid_decl" = yes; then
67606         break
67607 fi
67608 done
67609
67610 fi
67611
67612 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
67613 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
67614 if test "$ice_cv_have_setresuid_decl" = yes; then
67615
67616 cat >>confdefs.h <<_ACEOF
67617 #define HAVE_SETRESUID_DECL 1
67618 _ACEOF
67619
67620 fi
67621 fi
67622
67623
67624 ice_have_snprintf=no
67625
67626 for ac_func in snprintf
67627 do
67628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67629 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67630 $as_echo_n "checking for $ac_func... " >&6; }
67631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67632   $as_echo_n "(cached) " >&6
67633 else
67634   cat >conftest.$ac_ext <<_ACEOF
67635 /* confdefs.h.  */
67636 _ACEOF
67637 cat confdefs.h >>conftest.$ac_ext
67638 cat >>conftest.$ac_ext <<_ACEOF
67639 /* end confdefs.h.  */
67640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67642 #define $ac_func innocuous_$ac_func
67643
67644 /* System header to define __stub macros and hopefully few prototypes,
67645     which can conflict with char $ac_func (); below.
67646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67647     <limits.h> exists even on freestanding compilers.  */
67648
67649 #ifdef __STDC__
67650 # include <limits.h>
67651 #else
67652 # include <assert.h>
67653 #endif
67654
67655 #undef $ac_func
67656
67657 /* Override any GCC internal prototype to avoid an error.
67658    Use char because int might match the return type of a GCC
67659    builtin and then its argument prototype would still apply.  */
67660 #ifdef __cplusplus
67661 extern "C"
67662 #endif
67663 char $ac_func ();
67664 /* The GNU C library defines this for functions which it implements
67665     to always fail with ENOSYS.  Some functions are actually named
67666     something starting with __ and the normal name is an alias.  */
67667 #if defined __stub_$ac_func || defined __stub___$ac_func
67668 choke me
67669 #endif
67670
67671 int
67672 main ()
67673 {
67674 return $ac_func ();
67675   ;
67676   return 0;
67677 }
67678 _ACEOF
67679 rm -f conftest.$ac_objext conftest$ac_exeext
67680 if { (ac_try="$ac_link"
67681 case "(($ac_try" in
67682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67683   *) ac_try_echo=$ac_try;;
67684 esac
67685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67686 $as_echo "$ac_try_echo") >&5
67687   (eval "$ac_link") 2>conftest.er1
67688   ac_status=$?
67689   grep -v '^ *+' conftest.er1 >conftest.err
67690   rm -f conftest.er1
67691   cat conftest.err >&5
67692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67693   (exit $ac_status); } && {
67694          test -z "$ac_c_werror_flag" ||
67695          test ! -s conftest.err
67696        } && test -s conftest$ac_exeext && {
67697          test "$cross_compiling" = yes ||
67698          $as_test_x conftest$ac_exeext
67699        }; then
67700   eval "$as_ac_var=yes"
67701 else
67702   $as_echo "$as_me: failed program was:" >&5
67703 sed 's/^/| /' conftest.$ac_ext >&5
67704
67705         eval "$as_ac_var=no"
67706 fi
67707
67708 rm -rf conftest.dSYM
67709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67710       conftest$ac_exeext conftest.$ac_ext
67711 fi
67712 ac_res=`eval 'as_val=${'$as_ac_var'}
67713                  $as_echo "$as_val"'`
67714                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67715 $as_echo "$ac_res" >&6; }
67716 as_val=`eval 'as_val=${'$as_ac_var'}
67717                  $as_echo "$as_val"'`
67718    if test "x$as_val" = x""yes; then
67719   cat >>confdefs.h <<_ACEOF
67720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67721 _ACEOF
67722  ice_have_snprintf=yes
67723 fi
67724 done
67725
67726 if test "${ice_have_snprintf}" = yes; then
67727 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
67728 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
67729 if test "${ice_cv_have_snprintf_decl+set}" = set; then
67730   $as_echo_n "(cached) " >&6
67731 else
67732
67733 ice_cv_have_snprintf_decl=no
67734 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67735 ice_re_word='(^|[^a-zA-Z0-9_])'
67736 for header in stdio.h; do
67737 # Check for ordinary declaration
67738 cat >conftest.$ac_ext <<_ACEOF
67739 /* confdefs.h.  */
67740 _ACEOF
67741 cat confdefs.h >>conftest.$ac_ext
67742 cat >>conftest.$ac_ext <<_ACEOF
67743 /* end confdefs.h.  */
67744 #include <$header>
67745
67746 _ACEOF
67747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67748   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
67749   ice_cv_have_snprintf_decl=yes
67750 fi
67751 rm -f conftest*
67752
67753 if test "$ice_cv_have_snprintf_decl" = yes; then
67754         break
67755 fi
67756 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67757 cat >conftest.$ac_ext <<_ACEOF
67758 /* confdefs.h.  */
67759 _ACEOF
67760 cat confdefs.h >>conftest.$ac_ext
67761 cat >>conftest.$ac_ext <<_ACEOF
67762 /* end confdefs.h.  */
67763 #include <$header>
67764
67765 _ACEOF
67766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67767   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67768   ice_cv_have_snprintf_decl=yes
67769 fi
67770 rm -f conftest*
67771
67772 if test "$ice_cv_have_snprintf_decl" = yes; then
67773         break
67774 fi
67775 done
67776
67777 fi
67778
67779 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
67780 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
67781 if test "$ice_cv_have_snprintf_decl" = yes; then
67782
67783 cat >>confdefs.h <<_ACEOF
67784 #define HAVE_SNPRINTF_DECL 1
67785 _ACEOF
67786
67787 fi
67788 fi
67789
67790
67791 ice_have_vsnprintf=no
67792
67793 for ac_func in vsnprintf
67794 do
67795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67797 $as_echo_n "checking for $ac_func... " >&6; }
67798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67799   $as_echo_n "(cached) " >&6
67800 else
67801   cat >conftest.$ac_ext <<_ACEOF
67802 /* confdefs.h.  */
67803 _ACEOF
67804 cat confdefs.h >>conftest.$ac_ext
67805 cat >>conftest.$ac_ext <<_ACEOF
67806 /* end confdefs.h.  */
67807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67809 #define $ac_func innocuous_$ac_func
67810
67811 /* System header to define __stub macros and hopefully few prototypes,
67812     which can conflict with char $ac_func (); below.
67813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67814     <limits.h> exists even on freestanding compilers.  */
67815
67816 #ifdef __STDC__
67817 # include <limits.h>
67818 #else
67819 # include <assert.h>
67820 #endif
67821
67822 #undef $ac_func
67823
67824 /* Override any GCC internal prototype to avoid an error.
67825    Use char because int might match the return type of a GCC
67826    builtin and then its argument prototype would still apply.  */
67827 #ifdef __cplusplus
67828 extern "C"
67829 #endif
67830 char $ac_func ();
67831 /* The GNU C library defines this for functions which it implements
67832     to always fail with ENOSYS.  Some functions are actually named
67833     something starting with __ and the normal name is an alias.  */
67834 #if defined __stub_$ac_func || defined __stub___$ac_func
67835 choke me
67836 #endif
67837
67838 int
67839 main ()
67840 {
67841 return $ac_func ();
67842   ;
67843   return 0;
67844 }
67845 _ACEOF
67846 rm -f conftest.$ac_objext conftest$ac_exeext
67847 if { (ac_try="$ac_link"
67848 case "(($ac_try" in
67849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67850   *) ac_try_echo=$ac_try;;
67851 esac
67852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67853 $as_echo "$ac_try_echo") >&5
67854   (eval "$ac_link") 2>conftest.er1
67855   ac_status=$?
67856   grep -v '^ *+' conftest.er1 >conftest.err
67857   rm -f conftest.er1
67858   cat conftest.err >&5
67859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67860   (exit $ac_status); } && {
67861          test -z "$ac_c_werror_flag" ||
67862          test ! -s conftest.err
67863        } && test -s conftest$ac_exeext && {
67864          test "$cross_compiling" = yes ||
67865          $as_test_x conftest$ac_exeext
67866        }; then
67867   eval "$as_ac_var=yes"
67868 else
67869   $as_echo "$as_me: failed program was:" >&5
67870 sed 's/^/| /' conftest.$ac_ext >&5
67871
67872         eval "$as_ac_var=no"
67873 fi
67874
67875 rm -rf conftest.dSYM
67876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67877       conftest$ac_exeext conftest.$ac_ext
67878 fi
67879 ac_res=`eval 'as_val=${'$as_ac_var'}
67880                  $as_echo "$as_val"'`
67881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67882 $as_echo "$ac_res" >&6; }
67883 as_val=`eval 'as_val=${'$as_ac_var'}
67884                  $as_echo "$as_val"'`
67885    if test "x$as_val" = x""yes; then
67886   cat >>confdefs.h <<_ACEOF
67887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67888 _ACEOF
67889  ice_have_vsnprintf=yes
67890 fi
67891 done
67892
67893 if test "${ice_have_vsnprintf}" = yes; then
67894 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
67895 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
67896 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
67897   $as_echo_n "(cached) " >&6
67898 else
67899
67900 ice_cv_have_vsnprintf_decl=no
67901 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67902 ice_re_word='(^|[^a-zA-Z0-9_])'
67903 for header in stdio.h; do
67904 # Check for ordinary declaration
67905 cat >conftest.$ac_ext <<_ACEOF
67906 /* confdefs.h.  */
67907 _ACEOF
67908 cat confdefs.h >>conftest.$ac_ext
67909 cat >>conftest.$ac_ext <<_ACEOF
67910 /* end confdefs.h.  */
67911 #include <$header>
67912
67913 _ACEOF
67914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67915   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
67916   ice_cv_have_vsnprintf_decl=yes
67917 fi
67918 rm -f conftest*
67919
67920 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67921         break
67922 fi
67923 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67924 cat >conftest.$ac_ext <<_ACEOF
67925 /* confdefs.h.  */
67926 _ACEOF
67927 cat confdefs.h >>conftest.$ac_ext
67928 cat >>conftest.$ac_ext <<_ACEOF
67929 /* end confdefs.h.  */
67930 #include <$header>
67931
67932 _ACEOF
67933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67934   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67935   ice_cv_have_vsnprintf_decl=yes
67936 fi
67937 rm -f conftest*
67938
67939 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67940         break
67941 fi
67942 done
67943
67944 fi
67945
67946 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
67947 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
67948 if test "$ice_cv_have_vsnprintf_decl" = yes; then
67949
67950 cat >>confdefs.h <<_ACEOF
67951 #define HAVE_VSNPRINTF_DECL 1
67952 _ACEOF
67953
67954 fi
67955 fi
67956
67957
67958     { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
67959 $as_echo_n "checking for setpgid... " >&6; }
67960 if test "${ac_cv_func_setpgid+set}" = set; then
67961   $as_echo_n "(cached) " >&6
67962 else
67963   cat >conftest.$ac_ext <<_ACEOF
67964 /* confdefs.h.  */
67965 _ACEOF
67966 cat confdefs.h >>conftest.$ac_ext
67967 cat >>conftest.$ac_ext <<_ACEOF
67968 /* end confdefs.h.  */
67969 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
67970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67971 #define setpgid innocuous_setpgid
67972
67973 /* System header to define __stub macros and hopefully few prototypes,
67974     which can conflict with char setpgid (); below.
67975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67976     <limits.h> exists even on freestanding compilers.  */
67977
67978 #ifdef __STDC__
67979 # include <limits.h>
67980 #else
67981 # include <assert.h>
67982 #endif
67983
67984 #undef setpgid
67985
67986 /* Override any GCC internal prototype to avoid an error.
67987    Use char because int might match the return type of a GCC
67988    builtin and then its argument prototype would still apply.  */
67989 #ifdef __cplusplus
67990 extern "C"
67991 #endif
67992 char setpgid ();
67993 /* The GNU C library defines this for functions which it implements
67994     to always fail with ENOSYS.  Some functions are actually named
67995     something starting with __ and the normal name is an alias.  */
67996 #if defined __stub_setpgid || defined __stub___setpgid
67997 choke me
67998 #endif
67999
68000 int
68001 main ()
68002 {
68003 return setpgid ();
68004   ;
68005   return 0;
68006 }
68007 _ACEOF
68008 rm -f conftest.$ac_objext conftest$ac_exeext
68009 if { (ac_try="$ac_link"
68010 case "(($ac_try" in
68011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68012   *) ac_try_echo=$ac_try;;
68013 esac
68014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68015 $as_echo "$ac_try_echo") >&5
68016   (eval "$ac_link") 2>conftest.er1
68017   ac_status=$?
68018   grep -v '^ *+' conftest.er1 >conftest.err
68019   rm -f conftest.er1
68020   cat conftest.err >&5
68021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68022   (exit $ac_status); } && {
68023          test -z "$ac_c_werror_flag" ||
68024          test ! -s conftest.err
68025        } && test -s conftest$ac_exeext && {
68026          test "$cross_compiling" = yes ||
68027          $as_test_x conftest$ac_exeext
68028        }; then
68029   ac_cv_func_setpgid=yes
68030 else
68031   $as_echo "$as_me: failed program was:" >&5
68032 sed 's/^/| /' conftest.$ac_ext >&5
68033
68034         ac_cv_func_setpgid=no
68035 fi
68036
68037 rm -rf conftest.dSYM
68038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68039       conftest$ac_exeext conftest.$ac_ext
68040 fi
68041 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
68042 $as_echo "$ac_cv_func_setpgid" >&6; }
68043 if test "x$ac_cv_func_setpgid" = x""yes; then
68044
68045
68046 cat >>confdefs.h <<\_ACEOF
68047 #define HAVE_SETPGID 1
68048 _ACEOF
68049
68050
68051 ice_have_setpgid=no
68052
68053 for ac_func in setpgid
68054 do
68055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68056 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68057 $as_echo_n "checking for $ac_func... " >&6; }
68058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68059   $as_echo_n "(cached) " >&6
68060 else
68061   cat >conftest.$ac_ext <<_ACEOF
68062 /* confdefs.h.  */
68063 _ACEOF
68064 cat confdefs.h >>conftest.$ac_ext
68065 cat >>conftest.$ac_ext <<_ACEOF
68066 /* end confdefs.h.  */
68067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68069 #define $ac_func innocuous_$ac_func
68070
68071 /* System header to define __stub macros and hopefully few prototypes,
68072     which can conflict with char $ac_func (); below.
68073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68074     <limits.h> exists even on freestanding compilers.  */
68075
68076 #ifdef __STDC__
68077 # include <limits.h>
68078 #else
68079 # include <assert.h>
68080 #endif
68081
68082 #undef $ac_func
68083
68084 /* Override any GCC internal prototype to avoid an error.
68085    Use char because int might match the return type of a GCC
68086    builtin and then its argument prototype would still apply.  */
68087 #ifdef __cplusplus
68088 extern "C"
68089 #endif
68090 char $ac_func ();
68091 /* The GNU C library defines this for functions which it implements
68092     to always fail with ENOSYS.  Some functions are actually named
68093     something starting with __ and the normal name is an alias.  */
68094 #if defined __stub_$ac_func || defined __stub___$ac_func
68095 choke me
68096 #endif
68097
68098 int
68099 main ()
68100 {
68101 return $ac_func ();
68102   ;
68103   return 0;
68104 }
68105 _ACEOF
68106 rm -f conftest.$ac_objext conftest$ac_exeext
68107 if { (ac_try="$ac_link"
68108 case "(($ac_try" in
68109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68110   *) ac_try_echo=$ac_try;;
68111 esac
68112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68113 $as_echo "$ac_try_echo") >&5
68114   (eval "$ac_link") 2>conftest.er1
68115   ac_status=$?
68116   grep -v '^ *+' conftest.er1 >conftest.err
68117   rm -f conftest.er1
68118   cat conftest.err >&5
68119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68120   (exit $ac_status); } && {
68121          test -z "$ac_c_werror_flag" ||
68122          test ! -s conftest.err
68123        } && test -s conftest$ac_exeext && {
68124          test "$cross_compiling" = yes ||
68125          $as_test_x conftest$ac_exeext
68126        }; then
68127   eval "$as_ac_var=yes"
68128 else
68129   $as_echo "$as_me: failed program was:" >&5
68130 sed 's/^/| /' conftest.$ac_ext >&5
68131
68132         eval "$as_ac_var=no"
68133 fi
68134
68135 rm -rf conftest.dSYM
68136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68137       conftest$ac_exeext conftest.$ac_ext
68138 fi
68139 ac_res=`eval 'as_val=${'$as_ac_var'}
68140                  $as_echo "$as_val"'`
68141                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68142 $as_echo "$ac_res" >&6; }
68143 as_val=`eval 'as_val=${'$as_ac_var'}
68144                  $as_echo "$as_val"'`
68145    if test "x$as_val" = x""yes; then
68146   cat >>confdefs.h <<_ACEOF
68147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68148 _ACEOF
68149  ice_have_setpgid=yes
68150 fi
68151 done
68152
68153 if test "${ice_have_setpgid}" = yes; then
68154 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
68155 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
68156 if test "${ice_cv_have_setpgid_decl+set}" = set; then
68157   $as_echo_n "(cached) " >&6
68158 else
68159
68160 ice_cv_have_setpgid_decl=no
68161 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68162 ice_re_word='(^|[^a-zA-Z0-9_])'
68163 for header in sys/types.h unistd.h; do
68164 # Check for ordinary declaration
68165 cat >conftest.$ac_ext <<_ACEOF
68166 /* confdefs.h.  */
68167 _ACEOF
68168 cat confdefs.h >>conftest.$ac_ext
68169 cat >>conftest.$ac_ext <<_ACEOF
68170 /* end confdefs.h.  */
68171 #include <$header>
68172
68173 _ACEOF
68174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68175   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
68176   ice_cv_have_setpgid_decl=yes
68177 fi
68178 rm -f conftest*
68179
68180 if test "$ice_cv_have_setpgid_decl" = yes; then
68181         break
68182 fi
68183 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68184 cat >conftest.$ac_ext <<_ACEOF
68185 /* confdefs.h.  */
68186 _ACEOF
68187 cat confdefs.h >>conftest.$ac_ext
68188 cat >>conftest.$ac_ext <<_ACEOF
68189 /* end confdefs.h.  */
68190 #include <$header>
68191
68192 _ACEOF
68193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68194   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68195   ice_cv_have_setpgid_decl=yes
68196 fi
68197 rm -f conftest*
68198
68199 if test "$ice_cv_have_setpgid_decl" = yes; then
68200         break
68201 fi
68202 done
68203
68204 fi
68205
68206 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
68207 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
68208 if test "$ice_cv_have_setpgid_decl" = yes; then
68209
68210 cat >>confdefs.h <<_ACEOF
68211 #define HAVE_SETPGID_DECL 1
68212 _ACEOF
68213
68214 fi
68215 fi
68216
68217
68218 fi
68219
68220
68221 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
68222 $as_echo_n "checking for setpgrp... " >&6; }
68223 if test "${ac_cv_func_setpgrp+set}" = set; then
68224   $as_echo_n "(cached) " >&6
68225 else
68226   cat >conftest.$ac_ext <<_ACEOF
68227 /* confdefs.h.  */
68228 _ACEOF
68229 cat confdefs.h >>conftest.$ac_ext
68230 cat >>conftest.$ac_ext <<_ACEOF
68231 /* end confdefs.h.  */
68232 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
68233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68234 #define setpgrp innocuous_setpgrp
68235
68236 /* System header to define __stub macros and hopefully few prototypes,
68237     which can conflict with char setpgrp (); below.
68238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68239     <limits.h> exists even on freestanding compilers.  */
68240
68241 #ifdef __STDC__
68242 # include <limits.h>
68243 #else
68244 # include <assert.h>
68245 #endif
68246
68247 #undef setpgrp
68248
68249 /* Override any GCC internal prototype to avoid an error.
68250    Use char because int might match the return type of a GCC
68251    builtin and then its argument prototype would still apply.  */
68252 #ifdef __cplusplus
68253 extern "C"
68254 #endif
68255 char setpgrp ();
68256 /* The GNU C library defines this for functions which it implements
68257     to always fail with ENOSYS.  Some functions are actually named
68258     something starting with __ and the normal name is an alias.  */
68259 #if defined __stub_setpgrp || defined __stub___setpgrp
68260 choke me
68261 #endif
68262
68263 int
68264 main ()
68265 {
68266 return setpgrp ();
68267   ;
68268   return 0;
68269 }
68270 _ACEOF
68271 rm -f conftest.$ac_objext conftest$ac_exeext
68272 if { (ac_try="$ac_link"
68273 case "(($ac_try" in
68274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68275   *) ac_try_echo=$ac_try;;
68276 esac
68277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68278 $as_echo "$ac_try_echo") >&5
68279   (eval "$ac_link") 2>conftest.er1
68280   ac_status=$?
68281   grep -v '^ *+' conftest.er1 >conftest.err
68282   rm -f conftest.er1
68283   cat conftest.err >&5
68284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68285   (exit $ac_status); } && {
68286          test -z "$ac_c_werror_flag" ||
68287          test ! -s conftest.err
68288        } && test -s conftest$ac_exeext && {
68289          test "$cross_compiling" = yes ||
68290          $as_test_x conftest$ac_exeext
68291        }; then
68292   ac_cv_func_setpgrp=yes
68293 else
68294   $as_echo "$as_me: failed program was:" >&5
68295 sed 's/^/| /' conftest.$ac_ext >&5
68296
68297         ac_cv_func_setpgrp=no
68298 fi
68299
68300 rm -rf conftest.dSYM
68301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68302       conftest$ac_exeext conftest.$ac_ext
68303 fi
68304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
68305 $as_echo "$ac_cv_func_setpgrp" >&6; }
68306 if test "x$ac_cv_func_setpgrp" = x""yes; then
68307   { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
68308 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
68309 if test "${ac_cv_func_setpgrp_void+set}" = set; then
68310   $as_echo_n "(cached) " >&6
68311 else
68312   if test "$cross_compiling" = yes; then
68313   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
68314 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
68315    { (exit 1); exit 1; }; }
68316 else
68317   cat >conftest.$ac_ext <<_ACEOF
68318 /* confdefs.h.  */
68319 _ACEOF
68320 cat confdefs.h >>conftest.$ac_ext
68321 cat >>conftest.$ac_ext <<_ACEOF
68322 /* end confdefs.h.  */
68323 $ac_includes_default
68324 int
68325 main ()
68326 {
68327 /* If this system has a BSD-style setpgrp which takes arguments,
68328   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
68329   exit successfully. */
68330   return setpgrp (1,1) != -1;
68331   ;
68332   return 0;
68333 }
68334 _ACEOF
68335 rm -f conftest$ac_exeext
68336 if { (ac_try="$ac_link"
68337 case "(($ac_try" in
68338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68339   *) ac_try_echo=$ac_try;;
68340 esac
68341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68342 $as_echo "$ac_try_echo") >&5
68343   (eval "$ac_link") 2>&5
68344   ac_status=$?
68345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
68347   { (case "(($ac_try" in
68348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68349   *) ac_try_echo=$ac_try;;
68350 esac
68351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68352 $as_echo "$ac_try_echo") >&5
68353   (eval "$ac_try") 2>&5
68354   ac_status=$?
68355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68356   (exit $ac_status); }; }; then
68357   ac_cv_func_setpgrp_void=no
68358 else
68359   $as_echo "$as_me: program exited with status $ac_status" >&5
68360 $as_echo "$as_me: failed program was:" >&5
68361 sed 's/^/| /' conftest.$ac_ext >&5
68362
68363 ( exit $ac_status )
68364 ac_cv_func_setpgrp_void=yes
68365 fi
68366 rm -rf conftest.dSYM
68367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68368 fi
68369
68370
68371 fi
68372 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
68373 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
68374 if test $ac_cv_func_setpgrp_void = yes; then
68375
68376 cat >>confdefs.h <<\_ACEOF
68377 #define SETPGRP_VOID 1
68378 _ACEOF
68379
68380 fi
68381
68382 fi
68383
68384
68385 ice_have_setpgrp=no
68386
68387 for ac_func in setpgrp
68388 do
68389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68391 $as_echo_n "checking for $ac_func... " >&6; }
68392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68393   $as_echo_n "(cached) " >&6
68394 else
68395   cat >conftest.$ac_ext <<_ACEOF
68396 /* confdefs.h.  */
68397 _ACEOF
68398 cat confdefs.h >>conftest.$ac_ext
68399 cat >>conftest.$ac_ext <<_ACEOF
68400 /* end confdefs.h.  */
68401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68403 #define $ac_func innocuous_$ac_func
68404
68405 /* System header to define __stub macros and hopefully few prototypes,
68406     which can conflict with char $ac_func (); below.
68407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68408     <limits.h> exists even on freestanding compilers.  */
68409
68410 #ifdef __STDC__
68411 # include <limits.h>
68412 #else
68413 # include <assert.h>
68414 #endif
68415
68416 #undef $ac_func
68417
68418 /* Override any GCC internal prototype to avoid an error.
68419    Use char because int might match the return type of a GCC
68420    builtin and then its argument prototype would still apply.  */
68421 #ifdef __cplusplus
68422 extern "C"
68423 #endif
68424 char $ac_func ();
68425 /* The GNU C library defines this for functions which it implements
68426     to always fail with ENOSYS.  Some functions are actually named
68427     something starting with __ and the normal name is an alias.  */
68428 #if defined __stub_$ac_func || defined __stub___$ac_func
68429 choke me
68430 #endif
68431
68432 int
68433 main ()
68434 {
68435 return $ac_func ();
68436   ;
68437   return 0;
68438 }
68439 _ACEOF
68440 rm -f conftest.$ac_objext conftest$ac_exeext
68441 if { (ac_try="$ac_link"
68442 case "(($ac_try" in
68443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68444   *) ac_try_echo=$ac_try;;
68445 esac
68446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68447 $as_echo "$ac_try_echo") >&5
68448   (eval "$ac_link") 2>conftest.er1
68449   ac_status=$?
68450   grep -v '^ *+' conftest.er1 >conftest.err
68451   rm -f conftest.er1
68452   cat conftest.err >&5
68453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68454   (exit $ac_status); } && {
68455          test -z "$ac_c_werror_flag" ||
68456          test ! -s conftest.err
68457        } && test -s conftest$ac_exeext && {
68458          test "$cross_compiling" = yes ||
68459          $as_test_x conftest$ac_exeext
68460        }; then
68461   eval "$as_ac_var=yes"
68462 else
68463   $as_echo "$as_me: failed program was:" >&5
68464 sed 's/^/| /' conftest.$ac_ext >&5
68465
68466         eval "$as_ac_var=no"
68467 fi
68468
68469 rm -rf conftest.dSYM
68470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68471       conftest$ac_exeext conftest.$ac_ext
68472 fi
68473 ac_res=`eval 'as_val=${'$as_ac_var'}
68474                  $as_echo "$as_val"'`
68475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68476 $as_echo "$ac_res" >&6; }
68477 as_val=`eval 'as_val=${'$as_ac_var'}
68478                  $as_echo "$as_val"'`
68479    if test "x$as_val" = x""yes; then
68480   cat >>confdefs.h <<_ACEOF
68481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68482 _ACEOF
68483  ice_have_setpgrp=yes
68484 fi
68485 done
68486
68487 if test "${ice_have_setpgrp}" = yes; then
68488 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
68489 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
68490 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
68491   $as_echo_n "(cached) " >&6
68492 else
68493
68494 ice_cv_have_setpgrp_decl=no
68495 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68496 ice_re_word='(^|[^a-zA-Z0-9_])'
68497 for header in sys/types.h unistd.h libc.h; do
68498 # Check for ordinary declaration
68499 cat >conftest.$ac_ext <<_ACEOF
68500 /* confdefs.h.  */
68501 _ACEOF
68502 cat confdefs.h >>conftest.$ac_ext
68503 cat >>conftest.$ac_ext <<_ACEOF
68504 /* end confdefs.h.  */
68505 #include <$header>
68506
68507 _ACEOF
68508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68509   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
68510   ice_cv_have_setpgrp_decl=yes
68511 fi
68512 rm -f conftest*
68513
68514 if test "$ice_cv_have_setpgrp_decl" = yes; then
68515         break
68516 fi
68517 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68518 cat >conftest.$ac_ext <<_ACEOF
68519 /* confdefs.h.  */
68520 _ACEOF
68521 cat confdefs.h >>conftest.$ac_ext
68522 cat >>conftest.$ac_ext <<_ACEOF
68523 /* end confdefs.h.  */
68524 #include <$header>
68525
68526 _ACEOF
68527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68528   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68529   ice_cv_have_setpgrp_decl=yes
68530 fi
68531 rm -f conftest*
68532
68533 if test "$ice_cv_have_setpgrp_decl" = yes; then
68534         break
68535 fi
68536 done
68537
68538 fi
68539
68540 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
68541 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
68542 if test "$ice_cv_have_setpgrp_decl" = yes; then
68543
68544 cat >>confdefs.h <<_ACEOF
68545 #define HAVE_SETPGRP_DECL 1
68546 _ACEOF
68547
68548 fi
68549 fi
68550
68551
68552 ice_have_setsockopt=no
68553
68554 for ac_func in setsockopt
68555 do
68556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68558 $as_echo_n "checking for $ac_func... " >&6; }
68559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68560   $as_echo_n "(cached) " >&6
68561 else
68562   cat >conftest.$ac_ext <<_ACEOF
68563 /* confdefs.h.  */
68564 _ACEOF
68565 cat confdefs.h >>conftest.$ac_ext
68566 cat >>conftest.$ac_ext <<_ACEOF
68567 /* end confdefs.h.  */
68568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68570 #define $ac_func innocuous_$ac_func
68571
68572 /* System header to define __stub macros and hopefully few prototypes,
68573     which can conflict with char $ac_func (); below.
68574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68575     <limits.h> exists even on freestanding compilers.  */
68576
68577 #ifdef __STDC__
68578 # include <limits.h>
68579 #else
68580 # include <assert.h>
68581 #endif
68582
68583 #undef $ac_func
68584
68585 /* Override any GCC internal prototype to avoid an error.
68586    Use char because int might match the return type of a GCC
68587    builtin and then its argument prototype would still apply.  */
68588 #ifdef __cplusplus
68589 extern "C"
68590 #endif
68591 char $ac_func ();
68592 /* The GNU C library defines this for functions which it implements
68593     to always fail with ENOSYS.  Some functions are actually named
68594     something starting with __ and the normal name is an alias.  */
68595 #if defined __stub_$ac_func || defined __stub___$ac_func
68596 choke me
68597 #endif
68598
68599 int
68600 main ()
68601 {
68602 return $ac_func ();
68603   ;
68604   return 0;
68605 }
68606 _ACEOF
68607 rm -f conftest.$ac_objext conftest$ac_exeext
68608 if { (ac_try="$ac_link"
68609 case "(($ac_try" in
68610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68611   *) ac_try_echo=$ac_try;;
68612 esac
68613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68614 $as_echo "$ac_try_echo") >&5
68615   (eval "$ac_link") 2>conftest.er1
68616   ac_status=$?
68617   grep -v '^ *+' conftest.er1 >conftest.err
68618   rm -f conftest.er1
68619   cat conftest.err >&5
68620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68621   (exit $ac_status); } && {
68622          test -z "$ac_c_werror_flag" ||
68623          test ! -s conftest.err
68624        } && test -s conftest$ac_exeext && {
68625          test "$cross_compiling" = yes ||
68626          $as_test_x conftest$ac_exeext
68627        }; then
68628   eval "$as_ac_var=yes"
68629 else
68630   $as_echo "$as_me: failed program was:" >&5
68631 sed 's/^/| /' conftest.$ac_ext >&5
68632
68633         eval "$as_ac_var=no"
68634 fi
68635
68636 rm -rf conftest.dSYM
68637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68638       conftest$ac_exeext conftest.$ac_ext
68639 fi
68640 ac_res=`eval 'as_val=${'$as_ac_var'}
68641                  $as_echo "$as_val"'`
68642                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68643 $as_echo "$ac_res" >&6; }
68644 as_val=`eval 'as_val=${'$as_ac_var'}
68645                  $as_echo "$as_val"'`
68646    if test "x$as_val" = x""yes; then
68647   cat >>confdefs.h <<_ACEOF
68648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68649 _ACEOF
68650  ice_have_setsockopt=yes
68651 fi
68652 done
68653
68654 if test "${ice_have_setsockopt}" = yes; then
68655 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
68656 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
68657 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
68658   $as_echo_n "(cached) " >&6
68659 else
68660
68661 ice_cv_have_setsockopt_decl=no
68662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68663 ice_re_word='(^|[^a-zA-Z0-9_])'
68664 for header in sys/types.h sys/socket.h; do
68665 # Check for ordinary declaration
68666 cat >conftest.$ac_ext <<_ACEOF
68667 /* confdefs.h.  */
68668 _ACEOF
68669 cat confdefs.h >>conftest.$ac_ext
68670 cat >>conftest.$ac_ext <<_ACEOF
68671 /* end confdefs.h.  */
68672 #include <$header>
68673
68674 _ACEOF
68675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68676   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
68677   ice_cv_have_setsockopt_decl=yes
68678 fi
68679 rm -f conftest*
68680
68681 if test "$ice_cv_have_setsockopt_decl" = yes; then
68682         break
68683 fi
68684 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68685 cat >conftest.$ac_ext <<_ACEOF
68686 /* confdefs.h.  */
68687 _ACEOF
68688 cat confdefs.h >>conftest.$ac_ext
68689 cat >>conftest.$ac_ext <<_ACEOF
68690 /* end confdefs.h.  */
68691 #include <$header>
68692
68693 _ACEOF
68694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68695   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68696   ice_cv_have_setsockopt_decl=yes
68697 fi
68698 rm -f conftest*
68699
68700 if test "$ice_cv_have_setsockopt_decl" = yes; then
68701         break
68702 fi
68703 done
68704
68705 fi
68706
68707 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
68708 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
68709 if test "$ice_cv_have_setsockopt_decl" = yes; then
68710
68711 cat >>confdefs.h <<_ACEOF
68712 #define HAVE_SETSOCKOPT_DECL 1
68713 _ACEOF
68714
68715 fi
68716 fi
68717
68718
68719
68720
68721 for ac_func in sigaction sigemptyset sigvec
68722 do
68723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68725 $as_echo_n "checking for $ac_func... " >&6; }
68726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68727   $as_echo_n "(cached) " >&6
68728 else
68729   cat >conftest.$ac_ext <<_ACEOF
68730 /* confdefs.h.  */
68731 _ACEOF
68732 cat confdefs.h >>conftest.$ac_ext
68733 cat >>conftest.$ac_ext <<_ACEOF
68734 /* end confdefs.h.  */
68735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68737 #define $ac_func innocuous_$ac_func
68738
68739 /* System header to define __stub macros and hopefully few prototypes,
68740     which can conflict with char $ac_func (); below.
68741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68742     <limits.h> exists even on freestanding compilers.  */
68743
68744 #ifdef __STDC__
68745 # include <limits.h>
68746 #else
68747 # include <assert.h>
68748 #endif
68749
68750 #undef $ac_func
68751
68752 /* Override any GCC internal prototype to avoid an error.
68753    Use char because int might match the return type of a GCC
68754    builtin and then its argument prototype would still apply.  */
68755 #ifdef __cplusplus
68756 extern "C"
68757 #endif
68758 char $ac_func ();
68759 /* The GNU C library defines this for functions which it implements
68760     to always fail with ENOSYS.  Some functions are actually named
68761     something starting with __ and the normal name is an alias.  */
68762 #if defined __stub_$ac_func || defined __stub___$ac_func
68763 choke me
68764 #endif
68765
68766 int
68767 main ()
68768 {
68769 return $ac_func ();
68770   ;
68771   return 0;
68772 }
68773 _ACEOF
68774 rm -f conftest.$ac_objext conftest$ac_exeext
68775 if { (ac_try="$ac_link"
68776 case "(($ac_try" in
68777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68778   *) ac_try_echo=$ac_try;;
68779 esac
68780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68781 $as_echo "$ac_try_echo") >&5
68782   (eval "$ac_link") 2>conftest.er1
68783   ac_status=$?
68784   grep -v '^ *+' conftest.er1 >conftest.err
68785   rm -f conftest.er1
68786   cat conftest.err >&5
68787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68788   (exit $ac_status); } && {
68789          test -z "$ac_c_werror_flag" ||
68790          test ! -s conftest.err
68791        } && test -s conftest$ac_exeext && {
68792          test "$cross_compiling" = yes ||
68793          $as_test_x conftest$ac_exeext
68794        }; then
68795   eval "$as_ac_var=yes"
68796 else
68797   $as_echo "$as_me: failed program was:" >&5
68798 sed 's/^/| /' conftest.$ac_ext >&5
68799
68800         eval "$as_ac_var=no"
68801 fi
68802
68803 rm -rf conftest.dSYM
68804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68805       conftest$ac_exeext conftest.$ac_ext
68806 fi
68807 ac_res=`eval 'as_val=${'$as_ac_var'}
68808                  $as_echo "$as_val"'`
68809                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68810 $as_echo "$ac_res" >&6; }
68811 as_val=`eval 'as_val=${'$as_ac_var'}
68812                  $as_echo "$as_val"'`
68813    if test "x$as_val" = x""yes; then
68814   cat >>confdefs.h <<_ACEOF
68815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68816 _ACEOF
68817
68818 fi
68819 done
68820
68821
68822 ice_have_socket=no
68823
68824 for ac_func in socket
68825 do
68826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68827 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68828 $as_echo_n "checking for $ac_func... " >&6; }
68829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68830   $as_echo_n "(cached) " >&6
68831 else
68832   cat >conftest.$ac_ext <<_ACEOF
68833 /* confdefs.h.  */
68834 _ACEOF
68835 cat confdefs.h >>conftest.$ac_ext
68836 cat >>conftest.$ac_ext <<_ACEOF
68837 /* end confdefs.h.  */
68838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68840 #define $ac_func innocuous_$ac_func
68841
68842 /* System header to define __stub macros and hopefully few prototypes,
68843     which can conflict with char $ac_func (); below.
68844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68845     <limits.h> exists even on freestanding compilers.  */
68846
68847 #ifdef __STDC__
68848 # include <limits.h>
68849 #else
68850 # include <assert.h>
68851 #endif
68852
68853 #undef $ac_func
68854
68855 /* Override any GCC internal prototype to avoid an error.
68856    Use char because int might match the return type of a GCC
68857    builtin and then its argument prototype would still apply.  */
68858 #ifdef __cplusplus
68859 extern "C"
68860 #endif
68861 char $ac_func ();
68862 /* The GNU C library defines this for functions which it implements
68863     to always fail with ENOSYS.  Some functions are actually named
68864     something starting with __ and the normal name is an alias.  */
68865 #if defined __stub_$ac_func || defined __stub___$ac_func
68866 choke me
68867 #endif
68868
68869 int
68870 main ()
68871 {
68872 return $ac_func ();
68873   ;
68874   return 0;
68875 }
68876 _ACEOF
68877 rm -f conftest.$ac_objext conftest$ac_exeext
68878 if { (ac_try="$ac_link"
68879 case "(($ac_try" in
68880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68881   *) ac_try_echo=$ac_try;;
68882 esac
68883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68884 $as_echo "$ac_try_echo") >&5
68885   (eval "$ac_link") 2>conftest.er1
68886   ac_status=$?
68887   grep -v '^ *+' conftest.er1 >conftest.err
68888   rm -f conftest.er1
68889   cat conftest.err >&5
68890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68891   (exit $ac_status); } && {
68892          test -z "$ac_c_werror_flag" ||
68893          test ! -s conftest.err
68894        } && test -s conftest$ac_exeext && {
68895          test "$cross_compiling" = yes ||
68896          $as_test_x conftest$ac_exeext
68897        }; then
68898   eval "$as_ac_var=yes"
68899 else
68900   $as_echo "$as_me: failed program was:" >&5
68901 sed 's/^/| /' conftest.$ac_ext >&5
68902
68903         eval "$as_ac_var=no"
68904 fi
68905
68906 rm -rf conftest.dSYM
68907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68908       conftest$ac_exeext conftest.$ac_ext
68909 fi
68910 ac_res=`eval 'as_val=${'$as_ac_var'}
68911                  $as_echo "$as_val"'`
68912                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68913 $as_echo "$ac_res" >&6; }
68914 as_val=`eval 'as_val=${'$as_ac_var'}
68915                  $as_echo "$as_val"'`
68916    if test "x$as_val" = x""yes; then
68917   cat >>confdefs.h <<_ACEOF
68918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68919 _ACEOF
68920  ice_have_socket=yes
68921 fi
68922 done
68923
68924 if test "${ice_have_socket}" = yes; then
68925 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
68926 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
68927 if test "${ice_cv_have_socket_decl+set}" = set; then
68928   $as_echo_n "(cached) " >&6
68929 else
68930
68931 ice_cv_have_socket_decl=no
68932 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68933 ice_re_word='(^|[^a-zA-Z0-9_])'
68934 for header in sys/types.h sys/socket.h; do
68935 # Check for ordinary declaration
68936 cat >conftest.$ac_ext <<_ACEOF
68937 /* confdefs.h.  */
68938 _ACEOF
68939 cat confdefs.h >>conftest.$ac_ext
68940 cat >>conftest.$ac_ext <<_ACEOF
68941 /* end confdefs.h.  */
68942 #include <$header>
68943
68944 _ACEOF
68945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68946   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
68947   ice_cv_have_socket_decl=yes
68948 fi
68949 rm -f conftest*
68950
68951 if test "$ice_cv_have_socket_decl" = yes; then
68952         break
68953 fi
68954 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68955 cat >conftest.$ac_ext <<_ACEOF
68956 /* confdefs.h.  */
68957 _ACEOF
68958 cat confdefs.h >>conftest.$ac_ext
68959 cat >>conftest.$ac_ext <<_ACEOF
68960 /* end confdefs.h.  */
68961 #include <$header>
68962
68963 _ACEOF
68964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68965   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68966   ice_cv_have_socket_decl=yes
68967 fi
68968 rm -f conftest*
68969
68970 if test "$ice_cv_have_socket_decl" = yes; then
68971         break
68972 fi
68973 done
68974
68975 fi
68976
68977 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
68978 $as_echo "$ice_cv_have_socket_decl" >&6; }
68979 if test "$ice_cv_have_socket_decl" = yes; then
68980
68981 cat >>confdefs.h <<_ACEOF
68982 #define HAVE_SOCKET_DECL 1
68983 _ACEOF
68984
68985 fi
68986 fi
68987
68988
68989 ice_have_socketpair=no
68990
68991 for ac_func in socketpair
68992 do
68993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68995 $as_echo_n "checking for $ac_func... " >&6; }
68996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68997   $as_echo_n "(cached) " >&6
68998 else
68999   cat >conftest.$ac_ext <<_ACEOF
69000 /* confdefs.h.  */
69001 _ACEOF
69002 cat confdefs.h >>conftest.$ac_ext
69003 cat >>conftest.$ac_ext <<_ACEOF
69004 /* end confdefs.h.  */
69005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69007 #define $ac_func innocuous_$ac_func
69008
69009 /* System header to define __stub macros and hopefully few prototypes,
69010     which can conflict with char $ac_func (); below.
69011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69012     <limits.h> exists even on freestanding compilers.  */
69013
69014 #ifdef __STDC__
69015 # include <limits.h>
69016 #else
69017 # include <assert.h>
69018 #endif
69019
69020 #undef $ac_func
69021
69022 /* Override any GCC internal prototype to avoid an error.
69023    Use char because int might match the return type of a GCC
69024    builtin and then its argument prototype would still apply.  */
69025 #ifdef __cplusplus
69026 extern "C"
69027 #endif
69028 char $ac_func ();
69029 /* The GNU C library defines this for functions which it implements
69030     to always fail with ENOSYS.  Some functions are actually named
69031     something starting with __ and the normal name is an alias.  */
69032 #if defined __stub_$ac_func || defined __stub___$ac_func
69033 choke me
69034 #endif
69035
69036 int
69037 main ()
69038 {
69039 return $ac_func ();
69040   ;
69041   return 0;
69042 }
69043 _ACEOF
69044 rm -f conftest.$ac_objext conftest$ac_exeext
69045 if { (ac_try="$ac_link"
69046 case "(($ac_try" in
69047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69048   *) ac_try_echo=$ac_try;;
69049 esac
69050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69051 $as_echo "$ac_try_echo") >&5
69052   (eval "$ac_link") 2>conftest.er1
69053   ac_status=$?
69054   grep -v '^ *+' conftest.er1 >conftest.err
69055   rm -f conftest.er1
69056   cat conftest.err >&5
69057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69058   (exit $ac_status); } && {
69059          test -z "$ac_c_werror_flag" ||
69060          test ! -s conftest.err
69061        } && test -s conftest$ac_exeext && {
69062          test "$cross_compiling" = yes ||
69063          $as_test_x conftest$ac_exeext
69064        }; then
69065   eval "$as_ac_var=yes"
69066 else
69067   $as_echo "$as_me: failed program was:" >&5
69068 sed 's/^/| /' conftest.$ac_ext >&5
69069
69070         eval "$as_ac_var=no"
69071 fi
69072
69073 rm -rf conftest.dSYM
69074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69075       conftest$ac_exeext conftest.$ac_ext
69076 fi
69077 ac_res=`eval 'as_val=${'$as_ac_var'}
69078                  $as_echo "$as_val"'`
69079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69080 $as_echo "$ac_res" >&6; }
69081 as_val=`eval 'as_val=${'$as_ac_var'}
69082                  $as_echo "$as_val"'`
69083    if test "x$as_val" = x""yes; then
69084   cat >>confdefs.h <<_ACEOF
69085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69086 _ACEOF
69087  ice_have_socketpair=yes
69088 fi
69089 done
69090
69091 if test "${ice_have_socketpair}" = yes; then
69092 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
69093 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
69094 if test "${ice_cv_have_socketpair_decl+set}" = set; then
69095   $as_echo_n "(cached) " >&6
69096 else
69097
69098 ice_cv_have_socketpair_decl=no
69099 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69100 ice_re_word='(^|[^a-zA-Z0-9_])'
69101 for header in sys/types.h sys/socket.h; do
69102 # Check for ordinary declaration
69103 cat >conftest.$ac_ext <<_ACEOF
69104 /* confdefs.h.  */
69105 _ACEOF
69106 cat confdefs.h >>conftest.$ac_ext
69107 cat >>conftest.$ac_ext <<_ACEOF
69108 /* end confdefs.h.  */
69109 #include <$header>
69110
69111 _ACEOF
69112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69113   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
69114   ice_cv_have_socketpair_decl=yes
69115 fi
69116 rm -f conftest*
69117
69118 if test "$ice_cv_have_socketpair_decl" = yes; then
69119         break
69120 fi
69121 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69122 cat >conftest.$ac_ext <<_ACEOF
69123 /* confdefs.h.  */
69124 _ACEOF
69125 cat confdefs.h >>conftest.$ac_ext
69126 cat >>conftest.$ac_ext <<_ACEOF
69127 /* end confdefs.h.  */
69128 #include <$header>
69129
69130 _ACEOF
69131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69132   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69133   ice_cv_have_socketpair_decl=yes
69134 fi
69135 rm -f conftest*
69136
69137 if test "$ice_cv_have_socketpair_decl" = yes; then
69138         break
69139 fi
69140 done
69141
69142 fi
69143
69144 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
69145 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
69146 if test "$ice_cv_have_socketpair_decl" = yes; then
69147
69148 cat >>confdefs.h <<_ACEOF
69149 #define HAVE_SOCKETPAIR_DECL 1
69150 _ACEOF
69151
69152 fi
69153 fi
69154
69155
69156 ice_have_sscanf=no
69157
69158 for ac_func in sscanf
69159 do
69160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69161 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69162 $as_echo_n "checking for $ac_func... " >&6; }
69163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69164   $as_echo_n "(cached) " >&6
69165 else
69166   cat >conftest.$ac_ext <<_ACEOF
69167 /* confdefs.h.  */
69168 _ACEOF
69169 cat confdefs.h >>conftest.$ac_ext
69170 cat >>conftest.$ac_ext <<_ACEOF
69171 /* end confdefs.h.  */
69172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69174 #define $ac_func innocuous_$ac_func
69175
69176 /* System header to define __stub macros and hopefully few prototypes,
69177     which can conflict with char $ac_func (); below.
69178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69179     <limits.h> exists even on freestanding compilers.  */
69180
69181 #ifdef __STDC__
69182 # include <limits.h>
69183 #else
69184 # include <assert.h>
69185 #endif
69186
69187 #undef $ac_func
69188
69189 /* Override any GCC internal prototype to avoid an error.
69190    Use char because int might match the return type of a GCC
69191    builtin and then its argument prototype would still apply.  */
69192 #ifdef __cplusplus
69193 extern "C"
69194 #endif
69195 char $ac_func ();
69196 /* The GNU C library defines this for functions which it implements
69197     to always fail with ENOSYS.  Some functions are actually named
69198     something starting with __ and the normal name is an alias.  */
69199 #if defined __stub_$ac_func || defined __stub___$ac_func
69200 choke me
69201 #endif
69202
69203 int
69204 main ()
69205 {
69206 return $ac_func ();
69207   ;
69208   return 0;
69209 }
69210 _ACEOF
69211 rm -f conftest.$ac_objext conftest$ac_exeext
69212 if { (ac_try="$ac_link"
69213 case "(($ac_try" in
69214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69215   *) ac_try_echo=$ac_try;;
69216 esac
69217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69218 $as_echo "$ac_try_echo") >&5
69219   (eval "$ac_link") 2>conftest.er1
69220   ac_status=$?
69221   grep -v '^ *+' conftest.er1 >conftest.err
69222   rm -f conftest.er1
69223   cat conftest.err >&5
69224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69225   (exit $ac_status); } && {
69226          test -z "$ac_c_werror_flag" ||
69227          test ! -s conftest.err
69228        } && test -s conftest$ac_exeext && {
69229          test "$cross_compiling" = yes ||
69230          $as_test_x conftest$ac_exeext
69231        }; then
69232   eval "$as_ac_var=yes"
69233 else
69234   $as_echo "$as_me: failed program was:" >&5
69235 sed 's/^/| /' conftest.$ac_ext >&5
69236
69237         eval "$as_ac_var=no"
69238 fi
69239
69240 rm -rf conftest.dSYM
69241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69242       conftest$ac_exeext conftest.$ac_ext
69243 fi
69244 ac_res=`eval 'as_val=${'$as_ac_var'}
69245                  $as_echo "$as_val"'`
69246                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69247 $as_echo "$ac_res" >&6; }
69248 as_val=`eval 'as_val=${'$as_ac_var'}
69249                  $as_echo "$as_val"'`
69250    if test "x$as_val" = x""yes; then
69251   cat >>confdefs.h <<_ACEOF
69252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69253 _ACEOF
69254  ice_have_sscanf=yes
69255 fi
69256 done
69257
69258 if test "${ice_have_sscanf}" = yes; then
69259 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
69260 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
69261 if test "${ice_cv_have_sscanf_decl+set}" = set; then
69262   $as_echo_n "(cached) " >&6
69263 else
69264
69265 ice_cv_have_sscanf_decl=no
69266 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69267 ice_re_word='(^|[^a-zA-Z0-9_])'
69268 for header in stdio.h; do
69269 # Check for ordinary declaration
69270 cat >conftest.$ac_ext <<_ACEOF
69271 /* confdefs.h.  */
69272 _ACEOF
69273 cat confdefs.h >>conftest.$ac_ext
69274 cat >>conftest.$ac_ext <<_ACEOF
69275 /* end confdefs.h.  */
69276 #include <$header>
69277
69278 _ACEOF
69279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69280   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
69281   ice_cv_have_sscanf_decl=yes
69282 fi
69283 rm -f conftest*
69284
69285 if test "$ice_cv_have_sscanf_decl" = yes; then
69286         break
69287 fi
69288 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69289 cat >conftest.$ac_ext <<_ACEOF
69290 /* confdefs.h.  */
69291 _ACEOF
69292 cat confdefs.h >>conftest.$ac_ext
69293 cat >>conftest.$ac_ext <<_ACEOF
69294 /* end confdefs.h.  */
69295 #include <$header>
69296
69297 _ACEOF
69298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69299   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69300   ice_cv_have_sscanf_decl=yes
69301 fi
69302 rm -f conftest*
69303
69304 if test "$ice_cv_have_sscanf_decl" = yes; then
69305         break
69306 fi
69307 done
69308
69309 fi
69310
69311 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
69312 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
69313 if test "$ice_cv_have_sscanf_decl" = yes; then
69314
69315 cat >>confdefs.h <<_ACEOF
69316 #define HAVE_SSCANF_DECL 1
69317 _ACEOF
69318
69319 fi
69320 fi
69321
69322
69323 ice_have_strerror=no
69324
69325 for ac_func in strerror
69326 do
69327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69329 $as_echo_n "checking for $ac_func... " >&6; }
69330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69331   $as_echo_n "(cached) " >&6
69332 else
69333   cat >conftest.$ac_ext <<_ACEOF
69334 /* confdefs.h.  */
69335 _ACEOF
69336 cat confdefs.h >>conftest.$ac_ext
69337 cat >>conftest.$ac_ext <<_ACEOF
69338 /* end confdefs.h.  */
69339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69341 #define $ac_func innocuous_$ac_func
69342
69343 /* System header to define __stub macros and hopefully few prototypes,
69344     which can conflict with char $ac_func (); below.
69345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69346     <limits.h> exists even on freestanding compilers.  */
69347
69348 #ifdef __STDC__
69349 # include <limits.h>
69350 #else
69351 # include <assert.h>
69352 #endif
69353
69354 #undef $ac_func
69355
69356 /* Override any GCC internal prototype to avoid an error.
69357    Use char because int might match the return type of a GCC
69358    builtin and then its argument prototype would still apply.  */
69359 #ifdef __cplusplus
69360 extern "C"
69361 #endif
69362 char $ac_func ();
69363 /* The GNU C library defines this for functions which it implements
69364     to always fail with ENOSYS.  Some functions are actually named
69365     something starting with __ and the normal name is an alias.  */
69366 #if defined __stub_$ac_func || defined __stub___$ac_func
69367 choke me
69368 #endif
69369
69370 int
69371 main ()
69372 {
69373 return $ac_func ();
69374   ;
69375   return 0;
69376 }
69377 _ACEOF
69378 rm -f conftest.$ac_objext conftest$ac_exeext
69379 if { (ac_try="$ac_link"
69380 case "(($ac_try" in
69381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69382   *) ac_try_echo=$ac_try;;
69383 esac
69384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69385 $as_echo "$ac_try_echo") >&5
69386   (eval "$ac_link") 2>conftest.er1
69387   ac_status=$?
69388   grep -v '^ *+' conftest.er1 >conftest.err
69389   rm -f conftest.er1
69390   cat conftest.err >&5
69391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69392   (exit $ac_status); } && {
69393          test -z "$ac_c_werror_flag" ||
69394          test ! -s conftest.err
69395        } && test -s conftest$ac_exeext && {
69396          test "$cross_compiling" = yes ||
69397          $as_test_x conftest$ac_exeext
69398        }; then
69399   eval "$as_ac_var=yes"
69400 else
69401   $as_echo "$as_me: failed program was:" >&5
69402 sed 's/^/| /' conftest.$ac_ext >&5
69403
69404         eval "$as_ac_var=no"
69405 fi
69406
69407 rm -rf conftest.dSYM
69408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69409       conftest$ac_exeext conftest.$ac_ext
69410 fi
69411 ac_res=`eval 'as_val=${'$as_ac_var'}
69412                  $as_echo "$as_val"'`
69413                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69414 $as_echo "$ac_res" >&6; }
69415 as_val=`eval 'as_val=${'$as_ac_var'}
69416                  $as_echo "$as_val"'`
69417    if test "x$as_val" = x""yes; then
69418   cat >>confdefs.h <<_ACEOF
69419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69420 _ACEOF
69421  ice_have_strerror=yes
69422 fi
69423 done
69424
69425 if test "${ice_have_strerror}" = yes; then
69426 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
69427 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
69428 if test "${ice_cv_have_strerror_decl+set}" = set; then
69429   $as_echo_n "(cached) " >&6
69430 else
69431
69432 ice_cv_have_strerror_decl=no
69433 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69434 ice_re_word='(^|[^a-zA-Z0-9_])'
69435 for header in string.h strings.h; do
69436 # Check for ordinary declaration
69437 cat >conftest.$ac_ext <<_ACEOF
69438 /* confdefs.h.  */
69439 _ACEOF
69440 cat confdefs.h >>conftest.$ac_ext
69441 cat >>conftest.$ac_ext <<_ACEOF
69442 /* end confdefs.h.  */
69443 #include <$header>
69444
69445 _ACEOF
69446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69447   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
69448   ice_cv_have_strerror_decl=yes
69449 fi
69450 rm -f conftest*
69451
69452 if test "$ice_cv_have_strerror_decl" = yes; then
69453         break
69454 fi
69455 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69456 cat >conftest.$ac_ext <<_ACEOF
69457 /* confdefs.h.  */
69458 _ACEOF
69459 cat confdefs.h >>conftest.$ac_ext
69460 cat >>conftest.$ac_ext <<_ACEOF
69461 /* end confdefs.h.  */
69462 #include <$header>
69463
69464 _ACEOF
69465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69466   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69467   ice_cv_have_strerror_decl=yes
69468 fi
69469 rm -f conftest*
69470
69471 if test "$ice_cv_have_strerror_decl" = yes; then
69472         break
69473 fi
69474 done
69475
69476 fi
69477
69478 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
69479 $as_echo "$ice_cv_have_strerror_decl" >&6; }
69480 if test "$ice_cv_have_strerror_decl" = yes; then
69481
69482 cat >>confdefs.h <<_ACEOF
69483 #define HAVE_STRERROR_DECL 1
69484 _ACEOF
69485
69486 fi
69487 fi
69488
69489
69490 for ac_func in strftime
69491 do
69492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69493 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69494 $as_echo_n "checking for $ac_func... " >&6; }
69495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69496   $as_echo_n "(cached) " >&6
69497 else
69498   cat >conftest.$ac_ext <<_ACEOF
69499 /* confdefs.h.  */
69500 _ACEOF
69501 cat confdefs.h >>conftest.$ac_ext
69502 cat >>conftest.$ac_ext <<_ACEOF
69503 /* end confdefs.h.  */
69504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69506 #define $ac_func innocuous_$ac_func
69507
69508 /* System header to define __stub macros and hopefully few prototypes,
69509     which can conflict with char $ac_func (); below.
69510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69511     <limits.h> exists even on freestanding compilers.  */
69512
69513 #ifdef __STDC__
69514 # include <limits.h>
69515 #else
69516 # include <assert.h>
69517 #endif
69518
69519 #undef $ac_func
69520
69521 /* Override any GCC internal prototype to avoid an error.
69522    Use char because int might match the return type of a GCC
69523    builtin and then its argument prototype would still apply.  */
69524 #ifdef __cplusplus
69525 extern "C"
69526 #endif
69527 char $ac_func ();
69528 /* The GNU C library defines this for functions which it implements
69529     to always fail with ENOSYS.  Some functions are actually named
69530     something starting with __ and the normal name is an alias.  */
69531 #if defined __stub_$ac_func || defined __stub___$ac_func
69532 choke me
69533 #endif
69534
69535 int
69536 main ()
69537 {
69538 return $ac_func ();
69539   ;
69540   return 0;
69541 }
69542 _ACEOF
69543 rm -f conftest.$ac_objext conftest$ac_exeext
69544 if { (ac_try="$ac_link"
69545 case "(($ac_try" in
69546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69547   *) ac_try_echo=$ac_try;;
69548 esac
69549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69550 $as_echo "$ac_try_echo") >&5
69551   (eval "$ac_link") 2>conftest.er1
69552   ac_status=$?
69553   grep -v '^ *+' conftest.er1 >conftest.err
69554   rm -f conftest.er1
69555   cat conftest.err >&5
69556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69557   (exit $ac_status); } && {
69558          test -z "$ac_c_werror_flag" ||
69559          test ! -s conftest.err
69560        } && test -s conftest$ac_exeext && {
69561          test "$cross_compiling" = yes ||
69562          $as_test_x conftest$ac_exeext
69563        }; then
69564   eval "$as_ac_var=yes"
69565 else
69566   $as_echo "$as_me: failed program was:" >&5
69567 sed 's/^/| /' conftest.$ac_ext >&5
69568
69569         eval "$as_ac_var=no"
69570 fi
69571
69572 rm -rf conftest.dSYM
69573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69574       conftest$ac_exeext conftest.$ac_ext
69575 fi
69576 ac_res=`eval 'as_val=${'$as_ac_var'}
69577                  $as_echo "$as_val"'`
69578                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69579 $as_echo "$ac_res" >&6; }
69580 as_val=`eval 'as_val=${'$as_ac_var'}
69581                  $as_echo "$as_val"'`
69582    if test "x$as_val" = x""yes; then
69583   cat >>confdefs.h <<_ACEOF
69584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69585 _ACEOF
69586
69587 else
69588   # strftime is in -lintl on SCO UNIX.
69589 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
69590 $as_echo_n "checking for strftime in -lintl... " >&6; }
69591 if test "${ac_cv_lib_intl_strftime+set}" = set; then
69592   $as_echo_n "(cached) " >&6
69593 else
69594   ac_check_lib_save_LIBS=$LIBS
69595 LIBS="-lintl  $LIBS"
69596 cat >conftest.$ac_ext <<_ACEOF
69597 /* confdefs.h.  */
69598 _ACEOF
69599 cat confdefs.h >>conftest.$ac_ext
69600 cat >>conftest.$ac_ext <<_ACEOF
69601 /* end confdefs.h.  */
69602
69603 /* Override any GCC internal prototype to avoid an error.
69604    Use char because int might match the return type of a GCC
69605    builtin and then its argument prototype would still apply.  */
69606 #ifdef __cplusplus
69607 extern "C"
69608 #endif
69609 char strftime ();
69610 int
69611 main ()
69612 {
69613 return strftime ();
69614   ;
69615   return 0;
69616 }
69617 _ACEOF
69618 rm -f conftest.$ac_objext conftest$ac_exeext
69619 if { (ac_try="$ac_link"
69620 case "(($ac_try" in
69621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69622   *) ac_try_echo=$ac_try;;
69623 esac
69624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69625 $as_echo "$ac_try_echo") >&5
69626   (eval "$ac_link") 2>conftest.er1
69627   ac_status=$?
69628   grep -v '^ *+' conftest.er1 >conftest.err
69629   rm -f conftest.er1
69630   cat conftest.err >&5
69631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69632   (exit $ac_status); } && {
69633          test -z "$ac_c_werror_flag" ||
69634          test ! -s conftest.err
69635        } && test -s conftest$ac_exeext && {
69636          test "$cross_compiling" = yes ||
69637          $as_test_x conftest$ac_exeext
69638        }; then
69639   ac_cv_lib_intl_strftime=yes
69640 else
69641   $as_echo "$as_me: failed program was:" >&5
69642 sed 's/^/| /' conftest.$ac_ext >&5
69643
69644         ac_cv_lib_intl_strftime=no
69645 fi
69646
69647 rm -rf conftest.dSYM
69648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69649       conftest$ac_exeext conftest.$ac_ext
69650 LIBS=$ac_check_lib_save_LIBS
69651 fi
69652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
69653 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
69654 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
69655   cat >>confdefs.h <<\_ACEOF
69656 #define HAVE_STRFTIME 1
69657 _ACEOF
69658
69659 LIBS="-lintl $LIBS"
69660 fi
69661
69662 fi
69663 done
69664
69665
69666 ice_have_strftime=no
69667
69668 for ac_func in strftime
69669 do
69670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69671 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69672 $as_echo_n "checking for $ac_func... " >&6; }
69673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69674   $as_echo_n "(cached) " >&6
69675 else
69676   cat >conftest.$ac_ext <<_ACEOF
69677 /* confdefs.h.  */
69678 _ACEOF
69679 cat confdefs.h >>conftest.$ac_ext
69680 cat >>conftest.$ac_ext <<_ACEOF
69681 /* end confdefs.h.  */
69682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69684 #define $ac_func innocuous_$ac_func
69685
69686 /* System header to define __stub macros and hopefully few prototypes,
69687     which can conflict with char $ac_func (); below.
69688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69689     <limits.h> exists even on freestanding compilers.  */
69690
69691 #ifdef __STDC__
69692 # include <limits.h>
69693 #else
69694 # include <assert.h>
69695 #endif
69696
69697 #undef $ac_func
69698
69699 /* Override any GCC internal prototype to avoid an error.
69700    Use char because int might match the return type of a GCC
69701    builtin and then its argument prototype would still apply.  */
69702 #ifdef __cplusplus
69703 extern "C"
69704 #endif
69705 char $ac_func ();
69706 /* The GNU C library defines this for functions which it implements
69707     to always fail with ENOSYS.  Some functions are actually named
69708     something starting with __ and the normal name is an alias.  */
69709 #if defined __stub_$ac_func || defined __stub___$ac_func
69710 choke me
69711 #endif
69712
69713 int
69714 main ()
69715 {
69716 return $ac_func ();
69717   ;
69718   return 0;
69719 }
69720 _ACEOF
69721 rm -f conftest.$ac_objext conftest$ac_exeext
69722 if { (ac_try="$ac_link"
69723 case "(($ac_try" in
69724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69725   *) ac_try_echo=$ac_try;;
69726 esac
69727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69728 $as_echo "$ac_try_echo") >&5
69729   (eval "$ac_link") 2>conftest.er1
69730   ac_status=$?
69731   grep -v '^ *+' conftest.er1 >conftest.err
69732   rm -f conftest.er1
69733   cat conftest.err >&5
69734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69735   (exit $ac_status); } && {
69736          test -z "$ac_c_werror_flag" ||
69737          test ! -s conftest.err
69738        } && test -s conftest$ac_exeext && {
69739          test "$cross_compiling" = yes ||
69740          $as_test_x conftest$ac_exeext
69741        }; then
69742   eval "$as_ac_var=yes"
69743 else
69744   $as_echo "$as_me: failed program was:" >&5
69745 sed 's/^/| /' conftest.$ac_ext >&5
69746
69747         eval "$as_ac_var=no"
69748 fi
69749
69750 rm -rf conftest.dSYM
69751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69752       conftest$ac_exeext conftest.$ac_ext
69753 fi
69754 ac_res=`eval 'as_val=${'$as_ac_var'}
69755                  $as_echo "$as_val"'`
69756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69757 $as_echo "$ac_res" >&6; }
69758 as_val=`eval 'as_val=${'$as_ac_var'}
69759                  $as_echo "$as_val"'`
69760    if test "x$as_val" = x""yes; then
69761   cat >>confdefs.h <<_ACEOF
69762 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69763 _ACEOF
69764  ice_have_strftime=yes
69765 fi
69766 done
69767
69768 if test "${ice_have_strftime}" = yes; then
69769 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
69770 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
69771 if test "${ice_cv_have_strftime_decl+set}" = set; then
69772   $as_echo_n "(cached) " >&6
69773 else
69774
69775 ice_cv_have_strftime_decl=no
69776 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69777 ice_re_word='(^|[^a-zA-Z0-9_])'
69778 for header in time.h sys/time.h; do
69779 # Check for ordinary declaration
69780 cat >conftest.$ac_ext <<_ACEOF
69781 /* confdefs.h.  */
69782 _ACEOF
69783 cat confdefs.h >>conftest.$ac_ext
69784 cat >>conftest.$ac_ext <<_ACEOF
69785 /* end confdefs.h.  */
69786 #include <$header>
69787
69788 _ACEOF
69789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69790   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
69791   ice_cv_have_strftime_decl=yes
69792 fi
69793 rm -f conftest*
69794
69795 if test "$ice_cv_have_strftime_decl" = yes; then
69796         break
69797 fi
69798 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69799 cat >conftest.$ac_ext <<_ACEOF
69800 /* confdefs.h.  */
69801 _ACEOF
69802 cat confdefs.h >>conftest.$ac_ext
69803 cat >>conftest.$ac_ext <<_ACEOF
69804 /* end confdefs.h.  */
69805 #include <$header>
69806
69807 _ACEOF
69808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69809   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69810   ice_cv_have_strftime_decl=yes
69811 fi
69812 rm -f conftest*
69813
69814 if test "$ice_cv_have_strftime_decl" = yes; then
69815         break
69816 fi
69817 done
69818
69819 fi
69820
69821 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
69822 $as_echo "$ice_cv_have_strftime_decl" >&6; }
69823 if test "$ice_cv_have_strftime_decl" = yes; then
69824
69825 cat >>confdefs.h <<_ACEOF
69826 #define HAVE_STRFTIME_DECL 1
69827 _ACEOF
69828
69829 fi
69830 fi
69831
69832
69833 ice_have_strncasecmp=no
69834
69835 for ac_func in strncasecmp
69836 do
69837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69838 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69839 $as_echo_n "checking for $ac_func... " >&6; }
69840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69841   $as_echo_n "(cached) " >&6
69842 else
69843   cat >conftest.$ac_ext <<_ACEOF
69844 /* confdefs.h.  */
69845 _ACEOF
69846 cat confdefs.h >>conftest.$ac_ext
69847 cat >>conftest.$ac_ext <<_ACEOF
69848 /* end confdefs.h.  */
69849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69851 #define $ac_func innocuous_$ac_func
69852
69853 /* System header to define __stub macros and hopefully few prototypes,
69854     which can conflict with char $ac_func (); below.
69855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69856     <limits.h> exists even on freestanding compilers.  */
69857
69858 #ifdef __STDC__
69859 # include <limits.h>
69860 #else
69861 # include <assert.h>
69862 #endif
69863
69864 #undef $ac_func
69865
69866 /* Override any GCC internal prototype to avoid an error.
69867    Use char because int might match the return type of a GCC
69868    builtin and then its argument prototype would still apply.  */
69869 #ifdef __cplusplus
69870 extern "C"
69871 #endif
69872 char $ac_func ();
69873 /* The GNU C library defines this for functions which it implements
69874     to always fail with ENOSYS.  Some functions are actually named
69875     something starting with __ and the normal name is an alias.  */
69876 #if defined __stub_$ac_func || defined __stub___$ac_func
69877 choke me
69878 #endif
69879
69880 int
69881 main ()
69882 {
69883 return $ac_func ();
69884   ;
69885   return 0;
69886 }
69887 _ACEOF
69888 rm -f conftest.$ac_objext conftest$ac_exeext
69889 if { (ac_try="$ac_link"
69890 case "(($ac_try" in
69891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69892   *) ac_try_echo=$ac_try;;
69893 esac
69894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69895 $as_echo "$ac_try_echo") >&5
69896   (eval "$ac_link") 2>conftest.er1
69897   ac_status=$?
69898   grep -v '^ *+' conftest.er1 >conftest.err
69899   rm -f conftest.er1
69900   cat conftest.err >&5
69901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69902   (exit $ac_status); } && {
69903          test -z "$ac_c_werror_flag" ||
69904          test ! -s conftest.err
69905        } && test -s conftest$ac_exeext && {
69906          test "$cross_compiling" = yes ||
69907          $as_test_x conftest$ac_exeext
69908        }; then
69909   eval "$as_ac_var=yes"
69910 else
69911   $as_echo "$as_me: failed program was:" >&5
69912 sed 's/^/| /' conftest.$ac_ext >&5
69913
69914         eval "$as_ac_var=no"
69915 fi
69916
69917 rm -rf conftest.dSYM
69918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69919       conftest$ac_exeext conftest.$ac_ext
69920 fi
69921 ac_res=`eval 'as_val=${'$as_ac_var'}
69922                  $as_echo "$as_val"'`
69923                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69924 $as_echo "$ac_res" >&6; }
69925 as_val=`eval 'as_val=${'$as_ac_var'}
69926                  $as_echo "$as_val"'`
69927    if test "x$as_val" = x""yes; then
69928   cat >>confdefs.h <<_ACEOF
69929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69930 _ACEOF
69931  ice_have_strncasecmp=yes
69932 fi
69933 done
69934
69935 if test "${ice_have_strncasecmp}" = yes; then
69936 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
69937 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
69938 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
69939   $as_echo_n "(cached) " >&6
69940 else
69941
69942 ice_cv_have_strncasecmp_decl=no
69943 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69944 ice_re_word='(^|[^a-zA-Z0-9_])'
69945 for header in string.h strings.h; do
69946 # Check for ordinary declaration
69947 cat >conftest.$ac_ext <<_ACEOF
69948 /* confdefs.h.  */
69949 _ACEOF
69950 cat confdefs.h >>conftest.$ac_ext
69951 cat >>conftest.$ac_ext <<_ACEOF
69952 /* end confdefs.h.  */
69953 #include <$header>
69954
69955 _ACEOF
69956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69957   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
69958   ice_cv_have_strncasecmp_decl=yes
69959 fi
69960 rm -f conftest*
69961
69962 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69963         break
69964 fi
69965 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69966 cat >conftest.$ac_ext <<_ACEOF
69967 /* confdefs.h.  */
69968 _ACEOF
69969 cat confdefs.h >>conftest.$ac_ext
69970 cat >>conftest.$ac_ext <<_ACEOF
69971 /* end confdefs.h.  */
69972 #include <$header>
69973
69974 _ACEOF
69975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69976   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69977   ice_cv_have_strncasecmp_decl=yes
69978 fi
69979 rm -f conftest*
69980
69981 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69982         break
69983 fi
69984 done
69985
69986 fi
69987
69988 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
69989 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
69990 if test "$ice_cv_have_strncasecmp_decl" = yes; then
69991
69992 cat >>confdefs.h <<_ACEOF
69993 #define HAVE_STRNCASECMP_DECL 1
69994 _ACEOF
69995
69996 fi
69997 fi
69998
69999
70000 ice_have_syslog=no
70001
70002 for ac_func in syslog
70003 do
70004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70005 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70006 $as_echo_n "checking for $ac_func... " >&6; }
70007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70008   $as_echo_n "(cached) " >&6
70009 else
70010   cat >conftest.$ac_ext <<_ACEOF
70011 /* confdefs.h.  */
70012 _ACEOF
70013 cat confdefs.h >>conftest.$ac_ext
70014 cat >>conftest.$ac_ext <<_ACEOF
70015 /* end confdefs.h.  */
70016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70018 #define $ac_func innocuous_$ac_func
70019
70020 /* System header to define __stub macros and hopefully few prototypes,
70021     which can conflict with char $ac_func (); below.
70022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70023     <limits.h> exists even on freestanding compilers.  */
70024
70025 #ifdef __STDC__
70026 # include <limits.h>
70027 #else
70028 # include <assert.h>
70029 #endif
70030
70031 #undef $ac_func
70032
70033 /* Override any GCC internal prototype to avoid an error.
70034    Use char because int might match the return type of a GCC
70035    builtin and then its argument prototype would still apply.  */
70036 #ifdef __cplusplus
70037 extern "C"
70038 #endif
70039 char $ac_func ();
70040 /* The GNU C library defines this for functions which it implements
70041     to always fail with ENOSYS.  Some functions are actually named
70042     something starting with __ and the normal name is an alias.  */
70043 #if defined __stub_$ac_func || defined __stub___$ac_func
70044 choke me
70045 #endif
70046
70047 int
70048 main ()
70049 {
70050 return $ac_func ();
70051   ;
70052   return 0;
70053 }
70054 _ACEOF
70055 rm -f conftest.$ac_objext conftest$ac_exeext
70056 if { (ac_try="$ac_link"
70057 case "(($ac_try" in
70058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70059   *) ac_try_echo=$ac_try;;
70060 esac
70061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70062 $as_echo "$ac_try_echo") >&5
70063   (eval "$ac_link") 2>conftest.er1
70064   ac_status=$?
70065   grep -v '^ *+' conftest.er1 >conftest.err
70066   rm -f conftest.er1
70067   cat conftest.err >&5
70068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70069   (exit $ac_status); } && {
70070          test -z "$ac_c_werror_flag" ||
70071          test ! -s conftest.err
70072        } && test -s conftest$ac_exeext && {
70073          test "$cross_compiling" = yes ||
70074          $as_test_x conftest$ac_exeext
70075        }; then
70076   eval "$as_ac_var=yes"
70077 else
70078   $as_echo "$as_me: failed program was:" >&5
70079 sed 's/^/| /' conftest.$ac_ext >&5
70080
70081         eval "$as_ac_var=no"
70082 fi
70083
70084 rm -rf conftest.dSYM
70085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70086       conftest$ac_exeext conftest.$ac_ext
70087 fi
70088 ac_res=`eval 'as_val=${'$as_ac_var'}
70089                  $as_echo "$as_val"'`
70090                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70091 $as_echo "$ac_res" >&6; }
70092 as_val=`eval 'as_val=${'$as_ac_var'}
70093                  $as_echo "$as_val"'`
70094    if test "x$as_val" = x""yes; then
70095   cat >>confdefs.h <<_ACEOF
70096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70097 _ACEOF
70098  ice_have_syslog=yes
70099 fi
70100 done
70101
70102 if test "${ice_have_syslog}" = yes; then
70103 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
70104 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
70105 if test "${ice_cv_have_syslog_decl+set}" = set; then
70106   $as_echo_n "(cached) " >&6
70107 else
70108
70109 ice_cv_have_syslog_decl=no
70110 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70111 ice_re_word='(^|[^a-zA-Z0-9_])'
70112 for header in syslog.h; do
70113 # Check for ordinary declaration
70114 cat >conftest.$ac_ext <<_ACEOF
70115 /* confdefs.h.  */
70116 _ACEOF
70117 cat confdefs.h >>conftest.$ac_ext
70118 cat >>conftest.$ac_ext <<_ACEOF
70119 /* end confdefs.h.  */
70120 #include <$header>
70121
70122 _ACEOF
70123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70124   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
70125   ice_cv_have_syslog_decl=yes
70126 fi
70127 rm -f conftest*
70128
70129 if test "$ice_cv_have_syslog_decl" = yes; then
70130         break
70131 fi
70132 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70133 cat >conftest.$ac_ext <<_ACEOF
70134 /* confdefs.h.  */
70135 _ACEOF
70136 cat confdefs.h >>conftest.$ac_ext
70137 cat >>conftest.$ac_ext <<_ACEOF
70138 /* end confdefs.h.  */
70139 #include <$header>
70140
70141 _ACEOF
70142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70143   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70144   ice_cv_have_syslog_decl=yes
70145 fi
70146 rm -f conftest*
70147
70148 if test "$ice_cv_have_syslog_decl" = yes; then
70149         break
70150 fi
70151 done
70152
70153 fi
70154
70155 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
70156 $as_echo "$ice_cv_have_syslog_decl" >&6; }
70157 if test "$ice_cv_have_syslog_decl" = yes; then
70158
70159 cat >>confdefs.h <<_ACEOF
70160 #define HAVE_SYSLOG_DECL 1
70161 _ACEOF
70162
70163 fi
70164 fi
70165
70166
70167 ice_have_system=no
70168
70169 for ac_func in system
70170 do
70171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70173 $as_echo_n "checking for $ac_func... " >&6; }
70174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70175   $as_echo_n "(cached) " >&6
70176 else
70177   cat >conftest.$ac_ext <<_ACEOF
70178 /* confdefs.h.  */
70179 _ACEOF
70180 cat confdefs.h >>conftest.$ac_ext
70181 cat >>conftest.$ac_ext <<_ACEOF
70182 /* end confdefs.h.  */
70183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70185 #define $ac_func innocuous_$ac_func
70186
70187 /* System header to define __stub macros and hopefully few prototypes,
70188     which can conflict with char $ac_func (); below.
70189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70190     <limits.h> exists even on freestanding compilers.  */
70191
70192 #ifdef __STDC__
70193 # include <limits.h>
70194 #else
70195 # include <assert.h>
70196 #endif
70197
70198 #undef $ac_func
70199
70200 /* Override any GCC internal prototype to avoid an error.
70201    Use char because int might match the return type of a GCC
70202    builtin and then its argument prototype would still apply.  */
70203 #ifdef __cplusplus
70204 extern "C"
70205 #endif
70206 char $ac_func ();
70207 /* The GNU C library defines this for functions which it implements
70208     to always fail with ENOSYS.  Some functions are actually named
70209     something starting with __ and the normal name is an alias.  */
70210 #if defined __stub_$ac_func || defined __stub___$ac_func
70211 choke me
70212 #endif
70213
70214 int
70215 main ()
70216 {
70217 return $ac_func ();
70218   ;
70219   return 0;
70220 }
70221 _ACEOF
70222 rm -f conftest.$ac_objext conftest$ac_exeext
70223 if { (ac_try="$ac_link"
70224 case "(($ac_try" in
70225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70226   *) ac_try_echo=$ac_try;;
70227 esac
70228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70229 $as_echo "$ac_try_echo") >&5
70230   (eval "$ac_link") 2>conftest.er1
70231   ac_status=$?
70232   grep -v '^ *+' conftest.er1 >conftest.err
70233   rm -f conftest.er1
70234   cat conftest.err >&5
70235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70236   (exit $ac_status); } && {
70237          test -z "$ac_c_werror_flag" ||
70238          test ! -s conftest.err
70239        } && test -s conftest$ac_exeext && {
70240          test "$cross_compiling" = yes ||
70241          $as_test_x conftest$ac_exeext
70242        }; then
70243   eval "$as_ac_var=yes"
70244 else
70245   $as_echo "$as_me: failed program was:" >&5
70246 sed 's/^/| /' conftest.$ac_ext >&5
70247
70248         eval "$as_ac_var=no"
70249 fi
70250
70251 rm -rf conftest.dSYM
70252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70253       conftest$ac_exeext conftest.$ac_ext
70254 fi
70255 ac_res=`eval 'as_val=${'$as_ac_var'}
70256                  $as_echo "$as_val"'`
70257                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70258 $as_echo "$ac_res" >&6; }
70259 as_val=`eval 'as_val=${'$as_ac_var'}
70260                  $as_echo "$as_val"'`
70261    if test "x$as_val" = x""yes; then
70262   cat >>confdefs.h <<_ACEOF
70263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70264 _ACEOF
70265  ice_have_system=yes
70266 fi
70267 done
70268
70269 if test "${ice_have_system}" = yes; then
70270 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
70271 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
70272 if test "${ice_cv_have_system_decl+set}" = set; then
70273   $as_echo_n "(cached) " >&6
70274 else
70275
70276 ice_cv_have_system_decl=no
70277 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70278 ice_re_word='(^|[^a-zA-Z0-9_])'
70279 for header in stdlib.h; do
70280 # Check for ordinary declaration
70281 cat >conftest.$ac_ext <<_ACEOF
70282 /* confdefs.h.  */
70283 _ACEOF
70284 cat confdefs.h >>conftest.$ac_ext
70285 cat >>conftest.$ac_ext <<_ACEOF
70286 /* end confdefs.h.  */
70287 #include <$header>
70288
70289 _ACEOF
70290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70291   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
70292   ice_cv_have_system_decl=yes
70293 fi
70294 rm -f conftest*
70295
70296 if test "$ice_cv_have_system_decl" = yes; then
70297         break
70298 fi
70299 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70300 cat >conftest.$ac_ext <<_ACEOF
70301 /* confdefs.h.  */
70302 _ACEOF
70303 cat confdefs.h >>conftest.$ac_ext
70304 cat >>conftest.$ac_ext <<_ACEOF
70305 /* end confdefs.h.  */
70306 #include <$header>
70307
70308 _ACEOF
70309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70310   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70311   ice_cv_have_system_decl=yes
70312 fi
70313 rm -f conftest*
70314
70315 if test "$ice_cv_have_system_decl" = yes; then
70316         break
70317 fi
70318 done
70319
70320 fi
70321
70322 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
70323 $as_echo "$ice_cv_have_system_decl" >&6; }
70324 if test "$ice_cv_have_system_decl" = yes; then
70325
70326 cat >>confdefs.h <<_ACEOF
70327 #define HAVE_SYSTEM_DECL 1
70328 _ACEOF
70329
70330 fi
70331 fi
70332
70333
70334 ice_have_time=no
70335
70336 for ac_func in time
70337 do
70338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70340 $as_echo_n "checking for $ac_func... " >&6; }
70341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70342   $as_echo_n "(cached) " >&6
70343 else
70344   cat >conftest.$ac_ext <<_ACEOF
70345 /* confdefs.h.  */
70346 _ACEOF
70347 cat confdefs.h >>conftest.$ac_ext
70348 cat >>conftest.$ac_ext <<_ACEOF
70349 /* end confdefs.h.  */
70350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70352 #define $ac_func innocuous_$ac_func
70353
70354 /* System header to define __stub macros and hopefully few prototypes,
70355     which can conflict with char $ac_func (); below.
70356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70357     <limits.h> exists even on freestanding compilers.  */
70358
70359 #ifdef __STDC__
70360 # include <limits.h>
70361 #else
70362 # include <assert.h>
70363 #endif
70364
70365 #undef $ac_func
70366
70367 /* Override any GCC internal prototype to avoid an error.
70368    Use char because int might match the return type of a GCC
70369    builtin and then its argument prototype would still apply.  */
70370 #ifdef __cplusplus
70371 extern "C"
70372 #endif
70373 char $ac_func ();
70374 /* The GNU C library defines this for functions which it implements
70375     to always fail with ENOSYS.  Some functions are actually named
70376     something starting with __ and the normal name is an alias.  */
70377 #if defined __stub_$ac_func || defined __stub___$ac_func
70378 choke me
70379 #endif
70380
70381 int
70382 main ()
70383 {
70384 return $ac_func ();
70385   ;
70386   return 0;
70387 }
70388 _ACEOF
70389 rm -f conftest.$ac_objext conftest$ac_exeext
70390 if { (ac_try="$ac_link"
70391 case "(($ac_try" in
70392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70393   *) ac_try_echo=$ac_try;;
70394 esac
70395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70396 $as_echo "$ac_try_echo") >&5
70397   (eval "$ac_link") 2>conftest.er1
70398   ac_status=$?
70399   grep -v '^ *+' conftest.er1 >conftest.err
70400   rm -f conftest.er1
70401   cat conftest.err >&5
70402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70403   (exit $ac_status); } && {
70404          test -z "$ac_c_werror_flag" ||
70405          test ! -s conftest.err
70406        } && test -s conftest$ac_exeext && {
70407          test "$cross_compiling" = yes ||
70408          $as_test_x conftest$ac_exeext
70409        }; then
70410   eval "$as_ac_var=yes"
70411 else
70412   $as_echo "$as_me: failed program was:" >&5
70413 sed 's/^/| /' conftest.$ac_ext >&5
70414
70415         eval "$as_ac_var=no"
70416 fi
70417
70418 rm -rf conftest.dSYM
70419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70420       conftest$ac_exeext conftest.$ac_ext
70421 fi
70422 ac_res=`eval 'as_val=${'$as_ac_var'}
70423                  $as_echo "$as_val"'`
70424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70425 $as_echo "$ac_res" >&6; }
70426 as_val=`eval 'as_val=${'$as_ac_var'}
70427                  $as_echo "$as_val"'`
70428    if test "x$as_val" = x""yes; then
70429   cat >>confdefs.h <<_ACEOF
70430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70431 _ACEOF
70432  ice_have_time=yes
70433 fi
70434 done
70435
70436 if test "${ice_have_time}" = yes; then
70437 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
70438 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
70439 if test "${ice_cv_have_time_decl+set}" = set; then
70440   $as_echo_n "(cached) " >&6
70441 else
70442
70443 ice_cv_have_time_decl=no
70444 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70445 ice_re_word='(^|[^a-zA-Z0-9_])'
70446 for header in time.h sys/time.h; do
70447 # Check for ordinary declaration
70448 cat >conftest.$ac_ext <<_ACEOF
70449 /* confdefs.h.  */
70450 _ACEOF
70451 cat confdefs.h >>conftest.$ac_ext
70452 cat >>conftest.$ac_ext <<_ACEOF
70453 /* end confdefs.h.  */
70454 #include <$header>
70455
70456 _ACEOF
70457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70458   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
70459   ice_cv_have_time_decl=yes
70460 fi
70461 rm -f conftest*
70462
70463 if test "$ice_cv_have_time_decl" = yes; then
70464         break
70465 fi
70466 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70467 cat >conftest.$ac_ext <<_ACEOF
70468 /* confdefs.h.  */
70469 _ACEOF
70470 cat confdefs.h >>conftest.$ac_ext
70471 cat >>conftest.$ac_ext <<_ACEOF
70472 /* end confdefs.h.  */
70473 #include <$header>
70474
70475 _ACEOF
70476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70477   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70478   ice_cv_have_time_decl=yes
70479 fi
70480 rm -f conftest*
70481
70482 if test "$ice_cv_have_time_decl" = yes; then
70483         break
70484 fi
70485 done
70486
70487 fi
70488
70489 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
70490 $as_echo "$ice_cv_have_time_decl" >&6; }
70491 if test "$ice_cv_have_time_decl" = yes; then
70492
70493 cat >>confdefs.h <<_ACEOF
70494 #define HAVE_TIME_DECL 1
70495 _ACEOF
70496
70497 fi
70498 fi
70499
70500
70501 ice_have_tolower=no
70502
70503 for ac_func in tolower
70504 do
70505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70507 $as_echo_n "checking for $ac_func... " >&6; }
70508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70509   $as_echo_n "(cached) " >&6
70510 else
70511   cat >conftest.$ac_ext <<_ACEOF
70512 /* confdefs.h.  */
70513 _ACEOF
70514 cat confdefs.h >>conftest.$ac_ext
70515 cat >>conftest.$ac_ext <<_ACEOF
70516 /* end confdefs.h.  */
70517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70519 #define $ac_func innocuous_$ac_func
70520
70521 /* System header to define __stub macros and hopefully few prototypes,
70522     which can conflict with char $ac_func (); below.
70523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70524     <limits.h> exists even on freestanding compilers.  */
70525
70526 #ifdef __STDC__
70527 # include <limits.h>
70528 #else
70529 # include <assert.h>
70530 #endif
70531
70532 #undef $ac_func
70533
70534 /* Override any GCC internal prototype to avoid an error.
70535    Use char because int might match the return type of a GCC
70536    builtin and then its argument prototype would still apply.  */
70537 #ifdef __cplusplus
70538 extern "C"
70539 #endif
70540 char $ac_func ();
70541 /* The GNU C library defines this for functions which it implements
70542     to always fail with ENOSYS.  Some functions are actually named
70543     something starting with __ and the normal name is an alias.  */
70544 #if defined __stub_$ac_func || defined __stub___$ac_func
70545 choke me
70546 #endif
70547
70548 int
70549 main ()
70550 {
70551 return $ac_func ();
70552   ;
70553   return 0;
70554 }
70555 _ACEOF
70556 rm -f conftest.$ac_objext conftest$ac_exeext
70557 if { (ac_try="$ac_link"
70558 case "(($ac_try" in
70559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70560   *) ac_try_echo=$ac_try;;
70561 esac
70562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70563 $as_echo "$ac_try_echo") >&5
70564   (eval "$ac_link") 2>conftest.er1
70565   ac_status=$?
70566   grep -v '^ *+' conftest.er1 >conftest.err
70567   rm -f conftest.er1
70568   cat conftest.err >&5
70569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70570   (exit $ac_status); } && {
70571          test -z "$ac_c_werror_flag" ||
70572          test ! -s conftest.err
70573        } && test -s conftest$ac_exeext && {
70574          test "$cross_compiling" = yes ||
70575          $as_test_x conftest$ac_exeext
70576        }; then
70577   eval "$as_ac_var=yes"
70578 else
70579   $as_echo "$as_me: failed program was:" >&5
70580 sed 's/^/| /' conftest.$ac_ext >&5
70581
70582         eval "$as_ac_var=no"
70583 fi
70584
70585 rm -rf conftest.dSYM
70586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70587       conftest$ac_exeext conftest.$ac_ext
70588 fi
70589 ac_res=`eval 'as_val=${'$as_ac_var'}
70590                  $as_echo "$as_val"'`
70591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70592 $as_echo "$ac_res" >&6; }
70593 as_val=`eval 'as_val=${'$as_ac_var'}
70594                  $as_echo "$as_val"'`
70595    if test "x$as_val" = x""yes; then
70596   cat >>confdefs.h <<_ACEOF
70597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70598 _ACEOF
70599  ice_have_tolower=yes
70600 fi
70601 done
70602
70603 if test "${ice_have_tolower}" = yes; then
70604 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
70605 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
70606 if test "${ice_cv_have_tolower_decl+set}" = set; then
70607   $as_echo_n "(cached) " >&6
70608 else
70609
70610 ice_cv_have_tolower_decl=no
70611 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70612 ice_re_word='(^|[^a-zA-Z0-9_])'
70613 for header in ctype.h; do
70614 # Check for ordinary declaration
70615 cat >conftest.$ac_ext <<_ACEOF
70616 /* confdefs.h.  */
70617 _ACEOF
70618 cat confdefs.h >>conftest.$ac_ext
70619 cat >>conftest.$ac_ext <<_ACEOF
70620 /* end confdefs.h.  */
70621 #include <$header>
70622
70623 _ACEOF
70624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70625   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
70626   ice_cv_have_tolower_decl=yes
70627 fi
70628 rm -f conftest*
70629
70630 if test "$ice_cv_have_tolower_decl" = yes; then
70631         break
70632 fi
70633 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70634 cat >conftest.$ac_ext <<_ACEOF
70635 /* confdefs.h.  */
70636 _ACEOF
70637 cat confdefs.h >>conftest.$ac_ext
70638 cat >>conftest.$ac_ext <<_ACEOF
70639 /* end confdefs.h.  */
70640 #include <$header>
70641
70642 _ACEOF
70643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70644   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70645   ice_cv_have_tolower_decl=yes
70646 fi
70647 rm -f conftest*
70648
70649 if test "$ice_cv_have_tolower_decl" = yes; then
70650         break
70651 fi
70652 done
70653
70654 fi
70655
70656 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
70657 $as_echo "$ice_cv_have_tolower_decl" >&6; }
70658 if test "$ice_cv_have_tolower_decl" = yes; then
70659
70660 cat >>confdefs.h <<_ACEOF
70661 #define HAVE_TOLOWER_DECL 1
70662 _ACEOF
70663
70664 fi
70665 fi
70666
70667
70668 ice_have_toupper=no
70669
70670 for ac_func in toupper
70671 do
70672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70674 $as_echo_n "checking for $ac_func... " >&6; }
70675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70676   $as_echo_n "(cached) " >&6
70677 else
70678   cat >conftest.$ac_ext <<_ACEOF
70679 /* confdefs.h.  */
70680 _ACEOF
70681 cat confdefs.h >>conftest.$ac_ext
70682 cat >>conftest.$ac_ext <<_ACEOF
70683 /* end confdefs.h.  */
70684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70686 #define $ac_func innocuous_$ac_func
70687
70688 /* System header to define __stub macros and hopefully few prototypes,
70689     which can conflict with char $ac_func (); below.
70690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70691     <limits.h> exists even on freestanding compilers.  */
70692
70693 #ifdef __STDC__
70694 # include <limits.h>
70695 #else
70696 # include <assert.h>
70697 #endif
70698
70699 #undef $ac_func
70700
70701 /* Override any GCC internal prototype to avoid an error.
70702    Use char because int might match the return type of a GCC
70703    builtin and then its argument prototype would still apply.  */
70704 #ifdef __cplusplus
70705 extern "C"
70706 #endif
70707 char $ac_func ();
70708 /* The GNU C library defines this for functions which it implements
70709     to always fail with ENOSYS.  Some functions are actually named
70710     something starting with __ and the normal name is an alias.  */
70711 #if defined __stub_$ac_func || defined __stub___$ac_func
70712 choke me
70713 #endif
70714
70715 int
70716 main ()
70717 {
70718 return $ac_func ();
70719   ;
70720   return 0;
70721 }
70722 _ACEOF
70723 rm -f conftest.$ac_objext conftest$ac_exeext
70724 if { (ac_try="$ac_link"
70725 case "(($ac_try" in
70726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70727   *) ac_try_echo=$ac_try;;
70728 esac
70729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70730 $as_echo "$ac_try_echo") >&5
70731   (eval "$ac_link") 2>conftest.er1
70732   ac_status=$?
70733   grep -v '^ *+' conftest.er1 >conftest.err
70734   rm -f conftest.er1
70735   cat conftest.err >&5
70736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70737   (exit $ac_status); } && {
70738          test -z "$ac_c_werror_flag" ||
70739          test ! -s conftest.err
70740        } && test -s conftest$ac_exeext && {
70741          test "$cross_compiling" = yes ||
70742          $as_test_x conftest$ac_exeext
70743        }; then
70744   eval "$as_ac_var=yes"
70745 else
70746   $as_echo "$as_me: failed program was:" >&5
70747 sed 's/^/| /' conftest.$ac_ext >&5
70748
70749         eval "$as_ac_var=no"
70750 fi
70751
70752 rm -rf conftest.dSYM
70753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70754       conftest$ac_exeext conftest.$ac_ext
70755 fi
70756 ac_res=`eval 'as_val=${'$as_ac_var'}
70757                  $as_echo "$as_val"'`
70758                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70759 $as_echo "$ac_res" >&6; }
70760 as_val=`eval 'as_val=${'$as_ac_var'}
70761                  $as_echo "$as_val"'`
70762    if test "x$as_val" = x""yes; then
70763   cat >>confdefs.h <<_ACEOF
70764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70765 _ACEOF
70766  ice_have_toupper=yes
70767 fi
70768 done
70769
70770 if test "${ice_have_toupper}" = yes; then
70771 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
70772 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
70773 if test "${ice_cv_have_toupper_decl+set}" = set; then
70774   $as_echo_n "(cached) " >&6
70775 else
70776
70777 ice_cv_have_toupper_decl=no
70778 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70779 ice_re_word='(^|[^a-zA-Z0-9_])'
70780 for header in ctype.h; do
70781 # Check for ordinary declaration
70782 cat >conftest.$ac_ext <<_ACEOF
70783 /* confdefs.h.  */
70784 _ACEOF
70785 cat confdefs.h >>conftest.$ac_ext
70786 cat >>conftest.$ac_ext <<_ACEOF
70787 /* end confdefs.h.  */
70788 #include <$header>
70789
70790 _ACEOF
70791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70792   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
70793   ice_cv_have_toupper_decl=yes
70794 fi
70795 rm -f conftest*
70796
70797 if test "$ice_cv_have_toupper_decl" = yes; then
70798         break
70799 fi
70800 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70801 cat >conftest.$ac_ext <<_ACEOF
70802 /* confdefs.h.  */
70803 _ACEOF
70804 cat confdefs.h >>conftest.$ac_ext
70805 cat >>conftest.$ac_ext <<_ACEOF
70806 /* end confdefs.h.  */
70807 #include <$header>
70808
70809 _ACEOF
70810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70811   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70812   ice_cv_have_toupper_decl=yes
70813 fi
70814 rm -f conftest*
70815
70816 if test "$ice_cv_have_toupper_decl" = yes; then
70817         break
70818 fi
70819 done
70820
70821 fi
70822
70823 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
70824 $as_echo "$ice_cv_have_toupper_decl" >&6; }
70825 if test "$ice_cv_have_toupper_decl" = yes; then
70826
70827 cat >>confdefs.h <<_ACEOF
70828 #define HAVE_TOUPPER_DECL 1
70829 _ACEOF
70830
70831 fi
70832 fi
70833
70834
70835 ice_have_ungetc=no
70836
70837 for ac_func in ungetc
70838 do
70839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70841 $as_echo_n "checking for $ac_func... " >&6; }
70842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70843   $as_echo_n "(cached) " >&6
70844 else
70845   cat >conftest.$ac_ext <<_ACEOF
70846 /* confdefs.h.  */
70847 _ACEOF
70848 cat confdefs.h >>conftest.$ac_ext
70849 cat >>conftest.$ac_ext <<_ACEOF
70850 /* end confdefs.h.  */
70851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70853 #define $ac_func innocuous_$ac_func
70854
70855 /* System header to define __stub macros and hopefully few prototypes,
70856     which can conflict with char $ac_func (); below.
70857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70858     <limits.h> exists even on freestanding compilers.  */
70859
70860 #ifdef __STDC__
70861 # include <limits.h>
70862 #else
70863 # include <assert.h>
70864 #endif
70865
70866 #undef $ac_func
70867
70868 /* Override any GCC internal prototype to avoid an error.
70869    Use char because int might match the return type of a GCC
70870    builtin and then its argument prototype would still apply.  */
70871 #ifdef __cplusplus
70872 extern "C"
70873 #endif
70874 char $ac_func ();
70875 /* The GNU C library defines this for functions which it implements
70876     to always fail with ENOSYS.  Some functions are actually named
70877     something starting with __ and the normal name is an alias.  */
70878 #if defined __stub_$ac_func || defined __stub___$ac_func
70879 choke me
70880 #endif
70881
70882 int
70883 main ()
70884 {
70885 return $ac_func ();
70886   ;
70887   return 0;
70888 }
70889 _ACEOF
70890 rm -f conftest.$ac_objext conftest$ac_exeext
70891 if { (ac_try="$ac_link"
70892 case "(($ac_try" in
70893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70894   *) ac_try_echo=$ac_try;;
70895 esac
70896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70897 $as_echo "$ac_try_echo") >&5
70898   (eval "$ac_link") 2>conftest.er1
70899   ac_status=$?
70900   grep -v '^ *+' conftest.er1 >conftest.err
70901   rm -f conftest.er1
70902   cat conftest.err >&5
70903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70904   (exit $ac_status); } && {
70905          test -z "$ac_c_werror_flag" ||
70906          test ! -s conftest.err
70907        } && test -s conftest$ac_exeext && {
70908          test "$cross_compiling" = yes ||
70909          $as_test_x conftest$ac_exeext
70910        }; then
70911   eval "$as_ac_var=yes"
70912 else
70913   $as_echo "$as_me: failed program was:" >&5
70914 sed 's/^/| /' conftest.$ac_ext >&5
70915
70916         eval "$as_ac_var=no"
70917 fi
70918
70919 rm -rf conftest.dSYM
70920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70921       conftest$ac_exeext conftest.$ac_ext
70922 fi
70923 ac_res=`eval 'as_val=${'$as_ac_var'}
70924                  $as_echo "$as_val"'`
70925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70926 $as_echo "$ac_res" >&6; }
70927 as_val=`eval 'as_val=${'$as_ac_var'}
70928                  $as_echo "$as_val"'`
70929    if test "x$as_val" = x""yes; then
70930   cat >>confdefs.h <<_ACEOF
70931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70932 _ACEOF
70933  ice_have_ungetc=yes
70934 fi
70935 done
70936
70937 if test "${ice_have_ungetc}" = yes; then
70938 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
70939 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
70940 if test "${ice_cv_have_ungetc_decl+set}" = set; then
70941   $as_echo_n "(cached) " >&6
70942 else
70943
70944 ice_cv_have_ungetc_decl=no
70945 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70946 ice_re_word='(^|[^a-zA-Z0-9_])'
70947 for header in stdio.h; do
70948 # Check for ordinary declaration
70949 cat >conftest.$ac_ext <<_ACEOF
70950 /* confdefs.h.  */
70951 _ACEOF
70952 cat confdefs.h >>conftest.$ac_ext
70953 cat >>conftest.$ac_ext <<_ACEOF
70954 /* end confdefs.h.  */
70955 #include <$header>
70956
70957 _ACEOF
70958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70959   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
70960   ice_cv_have_ungetc_decl=yes
70961 fi
70962 rm -f conftest*
70963
70964 if test "$ice_cv_have_ungetc_decl" = yes; then
70965         break
70966 fi
70967 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70968 cat >conftest.$ac_ext <<_ACEOF
70969 /* confdefs.h.  */
70970 _ACEOF
70971 cat confdefs.h >>conftest.$ac_ext
70972 cat >>conftest.$ac_ext <<_ACEOF
70973 /* end confdefs.h.  */
70974 #include <$header>
70975
70976 _ACEOF
70977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70978   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70979   ice_cv_have_ungetc_decl=yes
70980 fi
70981 rm -f conftest*
70982
70983 if test "$ice_cv_have_ungetc_decl" = yes; then
70984         break
70985 fi
70986 done
70987
70988 fi
70989
70990 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
70991 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
70992 if test "$ice_cv_have_ungetc_decl" = yes; then
70993
70994 cat >>confdefs.h <<_ACEOF
70995 #define HAVE_UNGETC_DECL 1
70996 _ACEOF
70997
70998 fi
70999 fi
71000
71001
71002 ice_have_vfprintf=no
71003
71004 for ac_func in vfprintf
71005 do
71006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71008 $as_echo_n "checking for $ac_func... " >&6; }
71009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71010   $as_echo_n "(cached) " >&6
71011 else
71012   cat >conftest.$ac_ext <<_ACEOF
71013 /* confdefs.h.  */
71014 _ACEOF
71015 cat confdefs.h >>conftest.$ac_ext
71016 cat >>conftest.$ac_ext <<_ACEOF
71017 /* end confdefs.h.  */
71018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71020 #define $ac_func innocuous_$ac_func
71021
71022 /* System header to define __stub macros and hopefully few prototypes,
71023     which can conflict with char $ac_func (); below.
71024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71025     <limits.h> exists even on freestanding compilers.  */
71026
71027 #ifdef __STDC__
71028 # include <limits.h>
71029 #else
71030 # include <assert.h>
71031 #endif
71032
71033 #undef $ac_func
71034
71035 /* Override any GCC internal prototype to avoid an error.
71036    Use char because int might match the return type of a GCC
71037    builtin and then its argument prototype would still apply.  */
71038 #ifdef __cplusplus
71039 extern "C"
71040 #endif
71041 char $ac_func ();
71042 /* The GNU C library defines this for functions which it implements
71043     to always fail with ENOSYS.  Some functions are actually named
71044     something starting with __ and the normal name is an alias.  */
71045 #if defined __stub_$ac_func || defined __stub___$ac_func
71046 choke me
71047 #endif
71048
71049 int
71050 main ()
71051 {
71052 return $ac_func ();
71053   ;
71054   return 0;
71055 }
71056 _ACEOF
71057 rm -f conftest.$ac_objext conftest$ac_exeext
71058 if { (ac_try="$ac_link"
71059 case "(($ac_try" in
71060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71061   *) ac_try_echo=$ac_try;;
71062 esac
71063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71064 $as_echo "$ac_try_echo") >&5
71065   (eval "$ac_link") 2>conftest.er1
71066   ac_status=$?
71067   grep -v '^ *+' conftest.er1 >conftest.err
71068   rm -f conftest.er1
71069   cat conftest.err >&5
71070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71071   (exit $ac_status); } && {
71072          test -z "$ac_c_werror_flag" ||
71073          test ! -s conftest.err
71074        } && test -s conftest$ac_exeext && {
71075          test "$cross_compiling" = yes ||
71076          $as_test_x conftest$ac_exeext
71077        }; then
71078   eval "$as_ac_var=yes"
71079 else
71080   $as_echo "$as_me: failed program was:" >&5
71081 sed 's/^/| /' conftest.$ac_ext >&5
71082
71083         eval "$as_ac_var=no"
71084 fi
71085
71086 rm -rf conftest.dSYM
71087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71088       conftest$ac_exeext conftest.$ac_ext
71089 fi
71090 ac_res=`eval 'as_val=${'$as_ac_var'}
71091                  $as_echo "$as_val"'`
71092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71093 $as_echo "$ac_res" >&6; }
71094 as_val=`eval 'as_val=${'$as_ac_var'}
71095                  $as_echo "$as_val"'`
71096    if test "x$as_val" = x""yes; then
71097   cat >>confdefs.h <<_ACEOF
71098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71099 _ACEOF
71100  ice_have_vfprintf=yes
71101 fi
71102 done
71103
71104 if test "${ice_have_vfprintf}" = yes; then
71105 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
71106 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
71107 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
71108   $as_echo_n "(cached) " >&6
71109 else
71110
71111 ice_cv_have_vfprintf_decl=no
71112 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71113 ice_re_word='(^|[^a-zA-Z0-9_])'
71114 for header in stdio.h stdlib.h; do
71115 # Check for ordinary declaration
71116 cat >conftest.$ac_ext <<_ACEOF
71117 /* confdefs.h.  */
71118 _ACEOF
71119 cat confdefs.h >>conftest.$ac_ext
71120 cat >>conftest.$ac_ext <<_ACEOF
71121 /* end confdefs.h.  */
71122 #include <$header>
71123
71124 _ACEOF
71125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71126   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
71127   ice_cv_have_vfprintf_decl=yes
71128 fi
71129 rm -f conftest*
71130
71131 if test "$ice_cv_have_vfprintf_decl" = yes; then
71132         break
71133 fi
71134 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71135 cat >conftest.$ac_ext <<_ACEOF
71136 /* confdefs.h.  */
71137 _ACEOF
71138 cat confdefs.h >>conftest.$ac_ext
71139 cat >>conftest.$ac_ext <<_ACEOF
71140 /* end confdefs.h.  */
71141 #include <$header>
71142
71143 _ACEOF
71144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71145   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71146   ice_cv_have_vfprintf_decl=yes
71147 fi
71148 rm -f conftest*
71149
71150 if test "$ice_cv_have_vfprintf_decl" = yes; then
71151         break
71152 fi
71153 done
71154
71155 fi
71156
71157 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
71158 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
71159 if test "$ice_cv_have_vfprintf_decl" = yes; then
71160
71161 cat >>confdefs.h <<_ACEOF
71162 #define HAVE_VFPRINTF_DECL 1
71163 _ACEOF
71164
71165 fi
71166 fi
71167
71168
71169 ice_have_vprintf=no
71170
71171 for ac_func in vprintf
71172 do
71173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71175 $as_echo_n "checking for $ac_func... " >&6; }
71176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71177   $as_echo_n "(cached) " >&6
71178 else
71179   cat >conftest.$ac_ext <<_ACEOF
71180 /* confdefs.h.  */
71181 _ACEOF
71182 cat confdefs.h >>conftest.$ac_ext
71183 cat >>conftest.$ac_ext <<_ACEOF
71184 /* end confdefs.h.  */
71185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71187 #define $ac_func innocuous_$ac_func
71188
71189 /* System header to define __stub macros and hopefully few prototypes,
71190     which can conflict with char $ac_func (); below.
71191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71192     <limits.h> exists even on freestanding compilers.  */
71193
71194 #ifdef __STDC__
71195 # include <limits.h>
71196 #else
71197 # include <assert.h>
71198 #endif
71199
71200 #undef $ac_func
71201
71202 /* Override any GCC internal prototype to avoid an error.
71203    Use char because int might match the return type of a GCC
71204    builtin and then its argument prototype would still apply.  */
71205 #ifdef __cplusplus
71206 extern "C"
71207 #endif
71208 char $ac_func ();
71209 /* The GNU C library defines this for functions which it implements
71210     to always fail with ENOSYS.  Some functions are actually named
71211     something starting with __ and the normal name is an alias.  */
71212 #if defined __stub_$ac_func || defined __stub___$ac_func
71213 choke me
71214 #endif
71215
71216 int
71217 main ()
71218 {
71219 return $ac_func ();
71220   ;
71221   return 0;
71222 }
71223 _ACEOF
71224 rm -f conftest.$ac_objext conftest$ac_exeext
71225 if { (ac_try="$ac_link"
71226 case "(($ac_try" in
71227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71228   *) ac_try_echo=$ac_try;;
71229 esac
71230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71231 $as_echo "$ac_try_echo") >&5
71232   (eval "$ac_link") 2>conftest.er1
71233   ac_status=$?
71234   grep -v '^ *+' conftest.er1 >conftest.err
71235   rm -f conftest.er1
71236   cat conftest.err >&5
71237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71238   (exit $ac_status); } && {
71239          test -z "$ac_c_werror_flag" ||
71240          test ! -s conftest.err
71241        } && test -s conftest$ac_exeext && {
71242          test "$cross_compiling" = yes ||
71243          $as_test_x conftest$ac_exeext
71244        }; then
71245   eval "$as_ac_var=yes"
71246 else
71247   $as_echo "$as_me: failed program was:" >&5
71248 sed 's/^/| /' conftest.$ac_ext >&5
71249
71250         eval "$as_ac_var=no"
71251 fi
71252
71253 rm -rf conftest.dSYM
71254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71255       conftest$ac_exeext conftest.$ac_ext
71256 fi
71257 ac_res=`eval 'as_val=${'$as_ac_var'}
71258                  $as_echo "$as_val"'`
71259                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71260 $as_echo "$ac_res" >&6; }
71261 as_val=`eval 'as_val=${'$as_ac_var'}
71262                  $as_echo "$as_val"'`
71263    if test "x$as_val" = x""yes; then
71264   cat >>confdefs.h <<_ACEOF
71265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71266 _ACEOF
71267  ice_have_vprintf=yes
71268 fi
71269 done
71270
71271 if test "${ice_have_vprintf}" = yes; then
71272 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
71273 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
71274 if test "${ice_cv_have_vprintf_decl+set}" = set; then
71275   $as_echo_n "(cached) " >&6
71276 else
71277
71278 ice_cv_have_vprintf_decl=no
71279 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71280 ice_re_word='(^|[^a-zA-Z0-9_])'
71281 for header in stdio.h stdlib.h; do
71282 # Check for ordinary declaration
71283 cat >conftest.$ac_ext <<_ACEOF
71284 /* confdefs.h.  */
71285 _ACEOF
71286 cat confdefs.h >>conftest.$ac_ext
71287 cat >>conftest.$ac_ext <<_ACEOF
71288 /* end confdefs.h.  */
71289 #include <$header>
71290
71291 _ACEOF
71292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71293   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
71294   ice_cv_have_vprintf_decl=yes
71295 fi
71296 rm -f conftest*
71297
71298 if test "$ice_cv_have_vprintf_decl" = yes; then
71299         break
71300 fi
71301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71302 cat >conftest.$ac_ext <<_ACEOF
71303 /* confdefs.h.  */
71304 _ACEOF
71305 cat confdefs.h >>conftest.$ac_ext
71306 cat >>conftest.$ac_ext <<_ACEOF
71307 /* end confdefs.h.  */
71308 #include <$header>
71309
71310 _ACEOF
71311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71312   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71313   ice_cv_have_vprintf_decl=yes
71314 fi
71315 rm -f conftest*
71316
71317 if test "$ice_cv_have_vprintf_decl" = yes; then
71318         break
71319 fi
71320 done
71321
71322 fi
71323
71324 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
71325 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
71326 if test "$ice_cv_have_vprintf_decl" = yes; then
71327
71328 cat >>confdefs.h <<_ACEOF
71329 #define HAVE_VPRINTF_DECL 1
71330 _ACEOF
71331
71332 fi
71333 fi
71334
71335 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
71336 $as_echo_n "checking for wait4... " >&6; }
71337 if test "${ac_cv_func_wait4+set}" = set; then
71338   $as_echo_n "(cached) " >&6
71339 else
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 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
71347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71348 #define wait4 innocuous_wait4
71349
71350 /* System header to define __stub macros and hopefully few prototypes,
71351     which can conflict with char wait4 (); below.
71352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71353     <limits.h> exists even on freestanding compilers.  */
71354
71355 #ifdef __STDC__
71356 # include <limits.h>
71357 #else
71358 # include <assert.h>
71359 #endif
71360
71361 #undef wait4
71362
71363 /* Override any GCC internal prototype to avoid an error.
71364    Use char because int might match the return type of a GCC
71365    builtin and then its argument prototype would still apply.  */
71366 #ifdef __cplusplus
71367 extern "C"
71368 #endif
71369 char wait4 ();
71370 /* The GNU C library defines this for functions which it implements
71371     to always fail with ENOSYS.  Some functions are actually named
71372     something starting with __ and the normal name is an alias.  */
71373 #if defined __stub_wait4 || defined __stub___wait4
71374 choke me
71375 #endif
71376
71377 int
71378 main ()
71379 {
71380 return wait4 ();
71381   ;
71382   return 0;
71383 }
71384 _ACEOF
71385 rm -f conftest.$ac_objext conftest$ac_exeext
71386 if { (ac_try="$ac_link"
71387 case "(($ac_try" in
71388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71389   *) ac_try_echo=$ac_try;;
71390 esac
71391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71392 $as_echo "$ac_try_echo") >&5
71393   (eval "$ac_link") 2>conftest.er1
71394   ac_status=$?
71395   grep -v '^ *+' conftest.er1 >conftest.err
71396   rm -f conftest.er1
71397   cat conftest.err >&5
71398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71399   (exit $ac_status); } && {
71400          test -z "$ac_c_werror_flag" ||
71401          test ! -s conftest.err
71402        } && test -s conftest$ac_exeext && {
71403          test "$cross_compiling" = yes ||
71404          $as_test_x conftest$ac_exeext
71405        }; then
71406   ac_cv_func_wait4=yes
71407 else
71408   $as_echo "$as_me: failed program was:" >&5
71409 sed 's/^/| /' conftest.$ac_ext >&5
71410
71411         ac_cv_func_wait4=no
71412 fi
71413
71414 rm -rf conftest.dSYM
71415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71416       conftest$ac_exeext conftest.$ac_ext
71417 fi
71418 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
71419 $as_echo "$ac_cv_func_wait4" >&6; }
71420
71421
71422 ice_have_writev=no
71423
71424 for ac_func in writev
71425 do
71426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71427 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71428 $as_echo_n "checking for $ac_func... " >&6; }
71429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71430   $as_echo_n "(cached) " >&6
71431 else
71432   cat >conftest.$ac_ext <<_ACEOF
71433 /* confdefs.h.  */
71434 _ACEOF
71435 cat confdefs.h >>conftest.$ac_ext
71436 cat >>conftest.$ac_ext <<_ACEOF
71437 /* end confdefs.h.  */
71438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71440 #define $ac_func innocuous_$ac_func
71441
71442 /* System header to define __stub macros and hopefully few prototypes,
71443     which can conflict with char $ac_func (); below.
71444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71445     <limits.h> exists even on freestanding compilers.  */
71446
71447 #ifdef __STDC__
71448 # include <limits.h>
71449 #else
71450 # include <assert.h>
71451 #endif
71452
71453 #undef $ac_func
71454
71455 /* Override any GCC internal prototype to avoid an error.
71456    Use char because int might match the return type of a GCC
71457    builtin and then its argument prototype would still apply.  */
71458 #ifdef __cplusplus
71459 extern "C"
71460 #endif
71461 char $ac_func ();
71462 /* The GNU C library defines this for functions which it implements
71463     to always fail with ENOSYS.  Some functions are actually named
71464     something starting with __ and the normal name is an alias.  */
71465 #if defined __stub_$ac_func || defined __stub___$ac_func
71466 choke me
71467 #endif
71468
71469 int
71470 main ()
71471 {
71472 return $ac_func ();
71473   ;
71474   return 0;
71475 }
71476 _ACEOF
71477 rm -f conftest.$ac_objext conftest$ac_exeext
71478 if { (ac_try="$ac_link"
71479 case "(($ac_try" in
71480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71481   *) ac_try_echo=$ac_try;;
71482 esac
71483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71484 $as_echo "$ac_try_echo") >&5
71485   (eval "$ac_link") 2>conftest.er1
71486   ac_status=$?
71487   grep -v '^ *+' conftest.er1 >conftest.err
71488   rm -f conftest.er1
71489   cat conftest.err >&5
71490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71491   (exit $ac_status); } && {
71492          test -z "$ac_c_werror_flag" ||
71493          test ! -s conftest.err
71494        } && test -s conftest$ac_exeext && {
71495          test "$cross_compiling" = yes ||
71496          $as_test_x conftest$ac_exeext
71497        }; then
71498   eval "$as_ac_var=yes"
71499 else
71500   $as_echo "$as_me: failed program was:" >&5
71501 sed 's/^/| /' conftest.$ac_ext >&5
71502
71503         eval "$as_ac_var=no"
71504 fi
71505
71506 rm -rf conftest.dSYM
71507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71508       conftest$ac_exeext conftest.$ac_ext
71509 fi
71510 ac_res=`eval 'as_val=${'$as_ac_var'}
71511                  $as_echo "$as_val"'`
71512                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71513 $as_echo "$ac_res" >&6; }
71514 as_val=`eval 'as_val=${'$as_ac_var'}
71515                  $as_echo "$as_val"'`
71516    if test "x$as_val" = x""yes; then
71517   cat >>confdefs.h <<_ACEOF
71518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71519 _ACEOF
71520  ice_have_writev=yes
71521 fi
71522 done
71523
71524 if test "${ice_have_writev}" = yes; then
71525 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
71526 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
71527 if test "${ice_cv_have_writev_decl+set}" = set; then
71528   $as_echo_n "(cached) " >&6
71529 else
71530
71531 ice_cv_have_writev_decl=no
71532 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71533 ice_re_word='(^|[^a-zA-Z0-9_])'
71534 for header in unistd.h sys/uio.h; do
71535 # Check for ordinary declaration
71536 cat >conftest.$ac_ext <<_ACEOF
71537 /* confdefs.h.  */
71538 _ACEOF
71539 cat confdefs.h >>conftest.$ac_ext
71540 cat >>conftest.$ac_ext <<_ACEOF
71541 /* end confdefs.h.  */
71542 #include <$header>
71543
71544 _ACEOF
71545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71546   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
71547   ice_cv_have_writev_decl=yes
71548 fi
71549 rm -f conftest*
71550
71551 if test "$ice_cv_have_writev_decl" = yes; then
71552         break
71553 fi
71554 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71555 cat >conftest.$ac_ext <<_ACEOF
71556 /* confdefs.h.  */
71557 _ACEOF
71558 cat confdefs.h >>conftest.$ac_ext
71559 cat >>conftest.$ac_ext <<_ACEOF
71560 /* end confdefs.h.  */
71561 #include <$header>
71562
71563 _ACEOF
71564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71565   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71566   ice_cv_have_writev_decl=yes
71567 fi
71568 rm -f conftest*
71569
71570 if test "$ice_cv_have_writev_decl" = yes; then
71571         break
71572 fi
71573 done
71574
71575 fi
71576
71577 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
71578 $as_echo "$ice_cv_have_writev_decl" >&6; }
71579 if test "$ice_cv_have_writev_decl" = yes; then
71580
71581 cat >>confdefs.h <<_ACEOF
71582 #define HAVE_WRITEV_DECL 1
71583 _ACEOF
71584
71585 fi
71586 fi
71587
71588
71589 ice_have_strcasecmp=no
71590
71591 for ac_func in strcasecmp
71592 do
71593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71594 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71595 $as_echo_n "checking for $ac_func... " >&6; }
71596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71597   $as_echo_n "(cached) " >&6
71598 else
71599   cat >conftest.$ac_ext <<_ACEOF
71600 /* confdefs.h.  */
71601 _ACEOF
71602 cat confdefs.h >>conftest.$ac_ext
71603 cat >>conftest.$ac_ext <<_ACEOF
71604 /* end confdefs.h.  */
71605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71607 #define $ac_func innocuous_$ac_func
71608
71609 /* System header to define __stub macros and hopefully few prototypes,
71610     which can conflict with char $ac_func (); below.
71611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71612     <limits.h> exists even on freestanding compilers.  */
71613
71614 #ifdef __STDC__
71615 # include <limits.h>
71616 #else
71617 # include <assert.h>
71618 #endif
71619
71620 #undef $ac_func
71621
71622 /* Override any GCC internal prototype to avoid an error.
71623    Use char because int might match the return type of a GCC
71624    builtin and then its argument prototype would still apply.  */
71625 #ifdef __cplusplus
71626 extern "C"
71627 #endif
71628 char $ac_func ();
71629 /* The GNU C library defines this for functions which it implements
71630     to always fail with ENOSYS.  Some functions are actually named
71631     something starting with __ and the normal name is an alias.  */
71632 #if defined __stub_$ac_func || defined __stub___$ac_func
71633 choke me
71634 #endif
71635
71636 int
71637 main ()
71638 {
71639 return $ac_func ();
71640   ;
71641   return 0;
71642 }
71643 _ACEOF
71644 rm -f conftest.$ac_objext conftest$ac_exeext
71645 if { (ac_try="$ac_link"
71646 case "(($ac_try" in
71647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71648   *) ac_try_echo=$ac_try;;
71649 esac
71650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71651 $as_echo "$ac_try_echo") >&5
71652   (eval "$ac_link") 2>conftest.er1
71653   ac_status=$?
71654   grep -v '^ *+' conftest.er1 >conftest.err
71655   rm -f conftest.er1
71656   cat conftest.err >&5
71657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71658   (exit $ac_status); } && {
71659          test -z "$ac_c_werror_flag" ||
71660          test ! -s conftest.err
71661        } && test -s conftest$ac_exeext && {
71662          test "$cross_compiling" = yes ||
71663          $as_test_x conftest$ac_exeext
71664        }; then
71665   eval "$as_ac_var=yes"
71666 else
71667   $as_echo "$as_me: failed program was:" >&5
71668 sed 's/^/| /' conftest.$ac_ext >&5
71669
71670         eval "$as_ac_var=no"
71671 fi
71672
71673 rm -rf conftest.dSYM
71674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71675       conftest$ac_exeext conftest.$ac_ext
71676 fi
71677 ac_res=`eval 'as_val=${'$as_ac_var'}
71678                  $as_echo "$as_val"'`
71679                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71680 $as_echo "$ac_res" >&6; }
71681 as_val=`eval 'as_val=${'$as_ac_var'}
71682                  $as_echo "$as_val"'`
71683    if test "x$as_val" = x""yes; then
71684   cat >>confdefs.h <<_ACEOF
71685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71686 _ACEOF
71687  ice_have_strcasecmp=yes
71688 fi
71689 done
71690
71691 if test "${ice_have_strcasecmp}" = yes; then
71692 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
71693 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
71694 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
71695   $as_echo_n "(cached) " >&6
71696 else
71697
71698 ice_cv_have_strcasecmp_decl=no
71699 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71700 ice_re_word='(^|[^a-zA-Z0-9_])'
71701 for header in string.h strings.h; do
71702 # Check for ordinary declaration
71703 cat >conftest.$ac_ext <<_ACEOF
71704 /* confdefs.h.  */
71705 _ACEOF
71706 cat confdefs.h >>conftest.$ac_ext
71707 cat >>conftest.$ac_ext <<_ACEOF
71708 /* end confdefs.h.  */
71709 #include <$header>
71710
71711 _ACEOF
71712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71713   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
71714   ice_cv_have_strcasecmp_decl=yes
71715 fi
71716 rm -f conftest*
71717
71718 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71719         break
71720 fi
71721 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71722 cat >conftest.$ac_ext <<_ACEOF
71723 /* confdefs.h.  */
71724 _ACEOF
71725 cat confdefs.h >>conftest.$ac_ext
71726 cat >>conftest.$ac_ext <<_ACEOF
71727 /* end confdefs.h.  */
71728 #include <$header>
71729
71730 _ACEOF
71731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71732   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71733   ice_cv_have_strcasecmp_decl=yes
71734 fi
71735 rm -f conftest*
71736
71737 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71738         break
71739 fi
71740 done
71741
71742 fi
71743
71744 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
71745 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
71746 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71747
71748 cat >>confdefs.h <<_ACEOF
71749 #define HAVE_STRCASECMP_DECL 1
71750 _ACEOF
71751
71752 fi
71753 fi
71754
71755
71756
71757 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile common-src/versuff.c config/Makefile device-src/Makefile application-src/Makefile example/Makefile example/amanda-client.conf example/amanda.conf example/xinetd.amandaclient example/xinetd.amandaserver example/inetd.conf.amandaclient example/inetd.conf.amandaserver example/chg-mcutil.conf example/template.d/advanced.conf example/template.d/amanda-S3.conf example/template.d/amanda-harddisk.conf example/template.d/amanda-single-tape.conf example/template.d/amanda-tape-changer.conf gnulib/Makefile installcheck/Makefile man/Makefile oldrecover-src/Makefile packaging/Makefile perl/Makefile po/Makefile recover-src/Makefile restore-src/Makefile server-src/Makefile xfer-src/Makefile"
71758
71759
71760 cat >confcache <<\_ACEOF
71761 # This file is a shell script that caches the results of configure
71762 # tests run on this system so they can be shared between configure
71763 # scripts and configure runs, see configure's option --config-cache.
71764 # It is not useful on other systems.  If it contains results you don't
71765 # want to keep, you may remove or edit it.
71766 #
71767 # config.status only pays attention to the cache file if you give it
71768 # the --recheck option to rerun configure.
71769 #
71770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
71771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
71772 # following values.
71773
71774 _ACEOF
71775
71776 # The following way of writing the cache mishandles newlines in values,
71777 # but we know of no workaround that is simple, portable, and efficient.
71778 # So, we kill variables containing newlines.
71779 # Ultrix sh set writes to stderr and can't be redirected directly,
71780 # and sets the high bit in the cache file unless we assign to the vars.
71781 (
71782   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
71783     eval ac_val=\$$ac_var
71784     case $ac_val in #(
71785     *${as_nl}*)
71786       case $ac_var in #(
71787       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
71788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
71789       esac
71790       case $ac_var in #(
71791       _ | IFS | as_nl) ;; #(
71792       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
71793       *) $as_unset $ac_var ;;
71794       esac ;;
71795     esac
71796   done
71797
71798   (set) 2>&1 |
71799     case $as_nl`(ac_space=' '; set) 2>&1` in #(
71800     *${as_nl}ac_space=\ *)
71801       # `set' does not quote correctly, so add quotes (double-quote
71802       # substitution turns \\\\ into \\, and sed turns \\ into \).
71803       sed -n \
71804         "s/'/'\\\\''/g;
71805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
71806       ;; #(
71807     *)
71808       # `set' quotes correctly as required by POSIX, so do not add quotes.
71809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
71810       ;;
71811     esac |
71812     sort
71813 ) |
71814   sed '
71815      /^ac_cv_env_/b end
71816      t clear
71817      :clear
71818      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
71819      t end
71820      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
71821      :end' >>confcache
71822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
71823   if test -w "$cache_file"; then
71824     test "x$cache_file" != "x/dev/null" &&
71825       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
71826 $as_echo "$as_me: updating cache $cache_file" >&6;}
71827     cat confcache >$cache_file
71828   else
71829     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
71830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71831   fi
71832 fi
71833 rm -f confcache
71834
71835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
71836 # Let make expand exec_prefix.
71837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
71838
71839 DEFS=-DHAVE_CONFIG_H
71840
71841 ac_libobjs=
71842 ac_ltlibobjs=
71843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
71844   # 1. Remove the extension, and $U if already installed.
71845   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
71846   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
71847   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
71848   #    will be set to the directory where LIBOBJS objects are built.
71849   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
71850   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
71851 done
71852 LIBOBJS=$ac_libobjs
71853
71854 LTLIBOBJS=$ac_ltlibobjs
71855
71856
71857 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
71858   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
71859 Usually this means the macro was only invoked conditionally." >&5
71860 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
71861 Usually this means the macro was only invoked conditionally." >&2;}
71862    { (exit 1); exit 1; }; }
71863 fi
71864 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
71865   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
71866 Usually this means the macro was only invoked conditionally." >&5
71867 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
71868 Usually this means the macro was only invoked conditionally." >&2;}
71869    { (exit 1); exit 1; }; }
71870 fi
71871 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
71872   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71873 Usually this means the macro was only invoked conditionally." >&5
71874 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71875 Usually this means the macro was only invoked conditionally." >&2;}
71876    { (exit 1); exit 1; }; }
71877 fi
71878
71879     gl_libobjs=
71880     gl_ltlibobjs=
71881     if test -n "$gl_LIBOBJS"; then
71882       # Remove the extension.
71883       sed_drop_objext='s/\.o$//;s/\.obj$//'
71884       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71885         gl_libobjs="$gl_libobjs $i.$ac_objext"
71886         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
71887       done
71888     fi
71889     gl_LIBOBJS=$gl_libobjs
71890
71891     gl_LTLIBOBJS=$gl_ltlibobjs
71892
71893
71894
71895     gltests_libobjs=
71896     gltests_ltlibobjs=
71897     if test -n "$gltests_LIBOBJS"; then
71898       # Remove the extension.
71899       sed_drop_objext='s/\.o$//;s/\.obj$//'
71900       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71901         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
71902         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
71903       done
71904     fi
71905     gltests_LIBOBJS=$gltests_libobjs
71906
71907     gltests_LTLIBOBJS=$gltests_ltlibobjs
71908
71909
71910 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
71911   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
71912 Usually this means the macro was only invoked conditionally." >&5
71913 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
71914 Usually this means the macro was only invoked conditionally." >&2;}
71915    { (exit 1); exit 1; }; }
71916 fi
71917 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
71918   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
71919 Usually this means the macro was only invoked conditionally." >&5
71920 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
71921 Usually this means the macro was only invoked conditionally." >&2;}
71922    { (exit 1); exit 1; }; }
71923 fi
71924 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
71925   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
71926 Usually this means the macro was only invoked conditionally." >&5
71927 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
71928 Usually this means the macro was only invoked conditionally." >&2;}
71929    { (exit 1); exit 1; }; }
71930 fi
71931 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
71932   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
71933 Usually this means the macro was only invoked conditionally." >&5
71934 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
71935 Usually this means the macro was only invoked conditionally." >&2;}
71936    { (exit 1); exit 1; }; }
71937 fi
71938 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
71939   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
71940 Usually this means the macro was only invoked conditionally." >&5
71941 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
71942 Usually this means the macro was only invoked conditionally." >&2;}
71943    { (exit 1); exit 1; }; }
71944 fi
71945 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
71946   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
71947 Usually this means the macro was only invoked conditionally." >&5
71948 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
71949 Usually this means the macro was only invoked conditionally." >&2;}
71950    { (exit 1); exit 1; }; }
71951 fi
71952 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
71953   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
71954 Usually this means the macro was only invoked conditionally." >&5
71955 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
71956 Usually this means the macro was only invoked conditionally." >&2;}
71957    { (exit 1); exit 1; }; }
71958 fi
71959 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
71960   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
71961 Usually this means the macro was only invoked conditionally." >&5
71962 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
71963 Usually this means the macro was only invoked conditionally." >&2;}
71964    { (exit 1); exit 1; }; }
71965 fi
71966 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
71967   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
71968 Usually this means the macro was only invoked conditionally." >&5
71969 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
71970 Usually this means the macro was only invoked conditionally." >&2;}
71971    { (exit 1); exit 1; }; }
71972 fi
71973 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
71974   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
71975 Usually this means the macro was only invoked conditionally." >&5
71976 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
71977 Usually this means the macro was only invoked conditionally." >&2;}
71978    { (exit 1); exit 1; }; }
71979 fi
71980 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
71981   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
71982 Usually this means the macro was only invoked conditionally." >&5
71983 $as_echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
71984 Usually this means the macro was only invoked conditionally." >&2;}
71985    { (exit 1); exit 1; }; }
71986 fi
71987 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
71988   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
71989 Usually this means the macro was only invoked conditionally." >&5
71990 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
71991 Usually this means the macro was only invoked conditionally." >&2;}
71992    { (exit 1); exit 1; }; }
71993 fi
71994 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
71995   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
71996 Usually this means the macro was only invoked conditionally." >&5
71997 $as_echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
71998 Usually this means the macro was only invoked conditionally." >&2;}
71999    { (exit 1); exit 1; }; }
72000 fi
72001 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
72002   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72003 Usually this means the macro was only invoked conditionally." >&5
72004 $as_echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72005 Usually this means the macro was only invoked conditionally." >&2;}
72006    { (exit 1); exit 1; }; }
72007 fi
72008 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
72009   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
72010 Usually this means the macro was only invoked conditionally." >&5
72011 $as_echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
72012 Usually this means the macro was only invoked conditionally." >&2;}
72013    { (exit 1); exit 1; }; }
72014 fi
72015 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
72016   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
72017 Usually this means the macro was only invoked conditionally." >&5
72018 $as_echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
72019 Usually this means the macro was only invoked conditionally." >&2;}
72020    { (exit 1); exit 1; }; }
72021 fi
72022 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
72023   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
72024 Usually this means the macro was only invoked conditionally." >&5
72025 $as_echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
72026 Usually this means the macro was only invoked conditionally." >&2;}
72027    { (exit 1); exit 1; }; }
72028 fi
72029 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
72030   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72031 Usually this means the macro was only invoked conditionally." >&5
72032 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72033 Usually this means the macro was only invoked conditionally." >&2;}
72034    { (exit 1); exit 1; }; }
72035 fi
72036 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
72037   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72038 Usually this means the macro was only invoked conditionally." >&5
72039 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72040 Usually this means the macro was only invoked conditionally." >&2;}
72041    { (exit 1); exit 1; }; }
72042 fi
72043 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
72044   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72045 Usually this means the macro was only invoked conditionally." >&5
72046 $as_echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72047 Usually this means the macro was only invoked conditionally." >&2;}
72048    { (exit 1); exit 1; }; }
72049 fi
72050 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
72051   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72052 Usually this means the macro was only invoked conditionally." >&5
72053 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72054 Usually this means the macro was only invoked conditionally." >&2;}
72055    { (exit 1); exit 1; }; }
72056 fi
72057 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
72058   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72059 Usually this means the macro was only invoked conditionally." >&5
72060 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72061 Usually this means the macro was only invoked conditionally." >&2;}
72062    { (exit 1); exit 1; }; }
72063 fi
72064 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
72065   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72066 Usually this means the macro was only invoked conditionally." >&5
72067 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72068 Usually this means the macro was only invoked conditionally." >&2;}
72069    { (exit 1); exit 1; }; }
72070 fi
72071 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
72072   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72073 Usually this means the macro was only invoked conditionally." >&5
72074 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72075 Usually this means the macro was only invoked conditionally." >&2;}
72076    { (exit 1); exit 1; }; }
72077 fi
72078 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
72079   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72080 Usually this means the macro was only invoked conditionally." >&5
72081 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72082 Usually this means the macro was only invoked conditionally." >&2;}
72083    { (exit 1); exit 1; }; }
72084 fi
72085 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
72086   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
72087 Usually this means the macro was only invoked conditionally." >&5
72088 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
72089 Usually this means the macro was only invoked conditionally." >&2;}
72090    { (exit 1); exit 1; }; }
72091 fi
72092 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
72093   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72094 Usually this means the macro was only invoked conditionally." >&5
72095 $as_echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72096 Usually this means the macro was only invoked conditionally." >&2;}
72097    { (exit 1); exit 1; }; }
72098 fi
72099 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
72100   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
72101 Usually this means the macro was only invoked conditionally." >&5
72102 $as_echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
72103 Usually this means the macro was only invoked conditionally." >&2;}
72104    { (exit 1); exit 1; }; }
72105 fi
72106 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
72107   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72108 Usually this means the macro was only invoked conditionally." >&5
72109 $as_echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72110 Usually this means the macro was only invoked conditionally." >&2;}
72111    { (exit 1); exit 1; }; }
72112 fi
72113 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
72114   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72115 Usually this means the macro was only invoked conditionally." >&5
72116 $as_echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72117 Usually this means the macro was only invoked conditionally." >&2;}
72118    { (exit 1); exit 1; }; }
72119 fi
72120 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
72121   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72122 Usually this means the macro was only invoked conditionally." >&5
72123 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72124 Usually this means the macro was only invoked conditionally." >&2;}
72125    { (exit 1); exit 1; }; }
72126 fi
72127 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
72128   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72129 Usually this means the macro was only invoked conditionally." >&5
72130 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72131 Usually this means the macro was only invoked conditionally." >&2;}
72132    { (exit 1); exit 1; }; }
72133 fi
72134 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
72135   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72136 Usually this means the macro was only invoked conditionally." >&5
72137 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72138 Usually this means the macro was only invoked conditionally." >&2;}
72139    { (exit 1); exit 1; }; }
72140 fi
72141 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
72142   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72143 Usually this means the macro was only invoked conditionally." >&5
72144 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72145 Usually this means the macro was only invoked conditionally." >&2;}
72146    { (exit 1); exit 1; }; }
72147 fi
72148 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
72149   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72150 Usually this means the macro was only invoked conditionally." >&5
72151 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72152 Usually this means the macro was only invoked conditionally." >&2;}
72153    { (exit 1); exit 1; }; }
72154 fi
72155 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
72156   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72157 Usually this means the macro was only invoked conditionally." >&5
72158 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72159 Usually this means the macro was only invoked conditionally." >&2;}
72160    { (exit 1); exit 1; }; }
72161 fi
72162 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
72163   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72164 Usually this means the macro was only invoked conditionally." >&5
72165 $as_echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72166 Usually this means the macro was only invoked conditionally." >&2;}
72167    { (exit 1); exit 1; }; }
72168 fi
72169 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
72170   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72171 Usually this means the macro was only invoked conditionally." >&5
72172 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72173 Usually this means the macro was only invoked conditionally." >&2;}
72174    { (exit 1); exit 1; }; }
72175 fi
72176 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
72177   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
72178 Usually this means the macro was only invoked conditionally." >&5
72179 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
72180 Usually this means the macro was only invoked conditionally." >&2;}
72181    { (exit 1); exit 1; }; }
72182 fi
72183
72184 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
72185   { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
72186 Usually this means the macro was only invoked conditionally." >&5
72187 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
72188 Usually this means the macro was only invoked conditionally." >&2;}
72189    { (exit 1); exit 1; }; }
72190 fi
72191 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
72192   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
72193 Usually this means the macro was only invoked conditionally." >&5
72194 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
72195 Usually this means the macro was only invoked conditionally." >&2;}
72196    { (exit 1); exit 1; }; }
72197 fi
72198
72199 : ${CONFIG_STATUS=./config.status}
72200 ac_write_fail=0
72201 ac_clean_files_save=$ac_clean_files
72202 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
72203 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
72204 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
72205 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72206 #! $SHELL
72207 # Generated by $as_me.
72208 # Run this file to recreate the current configuration.
72209 # Compiler output produced by configure, useful for debugging
72210 # configure, is in config.log if it exists.
72211
72212 debug=false
72213 ac_cs_recheck=false
72214 ac_cs_silent=false
72215 SHELL=\${CONFIG_SHELL-$SHELL}
72216 _ACEOF
72217
72218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72219 ## --------------------- ##
72220 ## M4sh Initialization.  ##
72221 ## --------------------- ##
72222
72223 # Be more Bourne compatible
72224 DUALCASE=1; export DUALCASE # for MKS sh
72225 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
72226   emulate sh
72227   NULLCMD=:
72228   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
72229   # is contrary to our usage.  Disable this feature.
72230   alias -g '${1+"$@"}'='"$@"'
72231   setopt NO_GLOB_SUBST
72232 else
72233   case `(set -o) 2>/dev/null` in
72234   *posix*) set -o posix ;;
72235 esac
72236
72237 fi
72238
72239
72240
72241
72242 # PATH needs CR
72243 # Avoid depending upon Character Ranges.
72244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
72245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
72246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
72247 as_cr_digits='0123456789'
72248 as_cr_alnum=$as_cr_Letters$as_cr_digits
72249
72250 as_nl='
72251 '
72252 export as_nl
72253 # Printing a long string crashes Solaris 7 /usr/bin/printf.
72254 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
72255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
72256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
72257 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72258   as_echo='printf %s\n'
72259   as_echo_n='printf %s'
72260 else
72261   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
72262     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
72263     as_echo_n='/usr/ucb/echo -n'
72264   else
72265     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72266     as_echo_n_body='eval
72267       arg=$1;
72268       case $arg in
72269       *"$as_nl"*)
72270         expr "X$arg" : "X\\(.*\\)$as_nl";
72271         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
72272       esac;
72273       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72274     '
72275     export as_echo_n_body
72276     as_echo_n='sh -c $as_echo_n_body as_echo'
72277   fi
72278   export as_echo_body
72279   as_echo='sh -c $as_echo_body as_echo'
72280 fi
72281
72282 # The user is always right.
72283 if test "${PATH_SEPARATOR+set}" != set; then
72284   PATH_SEPARATOR=:
72285   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
72286     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
72287       PATH_SEPARATOR=';'
72288   }
72289 fi
72290
72291 # Support unset when possible.
72292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
72293   as_unset=unset
72294 else
72295   as_unset=false
72296 fi
72297
72298
72299 # IFS
72300 # We need space, tab and new line, in precisely that order.  Quoting is
72301 # there to prevent editors from complaining about space-tab.
72302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
72303 # splitting by setting IFS to empty value.)
72304 IFS=" ""        $as_nl"
72305
72306 # Find who we are.  Look in the path if we contain no directory separator.
72307 case $0 in
72308   *[\\/]* ) as_myself=$0 ;;
72309   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72310 for as_dir in $PATH
72311 do
72312   IFS=$as_save_IFS
72313   test -z "$as_dir" && as_dir=.
72314   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
72315 done
72316 IFS=$as_save_IFS
72317
72318      ;;
72319 esac
72320 # We did not find ourselves, most probably we were run as `sh COMMAND'
72321 # in which case we are not to be found in the path.
72322 if test "x$as_myself" = x; then
72323   as_myself=$0
72324 fi
72325 if test ! -f "$as_myself"; then
72326   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
72327   { (exit 1); exit 1; }
72328 fi
72329
72330 # Work around bugs in pre-3.0 UWIN ksh.
72331 for as_var in ENV MAIL MAILPATH
72332 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
72333 done
72334 PS1='$ '
72335 PS2='> '
72336 PS4='+ '
72337
72338 # NLS nuisances.
72339 LC_ALL=C
72340 export LC_ALL
72341 LANGUAGE=C
72342 export LANGUAGE
72343
72344 # Required to use basename.
72345 if expr a : '\(a\)' >/dev/null 2>&1 &&
72346    test "X`expr 00001 : '.*\(...\)'`" = X001; then
72347   as_expr=expr
72348 else
72349   as_expr=false
72350 fi
72351
72352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
72353   as_basename=basename
72354 else
72355   as_basename=false
72356 fi
72357
72358
72359 # Name of the executable.
72360 as_me=`$as_basename -- "$0" ||
72361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72362          X"$0" : 'X\(//\)$' \| \
72363          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72364 $as_echo X/"$0" |
72365     sed '/^.*\/\([^/][^/]*\)\/*$/{
72366             s//\1/
72367             q
72368           }
72369           /^X\/\(\/\/\)$/{
72370             s//\1/
72371             q
72372           }
72373           /^X\/\(\/\).*/{
72374             s//\1/
72375             q
72376           }
72377           s/.*/./; q'`
72378
72379 # CDPATH.
72380 $as_unset CDPATH
72381
72382
72383
72384   as_lineno_1=$LINENO
72385   as_lineno_2=$LINENO
72386   test "x$as_lineno_1" != "x$as_lineno_2" &&
72387   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
72388
72389   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
72390   # uniformly replaced by the line number.  The first 'sed' inserts a
72391   # line-number line after each line using $LINENO; the second 'sed'
72392   # does the real work.  The second script uses 'N' to pair each
72393   # line-number line with the line containing $LINENO, and appends
72394   # trailing '-' during substitution so that $LINENO is not a special
72395   # case at line end.
72396   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
72397   # scripts with optimization help from Paolo Bonzini.  Blame Lee
72398   # E. McMahon (1931-1989) for sed's syntax.  :-)
72399   sed -n '
72400     p
72401     /[$]LINENO/=
72402   ' <$as_myself |
72403     sed '
72404       s/[$]LINENO.*/&-/
72405       t lineno
72406       b
72407       :lineno
72408       N
72409       :loop
72410       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
72411       t loop
72412       s/-\n.*//
72413     ' >$as_me.lineno &&
72414   chmod +x "$as_me.lineno" ||
72415     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
72416    { (exit 1); exit 1; }; }
72417
72418   # Don't try to exec as it changes $[0], causing all sort of problems
72419   # (the dirname of $[0] is not the place where we might find the
72420   # original and so on.  Autoconf is especially sensitive to this).
72421   . "./$as_me.lineno"
72422   # Exit status is that of the last command.
72423   exit
72424 }
72425
72426
72427 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
72428   as_dirname=dirname
72429 else
72430   as_dirname=false
72431 fi
72432
72433 ECHO_C= ECHO_N= ECHO_T=
72434 case `echo -n x` in
72435 -n*)
72436   case `echo 'x\c'` in
72437   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
72438   *)   ECHO_C='\c';;
72439   esac;;
72440 *)
72441   ECHO_N='-n';;
72442 esac
72443 if expr a : '\(a\)' >/dev/null 2>&1 &&
72444    test "X`expr 00001 : '.*\(...\)'`" = X001; then
72445   as_expr=expr
72446 else
72447   as_expr=false
72448 fi
72449
72450 rm -f conf$$ conf$$.exe conf$$.file
72451 if test -d conf$$.dir; then
72452   rm -f conf$$.dir/conf$$.file
72453 else
72454   rm -f conf$$.dir
72455   mkdir conf$$.dir 2>/dev/null
72456 fi
72457 if (echo >conf$$.file) 2>/dev/null; then
72458   if ln -s conf$$.file conf$$ 2>/dev/null; then
72459     as_ln_s='ln -s'
72460     # ... but there are two gotchas:
72461     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
72462     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
72463     # In both cases, we have to default to `cp -p'.
72464     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
72465       as_ln_s='cp -p'
72466   elif ln conf$$.file conf$$ 2>/dev/null; then
72467     as_ln_s=ln
72468   else
72469     as_ln_s='cp -p'
72470   fi
72471 else
72472   as_ln_s='cp -p'
72473 fi
72474 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
72475 rmdir conf$$.dir 2>/dev/null
72476
72477 if mkdir -p . 2>/dev/null; then
72478   as_mkdir_p=:
72479 else
72480   test -d ./-p && rmdir ./-p
72481   as_mkdir_p=false
72482 fi
72483
72484 if test -x / >/dev/null 2>&1; then
72485   as_test_x='test -x'
72486 else
72487   if ls -dL / >/dev/null 2>&1; then
72488     as_ls_L_option=L
72489   else
72490     as_ls_L_option=
72491   fi
72492   as_test_x='
72493     eval sh -c '\''
72494       if test -d "$1"; then
72495         test -d "$1/.";
72496       else
72497         case $1 in
72498         -*)set "./$1";;
72499         esac;
72500         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
72501         ???[sx]*):;;*)false;;esac;fi
72502     '\'' sh
72503   '
72504 fi
72505 as_executable_p=$as_test_x
72506
72507 # Sed expression to map a string onto a valid CPP name.
72508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
72509
72510 # Sed expression to map a string onto a valid variable name.
72511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
72512
72513
72514 exec 6>&1
72515
72516 # Save the log message, to keep $[0] and so on meaningful, and to
72517 # report actual input values of CONFIG_FILES etc. instead of their
72518 # values after options handling.
72519 ac_log="
72520 This file was extended by $as_me, which was
72521 generated by GNU Autoconf 2.63.  Invocation command line was
72522
72523   CONFIG_FILES    = $CONFIG_FILES
72524   CONFIG_HEADERS  = $CONFIG_HEADERS
72525   CONFIG_LINKS    = $CONFIG_LINKS
72526   CONFIG_COMMANDS = $CONFIG_COMMANDS
72527   $ $0 $@
72528
72529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
72530 "
72531
72532 _ACEOF
72533
72534 case $ac_config_files in *"
72535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
72536 esac
72537
72538 case $ac_config_headers in *"
72539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
72540 esac
72541
72542
72543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72544 # Files that config.status was made for.
72545 config_files="$ac_config_files"
72546 config_headers="$ac_config_headers"
72547 config_commands="$ac_config_commands"
72548
72549 _ACEOF
72550
72551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72552 ac_cs_usage="\
72553 \`$as_me' instantiates files from templates according to the
72554 current configuration.
72555
72556 Usage: $0 [OPTION]... [FILE]...
72557
72558   -h, --help       print this help, then exit
72559   -V, --version    print version number and configuration settings, then exit
72560   -q, --quiet, --silent
72561                    do not print progress messages
72562   -d, --debug      don't remove temporary files
72563       --recheck    update $as_me by reconfiguring in the same conditions
72564       --file=FILE[:TEMPLATE]
72565                    instantiate the configuration file FILE
72566       --header=FILE[:TEMPLATE]
72567                    instantiate the configuration header FILE
72568
72569 Configuration files:
72570 $config_files
72571
72572 Configuration headers:
72573 $config_headers
72574
72575 Configuration commands:
72576 $config_commands
72577
72578 Report bugs to <bug-autoconf@gnu.org>."
72579
72580 _ACEOF
72581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72582 ac_cs_version="\\
72583 config.status
72584 configured by $0, generated by GNU Autoconf 2.63,
72585   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
72586
72587 Copyright (C) 2008 Free Software Foundation, Inc.
72588 This config.status script is free software; the Free Software Foundation
72589 gives unlimited permission to copy, distribute and modify it."
72590
72591 ac_pwd='$ac_pwd'
72592 srcdir='$srcdir'
72593 INSTALL='$INSTALL'
72594 MKDIR_P='$MKDIR_P'
72595 AWK='$AWK'
72596 test -n "\$AWK" || AWK=awk
72597 _ACEOF
72598
72599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72600 # The default lists apply if the user does not specify any file.
72601 ac_need_defaults=:
72602 while test $# != 0
72603 do
72604   case $1 in
72605   --*=*)
72606     ac_option=`expr "X$1" : 'X\([^=]*\)='`
72607     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
72608     ac_shift=:
72609     ;;
72610   *)
72611     ac_option=$1
72612     ac_optarg=$2
72613     ac_shift=shift
72614     ;;
72615   esac
72616
72617   case $ac_option in
72618   # Handling of the options.
72619   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
72620     ac_cs_recheck=: ;;
72621   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
72622     $as_echo "$ac_cs_version"; exit ;;
72623   --debug | --debu | --deb | --de | --d | -d )
72624     debug=: ;;
72625   --file | --fil | --fi | --f )
72626     $ac_shift
72627     case $ac_optarg in
72628     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72629     esac
72630     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
72631     ac_need_defaults=false;;
72632   --header | --heade | --head | --hea )
72633     $ac_shift
72634     case $ac_optarg in
72635     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72636     esac
72637     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
72638     ac_need_defaults=false;;
72639   --he | --h)
72640     # Conflict between --help and --header
72641     { $as_echo "$as_me: error: ambiguous option: $1
72642 Try \`$0 --help' for more information." >&2
72643    { (exit 1); exit 1; }; };;
72644   --help | --hel | -h )
72645     $as_echo "$ac_cs_usage"; exit ;;
72646   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
72647   | -silent | --silent | --silen | --sile | --sil | --si | --s)
72648     ac_cs_silent=: ;;
72649
72650   # This is an error.
72651   -*) { $as_echo "$as_me: error: unrecognized option: $1
72652 Try \`$0 --help' for more information." >&2
72653    { (exit 1); exit 1; }; } ;;
72654
72655   *) ac_config_targets="$ac_config_targets $1"
72656      ac_need_defaults=false ;;
72657
72658   esac
72659   shift
72660 done
72661
72662 ac_configure_extra_args=
72663
72664 if $ac_cs_silent; then
72665   exec 6>/dev/null
72666   ac_configure_extra_args="$ac_configure_extra_args --silent"
72667 fi
72668
72669 _ACEOF
72670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72671 if \$ac_cs_recheck; then
72672   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
72673   shift
72674   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
72675   CONFIG_SHELL='$SHELL'
72676   export CONFIG_SHELL
72677   exec "\$@"
72678 fi
72679
72680 _ACEOF
72681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72682 exec 5>>config.log
72683 {
72684   echo
72685   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
72686 ## Running $as_me. ##
72687 _ASBOX
72688   $as_echo "$ac_log"
72689 } >&5
72690
72691 _ACEOF
72692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72693 #
72694 # INIT-COMMANDS
72695 #
72696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
72697 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
72698     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
72699     # from automake < 1.5.
72700     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
72701     # Capture the value of LINGUAS because we need it to compute CATALOGS.
72702     LINGUAS="${LINGUAS-%UNSET%}"
72703
72704
72705 _ACEOF
72706
72707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72708
72709 # Handling of arguments.
72710 for ac_config_target in $ac_config_targets
72711 do
72712   case $ac_config_target in
72713     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
72714     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
72715     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
72716     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
72717     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
72718     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
72719     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
72720     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
72721     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
72722     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
72723     "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
72724     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
72725     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
72726     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
72727     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
72728     "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
72729     "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
72730     "example/xinetd.amandaclient") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaclient" ;;
72731     "example/xinetd.amandaserver") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaserver" ;;
72732     "example/inetd.conf.amandaclient") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaclient" ;;
72733     "example/inetd.conf.amandaserver") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaserver" ;;
72734     "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
72735     "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
72736     "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
72737     "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
72738     "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
72739     "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
72740     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
72741     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
72742     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
72743     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
72744     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
72745     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
72746     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
72747     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
72748     "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
72749     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
72750     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
72751
72752   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
72753 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
72754    { (exit 1); exit 1; }; };;
72755   esac
72756 done
72757
72758
72759 # If the user did not use the arguments to specify the items to instantiate,
72760 # then the envvar interface is used.  Set only those that are not.
72761 # We use the long form for the default assignment because of an extremely
72762 # bizarre bug on SunOS 4.1.3.
72763 if $ac_need_defaults; then
72764   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72765   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
72766   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
72767 fi
72768
72769 # Have a temporary directory for convenience.  Make it in the build tree
72770 # simply because there is no reason against having it here, and in addition,
72771 # creating and moving files from /tmp can sometimes cause problems.
72772 # Hook for its removal unless debugging.
72773 # Note that there is a small window in which the directory will not be cleaned:
72774 # after its creation but before its name has been assigned to `$tmp'.
72775 $debug ||
72776 {
72777   tmp=
72778   trap 'exit_status=$?
72779   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
72780 ' 0
72781   trap '{ (exit 1); exit 1; }' 1 2 13 15
72782 }
72783 # Create a (secure) tmp directory for tmp files.
72784
72785 {
72786   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
72787   test -n "$tmp" && test -d "$tmp"
72788 }  ||
72789 {
72790   tmp=./conf$$-$RANDOM
72791   (umask 077 && mkdir "$tmp")
72792 } ||
72793 {
72794    $as_echo "$as_me: cannot create a temporary directory in ." >&2
72795    { (exit 1); exit 1; }
72796 }
72797
72798 # Set up the scripts for CONFIG_FILES section.
72799 # No need to generate them if there are no CONFIG_FILES.
72800 # This happens for instance with `./config.status config.h'.
72801 if test -n "$CONFIG_FILES"; then
72802
72803
72804 ac_cr='\r'
72805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
72806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
72807   ac_cs_awk_cr='\\r'
72808 else
72809   ac_cs_awk_cr=$ac_cr
72810 fi
72811
72812 echo 'BEGIN {' >"$tmp/subs1.awk" &&
72813 _ACEOF
72814
72815
72816 {
72817   echo "cat >conf$$subs.awk <<_ACEOF" &&
72818   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
72819   echo "_ACEOF"
72820 } >conf$$subs.sh ||
72821   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72822 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72823    { (exit 1); exit 1; }; }
72824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
72825 ac_delim='%!_!# '
72826 for ac_last_try in false false false false false :; do
72827   . ./conf$$subs.sh ||
72828     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72829 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72830    { (exit 1); exit 1; }; }
72831
72832   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
72833   if test $ac_delim_n = $ac_delim_num; then
72834     break
72835   elif $ac_last_try; then
72836     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72837 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72838    { (exit 1); exit 1; }; }
72839   else
72840     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72841   fi
72842 done
72843 rm -f conf$$subs.sh
72844
72845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72846 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
72847 _ACEOF
72848 sed -n '
72849 h
72850 s/^/S["/; s/!.*/"]=/
72851 p
72852 g
72853 s/^[^!]*!//
72854 :repl
72855 t repl
72856 s/'"$ac_delim"'$//
72857 t delim
72858 :nl
72859 h
72860 s/\(.\{148\}\).*/\1/
72861 t more1
72862 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
72863 p
72864 n
72865 b repl
72866 :more1
72867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72868 p
72869 g
72870 s/.\{148\}//
72871 t nl
72872 :delim
72873 h
72874 s/\(.\{148\}\).*/\1/
72875 t more2
72876 s/["\\]/\\&/g; s/^/"/; s/$/"/
72877 p
72878 b
72879 :more2
72880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72881 p
72882 g
72883 s/.\{148\}//
72884 t delim
72885 ' <conf$$subs.awk | sed '
72886 /^[^""]/{
72887   N
72888   s/\n//
72889 }
72890 ' >>$CONFIG_STATUS || ac_write_fail=1
72891 rm -f conf$$subs.awk
72892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72893 _ACAWK
72894 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
72895   for (key in S) S_is_set[key] = 1
72896   FS = "\a"
72897
72898 }
72899 {
72900   line = $ 0
72901   nfields = split(line, field, "@")
72902   substed = 0
72903   len = length(field[1])
72904   for (i = 2; i < nfields; i++) {
72905     key = field[i]
72906     keylen = length(key)
72907     if (S_is_set[key]) {
72908       value = S[key]
72909       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
72910       len += length(value) + length(field[++i])
72911       substed = 1
72912     } else
72913       len += 1 + keylen
72914   }
72915
72916   print line
72917 }
72918
72919 _ACAWK
72920 _ACEOF
72921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72922 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
72923   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
72924 else
72925   cat
72926 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
72927   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
72928 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
72929    { (exit 1); exit 1; }; }
72930 _ACEOF
72931
72932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
72933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
72934 # trailing colons and then remove the whole line if VPATH becomes empty
72935 # (actually we leave an empty line to preserve line numbers).
72936 if test "x$srcdir" = x.; then
72937   ac_vpsub='/^[  ]*VPATH[        ]*=/{
72938 s/:*\$(srcdir):*/:/
72939 s/:*\${srcdir}:*/:/
72940 s/:*@srcdir@:*/:/
72941 s/^\([^=]*=[     ]*\):*/\1/
72942 s/:*$//
72943 s/^[^=]*=[       ]*$//
72944 }'
72945 fi
72946
72947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72948 fi # test -n "$CONFIG_FILES"
72949
72950 # Set up the scripts for CONFIG_HEADERS section.
72951 # No need to generate them if there are no CONFIG_HEADERS.
72952 # This happens for instance with `./config.status Makefile'.
72953 if test -n "$CONFIG_HEADERS"; then
72954 cat >"$tmp/defines.awk" <<\_ACAWK ||
72955 BEGIN {
72956 _ACEOF
72957
72958 # Transform confdefs.h into an awk script `defines.awk', embedded as
72959 # here-document in config.status, that substitutes the proper values into
72960 # config.h.in to produce config.h.
72961
72962 # Create a delimiter string that does not exist in confdefs.h, to ease
72963 # handling of long lines.
72964 ac_delim='%!_!# '
72965 for ac_last_try in false false :; do
72966   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
72967   if test -z "$ac_t"; then
72968     break
72969   elif $ac_last_try; then
72970     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
72971 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
72972    { (exit 1); exit 1; }; }
72973   else
72974     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72975   fi
72976 done
72977
72978 # For the awk script, D is an array of macro values keyed by name,
72979 # likewise P contains macro parameters if any.  Preserve backslash
72980 # newline sequences.
72981
72982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
72983 sed -n '
72984 s/.\{148\}/&'"$ac_delim"'/g
72985 t rset
72986 :rset
72987 s/^[     ]*#[    ]*define[       ][      ]*/ /
72988 t def
72989 d
72990 :def
72991 s/\\$//
72992 t bsnl
72993 s/["\\]/\\&/g
72994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
72995 D["\1"]=" \3"/p
72996 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
72997 d
72998 :bsnl
72999 s/["\\]/\\&/g
73000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
73001 D["\1"]=" \3\\\\\\n"\\/p
73002 t cont
73003 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
73004 t cont
73005 d
73006 :cont
73007 n
73008 s/.\{148\}/&'"$ac_delim"'/g
73009 t clear
73010 :clear
73011 s/\\$//
73012 t bsnlc
73013 s/["\\]/\\&/g; s/^/"/; s/$/"/p
73014 d
73015 :bsnlc
73016 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
73017 b cont
73018 ' <confdefs.h | sed '
73019 s/'"$ac_delim"'/"\\\
73020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
73021
73022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73023   for (key in D) D_is_set[key] = 1
73024   FS = "\a"
73025 }
73026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
73027   line = \$ 0
73028   split(line, arg, " ")
73029   if (arg[1] == "#") {
73030     defundef = arg[2]
73031     mac1 = arg[3]
73032   } else {
73033     defundef = substr(arg[1], 2)
73034     mac1 = arg[2]
73035   }
73036   split(mac1, mac2, "(") #)
73037   macro = mac2[1]
73038   prefix = substr(line, 1, index(line, defundef) - 1)
73039   if (D_is_set[macro]) {
73040     # Preserve the white space surrounding the "#".
73041     print prefix "define", macro P[macro] D[macro]
73042     next
73043   } else {
73044     # Replace #undef with comments.  This is necessary, for example,
73045     # in the case of _POSIX_SOURCE, which is predefined and required
73046     # on some systems where configure will not decide to define it.
73047     if (defundef == "undef") {
73048       print "/*", prefix defundef, macro, "*/"
73049       next
73050     }
73051   }
73052 }
73053 { print }
73054 _ACAWK
73055 _ACEOF
73056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73057   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
73058 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
73059    { (exit 1); exit 1; }; }
73060 fi # test -n "$CONFIG_HEADERS"
73061
73062
73063 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
73064 shift
73065 for ac_tag
73066 do
73067   case $ac_tag in
73068   :[FHLC]) ac_mode=$ac_tag; continue;;
73069   esac
73070   case $ac_mode$ac_tag in
73071   :[FHL]*:*);;
73072   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
73073 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
73074    { (exit 1); exit 1; }; };;
73075   :[FH]-) ac_tag=-:-;;
73076   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
73077   esac
73078   ac_save_IFS=$IFS
73079   IFS=:
73080   set x $ac_tag
73081   IFS=$ac_save_IFS
73082   shift
73083   ac_file=$1
73084   shift
73085
73086   case $ac_mode in
73087   :L) ac_source=$1;;
73088   :[FH])
73089     ac_file_inputs=
73090     for ac_f
73091     do
73092       case $ac_f in
73093       -) ac_f="$tmp/stdin";;
73094       *) # Look for the file first in the build tree, then in the source tree
73095          # (if the path is not absolute).  The absolute path cannot be DOS-style,
73096          # because $ac_f cannot contain `:'.
73097          test -f "$ac_f" ||
73098            case $ac_f in
73099            [\\/$]*) false;;
73100            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
73101            esac ||
73102            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
73103 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
73104    { (exit 1); exit 1; }; };;
73105       esac
73106       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
73107       ac_file_inputs="$ac_file_inputs '$ac_f'"
73108     done
73109
73110     # Let's still pretend it is `configure' which instantiates (i.e., don't
73111     # use $as_me), people would be surprised to read:
73112     #    /* config.h.  Generated by config.status.  */
73113     configure_input='Generated from '`
73114           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
73115         `' by configure.'
73116     if test x"$ac_file" != x-; then
73117       configure_input="$ac_file.  $configure_input"
73118       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
73119 $as_echo "$as_me: creating $ac_file" >&6;}
73120     fi
73121     # Neutralize special characters interpreted by sed in replacement strings.
73122     case $configure_input in #(
73123     *\&* | *\|* | *\\* )
73124        ac_sed_conf_input=`$as_echo "$configure_input" |
73125        sed 's/[\\\\&|]/\\\\&/g'`;; #(
73126     *) ac_sed_conf_input=$configure_input;;
73127     esac
73128
73129     case $ac_tag in
73130     *:-:* | *:-) cat >"$tmp/stdin" \
73131       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73132 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73133    { (exit 1); exit 1; }; } ;;
73134     esac
73135     ;;
73136   esac
73137
73138   ac_dir=`$as_dirname -- "$ac_file" ||
73139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73140          X"$ac_file" : 'X\(//\)[^/]' \| \
73141          X"$ac_file" : 'X\(//\)$' \| \
73142          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
73143 $as_echo X"$ac_file" |
73144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73145             s//\1/
73146             q
73147           }
73148           /^X\(\/\/\)[^/].*/{
73149             s//\1/
73150             q
73151           }
73152           /^X\(\/\/\)$/{
73153             s//\1/
73154             q
73155           }
73156           /^X\(\/\).*/{
73157             s//\1/
73158             q
73159           }
73160           s/.*/./; q'`
73161   { as_dir="$ac_dir"
73162   case $as_dir in #(
73163   -*) as_dir=./$as_dir;;
73164   esac
73165   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73166     as_dirs=
73167     while :; do
73168       case $as_dir in #(
73169       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73170       *) as_qdir=$as_dir;;
73171       esac
73172       as_dirs="'$as_qdir' $as_dirs"
73173       as_dir=`$as_dirname -- "$as_dir" ||
73174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73175          X"$as_dir" : 'X\(//\)[^/]' \| \
73176          X"$as_dir" : 'X\(//\)$' \| \
73177          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73178 $as_echo X"$as_dir" |
73179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73180             s//\1/
73181             q
73182           }
73183           /^X\(\/\/\)[^/].*/{
73184             s//\1/
73185             q
73186           }
73187           /^X\(\/\/\)$/{
73188             s//\1/
73189             q
73190           }
73191           /^X\(\/\).*/{
73192             s//\1/
73193             q
73194           }
73195           s/.*/./; q'`
73196       test -d "$as_dir" && break
73197     done
73198     test -z "$as_dirs" || eval "mkdir $as_dirs"
73199   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73200 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73201    { (exit 1); exit 1; }; }; }
73202   ac_builddir=.
73203
73204 case "$ac_dir" in
73205 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
73206 *)
73207   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
73208   # A ".." for each directory in $ac_dir_suffix.
73209   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
73210   case $ac_top_builddir_sub in
73211   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
73212   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
73213   esac ;;
73214 esac
73215 ac_abs_top_builddir=$ac_pwd
73216 ac_abs_builddir=$ac_pwd$ac_dir_suffix
73217 # for backward compatibility:
73218 ac_top_builddir=$ac_top_build_prefix
73219
73220 case $srcdir in
73221   .)  # We are building in place.
73222     ac_srcdir=.
73223     ac_top_srcdir=$ac_top_builddir_sub
73224     ac_abs_top_srcdir=$ac_pwd ;;
73225   [\\/]* | ?:[\\/]* )  # Absolute name.
73226     ac_srcdir=$srcdir$ac_dir_suffix;
73227     ac_top_srcdir=$srcdir
73228     ac_abs_top_srcdir=$srcdir ;;
73229   *) # Relative name.
73230     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
73231     ac_top_srcdir=$ac_top_build_prefix$srcdir
73232     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
73233 esac
73234 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
73235
73236
73237   case $ac_mode in
73238   :F)
73239   #
73240   # CONFIG_FILE
73241   #
73242
73243   case $INSTALL in
73244   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
73245   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
73246   esac
73247   ac_MKDIR_P=$MKDIR_P
73248   case $MKDIR_P in
73249   [\\/$]* | ?:[\\/]* ) ;;
73250   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
73251   esac
73252 _ACEOF
73253
73254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73255 # If the template does not know about datarootdir, expand it.
73256 # FIXME: This hack should be removed a few years after 2.60.
73257 ac_datarootdir_hack=; ac_datarootdir_seen=
73258
73259 ac_sed_dataroot='
73260 /datarootdir/ {
73261   p
73262   q
73263 }
73264 /@datadir@/p
73265 /@docdir@/p
73266 /@infodir@/p
73267 /@localedir@/p
73268 /@mandir@/p
73269 '
73270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
73271 *datarootdir*) ac_datarootdir_seen=yes;;
73272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
73273   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
73274 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
73275 _ACEOF
73276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73277   ac_datarootdir_hack='
73278   s&@datadir@&$datadir&g
73279   s&@docdir@&$docdir&g
73280   s&@infodir@&$infodir&g
73281   s&@localedir@&$localedir&g
73282   s&@mandir@&$mandir&g
73283     s&\\\${datarootdir}&$datarootdir&g' ;;
73284 esac
73285 _ACEOF
73286
73287 # Neutralize VPATH when `$srcdir' = `.'.
73288 # Shell code in configure.ac might set extrasub.
73289 # FIXME: do we really want to maintain this feature?
73290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73291 ac_sed_extra="$ac_vpsub
73292 $extrasub
73293 _ACEOF
73294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73295 :t
73296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
73297 s|@configure_input@|$ac_sed_conf_input|;t t
73298 s&@top_builddir@&$ac_top_builddir_sub&;t t
73299 s&@top_build_prefix@&$ac_top_build_prefix&;t t
73300 s&@srcdir@&$ac_srcdir&;t t
73301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
73302 s&@top_srcdir@&$ac_top_srcdir&;t t
73303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
73304 s&@builddir@&$ac_builddir&;t t
73305 s&@abs_builddir@&$ac_abs_builddir&;t t
73306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
73307 s&@INSTALL@&$ac_INSTALL&;t t
73308 s&@MKDIR_P@&$ac_MKDIR_P&;t t
73309 $ac_datarootdir_hack
73310 "
73311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
73312   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73314    { (exit 1); exit 1; }; }
73315
73316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73317   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
73318   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
73319   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73320 which seems to be undefined.  Please make sure it is defined." >&5
73321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73322 which seems to be undefined.  Please make sure it is defined." >&2;}
73323
73324   rm -f "$tmp/stdin"
73325   case $ac_file in
73326   -) cat "$tmp/out" && rm -f "$tmp/out";;
73327   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
73328   esac \
73329   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73330 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73331    { (exit 1); exit 1; }; }
73332  ;;
73333   :H)
73334   #
73335   # CONFIG_HEADER
73336   #
73337   if test x"$ac_file" != x-; then
73338     {
73339       $as_echo "/* $configure_input  */" \
73340       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
73341     } >"$tmp/config.h" \
73342       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73344    { (exit 1); exit 1; }; }
73345     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
73346       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
73347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
73348     else
73349       rm -f "$ac_file"
73350       mv "$tmp/config.h" "$ac_file" \
73351         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73353    { (exit 1); exit 1; }; }
73354     fi
73355   else
73356     $as_echo "/* $configure_input  */" \
73357       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
73358       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
73359 $as_echo "$as_me: error: could not create -" >&2;}
73360    { (exit 1); exit 1; }; }
73361   fi
73362 # Compute "$ac_file"'s index in $config_headers.
73363 _am_arg="$ac_file"
73364 _am_stamp_count=1
73365 for _am_header in $config_headers :; do
73366   case $_am_header in
73367     $_am_arg | $_am_arg:* )
73368       break ;;
73369     * )
73370       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
73371   esac
73372 done
73373 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
73374 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73375          X"$_am_arg" : 'X\(//\)[^/]' \| \
73376          X"$_am_arg" : 'X\(//\)$' \| \
73377          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
73378 $as_echo X"$_am_arg" |
73379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73380             s//\1/
73381             q
73382           }
73383           /^X\(\/\/\)[^/].*/{
73384             s//\1/
73385             q
73386           }
73387           /^X\(\/\/\)$/{
73388             s//\1/
73389             q
73390           }
73391           /^X\(\/\).*/{
73392             s//\1/
73393             q
73394           }
73395           s/.*/./; q'`/stamp-h$_am_stamp_count
73396  ;;
73397
73398   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
73399 $as_echo "$as_me: executing $ac_file commands" >&6;}
73400  ;;
73401   esac
73402
73403
73404   case $ac_file$ac_mode in
73405     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
73406   # Strip MF so we end up with the name of the file.
73407   mf=`echo "$mf" | sed -e 's/:.*$//'`
73408   # Check whether this is an Automake generated Makefile or not.
73409   # We used to match only the files named `Makefile.in', but
73410   # some people rename them; so instead we look at the file content.
73411   # Grep'ing the first line is not enough: some people post-process
73412   # each Makefile.in and add a new line on top of each file to say so.
73413   # Grep'ing the whole file is not good either: AIX grep has a line
73414   # limit of 2048, but all sed's we know have understand at least 4000.
73415   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
73416     dirpart=`$as_dirname -- "$mf" ||
73417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73418          X"$mf" : 'X\(//\)[^/]' \| \
73419          X"$mf" : 'X\(//\)$' \| \
73420          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
73421 $as_echo X"$mf" |
73422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73423             s//\1/
73424             q
73425           }
73426           /^X\(\/\/\)[^/].*/{
73427             s//\1/
73428             q
73429           }
73430           /^X\(\/\/\)$/{
73431             s//\1/
73432             q
73433           }
73434           /^X\(\/\).*/{
73435             s//\1/
73436             q
73437           }
73438           s/.*/./; q'`
73439   else
73440     continue
73441   fi
73442   # Extract the definition of DEPDIR, am__include, and am__quote
73443   # from the Makefile without running `make'.
73444   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
73445   test -z "$DEPDIR" && continue
73446   am__include=`sed -n 's/^am__include = //p' < "$mf"`
73447   test -z "am__include" && continue
73448   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
73449   # When using ansi2knr, U may be empty or an underscore; expand it
73450   U=`sed -n 's/^U = //p' < "$mf"`
73451   # Find all dependency output files, they are included files with
73452   # $(DEPDIR) in their names.  We invoke sed twice because it is the
73453   # simplest approach to changing $(DEPDIR) to its actual value in the
73454   # expansion.
73455   for file in `sed -n "
73456     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73457        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
73458     # Make sure the directory exists.
73459     test -f "$dirpart/$file" && continue
73460     fdir=`$as_dirname -- "$file" ||
73461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73462          X"$file" : 'X\(//\)[^/]' \| \
73463          X"$file" : 'X\(//\)$' \| \
73464          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
73465 $as_echo X"$file" |
73466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73467             s//\1/
73468             q
73469           }
73470           /^X\(\/\/\)[^/].*/{
73471             s//\1/
73472             q
73473           }
73474           /^X\(\/\/\)$/{
73475             s//\1/
73476             q
73477           }
73478           /^X\(\/\).*/{
73479             s//\1/
73480             q
73481           }
73482           s/.*/./; q'`
73483     { as_dir=$dirpart/$fdir
73484   case $as_dir in #(
73485   -*) as_dir=./$as_dir;;
73486   esac
73487   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73488     as_dirs=
73489     while :; do
73490       case $as_dir in #(
73491       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73492       *) as_qdir=$as_dir;;
73493       esac
73494       as_dirs="'$as_qdir' $as_dirs"
73495       as_dir=`$as_dirname -- "$as_dir" ||
73496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73497          X"$as_dir" : 'X\(//\)[^/]' \| \
73498          X"$as_dir" : 'X\(//\)$' \| \
73499          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73500 $as_echo X"$as_dir" |
73501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73502             s//\1/
73503             q
73504           }
73505           /^X\(\/\/\)[^/].*/{
73506             s//\1/
73507             q
73508           }
73509           /^X\(\/\/\)$/{
73510             s//\1/
73511             q
73512           }
73513           /^X\(\/\).*/{
73514             s//\1/
73515             q
73516           }
73517           s/.*/./; q'`
73518       test -d "$as_dir" && break
73519     done
73520     test -z "$as_dirs" || eval "mkdir $as_dirs"
73521   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73522 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73523    { (exit 1); exit 1; }; }; }
73524     # echo "creating $dirpart/$file"
73525     echo '# dummy' > "$dirpart/$file"
73526   done
73527 done
73528  ;;
73529     "po-directories":C)
73530     for ac_file in $CONFIG_FILES; do
73531       # Support "outfile[:infile[:infile...]]"
73532       case "$ac_file" in
73533         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
73534       esac
73535       # PO directories have a Makefile.in generated from Makefile.in.in.
73536       case "$ac_file" in */Makefile.in)
73537         # Adjust a relative srcdir.
73538         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
73539         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
73540         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
73541         # In autoconf-2.13 it is called $ac_given_srcdir.
73542         # In autoconf-2.50 it is called $srcdir.
73543         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
73544         case "$ac_given_srcdir" in
73545           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
73546           /*) top_srcdir="$ac_given_srcdir" ;;
73547           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
73548         esac
73549         # Treat a directory as a PO directory if and only if it has a
73550         # POTFILES.in file. This allows packages to have multiple PO
73551         # directories under different names or in different locations.
73552         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
73553           rm -f "$ac_dir/POTFILES"
73554           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
73555           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
73556           POMAKEFILEDEPS="POTFILES.in"
73557           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
73558           # on $ac_dir but don't depend on user-specified configuration
73559           # parameters.
73560           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
73561             # The LINGUAS file contains the set of available languages.
73562             if test -n "$OBSOLETE_ALL_LINGUAS"; then
73563               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
73564             fi
73565             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
73566             # Hide the ALL_LINGUAS assigment from automake < 1.5.
73567             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
73568             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
73569           else
73570             # The set of available languages was given in configure.in.
73571             # Hide the ALL_LINGUAS assigment from automake < 1.5.
73572             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
73573           fi
73574           # Compute POFILES
73575           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
73576           # Compute UPDATEPOFILES
73577           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
73578           # Compute DUMMYPOFILES
73579           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
73580           # Compute GMOFILES
73581           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
73582           case "$ac_given_srcdir" in
73583             .) srcdirpre= ;;
73584             *) srcdirpre='$(srcdir)/' ;;
73585           esac
73586           POFILES=
73587           UPDATEPOFILES=
73588           DUMMYPOFILES=
73589           GMOFILES=
73590           for lang in $ALL_LINGUAS; do
73591             POFILES="$POFILES $srcdirpre$lang.po"
73592             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
73593             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
73594             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
73595           done
73596           # CATALOGS depends on both $ac_dir and the user's LINGUAS
73597           # environment variable.
73598           INST_LINGUAS=
73599           if test -n "$ALL_LINGUAS"; then
73600             for presentlang in $ALL_LINGUAS; do
73601               useit=no
73602               if test "%UNSET%" != "$LINGUAS"; then
73603                 desiredlanguages="$LINGUAS"
73604               else
73605                 desiredlanguages="$ALL_LINGUAS"
73606               fi
73607               for desiredlang in $desiredlanguages; do
73608                 # Use the presentlang catalog if desiredlang is
73609                 #   a. equal to presentlang, or
73610                 #   b. a variant of presentlang (because in this case,
73611                 #      presentlang can be used as a fallback for messages
73612                 #      which are not translated in the desiredlang catalog).
73613                 case "$desiredlang" in
73614                   "$presentlang"*) useit=yes;;
73615                 esac
73616               done
73617               if test $useit = yes; then
73618                 INST_LINGUAS="$INST_LINGUAS $presentlang"
73619               fi
73620             done
73621           fi
73622           CATALOGS=
73623           if test -n "$INST_LINGUAS"; then
73624             for lang in $INST_LINGUAS; do
73625               CATALOGS="$CATALOGS $lang.gmo"
73626             done
73627           fi
73628           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
73629           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"
73630           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
73631             if test -f "$f"; then
73632               case "$f" in
73633                 *.orig | *.bak | *~) ;;
73634                 *) cat "$f" >> "$ac_dir/Makefile" ;;
73635               esac
73636             fi
73637           done
73638         fi
73639         ;;
73640       esac
73641     done ;;
73642
73643   esac
73644 done # for ac_tag
73645
73646
73647 { (exit 0); exit 0; }
73648 _ACEOF
73649 chmod +x $CONFIG_STATUS
73650 ac_clean_files=$ac_clean_files_save
73651
73652 test $ac_write_fail = 0 ||
73653   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
73654 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
73655    { (exit 1); exit 1; }; }
73656
73657
73658 # configure is writing to config.log, and then calls config.status.
73659 # config.status does its own redirection, appending to config.log.
73660 # Unfortunately, on DOS this fails, as config.log is still kept open
73661 # by configure, so config.status won't be able to write to it; its
73662 # output is simply discarded.  So we exec the FD to /dev/null,
73663 # effectively closing config.log, so it can be properly (re)opened and
73664 # appended to by config.status.  When coming back to configure, we
73665 # need to make the FD available again.
73666 if test "$no_create" != yes; then
73667   ac_cs_success=:
73668   ac_config_status_args=
73669   test "$silent" = yes &&
73670     ac_config_status_args="$ac_config_status_args --quiet"
73671   exec 5>/dev/null
73672   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
73673   exec 5>>config.log
73674   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
73675   # would make configure fail if this is the last instruction.
73676   $ac_cs_success || { (exit 1); exit 1; }
73677 fi
73678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
73679   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
73680 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
73681 fi
73682
73683
73684
73685
73686
73687     # Extract the first word of "svn", so it can be a program name with args.
73688 set dummy svn; ac_word=$2
73689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
73690 $as_echo_n "checking for $ac_word... " >&6; }
73691 if test "${ac_cv_path_SVN+set}" = set; then
73692   $as_echo_n "(cached) " >&6
73693 else
73694   case $SVN in
73695   [\\/]* | ?:[\\/]*)
73696   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
73697   ;;
73698   *)
73699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73700 for as_dir in $LOCSYSPATH
73701 do
73702   IFS=$as_save_IFS
73703   test -z "$as_dir" && as_dir=.
73704   for ac_exec_ext in '' $ac_executable_extensions; do
73705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73706     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
73707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73708     break 2
73709   fi
73710 done
73711 done
73712 IFS=$as_save_IFS
73713
73714   ;;
73715 esac
73716 fi
73717 SVN=$ac_cv_path_SVN
73718 if test -n "$SVN"; then
73719   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
73720 $as_echo "$SVN" >&6; }
73721 else
73722   { $as_echo "$as_me:$LINENO: result: no" >&5
73723 $as_echo "no" >&6; }
73724 fi
73725
73726
73727     { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
73728 $as_echo_n "checking Subversion revision information... " >&6; }
73729     if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
73730         rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
73731         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
73732         ( echo '#define BUILT_REV "'$rev'"'
73733           echo '#define BUILT_BRANCH "'`basename "$url"`'"'
73734         ) > common-src/svn-info.h
73735
73736         { $as_echo "$as_me:$LINENO: result: updated" >&5
73737 $as_echo "updated" >&6; }
73738     else
73739         # Makefiles will be upset if the file doesn't exist, so double-check
73740         if test -f common-src/svn-info.h; then
73741             : # all good
73742             { $as_echo "$as_me:$LINENO: result: not changed" >&5
73743 $as_echo "not changed" >&6; }
73744         else
73745             echo '/* no information available */' > common-src/svn-info.h
73746             { $as_echo "$as_me:$LINENO: result: not available" >&5
73747 $as_echo "not available" >&6; }
73748         fi
73749     fi
73750
73751     rm -f conftemp.svn
73752
73753
73754
73755     echo "Compiler Flags:"
73756     echo "  CFLAGS: ${CFLAGS-(none)}"
73757     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
73758     echo "  LDFLAGS: ${LDFLAGS-(none)}"
73759     echo "  LIBS: ${LIBS-(none)}"
73760
73761
73762     components=''
73763     if $WANT_SERVER; then
73764         components="$components server";
73765     else
73766         components="$components (no server)";
73767     fi
73768     if $WANT_RESTORE; then
73769         components="$components restore";
73770     else
73771         components="$components (no restore)";
73772     fi
73773     if $WANT_CLIENT; then
73774         components="$components client";
73775     else
73776         components="$components (no client)";
73777     fi
73778     if $WANT_RECOVER; then
73779         components="$components amrecover";
73780     else
73781         components="$components (no amrecover)";
73782     fi
73783
73784     echo "Amanda Components: $components"
73785
73786
73787     echo "Working IPv6:" $WORKING_IPV6
73788
73789
73790     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
73791
73792
73793     echo "Directories:"
73794     echo "  Application: $APPLICATION_DIR"
73795     echo "  Configuration: $CONFIG_DIR"
73796     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
73797     echo "  Perl modules (amperldir): $amperldir"
73798     echo "  Template and example data files (amdatadir): $amdatadir"
73799     echo "  Temporary: $AMANDA_TMPDIR"
73800
73801     if test -f config.warnings; then
73802         echo "WARNINGS:"
73803         cat config.warnings | sed -e 's/^/  /g'
73804         rm config.warnings
73805     fi
73806